]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/configure
Require CET support only for the final GCC build
[thirdparty/gcc.git] / libbacktrace / configure
CommitLineData
eff02e4f
ILT
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
22e05272
JM
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.
eff02e4f 7#
eff02e4f
ILT
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.
22e05272 90as_myself=
eff02e4f
ILT
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
22e05272
JM
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;}
eff02e4f
ILT
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
22e05272
JM
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
eff02e4f
ILT
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
d4c059d5 199test \$(( 1 + 1 )) = 2 || exit 1
eff02e4f
ILT
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\" \\
d4c059d5 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
eff02e4f
ILT
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 :
22e05272
JM
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
eff02e4f
ILT
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"
22e05272 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
364
365
366} # as_fn_mkdir_p
22e05272
JM
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
eff02e4f
ILT
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
22e05272
JM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
eff02e4f
ILT
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
22e05272 415# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
416as_fn_error ()
417{
22e05272
JM
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
eff02e4f 422 fi
22e05272 423 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
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
22e05272
JM
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
eff02e4f
ILT
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.
22e05272 534 # In both cases, we have to default to `cp -pR'.
eff02e4f 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 536 as_ln_s='cp -pR'
eff02e4f
ILT
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
22e05272 540 as_ln_s='cp -pR'
eff02e4f
ILT
541 fi
542else
22e05272 543 as_ln_s='cp -pR'
eff02e4f
ILT
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
22e05272
JM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
eff02e4f
ILT
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
22e05272
JM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
eff02e4f
ILT
569
570# Name of the host.
22e05272 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
eff02e4f
ILT
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
dea40c94
ILT
638HAVE_DSYMUTIL_FALSE
639HAVE_DSYMUTIL_TRUE
9283471b
ILT
640HAVE_OBJCOPY_DEBUGLINK_FALSE
641HAVE_OBJCOPY_DEBUGLINK_TRUE
fddbc193 642READELF
9283471b 643OBJCOPY
8da872d9
ILT
644HAVE_COMPRESSED_DEBUG_FALSE
645HAVE_COMPRESSED_DEBUG_TRUE
646HAVE_ZLIB_FALSE
647HAVE_ZLIB_TRUE
c926fd82
ILT
648HAVE_DWARF5_FALSE
649HAVE_DWARF5_TRUE
d1609a23
ILT
650HAVE_PTHREAD_FALSE
651HAVE_PTHREAD_TRUE
652PTHREAD_CFLAGS
8398c1df 653CLOCK_GETTIME_LINK
eff02e4f
ILT
654BACKTRACE_USES_MALLOC
655ALLOC_FILE
656VIEW_FILE
e24afc10 657BACKTRACE_SUPPORTS_DATA
eff02e4f 658BACKTRACE_SUPPORTED
fddbc193
TV
659HAVE_ELF_FALSE
660HAVE_ELF_TRUE
eff02e4f
ILT
661FORMAT_FILE
662BACKTRACE_SUPPORTS_THREADS
d2148648 663CET_HOST_FLAGS
eff02e4f
ILT
664PIC_FLAG
665WARN_FLAGS
56195009 666EXTRA_FLAGS
eff02e4f 667BACKTRACE_FILE
eff02e4f
ILT
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673AR
674OBJDUMP
675LN_S
676NM
677ac_ct_DUMPBIN
678DUMPBIN
679LD
680FGREP
eff02e4f
ILT
681SED
682LIBTOOL
10f48858
TV
683HAVE_DWZ_FALSE
684HAVE_DWZ_TRUE
685DWZ
eff02e4f 686RANLIB
d4c059d5
ILT
687MAINT
688MAINTAINER_MODE_FALSE
689MAINTAINER_MODE_TRUE
22e05272
JM
690AM_BACKSLASH
691AM_DEFAULT_VERBOSITY
692AM_DEFAULT_V
693AM_V
eff02e4f
ILT
694am__untar
695am__tar
696AMTAR
697am__leading_dot
698SET_MAKE
699AWK
700mkdir_p
701MKDIR_P
702INSTALL_STRIP_PROGRAM
703STRIP
704install_sh
705MAKEINFO
706AUTOHEADER
707AUTOMAKE
708AUTOCONF
709ACLOCAL
710VERSION
711PACKAGE
712CYGPATH_W
713am__isrc
714INSTALL_DATA
715INSTALL_SCRIPT
716INSTALL_PROGRAM
717libtool_VERSION
d4c059d5
ILT
718EGREP
719GREP
720CPP
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
eff02e4f
ILT
728target_os
729target_vendor
730target_cpu
731target
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
405a6b1c 740multi_basedir
eff02e4f
ILT
741target_alias
742host_alias
743build_alias
744LIBS
745ECHO_T
746ECHO_N
747ECHO_C
748DEFS
749mandir
750localedir
751libdir
752psdir
753pdfdir
754dvidir
755htmldir
756infodir
757docdir
758oldincludedir
759includedir
760localstatedir
761sharedstatedir
762sysconfdir
763datadir
764datarootdir
765libexecdir
766sbindir
767bindir
768program_transform_name
769prefix
770exec_prefix
771PACKAGE_URL
772PACKAGE_BUGREPORT
773PACKAGE_STRING
774PACKAGE_VERSION
775PACKAGE_TARNAME
776PACKAGE_NAME
777PATH_SEPARATOR
778SHELL'
779ac_subst_files=''
780ac_user_opts='
781enable_option_checking
405a6b1c 782enable_multilib
22e05272 783enable_silent_rules
eff02e4f
ILT
784enable_maintainer_mode
785with_target_subdir
eff02e4f
ILT
786enable_shared
787enable_static
788with_pic
789enable_fast_install
790with_gnu_ld
791enable_libtool_lock
e91a2ddc 792enable_largefile
44685d37 793enable_cet
eff02e4f 794with_system_libunwind
459260ec 795enable_host_shared
eff02e4f
ILT
796'
797 ac_precious_vars='build_alias
798host_alias
799target_alias
d4c059d5
ILT
800CC
801CFLAGS
802LDFLAGS
803LIBS
804CPPFLAGS
9283471b 805CPP
dea40c94
ILT
806OBJCOPY
807DSYMUTIL'
eff02e4f
ILT
808
809
810# Initialize some variables set by options.
811ac_init_help=
812ac_init_version=false
813ac_unrecognized_opts=
814ac_unrecognized_sep=
815# The variables have the same names as the options, with
816# dashes changed to underlines.
817cache_file=/dev/null
818exec_prefix=NONE
819no_create=
820no_recursion=
821prefix=NONE
822program_prefix=NONE
823program_suffix=NONE
824program_transform_name=s,x,x,
825silent=
826site=
827srcdir=
828verbose=
829x_includes=NONE
830x_libraries=NONE
831
832# Installation directory options.
833# These are left unexpanded so users can "make install exec_prefix=/foo"
834# and all the variables that are supposed to be based on exec_prefix
835# by default will actually change.
836# Use braces instead of parens because sh, perl, etc. also accept them.
837# (The list follows the same order as the GNU Coding Standards.)
838bindir='${exec_prefix}/bin'
839sbindir='${exec_prefix}/sbin'
840libexecdir='${exec_prefix}/libexec'
841datarootdir='${prefix}/share'
842datadir='${datarootdir}'
843sysconfdir='${prefix}/etc'
844sharedstatedir='${prefix}/com'
845localstatedir='${prefix}/var'
846includedir='${prefix}/include'
847oldincludedir='/usr/include'
848docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
849infodir='${datarootdir}/info'
850htmldir='${docdir}'
851dvidir='${docdir}'
852pdfdir='${docdir}'
853psdir='${docdir}'
854libdir='${exec_prefix}/lib'
855localedir='${datarootdir}/locale'
856mandir='${datarootdir}/man'
857
858ac_prev=
859ac_dashdash=
860for ac_option
861do
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\$ac_option
865 ac_prev=
866 continue
867 fi
868
869 case $ac_option in
22e05272
JM
870 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
871 *=) ac_optarg= ;;
872 *) ac_optarg=yes ;;
eff02e4f
ILT
873 esac
874
875 # Accept the important Cygnus configure options, so we can diagnose typos.
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 917 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922"enable_$ac_useropt"
923"*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 943 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1147 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152"with_$ac_useropt"
1153"*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1163 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168"with_$ac_useropt"
1169"*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
22e05272
JM
1193 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1194Try \`$0 --help' for more information"
eff02e4f
ILT
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1202 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
eff02e4f
ILT
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
eff02e4f
ILT
1213 ;;
1214
1215 esac
1216done
1217
1218if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1220 as_fn_error $? "missing argument to $ac_option"
eff02e4f
ILT
1221fi
1222
1223if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
22e05272 1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
eff02e4f
ILT
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229fi
1230
1231# Check all directory arguments for consistency.
1232for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1236do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
22e05272 1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
eff02e4f
ILT
1250done
1251
1252# There might be people who depend on the old broken behavior: `$host'
1253# used to hold the argument of --host etc.
1254# FIXME: To remove some day.
1255build=$build_alias
1256host=$host_alias
1257target=$target_alias
1258
1259# FIXME: To remove some day.
1260if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
eff02e4f
ILT
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266fi
1267
1268ac_tool_prefix=
1269test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271test "$silent" = yes && exec 6>/dev/null
1272
1273
1274ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275ac_ls_di=`ls -di .` &&
1276ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1277 as_fn_error $? "working directory cannot be determined"
eff02e4f 1278test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1279 as_fn_error $? "pwd does not report name of working directory"
eff02e4f
ILT
1280
1281
1282# Find the source files, if location was not specified.
1283if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291$as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313else
1314 ac_srcdir_defaulted=no
1315fi
1316if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
eff02e4f
ILT
1319fi
1320ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1321ac_abs_confdir=`(
22e05272 1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
eff02e4f
ILT
1323 pwd)`
1324# When building in place, set srcdir=.
1325if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327fi
1328# Remove unnecessary trailing slashes from srcdir.
1329# Double slashes in file names in object file debugging info
1330# mess up M-x gdb in Emacs.
1331case $srcdir in
1332*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333esac
1334for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339done
1340
1341#
1342# Report the --help message.
1343#
1344if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1349
1350Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355Defaults for the options are specified in brackets.
1356
1357Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
22e05272 1362 -q, --quiet, --silent do not print \`checking ...' messages
eff02e4f
ILT
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367
1368Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374By default, \`make install' will install all the files in
1375\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377for instance \`--prefix=\$HOME'.
1378
1379For better control, use the options below.
1380
1381Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401_ACEOF
1402
1403 cat <<\_ACEOF
1404
1405Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 --target=TARGET configure for building compilers for TARGET [HOST]
1414_ACEOF
1415fi
1416
1417if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of package-unused version-unused:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
405a6b1c 1427 --enable-multilib build many library versions (default)
22e05272
JM
1428 --enable-silent-rules less verbose build output (undo: "make V=1")
1429 --disable-silent-rules verbose build output (undo: "make V=0")
1430 --enable-maintainer-mode
1431 enable make rules and dependencies not useful (and
1432 sometimes confusing) to the casual installer
7e5c7547 1433 --enable-shared[=PKGS] build shared libraries [default=yes]
eff02e4f
ILT
1434 --enable-static[=PKGS] build static libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
e91a2ddc 1438 --disable-largefile omit support for large files
8d286dd1 1439 --enable-cet enable Intel CET in target libraries [default=auto]
459260ec 1440 --enable-host-shared build host code as shared libraries
d2148648 1441 --enable-cet enable Intel CET in host libraries [default=auto]
eff02e4f
ILT
1442
1443Optional Packages:
1444 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1445 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1446 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1447 --with-pic try to use only PIC/non-PIC objects [default=use
1448 both]
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1450 --with-system-libunwind use installed libunwind
1451
1452Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
eff02e4f
ILT
1459 you have headers in a nonstandard directory <include dir>
1460 CPP C preprocessor
9283471b 1461 OBJCOPY location of objcopy
dea40c94 1462 DSYMUTIL location of dsymutil
eff02e4f
ILT
1463
1464Use these variables to override the choices made by `configure' or to help
1465it to find libraries and programs with nonstandard names/locations.
1466
1467Report bugs to the package provider.
1468_ACEOF
1469ac_status=$?
1470fi
1471
1472if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480case "$ac_dir" in
1481.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482*)
1483 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490esac
1491ac_abs_top_builddir=$ac_pwd
1492ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493# for backward compatibility:
1494ac_top_builddir=$ac_top_build_prefix
1495
1496case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509esac
1510ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1525fi
1526
1527test -n "$ac_init_help" && exit $ac_status
1528if $ac_init_version; then
1529 cat <<\_ACEOF
1530package-unused configure version-unused
22e05272 1531generated by GNU Autoconf 2.69
eff02e4f 1532
22e05272 1533Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
1534This configure script is free software; the Free Software Foundation
1535gives unlimited permission to copy, distribute and modify it.
1536_ACEOF
1537 exit
1538fi
1539
1540## ------------------------ ##
1541## Autoconf initialization. ##
1542## ------------------------ ##
1543
1544# ac_fn_c_try_compile LINENO
1545# --------------------------
1546# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547ac_fn_c_try_compile ()
1548{
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 rm -f conftest.$ac_objext
1551 if { { ac_try="$ac_compile"
1552case "(($ac_try" in
1553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554 *) ac_try_echo=$ac_try;;
1555esac
1556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557$as_echo "$ac_try_echo"; } >&5
1558 (eval "$ac_compile") 2>conftest.err
1559 ac_status=$?
1560 if test -s conftest.err; then
1561 grep -v '^ *+' conftest.err >conftest.er1
1562 cat conftest.er1 >&5
1563 mv -f conftest.er1 conftest.err
1564 fi
1565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566 test $ac_status = 0; } && {
1567 test -z "$ac_c_werror_flag" ||
1568 test ! -s conftest.err
1569 } && test -s conftest.$ac_objext; then :
1570 ac_retval=0
1571else
1572 $as_echo "$as_me: failed program was:" >&5
1573sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576fi
22e05272
JM
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
eff02e4f
ILT
1579
1580} # ac_fn_c_try_compile
1581
d4c059d5
ILT
1582# ac_fn_c_try_cpp LINENO
1583# ----------------------
1584# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_cpp ()
eff02e4f
ILT
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d4c059d5 1588 if { { ac_try="$ac_cpp conftest.$ac_ext"
eff02e4f
ILT
1589case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592esac
1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594$as_echo "$ac_try_echo"; } >&5
d4c059d5 1595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
eff02e4f
ILT
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1603 test $ac_status = 0; } > conftest.i && {
d4c059d5 1604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
eff02e4f 1605 test ! -s conftest.err
eff02e4f
ILT
1606 }; then :
1607 ac_retval=0
1608else
1609 $as_echo "$as_me: failed program was:" >&5
1610sed 's/^/| /' conftest.$ac_ext >&5
1611
d4c059d5 1612 ac_retval=1
eff02e4f 1613fi
22e05272
JM
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
eff02e4f 1616
d4c059d5 1617} # ac_fn_c_try_cpp
eff02e4f 1618
d4c059d5 1619# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
eff02e4f 1620# -------------------------------------------------------
d4c059d5
ILT
1621# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1622# the include files in INCLUDES and setting the cache variable VAR
1623# accordingly.
1624ac_fn_c_check_header_mongrel ()
eff02e4f
ILT
1625{
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1627 if eval \${$3+:} false; then :
eff02e4f
ILT
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1629$as_echo_n "checking for $2... " >&6; }
22e05272 1630if eval \${$3+:} false; then :
eff02e4f 1631 $as_echo_n "(cached) " >&6
d4c059d5
ILT
1632fi
1633eval ac_res=\$$3
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635$as_echo "$ac_res" >&6; }
eff02e4f 1636else
d4c059d5
ILT
1637 # Is the header compilable?
1638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1639$as_echo_n "checking $2 usability... " >&6; }
1640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f
ILT
1641/* end confdefs.h. */
1642$4
1643#include <$2>
1644_ACEOF
1645if ac_fn_c_try_compile "$LINENO"; then :
d4c059d5 1646 ac_header_compiler=yes
eff02e4f 1647else
d4c059d5 1648 ac_header_compiler=no
eff02e4f
ILT
1649fi
1650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4c059d5
ILT
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1652$as_echo "$ac_header_compiler" >&6; }
eff02e4f 1653
d4c059d5
ILT
1654# Is the header present?
1655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1656$as_echo_n "checking $2 presence... " >&6; }
1657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658/* end confdefs.h. */
1659#include <$2>
1660_ACEOF
1661if ac_fn_c_try_cpp "$LINENO"; then :
1662 ac_header_preproc=yes
1663else
1664 ac_header_preproc=no
1665fi
22e05272 1666rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1668$as_echo "$ac_header_preproc" >&6; }
eff02e4f 1669
d4c059d5
ILT
1670# So? What about this header?
1671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1672 yes:no: )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1674$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1677 ;;
1678 no:yes:* )
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1680$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1682$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1684$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1686$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 ;;
eff02e4f 1690esac
d4c059d5
ILT
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1692$as_echo_n "checking for $2... " >&6; }
22e05272 1693if eval \${$3+:} false; then :
d4c059d5 1694 $as_echo_n "(cached) " >&6
eff02e4f 1695else
d4c059d5
ILT
1696 eval "$3=\$ac_header_compiler"
1697fi
1698eval ac_res=\$$3
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1700$as_echo "$ac_res" >&6; }
eff02e4f 1701fi
22e05272 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f 1703
d4c059d5 1704} # ac_fn_c_check_header_mongrel
eff02e4f
ILT
1705
1706# ac_fn_c_try_run LINENO
1707# ----------------------
1708# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709# that executables *can* be run.
1710ac_fn_c_try_run ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717esac
1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719$as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=$ac_status
1741fi
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
eff02e4f
ILT
1745
1746} # ac_fn_c_try_run
1747
d4c059d5
ILT
1748# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749# -------------------------------------------------------
1750# Tests whether HEADER exists and can be compiled using the include files in
1751# INCLUDES, setting the cache variable VAR accordingly.
1752ac_fn_c_check_header_compile ()
1753{
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756$as_echo_n "checking for $2... " >&6; }
22e05272 1757if eval \${$3+:} false; then :
d4c059d5
ILT
1758 $as_echo_n "(cached) " >&6
1759else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762$4
1763#include <$2>
1764_ACEOF
1765if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767else
1768 eval "$3=no"
1769fi
1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1771fi
1772eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774$as_echo "$ac_res" >&6; }
22e05272 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d4c059d5
ILT
1776
1777} # ac_fn_c_check_header_compile
1778
1779# ac_fn_c_try_link LINENO
1780# -----------------------
1781# Try to link conftest.$ac_ext, and return whether this succeeded.
1782ac_fn_c_try_link ()
1783{
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
22e05272 1806 test -x conftest$ac_exeext
d4c059d5
ILT
1807 }; then :
1808 ac_retval=0
1809else
1810 $as_echo "$as_me: failed program was:" >&5
1811sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814fi
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
d4c059d5
ILT
1822
1823} # ac_fn_c_try_link
1824
eff02e4f
ILT
1825# ac_fn_c_check_func LINENO FUNC VAR
1826# ----------------------------------
1827# Tests whether FUNC exists, setting the cache variable VAR accordingly
1828ac_fn_c_check_func ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832$as_echo_n "checking for $2... " >&6; }
22e05272 1833if eval \${$3+:} false; then :
eff02e4f
ILT
1834 $as_echo_n "(cached) " >&6
1835else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837/* end confdefs.h. */
1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840#define $2 innocuous_$2
1841
1842/* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1846
1847#ifdef __STDC__
1848# include <limits.h>
1849#else
1850# include <assert.h>
1851#endif
1852
1853#undef $2
1854
1855/* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858#ifdef __cplusplus
1859extern "C"
1860#endif
1861char $2 ();
1862/* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865#if defined __stub_$2 || defined __stub___$2
1866choke me
1867#endif
1868
1869int
1870main ()
1871{
1872return $2 ();
1873 ;
1874 return 0;
1875}
1876_ACEOF
1877if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879else
1880 eval "$3=no"
1881fi
1882rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1884fi
1885eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887$as_echo "$ac_res" >&6; }
22e05272 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f
ILT
1889
1890} # ac_fn_c_check_func
1891
76850556
RO
1892# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893# -------------------------------------------
1894# Tests whether TYPE exists after having included INCLUDES, setting cache
1895# variable VAR accordingly.
1896ac_fn_c_check_type ()
1897{
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900$as_echo_n "checking for $2... " >&6; }
22e05272 1901if eval \${$3+:} false; then :
76850556
RO
1902 $as_echo_n "(cached) " >&6
1903else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908int
1909main ()
1910{
1911if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915}
1916_ACEOF
1917if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921int
1922main ()
1923{
1924if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928}
1929_ACEOF
1930if ac_fn_c_try_compile "$LINENO"; then :
1931
1932else
1933 eval "$3=yes"
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936fi
1937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938fi
1939eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941$as_echo "$ac_res" >&6; }
22e05272 1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
76850556
RO
1943
1944} # ac_fn_c_check_type
1945
1946# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1947# --------------------------------------------
1948# Tries to find the compile-time value of EXPR in a program that includes
1949# INCLUDES, setting VAR accordingly. Returns whether the value could be
1950# computed
1951ac_fn_c_compute_int ()
1952{
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if test "$cross_compiling" = yes; then
1955 # Depending upon the size, compute the lo and hi bounds.
1956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959int
1960main ()
1961{
1962static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1963test_array [0] = 0;
1964return test_array [0];
76850556
RO
1965
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_compile "$LINENO"; then :
1971 ac_lo=0 ac_mid=0
1972 while :; do
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1980test_array [0] = 0;
1981return test_array [0];
76850556
RO
1982
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_hi=$ac_mid; break
1989else
1990 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1991 if test $ac_lo -le $ac_mid; then
1992 ac_lo= ac_hi=
1993 break
1994 fi
1995 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1996fi
1997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999else
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2007test_array [0] = 0;
2008return test_array [0];
76850556
RO
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=-1 ac_mid=-1
2016 while :; do
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$4
2020int
2021main ()
2022{
2023static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2024test_array [0] = 0;
2025return test_array [0];
76850556
RO
2026
2027 ;
2028 return 0;
2029}
2030_ACEOF
2031if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_lo=$ac_mid; break
2033else
2034 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2035 if test $ac_mid -le $ac_hi; then
2036 ac_lo= ac_hi=
2037 break
2038 fi
2039 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 done
2043else
2044 ac_lo= ac_hi=
2045fi
2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047fi
2048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049# Binary search between lo and hi bounds.
2050while test "x$ac_lo" != "x$ac_hi"; do
2051 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2059test_array [0] = 0;
2060return test_array [0];
76850556
RO
2061
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"; then :
2067 ac_hi=$ac_mid
2068else
2069 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072done
2073case $ac_lo in #((
2074?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2075'') ac_retval=1 ;;
2076esac
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081static long int longval () { return $2; }
2082static unsigned long int ulongval () { return $2; }
2083#include <stdio.h>
2084#include <stdlib.h>
2085int
2086main ()
2087{
2088
2089 FILE *f = fopen ("conftest.val", "w");
2090 if (! f)
2091 return 1;
2092 if (($2) < 0)
2093 {
2094 long int i = longval ();
2095 if (i != ($2))
2096 return 1;
2097 fprintf (f, "%ld", i);
2098 }
2099 else
2100 {
2101 unsigned long int i = ulongval ();
2102 if (i != ($2))
2103 return 1;
2104 fprintf (f, "%lu", i);
2105 }
2106 /* Do not output a trailing newline, as this causes \r\n confusion
2107 on some platforms. */
2108 return ferror (f) || fclose (f) != 0;
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_run "$LINENO"; then :
2115 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2116else
2117 ac_retval=1
2118fi
2119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2120 conftest.$ac_objext conftest.beam conftest.$ac_ext
2121rm -f conftest.val
2122
2123 fi
22e05272
JM
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125 as_fn_set_status $ac_retval
76850556
RO
2126
2127} # ac_fn_c_compute_int
2128
22e05272
JM
2129# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2130# ---------------------------------------------
2131# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2132# accordingly.
772a71a9
ILT
2133ac_fn_c_check_decl ()
2134{
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 as_decl_name=`echo $2|sed 's/ *(.*//'`
2137 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2139$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2140if eval \${$3+:} false; then :
772a71a9
ILT
2141 $as_echo_n "(cached) " >&6
2142else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$4
2146int
2147main ()
2148{
2149#ifndef $as_decl_name
2150#ifdef __cplusplus
2151 (void) $as_decl_use;
2152#else
2153 (void) $as_decl_name;
2154#endif
2155#endif
2156
2157 ;
2158 return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162 eval "$3=yes"
2163else
2164 eval "$3=no"
2165fi
2166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
22e05272 2171 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
772a71a9
ILT
2172
2173} # ac_fn_c_check_decl
eff02e4f
ILT
2174cat >config.log <<_ACEOF
2175This file contains any messages produced by compilers while
2176running configure, to aid debugging if configure makes a mistake.
2177
2178It was created by package-unused $as_me version-unused, which was
22e05272 2179generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
2180
2181 $ $0 $@
2182
2183_ACEOF
2184exec 5>>config.log
2185{
2186cat <<_ASUNAME
2187## --------- ##
2188## Platform. ##
2189## --------- ##
2190
2191hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2192uname -m = `(uname -m) 2>/dev/null || echo unknown`
2193uname -r = `(uname -r) 2>/dev/null || echo unknown`
2194uname -s = `(uname -s) 2>/dev/null || echo unknown`
2195uname -v = `(uname -v) 2>/dev/null || echo unknown`
2196
2197/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2198/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2199
2200/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2201/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2202/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2203/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2204/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2205/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2206/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2207
2208_ASUNAME
2209
2210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 $as_echo "PATH: $as_dir"
2216 done
2217IFS=$as_save_IFS
2218
2219} >&5
2220
2221cat >&5 <<_ACEOF
2222
2223
2224## ----------- ##
2225## Core tests. ##
2226## ----------- ##
2227
2228_ACEOF
2229
2230
2231# Keep a trace of the command line.
2232# Strip out --no-create and --no-recursion so they do not pile up.
2233# Strip out --silent because we don't want to record it for future runs.
2234# Also quote any args containing shell meta-characters.
2235# Make two passes to allow for proper duplicate-argument suppression.
2236ac_configure_args=
2237ac_configure_args0=
2238ac_configure_args1=
2239ac_must_keep_next=false
2240for ac_pass in 1 2
2241do
2242 for ac_arg
2243 do
2244 case $ac_arg in
2245 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2247 | -silent | --silent | --silen | --sile | --sil)
2248 continue ;;
2249 *\'*)
2250 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2251 esac
2252 case $ac_pass in
2253 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2254 2)
2255 as_fn_append ac_configure_args1 " '$ac_arg'"
2256 if test $ac_must_keep_next = true; then
2257 ac_must_keep_next=false # Got value, back to normal.
2258 else
2259 case $ac_arg in
2260 *=* | --config-cache | -C | -disable-* | --disable-* \
2261 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2262 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2263 | -with-* | --with-* | -without-* | --without-* | --x)
2264 case "$ac_configure_args0 " in
2265 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2266 esac
2267 ;;
2268 -* ) ac_must_keep_next=true ;;
2269 esac
2270 fi
2271 as_fn_append ac_configure_args " '$ac_arg'"
2272 ;;
2273 esac
2274 done
2275done
2276{ ac_configure_args0=; unset ac_configure_args0;}
2277{ ac_configure_args1=; unset ac_configure_args1;}
2278
2279# When interrupted or exit'd, cleanup temporary files, and complete
2280# config.log. We remove comments because anyway the quotes in there
2281# would cause problems or look ugly.
2282# WARNING: Use '\'' to represent an apostrophe within the trap.
2283# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2284trap 'exit_status=$?
2285 # Save into config.log some information that might help in debugging.
2286 {
2287 echo
2288
22e05272 2289 $as_echo "## ---------------- ##
eff02e4f 2290## Cache variables. ##
22e05272 2291## ---------------- ##"
eff02e4f
ILT
2292 echo
2293 # The following way of writing the cache mishandles newlines in values,
2294(
2295 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296 eval ac_val=\$$ac_var
2297 case $ac_val in #(
2298 *${as_nl}*)
2299 case $ac_var in #(
2300 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302 esac
2303 case $ac_var in #(
2304 _ | IFS | as_nl) ;; #(
2305 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306 *) { eval $ac_var=; unset $ac_var;} ;;
2307 esac ;;
2308 esac
2309 done
2310 (set) 2>&1 |
2311 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312 *${as_nl}ac_space=\ *)
2313 sed -n \
2314 "s/'\''/'\''\\\\'\'''\''/g;
2315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316 ;; #(
2317 *)
2318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319 ;;
2320 esac |
2321 sort
2322)
2323 echo
2324
22e05272 2325 $as_echo "## ----------------- ##
eff02e4f 2326## Output variables. ##
22e05272 2327## ----------------- ##"
eff02e4f
ILT
2328 echo
2329 for ac_var in $ac_subst_vars
2330 do
2331 eval ac_val=\$$ac_var
2332 case $ac_val in
2333 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 esac
2335 $as_echo "$ac_var='\''$ac_val'\''"
2336 done | sort
2337 echo
2338
2339 if test -n "$ac_subst_files"; then
22e05272 2340 $as_echo "## ------------------- ##
eff02e4f 2341## File substitutions. ##
22e05272 2342## ------------------- ##"
eff02e4f
ILT
2343 echo
2344 for ac_var in $ac_subst_files
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 $as_echo "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353 fi
2354
2355 if test -s confdefs.h; then
22e05272 2356 $as_echo "## ----------- ##
eff02e4f 2357## confdefs.h. ##
22e05272 2358## ----------- ##"
eff02e4f
ILT
2359 echo
2360 cat confdefs.h
2361 echo
2362 fi
2363 test "$ac_signal" != 0 &&
2364 $as_echo "$as_me: caught signal $ac_signal"
2365 $as_echo "$as_me: exit $exit_status"
2366 } >&5
2367 rm -f core *.core core.conftest.* &&
2368 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2369 exit $exit_status
2370' 0
2371for ac_signal in 1 2 13 15; do
2372 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373done
2374ac_signal=0
2375
2376# confdefs.h avoids OS command line length limits that DEFS can exceed.
2377rm -f -r conftest* confdefs.h
2378
2379$as_echo "/* confdefs.h */" > confdefs.h
2380
2381# Predefined preprocessor variables.
2382
2383cat >>confdefs.h <<_ACEOF
2384#define PACKAGE_NAME "$PACKAGE_NAME"
2385_ACEOF
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2389_ACEOF
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_VERSION "$PACKAGE_VERSION"
2393_ACEOF
2394
2395cat >>confdefs.h <<_ACEOF
2396#define PACKAGE_STRING "$PACKAGE_STRING"
2397_ACEOF
2398
2399cat >>confdefs.h <<_ACEOF
2400#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2401_ACEOF
2402
2403cat >>confdefs.h <<_ACEOF
2404#define PACKAGE_URL "$PACKAGE_URL"
2405_ACEOF
2406
2407
2408# Let the site file select an alternate cache file if it wants to.
2409# Prefer an explicitly selected file to automatically selected ones.
2410ac_site_file1=NONE
2411ac_site_file2=NONE
2412if test -n "$CONFIG_SITE"; then
22e05272
JM
2413 # We do not want a PATH search for config.site.
2414 case $CONFIG_SITE in #((
2415 -*) ac_site_file1=./$CONFIG_SITE;;
2416 */*) ac_site_file1=$CONFIG_SITE;;
2417 *) ac_site_file1=./$CONFIG_SITE;;
2418 esac
eff02e4f
ILT
2419elif test "x$prefix" != xNONE; then
2420 ac_site_file1=$prefix/share/config.site
2421 ac_site_file2=$prefix/etc/config.site
2422else
2423 ac_site_file1=$ac_default_prefix/share/config.site
2424 ac_site_file2=$ac_default_prefix/etc/config.site
2425fi
2426for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2427do
2428 test "x$ac_site_file" = xNONE && continue
22e05272 2429 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
eff02e4f
ILT
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2433 . "$ac_site_file" \
2434 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2436as_fn_error $? "failed to load site script $ac_site_file
2437See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
2438 fi
2439done
2440
2441if test -r "$cache_file"; then
22e05272
JM
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
eff02e4f
ILT
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446$as_echo "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452else
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454$as_echo "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456fi
2457
2458# Check that the precious variables saved in the cache have kept the same
2459# value.
2460ac_cache_corrupted=false
2461for ac_var in $ac_precious_vars; do
2462 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2463 eval ac_new_set=\$ac_env_${ac_var}_set
2464 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2465 eval ac_new_val=\$ac_env_${ac_var}_value
2466 case $ac_old_set,$ac_new_set in
2467 set,)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2469$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,set)
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2473$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2474 ac_cache_corrupted=: ;;
2475 ,);;
2476 *)
2477 if test "x$ac_old_val" != "x$ac_new_val"; then
2478 # differences in whitespace do not lead to failure.
2479 ac_old_val_w=`echo x $ac_old_val`
2480 ac_new_val_w=`echo x $ac_new_val`
2481 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2483$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2484 ac_cache_corrupted=:
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2487$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2488 eval $ac_var=\$ac_old_val
2489 fi
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2491$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2493$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2494 fi;;
2495 esac
2496 # Pass precious variables to config.status.
2497 if test "$ac_new_set" = set; then
2498 case $ac_new_val in
2499 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2500 *) ac_arg=$ac_var=$ac_new_val ;;
2501 esac
2502 case " $ac_configure_args " in
2503 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2504 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 esac
2506 fi
2507done
2508if $ac_cache_corrupted; then
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2512$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2513 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
eff02e4f
ILT
2514fi
2515## -------------------- ##
2516## Main body of script. ##
2517## -------------------- ##
2518
2519ac_ext=c
2520ac_cpp='$CPP $CPPFLAGS'
2521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524
2525
2526
2527
2528
2529
2530ac_config_headers="$ac_config_headers config.h"
2531
2532
405a6b1c
MK
2533if test -n "${with_target_subdir}"; then
2534 # Default to --enable-multilib
2535# Check whether --enable-multilib was given.
2536if test "${enable_multilib+set}" = set; then :
2537 enableval=$enable_multilib; case "$enableval" in
2538 yes) multilib=yes ;;
2539 no) multilib=no ;;
22e05272 2540 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
405a6b1c
MK
2541 esac
2542else
2543 multilib=yes
2544fi
2545
2546
2547# We may get other options which we leave undocumented:
2548# --with-target-subdir, --with-multisrctop, --with-multisubdir
2549# See config-ml.in if you want the gory details.
2550
2551if test "$srcdir" = "."; then
2552 if test "$with_target_subdir" != "."; then
2553 multi_basedir="$srcdir/$with_multisrctop../.."
2554 else
2555 multi_basedir="$srcdir/$with_multisrctop.."
2556 fi
2557else
2558 multi_basedir="$srcdir/.."
2559fi
2560
2561
2562# Even if the default multilib is not a cross compilation,
2563# it may be that some of the other multilibs are.
2564if test $cross_compiling = no && test $multilib = yes \
2565 && test "x${with_multisubdir}" != x ; then
2566 cross_compiling=maybe
2567fi
2568
2569ac_config_commands="$ac_config_commands default-1"
2570
2571fi
2572
eff02e4f
ILT
2573ac_aux_dir=
2574for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2575 if test -f "$ac_dir/install-sh"; then
2576 ac_aux_dir=$ac_dir
2577 ac_install_sh="$ac_aux_dir/install-sh -c"
2578 break
2579 elif test -f "$ac_dir/install.sh"; then
2580 ac_aux_dir=$ac_dir
2581 ac_install_sh="$ac_aux_dir/install.sh -c"
2582 break
2583 elif test -f "$ac_dir/shtool"; then
2584 ac_aux_dir=$ac_dir
2585 ac_install_sh="$ac_aux_dir/shtool install -c"
2586 break
2587 fi
eff02e4f
ILT
2588done
2589if test -z "$ac_aux_dir"; then
22e05272 2590 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
eff02e4f
ILT
2591fi
2592
2593# These three variables are undocumented and unsupported,
2594# and are intended to be withdrawn in a future Autoconf release.
2595# They can cause serious problems if a builder's source tree is in a directory
2596# whose full name contains unusual characters.
2597ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2598ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2599ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2600
2601
2602# Make sure we can run config.sub.
2603$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2604 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
eff02e4f
ILT
2605
2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607$as_echo_n "checking build system type... " >&6; }
22e05272 2608if ${ac_cv_build+:} false; then :
eff02e4f
ILT
2609 $as_echo_n "(cached) " >&6
2610else
2611 ac_build_alias=$build_alias
2612test "x$ac_build_alias" = x &&
2613 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614test "x$ac_build_alias" = x &&
22e05272 2615 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
eff02e4f 2616ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2617 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
eff02e4f
ILT
2618
2619fi
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621$as_echo "$ac_cv_build" >&6; }
2622case $ac_cv_build in
2623*-*-*) ;;
22e05272 2624*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
eff02e4f
ILT
2625esac
2626build=$ac_cv_build
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_build
2629shift
2630build_cpu=$1
2631build_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635build_os=$*
2636IFS=$ac_save_IFS
2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641$as_echo_n "checking host system type... " >&6; }
22e05272 2642if ${ac_cv_host+:} false; then :
eff02e4f
ILT
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2647else
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2649 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
eff02e4f
ILT
2650fi
2651
2652fi
2653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654$as_echo "$ac_cv_host" >&6; }
2655case $ac_cv_host in
2656*-*-*) ;;
22e05272 2657*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
eff02e4f
ILT
2658esac
2659host=$ac_cv_host
2660ac_save_IFS=$IFS; IFS='-'
2661set x $ac_cv_host
2662shift
2663host_cpu=$1
2664host_vendor=$2
2665shift; shift
2666# Remember, the first character of IFS is used to create $*,
2667# except with old shells:
2668host_os=$*
2669IFS=$ac_save_IFS
2670case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674$as_echo_n "checking target system type... " >&6; }
22e05272 2675if ${ac_cv_target+:} false; then :
eff02e4f
ILT
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test "x$target_alias" = x; then
2679 ac_cv_target=$ac_cv_host
2680else
2681 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2682 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
eff02e4f
ILT
2683fi
2684
2685fi
2686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687$as_echo "$ac_cv_target" >&6; }
2688case $ac_cv_target in
2689*-*-*) ;;
22e05272 2690*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
eff02e4f
ILT
2691esac
2692target=$ac_cv_target
2693ac_save_IFS=$IFS; IFS='-'
2694set x $ac_cv_target
2695shift
2696target_cpu=$1
2697target_vendor=$2
2698shift; shift
2699# Remember, the first character of IFS is used to create $*,
2700# except with old shells:
2701target_os=$*
2702IFS=$ac_save_IFS
2703case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706# The aliases save the names the user supplied, while $host etc.
2707# will get canonicalized.
2708test -n "$target_alias" &&
2709 test "$program_prefix$program_suffix$program_transform_name" = \
2710 NONENONEs,x,x, &&
2711 program_prefix=${target_alias}-
2712
2713target_alias=${target_alias-$host_alias}
2714
22e05272
JM
2715# Expand $ac_aux_dir to an absolute path.
2716am_aux_dir=`cd "$ac_aux_dir" && pwd`
2717
d4c059d5
ILT
2718ac_ext=c
2719ac_cpp='$CPP $CPPFLAGS'
2720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
2723if test -n "$ac_tool_prefix"; then
2724 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2725set dummy ${ac_tool_prefix}gcc; ac_word=$2
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2728if ${ac_cv_prog_CC+:} false; then :
d4c059d5
ILT
2729 $as_echo_n "(cached) " >&6
2730else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733else
2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735for as_dir in $PATH
2736do
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2741 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2744 fi
2745done
2746 done
2747IFS=$as_save_IFS
eff02e4f 2748
d4c059d5
ILT
2749fi
2750fi
2751CC=$ac_cv_prog_CC
2752if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754$as_echo "$CC" >&6; }
2755else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757$as_echo "no" >&6; }
2758fi
eff02e4f 2759
eff02e4f 2760
d4c059d5
ILT
2761fi
2762if test -z "$ac_cv_prog_CC"; then
2763 ac_ct_CC=$CC
2764 # Extract the first word of "gcc", so it can be a program name with args.
2765set dummy gcc; ac_word=$2
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2768if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2769 $as_echo_n "(cached) " >&6
2770else
d4c059d5
ILT
2771 if test -n "$ac_ct_CC"; then
2772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2773else
2774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
eff02e4f
ILT
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
d4c059d5 2779 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2781 ac_cv_prog_ac_ct_CC="gcc"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785done
eff02e4f
ILT
2786 done
2787IFS=$as_save_IFS
2788
eff02e4f 2789fi
d4c059d5
ILT
2790fi
2791ac_ct_CC=$ac_cv_prog_ac_ct_CC
2792if test -n "$ac_ct_CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2794$as_echo "$ac_ct_CC" >&6; }
2795else
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797$as_echo "no" >&6; }
2798fi
2799
2800 if test "x$ac_ct_CC" = x; then
2801 CC=""
eff02e4f 2802 else
d4c059d5
ILT
2803 case $cross_compiling:$ac_tool_warned in
2804yes:)
2805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807ac_tool_warned=yes ;;
2808esac
2809 CC=$ac_ct_CC
eff02e4f 2810 fi
d4c059d5
ILT
2811else
2812 CC="$ac_cv_prog_CC"
eff02e4f 2813fi
eff02e4f 2814
d4c059d5
ILT
2815if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818set dummy ${ac_tool_prefix}cc; ac_word=$2
eff02e4f
ILT
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2821if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2822 $as_echo_n "(cached) " >&6
2823else
d4c059d5
ILT
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f
ILT
2826else
2827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828for as_dir in $PATH
2829do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2834 ac_cv_prog_CC="${ac_tool_prefix}cc"
eff02e4f
ILT
2835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 break 2
2837 fi
2838done
2839 done
2840IFS=$as_save_IFS
2841
2842fi
2843fi
d4c059d5
ILT
2844CC=$ac_cv_prog_CC
2845if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847$as_echo "$CC" >&6; }
eff02e4f
ILT
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853
d4c059d5 2854 fi
eff02e4f 2855fi
d4c059d5
ILT
2856if test -z "$CC"; then
2857 # Extract the first word of "cc", so it can be a program name with args.
2858set dummy cc; ac_word=$2
eff02e4f
ILT
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2860$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2861if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2862 $as_echo_n "(cached) " >&6
2863else
d4c059d5
ILT
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f 2866else
d4c059d5 2867 ac_prog_rejected=no
eff02e4f
ILT
2868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869for as_dir in $PATH
2870do
2871 IFS=$as_save_IFS
2872 test -z "$as_dir" && as_dir=.
2873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876 ac_prog_rejected=yes
2877 continue
2878 fi
2879 ac_cv_prog_CC="cc"
eff02e4f
ILT
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2882 fi
2883done
2884 done
2885IFS=$as_save_IFS
2886
d4c059d5
ILT
2887if test $ac_prog_rejected = yes; then
2888 # We found a bogon in the path, so make sure we never use it.
2889 set dummy $ac_cv_prog_CC
2890 shift
2891 if test $# != 0; then
2892 # We chose a different compiler from the bogus one.
2893 # However, it has the same basename, so the bogon will be chosen
2894 # first if we set CC to just the basename; use the full file name.
2895 shift
2896 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2897 fi
eff02e4f
ILT
2898fi
2899fi
d4c059d5
ILT
2900fi
2901CC=$ac_cv_prog_CC
2902if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904$as_echo "$CC" >&6; }
eff02e4f
ILT
2905else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907$as_echo "no" >&6; }
2908fi
2909
eff02e4f
ILT
2910
2911fi
d4c059d5
ILT
2912if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog in cl.exe
2915 do
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2920if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2921 $as_echo_n "(cached) " >&6
2922else
d4c059d5
ILT
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC="$CC" # Let the user override the test.
2925else
2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
eff02e4f
ILT
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
d4c059d5 2931 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937done
eff02e4f
ILT
2938 done
2939IFS=$as_save_IFS
2940
2941fi
eff02e4f 2942fi
d4c059d5
ILT
2943CC=$ac_cv_prog_CC
2944if test -n "$CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2946$as_echo "$CC" >&6; }
2947else
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949$as_echo "no" >&6; }
2950fi
eff02e4f 2951
eff02e4f 2952
d4c059d5
ILT
2953 test -n "$CC" && break
2954 done
2955fi
2956if test -z "$CC"; then
2957 ac_ct_CC=$CC
2958 for ac_prog in cl.exe
eff02e4f
ILT
2959do
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961set dummy $ac_prog; ac_word=$2
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2964if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2965 $as_echo_n "(cached) " >&6
2966else
d4c059d5
ILT
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
eff02e4f
ILT
2969else
2970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971for as_dir in $PATH
2972do
2973 IFS=$as_save_IFS
2974 test -z "$as_dir" && as_dir=.
2975 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2977 ac_cv_prog_ac_ct_CC="$ac_prog"
eff02e4f
ILT
2978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981done
2982 done
2983IFS=$as_save_IFS
2984
2985fi
2986fi
d4c059d5
ILT
2987ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988if test -n "$ac_ct_CC"; then
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990$as_echo "$ac_ct_CC" >&6; }
eff02e4f
ILT
2991else
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993$as_echo "no" >&6; }
2994fi
2995
2996
d4c059d5 2997 test -n "$ac_ct_CC" && break
eff02e4f
ILT
2998done
2999
d4c059d5
ILT
3000 if test "x$ac_ct_CC" = x; then
3001 CC=""
3002 else
3003 case $cross_compiling:$ac_tool_warned in
3004yes:)
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3007ac_tool_warned=yes ;;
eff02e4f 3008esac
d4c059d5 3009 CC=$ac_ct_CC
eff02e4f
ILT
3010 fi
3011fi
3012
eff02e4f
ILT
3013fi
3014
3015
d4c059d5
ILT
3016test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3018as_fn_error $? "no acceptable C compiler found in \$PATH
3019See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3020
d4c059d5
ILT
3021# Provide some information about the compiler.
3022$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3023set X $ac_compile
3024ac_compiler=$2
3025for ac_option in --version -v -V -qversion; do
3026 { { ac_try="$ac_compiler $ac_option >&5"
3027case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3034 ac_status=$?
3035 if test -s conftest.err; then
3036 sed '10a\
3037... rest of stderr output deleted ...
3038 10q' conftest.err >conftest.er1
3039 cat conftest.er1 >&5
d4c059d5 3040 fi
22e05272 3041 rm -f conftest.er1 conftest.err
d4c059d5
ILT
3042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3043 test $ac_status = 0; }
3044done
eff02e4f 3045
d4c059d5
ILT
3046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047/* end confdefs.h. */
eff02e4f 3048
d4c059d5
ILT
3049int
3050main ()
3051{
eff02e4f 3052
d4c059d5
ILT
3053 ;
3054 return 0;
3055}
3056_ACEOF
3057ac_clean_files_save=$ac_clean_files
22e05272 3058ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d4c059d5
ILT
3059# Try to create an executable without -o first, disregard a.out.
3060# It will help us diagnose broken compilers, and finding out an intuition
3061# of exeext.
22e05272
JM
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3063$as_echo_n "checking whether the C compiler works... " >&6; }
d4c059d5 3064ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
eff02e4f 3065
d4c059d5
ILT
3066# The possible output files:
3067ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
eff02e4f 3068
d4c059d5
ILT
3069ac_rmfiles=
3070for ac_file in $ac_files
3071do
3072 case $ac_file in
3073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3074 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3075 esac
3076done
3077rm -f $ac_rmfiles
eff02e4f 3078
d4c059d5
ILT
3079if { { ac_try="$ac_link_default"
3080case "(($ac_try" in
3081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3082 *) ac_try_echo=$ac_try;;
3083esac
3084eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3085$as_echo "$ac_try_echo"; } >&5
3086 (eval "$ac_link_default") 2>&5
3087 ac_status=$?
3088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3089 test $ac_status = 0; }; then :
3090 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3091# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3092# in a Makefile. We should not override ac_cv_exeext if it was cached,
3093# so that the user can short-circuit this test for compilers unknown to
3094# Autoconf.
3095for ac_file in $ac_files ''
3096do
3097 test -f "$ac_file" || continue
3098 case $ac_file in
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3100 ;;
3101 [ab].out )
3102 # We found the default executable, but exeext='' is most
3103 # certainly right.
3104 break;;
3105 *.* )
3106 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3107 then :; else
3108 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 fi
3110 # We set ac_cv_exeext here because the later test for it is not
3111 # safe: cross compilers may not add the suffix if given an `-o'
3112 # argument, so we may need to know it at that point already.
3113 # Even if this section looks crufty: it has the advantage of
3114 # actually working.
3115 break;;
3116 * )
3117 break;;
3118 esac
3119done
3120test "$ac_cv_exeext" = no && ac_cv_exeext=
eff02e4f 3121
eff02e4f 3122else
d4c059d5 3123 ac_file=''
eff02e4f 3124fi
d4c059d5 3125if test -z "$ac_file"; then :
22e05272
JM
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3127$as_echo "no" >&6; }
3128$as_echo "$as_me: failed program was:" >&5
d4c059d5 3129sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3130
d4c059d5
ILT
3131{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3133as_fn_error 77 "C compiler cannot create executables
3134See \`config.log' for more details" "$LINENO" 5; }
3135else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3137$as_echo "yes" >&6; }
eff02e4f 3138fi
22e05272
JM
3139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3140$as_echo_n "checking for C compiler default output file name... " >&6; }
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3142$as_echo "$ac_file" >&6; }
d4c059d5 3143ac_exeext=$ac_cv_exeext
eff02e4f 3144
22e05272 3145rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d4c059d5 3146ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3148$as_echo_n "checking for suffix of executables... " >&6; }
3149if { { ac_try="$ac_link"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155$as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }; then :
3160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3161# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3162# work properly (i.e., refer to `conftest.exe'), while it won't with
3163# `rm'.
3164for ac_file in conftest.exe conftest conftest.*; do
3165 test -f "$ac_file" || continue
3166 case $ac_file in
3167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3169 break;;
3170 * ) break;;
3171 esac
3172done
eff02e4f 3173else
d4c059d5
ILT
3174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3176as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3177See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3178fi
22e05272 3179rm -f conftest conftest$ac_cv_exeext
d4c059d5
ILT
3180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3181$as_echo "$ac_cv_exeext" >&6; }
eff02e4f 3182
d4c059d5
ILT
3183rm -f conftest.$ac_ext
3184EXEEXT=$ac_cv_exeext
3185ac_exeext=$EXEEXT
22e05272
JM
3186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187/* end confdefs.h. */
3188#include <stdio.h>
3189int
3190main ()
3191{
3192FILE *f = fopen ("conftest.out", "w");
3193 return ferror (f) || fclose (f) != 0;
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
3199ac_clean_files="$ac_clean_files conftest.out"
3200# Check that the compiler produces executables we can run. If not, either
3201# the compiler is broken, or we cross compile.
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3203$as_echo_n "checking whether we are cross compiling... " >&6; }
3204if test "$cross_compiling" != yes; then
3205 { { ac_try="$ac_link"
3206case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3209esac
3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3211$as_echo "$ac_try_echo"; } >&5
3212 (eval "$ac_link") 2>&5
3213 ac_status=$?
3214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216 if { ac_try='./conftest$ac_cv_exeext'
3217 { { case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220esac
3221eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222$as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_try") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }; }; then
3227 cross_compiling=no
3228 else
3229 if test "$cross_compiling" = maybe; then
3230 cross_compiling=yes
3231 else
3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234as_fn_error $? "cannot run C compiled programs.
3235If you meant to cross compile, use \`--host'.
3236See \`config.log' for more details" "$LINENO" 5; }
3237 fi
3238 fi
3239fi
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3241$as_echo "$cross_compiling" >&6; }
3242
3243rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3244ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3246$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3247if ${ac_cv_objext+:} false; then :
eff02e4f
ILT
3248 $as_echo_n "(cached) " >&6
3249else
d4c059d5
ILT
3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3251/* end confdefs.h. */
eff02e4f 3252
d4c059d5
ILT
3253int
3254main ()
3255{
eff02e4f 3256
d4c059d5
ILT
3257 ;
3258 return 0;
3259}
3260_ACEOF
3261rm -f conftest.o conftest.obj
3262if { { ac_try="$ac_compile"
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
eff02e4f 3266esac
d4c059d5
ILT
3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268$as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280done
eff02e4f 3281else
d4c059d5
ILT
3282 $as_echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3284
d4c059d5
ILT
3285{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3287as_fn_error $? "cannot compute suffix of object files: cannot compile
3288See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
3289fi
3290rm -f conftest.$ac_cv_objext conftest.$ac_ext
3291fi
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3293$as_echo "$ac_cv_objext" >&6; }
3294OBJEXT=$ac_cv_objext
3295ac_objext=$OBJEXT
3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3297$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3298if ${ac_cv_c_compiler_gnu+:} false; then :
eff02e4f
ILT
3299 $as_echo_n "(cached) " >&6
3300else
d4c059d5
ILT
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h. */
eff02e4f 3303
d4c059d5
ILT
3304int
3305main ()
3306{
3307#ifndef __GNUC__
3308 choke me
3309#endif
3310
3311 ;
3312 return 0;
3313}
3314_ACEOF
3315if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_compiler_gnu=yes
eff02e4f 3317else
d4c059d5 3318 ac_compiler_gnu=no
eff02e4f 3319fi
d4c059d5
ILT
3320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 3322
eff02e4f 3323fi
d4c059d5
ILT
3324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3325$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3326if test $ac_compiler_gnu = yes; then
3327 GCC=yes
eff02e4f 3328else
d4c059d5
ILT
3329 GCC=
3330fi
3331ac_test_CFLAGS=${CFLAGS+set}
3332ac_save_CFLAGS=$CFLAGS
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3334$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3335if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5 3336 $as_echo_n "(cached) " >&6
eff02e4f 3337else
d4c059d5
ILT
3338 ac_save_c_werror_flag=$ac_c_werror_flag
3339 ac_c_werror_flag=yes
3340 ac_cv_prog_cc_g=no
3341 CFLAGS="-g"
3342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h. */
eff02e4f 3344
d4c059d5
ILT
3345int
3346main ()
3347{
3348
3349 ;
3350 return 0;
3351}
3352_ACEOF
3353if ac_fn_c_try_compile "$LINENO"; then :
3354 ac_cv_prog_cc_g=yes
eff02e4f 3355else
d4c059d5
ILT
3356 CFLAGS=""
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358/* end confdefs.h. */
eff02e4f 3359
d4c059d5
ILT
3360int
3361main ()
3362{
3363
3364 ;
3365 return 0;
3366}
3367_ACEOF
3368if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 3369
eff02e4f 3370else
d4c059d5
ILT
3371 ac_c_werror_flag=$ac_save_c_werror_flag
3372 CFLAGS="-g"
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h. */
3375
3376int
3377main ()
3378{
eff02e4f 3379
d4c059d5
ILT
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384if ac_fn_c_try_compile "$LINENO"; then :
3385 ac_cv_prog_cc_g=yes
eff02e4f 3386fi
d4c059d5 3387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3388fi
d4c059d5 3389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3390fi
d4c059d5
ILT
3391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
eff02e4f 3393fi
d4c059d5
ILT
3394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3395$as_echo "$ac_cv_prog_cc_g" >&6; }
3396if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
eff02e4f 3404else
d4c059d5
ILT
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
eff02e4f 3409 fi
eff02e4f 3410fi
d4c059d5
ILT
3411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3412$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3413if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5 3414 $as_echo_n "(cached) " >&6
eff02e4f 3415else
d4c059d5
ILT
3416 ac_cv_prog_cc_c89=no
3417ac_save_CC=$CC
3418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419/* end confdefs.h. */
3420#include <stdarg.h>
3421#include <stdio.h>
22e05272 3422struct stat;
d4c059d5
ILT
3423/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3424struct buf { int x; };
3425FILE * (*rcsopen) (struct buf *, struct stat *, int);
3426static char *e (p, i)
3427 char **p;
3428 int i;
3429{
3430 return p[i];
3431}
3432static char *f (char * (*g) (char **, int), char **p, ...)
3433{
3434 char *s;
3435 va_list v;
3436 va_start (v,p);
3437 s = g (p, va_arg (v,int));
3438 va_end (v);
3439 return s;
3440}
eff02e4f 3441
d4c059d5
ILT
3442/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3443 function prototypes and stuff, but not '\xHH' hex character constants.
3444 These don't provoke an error unfortunately, instead are silently treated
3445 as 'x'. The following induces an error, until -std is added to get
3446 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3447 array size at least. It's necessary to write '\x00'==0 to get something
3448 that's true only with -std. */
3449int osf4_cc_array ['\x00' == 0 ? 1 : -1];
eff02e4f 3450
d4c059d5
ILT
3451/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3452 inside strings and character constants. */
3453#define FOO(x) 'x'
3454int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
eff02e4f 3455
d4c059d5
ILT
3456int test (int i, double x);
3457struct s1 {int (*f) (int a);};
3458struct s2 {int (*f) (double a);};
3459int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3460int argc;
3461char **argv;
3462int
3463main ()
3464{
3465return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 ;
3467 return 0;
3468}
3469_ACEOF
3470for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3471 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3472do
3473 CC="$ac_save_CC $ac_arg"
3474 if ac_fn_c_try_compile "$LINENO"; then :
3475 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 3476fi
d4c059d5
ILT
3477rm -f core conftest.err conftest.$ac_objext
3478 test "x$ac_cv_prog_cc_c89" != "xno" && break
3479done
3480rm -f conftest.$ac_ext
3481CC=$ac_save_CC
eff02e4f
ILT
3482
3483fi
d4c059d5
ILT
3484# AC_CACHE_VAL
3485case "x$ac_cv_prog_cc_c89" in
3486 x)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3488$as_echo "none needed" >&6; } ;;
3489 xno)
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3491$as_echo "unsupported" >&6; } ;;
3492 *)
3493 CC="$CC $ac_cv_prog_cc_c89"
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3495$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
eff02e4f 3496esac
d4c059d5 3497if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 3498
d4c059d5 3499fi
eff02e4f 3500
d4c059d5
ILT
3501ac_ext=c
3502ac_cpp='$CPP $CPPFLAGS'
3503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 3506
22e05272
JM
3507ac_ext=c
3508ac_cpp='$CPP $CPPFLAGS'
3509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3511ac_compiler_gnu=$ac_cv_c_compiler_gnu
3512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3513$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3514if ${am_cv_prog_cc_c_o+:} false; then :
3515 $as_echo_n "(cached) " >&6
3516else
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518/* end confdefs.h. */
3519
3520int
3521main ()
3522{
3523
3524 ;
3525 return 0;
3526}
3527_ACEOF
3528 # Make sure it works both with $CC and with simple cc.
3529 # Following AC_PROG_CC_C_O, we do the test twice because some
3530 # compilers refuse to overwrite an existing .o file with -o,
3531 # though they will create one.
3532 am_cv_prog_cc_c_o=yes
3533 for am_i in 1 2; do
3534 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3535 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3536 ac_status=$?
3537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3538 (exit $ac_status); } \
3539 && test -f conftest2.$ac_objext; then
3540 : OK
3541 else
3542 am_cv_prog_cc_c_o=no
3543 break
3544 fi
3545 done
3546 rm -f core conftest*
3547 unset am_i
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3550$as_echo "$am_cv_prog_cc_c_o" >&6; }
3551if test "$am_cv_prog_cc_c_o" != yes; then
3552 # Losing compiler, so override with the script.
3553 # FIXME: It is wrong to rewrite CC.
3554 # But if we don't then we get into trouble of one sort or another.
3555 # A longer-term fix would be to have automake use am__CC in this case,
3556 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3557 CC="$am_aux_dir/compile $CC"
3558fi
3559ac_ext=c
3560ac_cpp='$CPP $CPPFLAGS'
3561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3563ac_compiler_gnu=$ac_cv_c_compiler_gnu
3564
3565
d4c059d5
ILT
3566
3567ac_ext=c
3568ac_cpp='$CPP $CPPFLAGS'
3569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3571ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3573$as_echo_n "checking how to run the C preprocessor... " >&6; }
3574# On Suns, sometimes $CPP names a directory.
3575if test -n "$CPP" && test -d "$CPP"; then
3576 CPP=
3577fi
3578if test -z "$CPP"; then
22e05272 3579 if ${ac_cv_prog_CPP+:} false; then :
d4c059d5
ILT
3580 $as_echo_n "(cached) " >&6
3581else
3582 # Double quotes because CPP needs to be expanded
3583 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3584 do
3585 ac_preproc_ok=false
3586for ac_c_preproc_warn_flag in '' yes
3587do
3588 # Use a header file that comes with gcc, so configuring glibc
3589 # with a fresh cross-compiler works.
3590 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3591 # <limits.h> exists even on freestanding compilers.
3592 # On the NeXT, cc -E runs the code through the compiler's parser,
3593 # not just through cpp. "Syntax error" is here to catch this case.
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595/* end confdefs.h. */
3596#ifdef __STDC__
3597# include <limits.h>
3598#else
3599# include <assert.h>
3600#endif
3601 Syntax error
eff02e4f 3602_ACEOF
d4c059d5 3603if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f 3604
d4c059d5
ILT
3605else
3606 # Broken: fails on valid input.
3607continue
3608fi
22e05272 3609rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3610
3611 # OK, works on sane cases. Now check whether nonexistent headers
3612 # can be detected and how.
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614/* end confdefs.h. */
3615#include <ac_nonexistent.h>
3616_ACEOF
3617if ac_fn_c_try_cpp "$LINENO"; then :
3618 # Broken: success on invalid input.
3619continue
3620else
3621 # Passes both tests.
3622ac_preproc_ok=:
3623break
3624fi
22e05272 3625rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3626
eff02e4f 3627done
d4c059d5 3628# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3629rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3630if $ac_preproc_ok; then :
3631 break
3632fi
eff02e4f 3633
d4c059d5
ILT
3634 done
3635 ac_cv_prog_CPP=$CPP
3636
3637fi
3638 CPP=$ac_cv_prog_CPP
3639else
3640 ac_cv_prog_CPP=$CPP
3641fi
3642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3643$as_echo "$CPP" >&6; }
3644ac_preproc_ok=false
3645for ac_c_preproc_warn_flag in '' yes
eff02e4f 3646do
d4c059d5
ILT
3647 # Use a header file that comes with gcc, so configuring glibc
3648 # with a fresh cross-compiler works.
3649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3650 # <limits.h> exists even on freestanding compilers.
3651 # On the NeXT, cc -E runs the code through the compiler's parser,
3652 # not just through cpp. "Syntax error" is here to catch this case.
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h. */
3655#ifdef __STDC__
3656# include <limits.h>
3657#else
3658# include <assert.h>
3659#endif
3660 Syntax error
3661_ACEOF
3662if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f
ILT
3663
3664else
d4c059d5
ILT
3665 # Broken: fails on valid input.
3666continue
eff02e4f 3667fi
22e05272 3668rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3669
d4c059d5
ILT
3670 # OK, works on sane cases. Now check whether nonexistent headers
3671 # can be detected and how.
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673/* end confdefs.h. */
3674#include <ac_nonexistent.h>
3675_ACEOF
3676if ac_fn_c_try_cpp "$LINENO"; then :
3677 # Broken: success on invalid input.
3678continue
3679else
3680 # Passes both tests.
3681ac_preproc_ok=:
3682break
3683fi
22e05272 3684rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3685
3686done
3687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3688rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3689if $ac_preproc_ok; then :
3690
3691else
3692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
eff02e4f 3693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3694as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3695See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3696fi
eff02e4f 3697
d4c059d5
ILT
3698ac_ext=c
3699ac_cpp='$CPP $CPPFLAGS'
3700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702ac_compiler_gnu=$ac_cv_c_compiler_gnu
3703
3704
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3707if ${ac_cv_path_GREP+:} false; then :
d4c059d5
ILT
3708 $as_echo_n "(cached) " >&6
3709else
3710 if test -z "$GREP"; then
3711 ac_path_GREP_found=false
3712 # Loop through the user's path and test for each of PROGNAME-LIST
3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3715do
3716 IFS=$as_save_IFS
3717 test -z "$as_dir" && as_dir=.
3718 for ac_prog in grep ggrep; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3721 as_fn_executable_p "$ac_path_GREP" || continue
d4c059d5
ILT
3722# Check for GNU ac_path_GREP and select it if it is found.
3723 # Check for GNU $ac_path_GREP
3724case `"$ac_path_GREP" --version 2>&1` in
3725*GNU*)
3726 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3727*)
3728 ac_count=0
3729 $as_echo_n 0123456789 >"conftest.in"
3730 while :
3731 do
3732 cat "conftest.in" "conftest.in" >"conftest.tmp"
3733 mv "conftest.tmp" "conftest.in"
3734 cp "conftest.in" "conftest.nl"
3735 $as_echo 'GREP' >> "conftest.nl"
3736 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3737 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3738 as_fn_arith $ac_count + 1 && ac_count=$as_val
3739 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3740 # Best one so far, save it but keep looking for a better one
3741 ac_cv_path_GREP="$ac_path_GREP"
3742 ac_path_GREP_max=$ac_count
eff02e4f 3743 fi
d4c059d5
ILT
3744 # 10*(2^10) chars as input seems more than enough
3745 test $ac_count -gt 10 && break
3746 done
3747 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748esac
3749
3750 $ac_path_GREP_found && break 3
3751 done
3752 done
3753 done
3754IFS=$as_save_IFS
3755 if test -z "$ac_cv_path_GREP"; then
22e05272 3756 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f 3757 fi
d4c059d5
ILT
3758else
3759 ac_cv_path_GREP=$GREP
eff02e4f 3760fi
eff02e4f 3761
d4c059d5
ILT
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3764$as_echo "$ac_cv_path_GREP" >&6; }
3765 GREP="$ac_cv_path_GREP"
eff02e4f 3766
d4c059d5
ILT
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3769$as_echo_n "checking for egrep... " >&6; }
22e05272 3770if ${ac_cv_path_EGREP+:} false; then :
d4c059d5
ILT
3771 $as_echo_n "(cached) " >&6
3772else
3773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3774 then ac_cv_path_EGREP="$GREP -E"
3775 else
3776 if test -z "$EGREP"; then
3777 ac_path_EGREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781do
3782 IFS=$as_save_IFS
3783 test -z "$as_dir" && as_dir=.
3784 for ac_prog in egrep; do
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3787 as_fn_executable_p "$ac_path_EGREP" || continue
d4c059d5
ILT
3788# Check for GNU ac_path_EGREP and select it if it is found.
3789 # Check for GNU $ac_path_EGREP
3790case `"$ac_path_EGREP" --version 2>&1` in
3791*GNU*)
3792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3793*)
3794 ac_count=0
3795 $as_echo_n 0123456789 >"conftest.in"
3796 while :
3797 do
3798 cat "conftest.in" "conftest.in" >"conftest.tmp"
3799 mv "conftest.tmp" "conftest.in"
3800 cp "conftest.in" "conftest.nl"
3801 $as_echo 'EGREP' >> "conftest.nl"
3802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804 as_fn_arith $ac_count + 1 && ac_count=$as_val
3805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3806 # Best one so far, save it but keep looking for a better one
3807 ac_cv_path_EGREP="$ac_path_EGREP"
3808 ac_path_EGREP_max=$ac_count
3809 fi
3810 # 10*(2^10) chars as input seems more than enough
3811 test $ac_count -gt 10 && break
3812 done
3813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
eff02e4f 3814esac
d4c059d5
ILT
3815
3816 $ac_path_EGREP_found && break 3
3817 done
3818 done
3819 done
3820IFS=$as_save_IFS
3821 if test -z "$ac_cv_path_EGREP"; then
22e05272 3822 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4c059d5 3823 fi
eff02e4f 3824else
d4c059d5
ILT
3825 ac_cv_path_EGREP=$EGREP
3826fi
3827
3828 fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3831$as_echo "$ac_cv_path_EGREP" >&6; }
3832 EGREP="$ac_cv_path_EGREP"
3833
3834
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3836$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3837if ${ac_cv_header_stdc+:} false; then :
d4c059d5
ILT
3838 $as_echo_n "(cached) " >&6
3839else
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841/* end confdefs.h. */
3842#include <stdlib.h>
3843#include <stdarg.h>
3844#include <string.h>
3845#include <float.h>
3846
3847int
3848main ()
3849{
3850
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855if ac_fn_c_try_compile "$LINENO"; then :
3856 ac_cv_header_stdc=yes
3857else
3858 ac_cv_header_stdc=no
3859fi
3860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861
3862if test $ac_cv_header_stdc = yes; then
3863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865/* end confdefs.h. */
3866#include <string.h>
3867
3868_ACEOF
3869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3870 $EGREP "memchr" >/dev/null 2>&1; then :
3871
3872else
3873 ac_cv_header_stdc=no
3874fi
3875rm -f conftest*
3876
3877fi
3878
3879if test $ac_cv_header_stdc = yes; then
3880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883#include <stdlib.h>
3884
3885_ACEOF
3886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "free" >/dev/null 2>&1; then :
3888
3889else
3890 ac_cv_header_stdc=no
3891fi
3892rm -f conftest*
3893
3894fi
3895
3896if test $ac_cv_header_stdc = yes; then
3897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3898 if test "$cross_compiling" = yes; then :
3899 :
3900else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902/* end confdefs.h. */
3903#include <ctype.h>
3904#include <stdlib.h>
3905#if ((' ' & 0x0FF) == 0x020)
3906# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3907# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3908#else
3909# define ISLOWER(c) \
3910 (('a' <= (c) && (c) <= 'i') \
3911 || ('j' <= (c) && (c) <= 'r') \
3912 || ('s' <= (c) && (c) <= 'z'))
3913# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3914#endif
3915
3916#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3917int
3918main ()
3919{
3920 int i;
3921 for (i = 0; i < 256; i++)
3922 if (XOR (islower (i), ISLOWER (i))
3923 || toupper (i) != TOUPPER (i))
3924 return 2;
3925 return 0;
3926}
3927_ACEOF
3928if ac_fn_c_try_run "$LINENO"; then :
3929
3930else
3931 ac_cv_header_stdc=no
3932fi
3933rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3934 conftest.$ac_objext conftest.beam conftest.$ac_ext
3935fi
3936
3937fi
3938fi
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3940$as_echo "$ac_cv_header_stdc" >&6; }
3941if test $ac_cv_header_stdc = yes; then
3942
3943$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3944
3945fi
3946
3947# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949 inttypes.h stdint.h unistd.h
3950do :
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3953"
22e05272 3954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4c059d5
ILT
3955 cat >>confdefs.h <<_ACEOF
3956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3957_ACEOF
3958
3959fi
3960
3961done
3962
3963
3964
3965 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3966if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4c059d5
ILT
3967 MINIX=yes
3968else
3969 MINIX=
3970fi
3971
3972
3973 if test "$MINIX" = yes; then
3974
3975$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3976
3977
3978$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3979
3980
3981$as_echo "#define _MINIX 1" >>confdefs.h
3982
3983 fi
3984
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3987$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3988if ${ac_cv_safe_to_define___extensions__+:} false; then :
d4c059d5
ILT
3989 $as_echo_n "(cached) " >&6
3990else
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992/* end confdefs.h. */
3993
22e05272
JM
3994# define __EXTENSIONS__ 1
3995 $ac_includes_default
d4c059d5
ILT
3996int
3997main ()
3998{
3999
4000 ;
4001 return 0;
4002}
4003_ACEOF
4004if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_safe_to_define___extensions__=yes
4006else
4007 ac_cv_safe_to_define___extensions__=no
4008fi
4009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010fi
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4012$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4013 test $ac_cv_safe_to_define___extensions__ = yes &&
4014 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4015
4016 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4017
4018 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4019
4020 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4021
4022 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4023
4024
4025
4026libtool_VERSION=1:0:0
4027
4028
af710874
ILT
4029# 1.11.1: Require that version of automake.
4030# foreign: Don't require README, INSTALL, NEWS, etc.
4031# no-define: Don't define PACKAGE and VERSION.
4032# no-dependencies: Don't generate automatic dependencies.
4033# (because it breaks when using bootstrap-lean, since some of the
4034# headers are gone at "make install" time).
4035# -Wall: Issue all automake warnings.
4036# -Wno-portability: Don't warn about constructs supported by GNU make.
4037# (because GCC requires GNU make anyhow).
22e05272 4038am__api_version='1.15'
d4c059d5
ILT
4039
4040# Find a good install program. We prefer a C program (faster),
4041# so one script is as good as another. But avoid the broken or
4042# incompatible versions:
4043# SysV /etc/install, /usr/sbin/install
4044# SunOS /usr/etc/install
4045# IRIX /sbin/install
4046# AIX /bin/install
4047# AmigaOS /C/install, which installs bootblocks on floppy discs
4048# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4049# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4050# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4051# OS/2's system install, which has a completely different semantic
4052# ./install, which can be erroneously created by make from ./install.sh.
4053# Reject install programs that cannot install multiple files.
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4055$as_echo_n "checking for a BSD-compatible install... " >&6; }
4056if test -z "$INSTALL"; then
22e05272 4057if ${ac_cv_path_install+:} false; then :
d4c059d5
ILT
4058 $as_echo_n "(cached) " >&6
4059else
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061for as_dir in $PATH
4062do
4063 IFS=$as_save_IFS
4064 test -z "$as_dir" && as_dir=.
4065 # Account for people who put trailing slashes in PATH elements.
4066case $as_dir/ in #((
4067 ./ | .// | /[cC]/* | \
4068 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4070 /usr/ucb/* ) ;;
4071 *)
4072 # OSF1 and SCO ODT 3.0 have their own names for install.
4073 # Don't use installbsd from OSF since it installs stuff as root
4074 # by default.
4075 for ac_prog in ginstall scoinst install; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4077 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d4c059d5
ILT
4078 if test $ac_prog = install &&
4079 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080 # AIX install. It has an incompatible calling convention.
4081 :
4082 elif test $ac_prog = install &&
4083 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084 # program-specific install script used by HP pwplus--don't use.
4085 :
4086 else
4087 rm -rf conftest.one conftest.two conftest.dir
4088 echo one > conftest.one
4089 echo two > conftest.two
4090 mkdir conftest.dir
4091 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4092 test -s conftest.one && test -s conftest.two &&
4093 test -s conftest.dir/conftest.one &&
4094 test -s conftest.dir/conftest.two
4095 then
4096 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4097 break 3
4098 fi
4099 fi
4100 fi
4101 done
4102 done
4103 ;;
4104esac
4105
4106 done
4107IFS=$as_save_IFS
4108
4109rm -rf conftest.one conftest.two conftest.dir
4110
4111fi
4112 if test "${ac_cv_path_install+set}" = set; then
4113 INSTALL=$ac_cv_path_install
4114 else
4115 # As a last resort, use the slow shell script. Don't cache a
4116 # value for INSTALL within a source directory, because that will
4117 # break other packages using the cache if that directory is
4118 # removed, or if the value is a relative name.
4119 INSTALL=$ac_install_sh
4120 fi
4121fi
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4123$as_echo "$INSTALL" >&6; }
4124
4125# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4126# It thinks the first close brace ends the variable substitution.
4127test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4128
4129test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4130
4131test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4132
4133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4134$as_echo_n "checking whether build environment is sane... " >&6; }
d4c059d5
ILT
4135# Reject unsafe characters in $srcdir or the absolute working directory
4136# name. Accept space and tab only in the latter.
4137am_lf='
4138'
4139case `pwd` in
4140 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4141 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d4c059d5
ILT
4142esac
4143case $srcdir in
4144 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4145 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d4c059d5
ILT
4146esac
4147
22e05272 4148# Do 'set' in a subshell so we don't clobber the current shell's
d4c059d5
ILT
4149# arguments. Must try -L first in case configure is actually a
4150# symlink; some systems play weird games with the mod time of symlinks
4151# (eg FreeBSD returns the mod time of the symlink's containing
4152# directory).
4153if (
22e05272
JM
4154 am_has_slept=no
4155 for am_try in 1 2; do
4156 echo "timestamp, slept: $am_has_slept" > conftest.file
4157 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4158 if test "$*" = "X"; then
4159 # -L didn't work.
4160 set X `ls -t "$srcdir/configure" conftest.file`
4161 fi
4162 if test "$*" != "X $srcdir/configure conftest.file" \
4163 && test "$*" != "X conftest.file $srcdir/configure"; then
4164
4165 # If neither matched, then we have a broken ls. This can happen
4166 # if, for instance, CONFIG_SHELL is bash and it inherits a
4167 # broken ls alias from the environment. This has actually
4168 # happened. Such a system could not be considered "sane".
4169 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4170 alias in your environment" "$LINENO" 5
4171 fi
4172 if test "$2" = conftest.file || test $am_try -eq 2; then
4173 break
4174 fi
4175 # Just in case.
4176 sleep 1
4177 am_has_slept=yes
4178 done
d4c059d5
ILT
4179 test "$2" = conftest.file
4180 )
4181then
4182 # Ok.
4183 :
4184else
22e05272 4185 as_fn_error $? "newly created file is older than distributed files!
d4c059d5
ILT
4186Check your system clock" "$LINENO" 5
4187fi
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4189$as_echo "yes" >&6; }
22e05272
JM
4190# If we didn't sleep, we still need to ensure time stamps of config.status and
4191# generated files are strictly newer.
4192am_sleep_pid=
4193if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4194 ( sleep 1 ) &
4195 am_sleep_pid=$!
4196fi
4197
4198rm -f conftest.file
4199
d4c059d5
ILT
4200test "$program_prefix" != NONE &&
4201 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4202# Use a double $ so make ignores it.
4203test "$program_suffix" != NONE &&
4204 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4205# Double any \ or $.
4206# By default was `s,x,x', remove it if useless.
4207ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4208program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4209
d4c059d5
ILT
4210if test x"${MISSING+set}" != xset; then
4211 case $am_aux_dir in
4212 *\ * | *\ *)
4213 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4214 *)
4215 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4216 esac
4217fi
4218# Use eval to expand $SHELL
22e05272
JM
4219if eval "$MISSING --is-lightweight"; then
4220 am_missing_run="$MISSING "
d4c059d5
ILT
4221else
4222 am_missing_run=
22e05272
JM
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4224$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d4c059d5
ILT
4225fi
4226
22e05272 4227if test x"${install_sh+set}" != xset; then
d4c059d5
ILT
4228 case $am_aux_dir in
4229 *\ * | *\ *)
4230 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4231 *)
4232 install_sh="\${SHELL} $am_aux_dir/install-sh"
4233 esac
4234fi
4235
22e05272
JM
4236# Installed binaries are usually stripped using 'strip' when the user
4237# run "make install-strip". However 'strip' might not be the right
d4c059d5 4238# tool to use in cross-compilation environments, therefore Automake
22e05272 4239# will honor the 'STRIP' environment variable to overrule this program.
d4c059d5
ILT
4240if test "$cross_compiling" != no; then
4241 if test -n "$ac_tool_prefix"; then
4242 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4243set dummy ${ac_tool_prefix}strip; ac_word=$2
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4246if ${ac_cv_prog_STRIP+:} false; then :
d4c059d5
ILT
4247 $as_echo_n "(cached) " >&6
4248else
4249 if test -n "$STRIP"; then
4250 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4251else
4252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4259 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263done
4264 done
4265IFS=$as_save_IFS
4266
4267fi
4268fi
4269STRIP=$ac_cv_prog_STRIP
4270if test -n "$STRIP"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4272$as_echo "$STRIP" >&6; }
4273else
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275$as_echo "no" >&6; }
4276fi
4277
4278
4279fi
4280if test -z "$ac_cv_prog_STRIP"; then
4281 ac_ct_STRIP=$STRIP
4282 # Extract the first word of "strip", so it can be a program name with args.
4283set dummy strip; ac_word=$2
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4285$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4286if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d4c059d5
ILT
4287 $as_echo_n "(cached) " >&6
4288else
4289 if test -n "$ac_ct_STRIP"; then
4290 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4291else
4292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4293for as_dir in $PATH
4294do
4295 IFS=$as_save_IFS
4296 test -z "$as_dir" && as_dir=.
4297 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4299 ac_cv_prog_ac_ct_STRIP="strip"
4300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4301 break 2
4302 fi
4303done
4304 done
4305IFS=$as_save_IFS
4306
4307fi
4308fi
4309ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4310if test -n "$ac_ct_STRIP"; then
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4312$as_echo "$ac_ct_STRIP" >&6; }
4313else
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4315$as_echo "no" >&6; }
4316fi
4317
4318 if test "x$ac_ct_STRIP" = x; then
4319 STRIP=":"
4320 else
4321 case $cross_compiling:$ac_tool_warned in
4322yes:)
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4325ac_tool_warned=yes ;;
4326esac
4327 STRIP=$ac_ct_STRIP
4328 fi
4329else
4330 STRIP="$ac_cv_prog_STRIP"
4331fi
4332
4333fi
4334INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4335
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4337$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4338if test -z "$MKDIR_P"; then
22e05272 4339 if ${ac_cv_path_mkdir+:} false; then :
d4c059d5
ILT
4340 $as_echo_n "(cached) " >&6
4341else
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4343for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4344do
4345 IFS=$as_save_IFS
4346 test -z "$as_dir" && as_dir=.
4347 for ac_prog in mkdir gmkdir; do
4348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4349 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d4c059d5
ILT
4350 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4351 'mkdir (GNU coreutils) '* | \
4352 'mkdir (coreutils) '* | \
4353 'mkdir (fileutils) '4.1*)
4354 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4355 break 3;;
4356 esac
4357 done
4358 done
4359 done
4360IFS=$as_save_IFS
4361
4362fi
4363
22e05272 4364 test -d ./--version && rmdir ./--version
d4c059d5
ILT
4365 if test "${ac_cv_path_mkdir+set}" = set; then
4366 MKDIR_P="$ac_cv_path_mkdir -p"
4367 else
4368 # As a last resort, use the slow shell script. Don't cache a
4369 # value for MKDIR_P within a source directory, because that will
4370 # break other packages using the cache if that directory is
4371 # removed, or if the value is a relative name.
d4c059d5
ILT
4372 MKDIR_P="$ac_install_sh -d"
4373 fi
4374fi
4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4376$as_echo "$MKDIR_P" >&6; }
4377
d4c059d5
ILT
4378for ac_prog in gawk mawk nawk awk
4379do
4380 # Extract the first word of "$ac_prog", so it can be a program name with args.
4381set dummy $ac_prog; ac_word=$2
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4384if ${ac_cv_prog_AWK+:} false; then :
d4c059d5
ILT
4385 $as_echo_n "(cached) " >&6
4386else
4387 if test -n "$AWK"; then
4388 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4389else
4390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391for as_dir in $PATH
4392do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4397 ac_cv_prog_AWK="$ac_prog"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4400 fi
4401done
4402 done
4403IFS=$as_save_IFS
4404
4405fi
4406fi
4407AWK=$ac_cv_prog_AWK
4408if test -n "$AWK"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4410$as_echo "$AWK" >&6; }
4411else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413$as_echo "no" >&6; }
4414fi
4415
4416
4417 test -n "$AWK" && break
4418done
4419
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4421$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4422set x ${MAKE-make}
4423ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4424if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d4c059d5
ILT
4425 $as_echo_n "(cached) " >&6
4426else
4427 cat >conftest.make <<\_ACEOF
4428SHELL = /bin/sh
4429all:
4430 @echo '@@@%%%=$(MAKE)=@@@%%%'
4431_ACEOF
22e05272 4432# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d4c059d5
ILT
4433case `${MAKE-make} -f conftest.make 2>/dev/null` in
4434 *@@@%%%=?*=@@@%%%*)
4435 eval ac_cv_prog_make_${ac_make}_set=yes;;
4436 *)
4437 eval ac_cv_prog_make_${ac_make}_set=no;;
4438esac
4439rm -f conftest.make
4440fi
4441if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443$as_echo "yes" >&6; }
4444 SET_MAKE=
4445else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447$as_echo "no" >&6; }
4448 SET_MAKE="MAKE=${MAKE-make}"
4449fi
4450
4451rm -rf .tst 2>/dev/null
4452mkdir .tst 2>/dev/null
4453if test -d .tst; then
4454 am__leading_dot=.
4455else
4456 am__leading_dot=_
4457fi
4458rmdir .tst 2>/dev/null
4459
22e05272
JM
4460# Check whether --enable-silent-rules was given.
4461if test "${enable_silent_rules+set}" = set; then :
4462 enableval=$enable_silent_rules;
4463fi
4464
4465case $enable_silent_rules in # (((
4466 yes) AM_DEFAULT_VERBOSITY=0;;
4467 no) AM_DEFAULT_VERBOSITY=1;;
4468 *) AM_DEFAULT_VERBOSITY=1;;
4469esac
4470am_make=${MAKE-make}
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4472$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4473if ${am_cv_make_support_nested_variables+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475else
4476 if $as_echo 'TRUE=$(BAR$(V))
4477BAR0=false
4478BAR1=true
4479V=1
4480am__doit:
4481 @$(TRUE)
4482.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4483 am_cv_make_support_nested_variables=yes
4484else
4485 am_cv_make_support_nested_variables=no
4486fi
4487fi
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4489$as_echo "$am_cv_make_support_nested_variables" >&6; }
4490if test $am_cv_make_support_nested_variables = yes; then
4491 AM_V='$(V)'
4492 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4493else
4494 AM_V=$AM_DEFAULT_VERBOSITY
4495 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4496fi
4497AM_BACKSLASH='\'
4498
d4c059d5
ILT
4499if test "`cd $srcdir && pwd`" != "`pwd`"; then
4500 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4501 # is not polluted with repeated "-I."
4502 am__isrc=' -I$(srcdir)'
4503 # test to see if srcdir already configured
4504 if test -f $srcdir/config.status; then
22e05272 4505 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d4c059d5
ILT
4506 fi
4507fi
4508
4509# test whether we have cygpath
4510if test -z "$CYGPATH_W"; then
4511 if (cygpath --version) >/dev/null 2>/dev/null; then
4512 CYGPATH_W='cygpath -w'
4513 else
4514 CYGPATH_W=echo
4515 fi
4516fi
4517
4518
4519# Define the identity of the package.
4520 PACKAGE='libbacktrace'
4521 VERSION='version-unused'
4522
4523
4524# Some tools Automake needs.
4525
4526ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4527
4528
4529AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4530
4531
4532AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4533
4534
4535AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4536
4537
4538MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4539
22e05272
JM
4540# For better backward compatibility. To be removed once Automake 1.9.x
4541# dies out for good. For more background, see:
4542# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4543# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4544mkdir_p='$(MKDIR_P)'
4545
4546# We need awk for the "check" target (and possibly the TAP driver). The
4547# system "awk" is bad on some platforms.
df96c0f7
MH
4548# Always define AMTAR for backward compatibility. Yes, it's still used
4549# in the wild :-( We should find a proper way to deprecate it ...
4550AMTAR='$${TAR-tar}'
d4c059d5 4551
22e05272
JM
4552
4553# We'll loop over all known methods to create a tar archive until one works.
4554_am_tools='gnutar pax cpio none'
4555
df96c0f7 4556am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d4c059d5
ILT
4557
4558
4559
4560
d4c059d5
ILT
4561
4562
22e05272
JM
4563# POSIX will say in a future version that running "rm -f" with no argument
4564# is OK; and we want to be able to make that assumption in our Makefile
4565# recipes. So use an aggressive probe to check that the usage we want is
4566# actually supported "in the wild" to an acceptable degree.
4567# See automake bug#10828.
4568# To make any issue more visible, cause the running configure to be aborted
4569# by default if the 'rm' program in use doesn't match our expectations; the
4570# user can still override this though.
4571if rm -f && rm -fr && rm -rf; then : OK; else
4572 cat >&2 <<'END'
4573Oops!
4574
4575Your 'rm' program seems unable to run without file operands specified
4576on the command line, even when the '-f' option is present. This is contrary
4577to the behaviour of most rm programs out there, and not conforming with
4578the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4579
4580Please tell bug-automake@gnu.org about your system, including the value
4581of your $PATH and any error possibly output before this message. This
4582can help us improve future automake versions.
4583
4584END
4585 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4586 echo 'Configuration will proceed anyway, since you have set the' >&2
4587 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4588 echo >&2
4589 else
4590 cat >&2 <<'END'
4591Aborting the configuration process, to ensure you take notice of the issue.
4592
4593You can download and install GNU coreutils to get an 'rm' implementation
4594that behaves properly: <http://www.gnu.org/software/coreutils/>.
4595
4596If you want to complete the configuration process using your problematic
4597'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4598to "yes", and re-run configure.
4599
4600END
4601 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4602 fi
4603fi
4604
4605
d4c059d5
ILT
4606
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4608$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4609 # Check whether --enable-maintainer-mode was given.
4610if test "${enable_maintainer_mode+set}" = set; then :
4611 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4612else
4613 USE_MAINTAINER_MODE=no
4614fi
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4617$as_echo "$USE_MAINTAINER_MODE" >&6; }
4618 if test $USE_MAINTAINER_MODE = yes; then
4619 MAINTAINER_MODE_TRUE=
4620 MAINTAINER_MODE_FALSE='#'
4621else
4622 MAINTAINER_MODE_TRUE='#'
4623 MAINTAINER_MODE_FALSE=
4624fi
4625
4626 MAINT=$MAINTAINER_MODE_TRUE
4627
4628
4629
4630
4631# Check whether --with-target-subdir was given.
4632if test "${with_target_subdir+set}" = set; then :
4633 withval=$with_target_subdir;
eff02e4f 4634fi
eff02e4f 4635
eff02e4f 4636
d4c059d5
ILT
4637# We must force CC to /not/ be precious variables; otherwise
4638# the wrong, non-multilib-adjusted value will be used in multilibs.
4639# As a side effect, we have to subst CFLAGS ourselves.
eff02e4f 4640
d4c059d5
ILT
4641
4642ac_ext=c
4643ac_cpp='$CPP $CPPFLAGS'
4644ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646ac_compiler_gnu=$ac_cv_c_compiler_gnu
4647if test -n "$ac_tool_prefix"; then
4648 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}gcc; ac_word=$2
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4652if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4653 $as_echo_n "(cached) " >&6
eff02e4f 4654else
d4c059d5
ILT
4655 if test -n "$CC"; then
4656 ac_cv_prog_CC="$CC" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4665 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4667 break 2
4668 fi
4669done
4670 done
4671IFS=$as_save_IFS
eff02e4f 4672
eff02e4f 4673fi
eff02e4f 4674fi
d4c059d5
ILT
4675CC=$ac_cv_prog_CC
4676if test -n "$CC"; then
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4678$as_echo "$CC" >&6; }
eff02e4f 4679else
d4c059d5
ILT
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
4682fi
eff02e4f 4683
eff02e4f 4684
eff02e4f 4685fi
d4c059d5
ILT
4686if test -z "$ac_cv_prog_CC"; then
4687 ac_ct_CC=$CC
4688 # Extract the first word of "gcc", so it can be a program name with args.
4689set dummy gcc; ac_word=$2
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4692if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4693 $as_echo_n "(cached) " >&6
4694else
4695 if test -n "$ac_ct_CC"; then
4696 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4705 ac_cv_prog_ac_ct_CC="gcc"
4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710 done
4711IFS=$as_save_IFS
eff02e4f
ILT
4712
4713fi
eff02e4f 4714fi
d4c059d5
ILT
4715ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716if test -n "$ac_ct_CC"; then
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718$as_echo "$ac_ct_CC" >&6; }
eff02e4f 4719else
d4c059d5
ILT
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
4722fi
eff02e4f 4723
d4c059d5
ILT
4724 if test "x$ac_ct_CC" = x; then
4725 CC=""
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 CC=$ac_ct_CC
4734 fi
4735else
4736 CC="$ac_cv_prog_CC"
4737fi
eff02e4f 4738
d4c059d5
ILT
4739if test -z "$CC"; then
4740 if test -n "$ac_tool_prefix"; then
4741 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4742set dummy ${ac_tool_prefix}cc; ac_word=$2
4743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4745if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4746 $as_echo_n "(cached) " >&6
eff02e4f 4747else
d4c059d5
ILT
4748 if test -n "$CC"; then
4749 ac_cv_prog_CC="$CC" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4758 ac_cv_prog_CC="${ac_tool_prefix}cc"
4759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 break 2
4761 fi
4762done
4763 done
4764IFS=$as_save_IFS
eff02e4f 4765
d4c059d5
ILT
4766fi
4767fi
4768CC=$ac_cv_prog_CC
4769if test -n "$CC"; then
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4771$as_echo "$CC" >&6; }
4772else
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774$as_echo "no" >&6; }
4775fi
eff02e4f 4776
eff02e4f 4777
d4c059d5
ILT
4778 fi
4779fi
4780if test -z "$CC"; then
4781 # Extract the first word of "cc", so it can be a program name with args.
4782set dummy cc; ac_word=$2
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4784$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4785if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4786 $as_echo_n "(cached) " >&6
eff02e4f 4787else
d4c059d5
ILT
4788 if test -n "$CC"; then
4789 ac_cv_prog_CC="$CC" # Let the user override the test.
4790else
4791 ac_prog_rejected=no
4792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4799 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4800 ac_prog_rejected=yes
4801 continue
4802 fi
4803 ac_cv_prog_CC="cc"
4804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4805 break 2
4806 fi
4807done
4808 done
4809IFS=$as_save_IFS
eff02e4f 4810
d4c059d5
ILT
4811if test $ac_prog_rejected = yes; then
4812 # We found a bogon in the path, so make sure we never use it.
4813 set dummy $ac_cv_prog_CC
4814 shift
4815 if test $# != 0; then
4816 # We chose a different compiler from the bogus one.
4817 # However, it has the same basename, so the bogon will be chosen
4818 # first if we set CC to just the basename; use the full file name.
4819 shift
4820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4821 fi
eff02e4f 4822fi
eff02e4f 4823fi
eff02e4f 4824fi
d4c059d5
ILT
4825CC=$ac_cv_prog_CC
4826if test -n "$CC"; then
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828$as_echo "$CC" >&6; }
eff02e4f 4829else
d4c059d5
ILT
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831$as_echo "no" >&6; }
eff02e4f 4832fi
d4c059d5
ILT
4833
4834
4835fi
4836if test -z "$CC"; then
4837 if test -n "$ac_tool_prefix"; then
4838 for ac_prog in cl.exe
4839 do
4840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4841set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4843$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4844if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
4845 $as_echo_n "(cached) " >&6
4846else
d4c059d5
ILT
4847 if test -n "$CC"; then
4848 ac_cv_prog_CC="$CC" # Let the user override the test.
4849else
4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851for as_dir in $PATH
4852do
4853 IFS=$as_save_IFS
4854 test -z "$as_dir" && as_dir=.
4855 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4857 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 break 2
4860 fi
4861done
4862 done
4863IFS=$as_save_IFS
eff02e4f 4864
d4c059d5
ILT
4865fi
4866fi
4867CC=$ac_cv_prog_CC
4868if test -n "$CC"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4870$as_echo "$CC" >&6; }
4871else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4873$as_echo "no" >&6; }
4874fi
eff02e4f 4875
eff02e4f 4876
d4c059d5
ILT
4877 test -n "$CC" && break
4878 done
eff02e4f 4879fi
d4c059d5
ILT
4880if test -z "$CC"; then
4881 ac_ct_CC=$CC
4882 for ac_prog in cl.exe
4883do
4884 # Extract the first word of "$ac_prog", so it can be a program name with args.
4885set dummy $ac_prog; ac_word=$2
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4888if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4889 $as_echo_n "(cached) " >&6
4890else
4891 if test -n "$ac_ct_CC"; then
4892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4901 ac_cv_prog_ac_ct_CC="$ac_prog"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
eff02e4f 4905done
d4c059d5
ILT
4906 done
4907IFS=$as_save_IFS
eff02e4f
ILT
4908
4909fi
d4c059d5
ILT
4910fi
4911ac_ct_CC=$ac_cv_prog_ac_ct_CC
4912if test -n "$ac_ct_CC"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4914$as_echo "$ac_ct_CC" >&6; }
4915else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917$as_echo "no" >&6; }
eff02e4f
ILT
4918fi
4919
eff02e4f 4920
d4c059d5
ILT
4921 test -n "$ac_ct_CC" && break
4922done
eff02e4f 4923
d4c059d5
ILT
4924 if test "x$ac_ct_CC" = x; then
4925 CC=""
4926 else
4927 case $cross_compiling:$ac_tool_warned in
4928yes:)
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4931ac_tool_warned=yes ;;
eff02e4f 4932esac
d4c059d5
ILT
4933 CC=$ac_ct_CC
4934 fi
eff02e4f
ILT
4935fi
4936
d4c059d5 4937fi
eff02e4f 4938
eff02e4f 4939
d4c059d5
ILT
4940test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4941$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4942as_fn_error $? "no acceptable C compiler found in \$PATH
4943See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
4944
4945# Provide some information about the compiler.
4946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4947set X $ac_compile
4948ac_compiler=$2
4949for ac_option in --version -v -V -qversion; do
4950 { { ac_try="$ac_compiler $ac_option >&5"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956$as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4958 ac_status=$?
4959 if test -s conftest.err; then
4960 sed '10a\
4961... rest of stderr output deleted ...
4962 10q' conftest.err >conftest.er1
4963 cat conftest.er1 >&5
d4c059d5 4964 fi
22e05272 4965 rm -f conftest.er1 conftest.err
d4c059d5
ILT
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }
4968done
4969
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4971$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4972if ${ac_cv_c_compiler_gnu+:} false; then :
d4c059d5
ILT
4973 $as_echo_n "(cached) " >&6
4974else
4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4976/* end confdefs.h. */
4977
4978int
4979main ()
4980{
4981#ifndef __GNUC__
4982 choke me
4983#endif
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
4989if ac_fn_c_try_compile "$LINENO"; then :
4990 ac_compiler_gnu=yes
4991else
4992 ac_compiler_gnu=no
eff02e4f 4993fi
d4c059d5
ILT
4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4995ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 4996
eff02e4f 4997fi
d4c059d5
ILT
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4999$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5000if test $ac_compiler_gnu = yes; then
5001 GCC=yes
eff02e4f 5002else
d4c059d5 5003 GCC=
eff02e4f 5004fi
d4c059d5
ILT
5005ac_test_CFLAGS=${CFLAGS+set}
5006ac_save_CFLAGS=$CFLAGS
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5008$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5009if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5
ILT
5010 $as_echo_n "(cached) " >&6
5011else
5012 ac_save_c_werror_flag=$ac_c_werror_flag
5013 ac_c_werror_flag=yes
5014 ac_cv_prog_cc_g=no
5015 CFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017/* end confdefs.h. */
eff02e4f 5018
d4c059d5
ILT
5019int
5020main ()
5021{
eff02e4f 5022
d4c059d5
ILT
5023 ;
5024 return 0;
5025}
5026_ACEOF
5027if ac_fn_c_try_compile "$LINENO"; then :
5028 ac_cv_prog_cc_g=yes
eff02e4f 5029else
d4c059d5
ILT
5030 CFLAGS=""
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032/* end confdefs.h. */
eff02e4f 5033
d4c059d5
ILT
5034int
5035main ()
5036{
eff02e4f 5037
d4c059d5
ILT
5038 ;
5039 return 0;
5040}
5041_ACEOF
5042if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 5043
d4c059d5
ILT
5044else
5045 ac_c_werror_flag=$ac_save_c_werror_flag
5046 CFLAGS="-g"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048/* end confdefs.h. */
eff02e4f 5049
d4c059d5
ILT
5050int
5051main ()
5052{
5053
5054 ;
5055 return 0;
5056}
5057_ACEOF
5058if ac_fn_c_try_compile "$LINENO"; then :
5059 ac_cv_prog_cc_g=yes
5060fi
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 ac_c_werror_flag=$ac_save_c_werror_flag
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5069$as_echo "$ac_cv_prog_cc_g" >&6; }
5070if test "$ac_test_CFLAGS" = set; then
5071 CFLAGS=$ac_save_CFLAGS
5072elif test $ac_cv_prog_cc_g = yes; then
5073 if test "$GCC" = yes; then
5074 CFLAGS="-g -O2"
5075 else
5076 CFLAGS="-g"
5077 fi
eff02e4f 5078else
d4c059d5
ILT
5079 if test "$GCC" = yes; then
5080 CFLAGS="-O2"
5081 else
5082 CFLAGS=
5083 fi
5084fi
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5086$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5087if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5
ILT
5088 $as_echo_n "(cached) " >&6
5089else
5090 ac_cv_prog_cc_c89=no
5091ac_save_CC=$CC
5092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093/* end confdefs.h. */
5094#include <stdarg.h>
5095#include <stdio.h>
22e05272 5096struct stat;
d4c059d5
ILT
5097/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5098struct buf { int x; };
5099FILE * (*rcsopen) (struct buf *, struct stat *, int);
5100static char *e (p, i)
5101 char **p;
5102 int i;
5103{
5104 return p[i];
5105}
5106static char *f (char * (*g) (char **, int), char **p, ...)
5107{
5108 char *s;
5109 va_list v;
5110 va_start (v,p);
5111 s = g (p, va_arg (v,int));
5112 va_end (v);
5113 return s;
5114}
5115
5116/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5117 function prototypes and stuff, but not '\xHH' hex character constants.
5118 These don't provoke an error unfortunately, instead are silently treated
5119 as 'x'. The following induces an error, until -std is added to get
5120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5121 array size at least. It's necessary to write '\x00'==0 to get something
5122 that's true only with -std. */
5123int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5124
5125/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5126 inside strings and character constants. */
5127#define FOO(x) 'x'
5128int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5129
5130int test (int i, double x);
5131struct s1 {int (*f) (int a);};
5132struct s2 {int (*f) (double a);};
5133int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5134int argc;
5135char **argv;
5136int
5137main ()
5138{
5139return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5140 ;
5141 return 0;
5142}
5143_ACEOF
5144for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5146do
5147 CC="$ac_save_CC $ac_arg"
5148 if ac_fn_c_try_compile "$LINENO"; then :
5149 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 5150fi
d4c059d5
ILT
5151rm -f core conftest.err conftest.$ac_objext
5152 test "x$ac_cv_prog_cc_c89" != "xno" && break
5153done
5154rm -f conftest.$ac_ext
5155CC=$ac_save_CC
eff02e4f
ILT
5156
5157fi
d4c059d5
ILT
5158# AC_CACHE_VAL
5159case "x$ac_cv_prog_cc_c89" in
5160 x)
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5162$as_echo "none needed" >&6; } ;;
5163 xno)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5165$as_echo "unsupported" >&6; } ;;
5166 *)
5167 CC="$CC $ac_cv_prog_cc_c89"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5169$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5170esac
5171if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 5172
eff02e4f
ILT
5173fi
5174
d4c059d5
ILT
5175ac_ext=c
5176ac_cpp='$CPP $CPPFLAGS'
5177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 5180
22e05272
JM
5181ac_ext=c
5182ac_cpp='$CPP $CPPFLAGS'
5183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5185ac_compiler_gnu=$ac_cv_c_compiler_gnu
5186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5187$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5188if ${am_cv_prog_cc_c_o+:} false; then :
5189 $as_echo_n "(cached) " >&6
5190else
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192/* end confdefs.h. */
5193
5194int
5195main ()
5196{
5197
5198 ;
5199 return 0;
5200}
5201_ACEOF
5202 # Make sure it works both with $CC and with simple cc.
5203 # Following AC_PROG_CC_C_O, we do the test twice because some
5204 # compilers refuse to overwrite an existing .o file with -o,
5205 # though they will create one.
5206 am_cv_prog_cc_c_o=yes
5207 for am_i in 1 2; do
5208 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5209 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } \
5213 && test -f conftest2.$ac_objext; then
5214 : OK
5215 else
5216 am_cv_prog_cc_c_o=no
5217 break
5218 fi
5219 done
5220 rm -f core conftest*
5221 unset am_i
5222fi
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5224$as_echo "$am_cv_prog_cc_c_o" >&6; }
5225if test "$am_cv_prog_cc_c_o" != yes; then
5226 # Losing compiler, so override with the script.
5227 # FIXME: It is wrong to rewrite CC.
5228 # But if we don't then we get into trouble of one sort or another.
5229 # A longer-term fix would be to have automake use am__CC in this case,
5230 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5231 CC="$am_aux_dir/compile $CC"
5232fi
5233ac_ext=c
5234ac_cpp='$CPP $CPPFLAGS'
5235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5237ac_compiler_gnu=$ac_cv_c_compiler_gnu
5238
5239
eff02e4f
ILT
5240
5241
5242
5243
5244if test -n "$ac_tool_prefix"; then
5245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5249if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
5250 $as_echo_n "(cached) " >&6
5251else
5252 if test -n "$RANLIB"; then
5253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5254else
5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256for as_dir in $PATH
5257do
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5265 fi
5266done
5267 done
5268IFS=$as_save_IFS
5269
5270fi
5271fi
5272RANLIB=$ac_cv_prog_RANLIB
5273if test -n "$RANLIB"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5275$as_echo "$RANLIB" >&6; }
5276else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278$as_echo "no" >&6; }
5279fi
5280
5281
5282fi
5283if test -z "$ac_cv_prog_RANLIB"; then
5284 ac_ct_RANLIB=$RANLIB
5285 # Extract the first word of "ranlib", so it can be a program name with args.
5286set dummy ranlib; ac_word=$2
5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5289if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
5290 $as_echo_n "(cached) " >&6
5291else
5292 if test -n "$ac_ct_RANLIB"; then
5293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5294else
5295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5302 ac_cv_prog_ac_ct_RANLIB="ranlib"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304 break 2
5305 fi
5306done
5307 done
5308IFS=$as_save_IFS
5309
5310fi
5311fi
5312ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5313if test -n "$ac_ct_RANLIB"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5315$as_echo "$ac_ct_RANLIB" >&6; }
5316else
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318$as_echo "no" >&6; }
5319fi
5320
5321 if test "x$ac_ct_RANLIB" = x; then
5322 RANLIB=":"
5323 else
5324 case $cross_compiling:$ac_tool_warned in
5325yes:)
5326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5328ac_tool_warned=yes ;;
5329esac
5330 RANLIB=$ac_ct_RANLIB
5331 fi
5332else
5333 RANLIB="$ac_cv_prog_RANLIB"
5334fi
5335
5336
5337for ac_prog in gawk mawk nawk awk
5338do
5339 # Extract the first word of "$ac_prog", so it can be a program name with args.
5340set dummy $ac_prog; ac_word=$2
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5342$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5343if ${ac_cv_prog_AWK+:} false; then :
eff02e4f
ILT
5344 $as_echo_n "(cached) " >&6
5345else
5346 if test -n "$AWK"; then
5347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5348else
5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350for as_dir in $PATH
5351do
5352 IFS=$as_save_IFS
5353 test -z "$as_dir" && as_dir=.
5354 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5356 ac_cv_prog_AWK="$ac_prog"
5357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 break 2
5359 fi
5360done
5361 done
5362IFS=$as_save_IFS
5363
5364fi
5365fi
5366AWK=$ac_cv_prog_AWK
5367if test -n "$AWK"; then
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5369$as_echo "$AWK" >&6; }
5370else
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372$as_echo "no" >&6; }
5373fi
5374
5375
5376 test -n "$AWK" && break
5377done
5378
5379case "$AWK" in
22e05272 5380"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
eff02e4f
ILT
5381esac
5382
10f48858
TV
5383# Extract the first word of "dwz", so it can be a program name with args.
5384set dummy dwz; ac_word=$2
5385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386$as_echo_n "checking for $ac_word... " >&6; }
5387if ${ac_cv_prog_DWZ+:} false; then :
5388 $as_echo_n "(cached) " >&6
5389else
5390 if test -n "$DWZ"; then
5391 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5392else
5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5400 ac_cv_prog_DWZ="dwz"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5403 fi
5404done
5405 done
5406IFS=$as_save_IFS
5407
5408fi
5409fi
5410DWZ=$ac_cv_prog_DWZ
5411if test -n "$DWZ"; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5413$as_echo "$DWZ" >&6; }
5414else
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5416$as_echo "no" >&6; }
5417fi
5418
5419
5420 if test "$DWZ" != ""; then
5421 HAVE_DWZ_TRUE=
5422 HAVE_DWZ_FALSE='#'
5423else
5424 HAVE_DWZ_TRUE='#'
5425 HAVE_DWZ_FALSE=
5426fi
5427
5428
eff02e4f
ILT
5429case `pwd` in
5430 *\ * | *\ *)
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5432$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5433esac
5434
5435
5436
5437macro_version='2.2.7a'
5438macro_revision='1.3134'
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452ltmain="$ac_aux_dir/ltmain.sh"
5453
5454# Backslashify metacharacters that are still active within
5455# double-quoted strings.
5456sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5457
5458# Same as above, but do not quote variable references.
5459double_quote_subst='s/\(["`\\]\)/\\\1/g'
5460
5461# Sed substitution to delay expansion of an escaped shell variable in a
5462# double_quote_subst'ed string.
5463delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5464
5465# Sed substitution to delay expansion of an escaped single quote.
5466delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5467
5468# Sed substitution to avoid accidental globbing in evaled expressions
5469no_glob_subst='s/\*/\\\*/g'
5470
5471ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5472ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5473ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5474
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5476$as_echo_n "checking how to print strings... " >&6; }
5477# Test print first, because it will be a builtin if present.
5478if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5479 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5480 ECHO='print -r --'
5481elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5482 ECHO='printf %s\n'
5483else
5484 # Use this function as a fallback that always works.
5485 func_fallback_echo ()
5486 {
5487 eval 'cat <<_LTECHO_EOF
5488$1
5489_LTECHO_EOF'
5490 }
5491 ECHO='func_fallback_echo'
5492fi
5493
5494# func_echo_all arg...
5495# Invoke $ECHO with all args, space-separated.
5496func_echo_all ()
5497{
5498 $ECHO ""
5499}
5500
5501case "$ECHO" in
5502 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5503$as_echo "printf" >&6; } ;;
5504 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5505$as_echo "print -r" >&6; } ;;
5506 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5507$as_echo "cat" >&6; } ;;
5508esac
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
d4c059d5 5524$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5525if ${ac_cv_path_SED+:} false; then :
eff02e4f
ILT
5526 $as_echo_n "(cached) " >&6
5527else
d4c059d5
ILT
5528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5529 for ac_i in 1 2 3 4 5 6 7; do
5530 ac_script="$ac_script$as_nl$ac_script"
5531 done
5532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5533 { ac_script=; unset ac_script;}
5534 if test -z "$SED"; then
5535 ac_path_SED_found=false
eff02e4f
ILT
5536 # Loop through the user's path and test for each of PROGNAME-LIST
5537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d4c059d5 5538for as_dir in $PATH
eff02e4f
ILT
5539do
5540 IFS=$as_save_IFS
5541 test -z "$as_dir" && as_dir=.
d4c059d5 5542 for ac_prog in sed gsed; do
eff02e4f 5543 for ac_exec_ext in '' $ac_executable_extensions; do
d4c059d5 5544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5545 as_fn_executable_p "$ac_path_SED" || continue
d4c059d5
ILT
5546# Check for GNU ac_path_SED and select it if it is found.
5547 # Check for GNU $ac_path_SED
5548case `"$ac_path_SED" --version 2>&1` in
eff02e4f 5549*GNU*)
d4c059d5 5550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
eff02e4f
ILT
5551*)
5552 ac_count=0
5553 $as_echo_n 0123456789 >"conftest.in"
5554 while :
5555 do
5556 cat "conftest.in" "conftest.in" >"conftest.tmp"
5557 mv "conftest.tmp" "conftest.in"
5558 cp "conftest.in" "conftest.nl"
d4c059d5
ILT
5559 $as_echo '' >> "conftest.nl"
5560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
eff02e4f
ILT
5561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5562 as_fn_arith $ac_count + 1 && ac_count=$as_val
d4c059d5 5563 if test $ac_count -gt ${ac_path_SED_max-0}; then
eff02e4f 5564 # Best one so far, save it but keep looking for a better one
d4c059d5
ILT
5565 ac_cv_path_SED="$ac_path_SED"
5566 ac_path_SED_max=$ac_count
eff02e4f
ILT
5567 fi
5568 # 10*(2^10) chars as input seems more than enough
5569 test $ac_count -gt 10 && break
5570 done
5571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5572esac
5573
d4c059d5 5574 $ac_path_SED_found && break 3
eff02e4f
ILT
5575 done
5576 done
5577 done
5578IFS=$as_save_IFS
d4c059d5 5579 if test -z "$ac_cv_path_SED"; then
22e05272 5580 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5581 fi
5582else
d4c059d5 5583 ac_cv_path_SED=$SED
eff02e4f
ILT
5584fi
5585
eff02e4f 5586fi
d4c059d5
ILT
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5588$as_echo "$ac_cv_path_SED" >&6; }
5589 SED="$ac_cv_path_SED"
5590 rm -f conftest.sed
5591
5592test -z "$SED" && SED=sed
5593Xsed="$SED -e 1s/^X//"
5594
5595
5596
5597
5598
5599
5600
5601
5602
eff02e4f
ILT
5603
5604
5605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5606$as_echo_n "checking for fgrep... " >&6; }
22e05272 5607if ${ac_cv_path_FGREP+:} false; then :
eff02e4f
ILT
5608 $as_echo_n "(cached) " >&6
5609else
5610 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5611 then ac_cv_path_FGREP="$GREP -F"
5612 else
5613 if test -z "$FGREP"; then
5614 ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5618do
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_prog in fgrep; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5624 as_fn_executable_p "$ac_path_FGREP" || continue
eff02e4f
ILT
5625# Check for GNU ac_path_FGREP and select it if it is found.
5626 # Check for GNU $ac_path_FGREP
5627case `"$ac_path_FGREP" --version 2>&1` in
5628*GNU*)
5629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5630*)
5631 ac_count=0
5632 $as_echo_n 0123456789 >"conftest.in"
5633 while :
5634 do
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 $as_echo 'FGREP' >> "conftest.nl"
5639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 as_fn_arith $ac_count + 1 && ac_count=$as_val
5642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_FGREP="$ac_path_FGREP"
5645 ac_path_FGREP_max=$ac_count
5646 fi
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5649 done
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5651esac
5652
5653 $ac_path_FGREP_found && break 3
5654 done
5655 done
5656 done
5657IFS=$as_save_IFS
5658 if test -z "$ac_cv_path_FGREP"; then
22e05272 5659 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f
ILT
5660 fi
5661else
5662 ac_cv_path_FGREP=$FGREP
5663fi
5664
5665 fi
5666fi
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5668$as_echo "$ac_cv_path_FGREP" >&6; }
5669 FGREP="$ac_cv_path_FGREP"
5670
5671
5672test -z "$GREP" && GREP=grep
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692# Check whether --with-gnu-ld was given.
5693if test "${with_gnu_ld+set}" = set; then :
5694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5695else
5696 with_gnu_ld=no
5697fi
5698
5699ac_prog=ld
5700if test "$GCC" = yes; then
5701 # Check if gcc -print-prog-name=ld gives a path.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5703$as_echo_n "checking for ld used by $CC... " >&6; }
5704 case $host in
5705 *-*-mingw*)
5706 # gcc leaves a trailing carriage return which upsets mingw
5707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5708 *)
5709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5710 esac
5711 case $ac_prog in
5712 # Accept absolute paths.
5713 [\\/]* | ?:[\\/]*)
5714 re_direlt='/[^/][^/]*/\.\./'
5715 # Canonicalize the pathname of ld
5716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5719 done
5720 test -z "$LD" && LD="$ac_prog"
5721 ;;
5722 "")
5723 # If it fails, then pretend we aren't using GCC.
5724 ac_prog=ld
5725 ;;
5726 *)
5727 # If it is relative, then search for the first ld in PATH.
5728 with_gnu_ld=unknown
5729 ;;
5730 esac
5731elif test "$with_gnu_ld" = yes; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5733$as_echo_n "checking for GNU ld... " >&6; }
5734else
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5736$as_echo_n "checking for non-GNU ld... " >&6; }
5737fi
22e05272 5738if ${lt_cv_path_LD+:} false; then :
eff02e4f
ILT
5739 $as_echo_n "(cached) " >&6
5740else
5741 if test -z "$LD"; then
5742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5743 for ac_dir in $PATH; do
5744 IFS="$lt_save_ifs"
5745 test -z "$ac_dir" && ac_dir=.
5746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5747 lt_cv_path_LD="$ac_dir/$ac_prog"
5748 # Check to see if the program is GNU ld. I'd rather use --version,
5749 # but apparently some variants of GNU ld only accept -v.
5750 # Break only if it was the GNU/non-GNU ld that we prefer.
5751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5752 *GNU* | *'with BFD'*)
5753 test "$with_gnu_ld" != no && break
5754 ;;
5755 *)
5756 test "$with_gnu_ld" != yes && break
5757 ;;
5758 esac
5759 fi
5760 done
5761 IFS="$lt_save_ifs"
5762else
5763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5764fi
5765fi
5766
5767LD="$lt_cv_path_LD"
5768if test -n "$LD"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5770$as_echo "$LD" >&6; }
5771else
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773$as_echo "no" >&6; }
5774fi
22e05272 5775test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5777$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5778if ${lt_cv_prog_gnu_ld+:} false; then :
eff02e4f
ILT
5779 $as_echo_n "(cached) " >&6
5780else
5781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5782case `$LD -v 2>&1 </dev/null` in
5783*GNU* | *'with BFD'*)
5784 lt_cv_prog_gnu_ld=yes
5785 ;;
5786*)
5787 lt_cv_prog_gnu_ld=no
5788 ;;
5789esac
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5792$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5793with_gnu_ld=$lt_cv_prog_gnu_ld
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5804$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5805if ${lt_cv_path_NM+:} false; then :
eff02e4f
ILT
5806 $as_echo_n "(cached) " >&6
5807else
5808 if test -n "$NM"; then
5809 # Let the user override the test.
5810 lt_cv_path_NM="$NM"
5811else
5812 lt_nm_to_check="${ac_tool_prefix}nm"
5813 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5814 lt_nm_to_check="$lt_nm_to_check nm"
5815 fi
5816 for lt_tmp_nm in $lt_nm_to_check; do
5817 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5818 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5819 IFS="$lt_save_ifs"
5820 test -z "$ac_dir" && ac_dir=.
5821 tmp_nm="$ac_dir/$lt_tmp_nm"
5822 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5823 # Check to see if the nm accepts a BSD-compat flag.
5824 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5825 # nm: unknown option "B" ignored
5826 # Tru64's nm complains that /dev/null is an invalid object file
5827 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5828 */dev/null* | *'Invalid file or object type'*)
5829 lt_cv_path_NM="$tmp_nm -B"
5830 break
5831 ;;
5832 *)
5833 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5834 */dev/null*)
5835 lt_cv_path_NM="$tmp_nm -p"
5836 break
5837 ;;
5838 *)
5839 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5840 continue # so that we can try to find one that supports BSD flags
5841 ;;
5842 esac
5843 ;;
5844 esac
5845 fi
5846 done
5847 IFS="$lt_save_ifs"
5848 done
5849 : ${lt_cv_path_NM=no}
5850fi
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5853$as_echo "$lt_cv_path_NM" >&6; }
5854if test "$lt_cv_path_NM" != "no"; then
5855 NM="$lt_cv_path_NM"
5856else
5857 # Didn't find any BSD compatible name lister, look for dumpbin.
5858 if test -n "$DUMPBIN"; then :
5859 # Let the user override the test.
5860 else
5861 if test -n "$ac_tool_prefix"; then
5862 for ac_prog in dumpbin "link -dump"
5863 do
5864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5865set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5868if ${ac_cv_prog_DUMPBIN+:} false; then :
eff02e4f
ILT
5869 $as_echo_n "(cached) " >&6
5870else
5871 if test -n "$DUMPBIN"; then
5872 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5873else
5874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875for as_dir in $PATH
5876do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5881 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885done
5886 done
5887IFS=$as_save_IFS
5888
5889fi
5890fi
5891DUMPBIN=$ac_cv_prog_DUMPBIN
5892if test -n "$DUMPBIN"; then
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5894$as_echo "$DUMPBIN" >&6; }
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897$as_echo "no" >&6; }
5898fi
5899
5900
5901 test -n "$DUMPBIN" && break
5902 done
5903fi
5904if test -z "$DUMPBIN"; then
5905 ac_ct_DUMPBIN=$DUMPBIN
5906 for ac_prog in dumpbin "link -dump"
5907do
5908 # Extract the first word of "$ac_prog", so it can be a program name with args.
5909set dummy $ac_prog; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5912if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
eff02e4f
ILT
5913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$ac_ct_DUMPBIN"; then
5916 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5925 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5936if test -n "$ac_ct_DUMPBIN"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5938$as_echo "$ac_ct_DUMPBIN" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945 test -n "$ac_ct_DUMPBIN" && break
5946done
5947
5948 if test "x$ac_ct_DUMPBIN" = x; then
5949 DUMPBIN=":"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952yes:)
5953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955ac_tool_warned=yes ;;
5956esac
5957 DUMPBIN=$ac_ct_DUMPBIN
5958 fi
5959fi
5960
5961 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5962 *COFF*)
5963 DUMPBIN="$DUMPBIN -symbols"
5964 ;;
5965 *)
5966 DUMPBIN=:
5967 ;;
5968 esac
5969 fi
5970
5971 if test "$DUMPBIN" != ":"; then
5972 NM="$DUMPBIN"
5973 fi
5974fi
5975test -z "$NM" && NM=nm
5976
5977
5978
5979
5980
5981
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5983$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5984if ${lt_cv_nm_interface+:} false; then :
eff02e4f
ILT
5985 $as_echo_n "(cached) " >&6
5986else
5987 lt_cv_nm_interface="BSD nm"
5988 echo "int some_variable = 0;" > conftest.$ac_ext
5989 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5990 (eval "$ac_compile" 2>conftest.err)
5991 cat conftest.err >&5
5992 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5994 cat conftest.err >&5
5995 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5996 cat conftest.out >&5
5997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5998 lt_cv_nm_interface="MS dumpbin"
5999 fi
6000 rm -f conftest*
6001fi
6002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6003$as_echo "$lt_cv_nm_interface" >&6; }
6004
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6006$as_echo_n "checking whether ln -s works... " >&6; }
6007LN_S=$as_ln_s
6008if test "$LN_S" = "ln -s"; then
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6010$as_echo "yes" >&6; }
6011else
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6013$as_echo "no, using $LN_S" >&6; }
6014fi
6015
6016# find the maximum length of command line arguments
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6018$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6019if ${lt_cv_sys_max_cmd_len+:} false; then :
eff02e4f
ILT
6020 $as_echo_n "(cached) " >&6
6021else
6022 i=0
6023 teststring="ABCD"
6024
6025 case $build_os in
6026 msdosdjgpp*)
6027 # On DJGPP, this test can blow up pretty badly due to problems in libc
6028 # (any single argument exceeding 2000 bytes causes a buffer overrun
6029 # during glob expansion). Even if it were fixed, the result of this
6030 # check would be larger than it should be.
6031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6032 ;;
6033
6034 gnu*)
6035 # Under GNU Hurd, this test is not required because there is
6036 # no limit to the length of command line arguments.
6037 # Libtool will interpret -1 as no limit whatsoever
6038 lt_cv_sys_max_cmd_len=-1;
6039 ;;
6040
6041 cygwin* | mingw* | cegcc*)
6042 # On Win9x/ME, this test blows up -- it succeeds, but takes
6043 # about 5 minutes as the teststring grows exponentially.
6044 # Worse, since 9x/ME are not pre-emptively multitasking,
6045 # you end up with a "frozen" computer, even though with patience
6046 # the test eventually succeeds (with a max line length of 256k).
6047 # Instead, let's just punt: use the minimum linelength reported by
6048 # all of the supported platforms: 8192 (on NT/2K/XP).
6049 lt_cv_sys_max_cmd_len=8192;
6050 ;;
6051
6052 mint*)
6053 # On MiNT this can take a long time and run out of memory.
6054 lt_cv_sys_max_cmd_len=8192;
6055 ;;
6056
6057 amigaos*)
6058 # On AmigaOS with pdksh, this test takes hours, literally.
6059 # So we just punt and use a minimum line length of 8192.
6060 lt_cv_sys_max_cmd_len=8192;
6061 ;;
6062
6063 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064 # This has been around since 386BSD, at least. Likely further.
6065 if test -x /sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067 elif test -x /usr/sbin/sysctl; then
6068 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6069 else
6070 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6071 fi
6072 # And add a safety zone
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6075 ;;
6076
6077 interix*)
6078 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079 lt_cv_sys_max_cmd_len=196608
6080 ;;
6081
6082 osf*)
6083 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085 # nice to cause kernel panics so lets avoid the loop below.
6086 # First set a reasonable default.
6087 lt_cv_sys_max_cmd_len=16384
6088 #
6089 if test -x /sbin/sysconfig; then
6090 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6092 esac
6093 fi
6094 ;;
6095 sco3.2v5*)
6096 lt_cv_sys_max_cmd_len=102400
6097 ;;
6098 sysv5* | sco5v6* | sysv4.2uw2*)
6099 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100 if test -n "$kargmax"; then
6101 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6102 else
6103 lt_cv_sys_max_cmd_len=32768
6104 fi
6105 ;;
6106 *)
6107 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108 if test -n "$lt_cv_sys_max_cmd_len"; then
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6111 else
6112 # Make teststring a little bigger before we do anything with it.
6113 # a 1K string should be a reasonable start.
6114 for i in 1 2 3 4 5 6 7 8 ; do
6115 teststring=$teststring$teststring
6116 done
6117 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118 # If test is not a shell built-in, we'll probably end up computing a
6119 # maximum length that is only half of the actual maximum length, but
6120 # we can't tell.
6121 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6122 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6123 test $i != 17 # 1/2 MB should be enough
6124 do
6125 i=`expr $i + 1`
6126 teststring=$teststring$teststring
6127 done
6128 # Only check the string length outside the loop.
6129 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6130 teststring=
6131 # Add a significant safety factor because C++ compilers can tack on
6132 # massive amounts of additional arguments before passing them to the
6133 # linker. It appears as though 1/2 is a usable value.
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6135 fi
6136 ;;
6137 esac
6138
6139fi
6140
6141if test -n $lt_cv_sys_max_cmd_len ; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6143$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6144else
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6146$as_echo "none" >&6; }
6147fi
6148max_cmd_len=$lt_cv_sys_max_cmd_len
6149
6150
6151
6152
6153
6154
6155: ${CP="cp -f"}
6156: ${MV="mv -f"}
6157: ${RM="rm -f"}
6158
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6160$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6161# Try some XSI features
6162xsi_shell=no
6163( _lt_dummy="a/b/c"
6164 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6165 = c,a/b,, \
6166 && eval 'test $(( 1 + 1 )) -eq 2 \
6167 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6168 && xsi_shell=yes
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6170$as_echo "$xsi_shell" >&6; }
6171
6172
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6174$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6175lt_shell_append=no
6176( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6177 >/dev/null 2>&1 \
6178 && lt_shell_append=yes
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6180$as_echo "$lt_shell_append" >&6; }
6181
6182
6183if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6184 lt_unset=unset
6185else
6186 lt_unset=false
6187fi
6188
6189
6190
6191
6192
6193# test EBCDIC or ASCII
6194case `echo X|tr X '\101'` in
6195 A) # ASCII based system
6196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197 lt_SP2NL='tr \040 \012'
6198 lt_NL2SP='tr \015\012 \040\040'
6199 ;;
6200 *) # EBCDIC based system
6201 lt_SP2NL='tr \100 \n'
6202 lt_NL2SP='tr \r\n \100\100'
6203 ;;
6204esac
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6215$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6216if ${lt_cv_ld_reload_flag+:} false; then :
eff02e4f
ILT
6217 $as_echo_n "(cached) " >&6
6218else
6219 lt_cv_ld_reload_flag='-r'
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6222$as_echo "$lt_cv_ld_reload_flag" >&6; }
6223reload_flag=$lt_cv_ld_reload_flag
6224case $reload_flag in
6225"" | " "*) ;;
6226*) reload_flag=" $reload_flag" ;;
6227esac
6228reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229case $host_os in
6230 darwin*)
6231 if test "$GCC" = yes; then
6232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6233 else
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235 fi
6236 ;;
6237esac
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6252if ${ac_cv_prog_OBJDUMP+:} false; then :
eff02e4f
ILT
6253 $as_echo_n "(cached) " >&6
6254else
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269done
6270 done
6271IFS=$as_save_IFS
6272
6273fi
6274fi
6275OBJDUMP=$ac_cv_prog_OBJDUMP
6276if test -n "$OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6278$as_echo "$OBJDUMP" >&6; }
6279else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281$as_echo "no" >&6; }
6282fi
6283
6284
6285fi
6286if test -z "$ac_cv_prog_OBJDUMP"; then
6287 ac_ct_OBJDUMP=$OBJDUMP
6288 # Extract the first word of "objdump", so it can be a program name with args.
6289set dummy objdump; ac_word=$2
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6292if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
eff02e4f
ILT
6293 $as_echo_n "(cached) " >&6
6294else
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309done
6310 done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316if test -n "$ac_ct_OBJDUMP"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6318$as_echo "$ac_ct_OBJDUMP" >&6; }
6319else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324 if test "x$ac_ct_OBJDUMP" = x; then
6325 OBJDUMP="false"
6326 else
6327 case $cross_compiling:$ac_tool_warned in
6328yes:)
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6331ac_tool_warned=yes ;;
6332esac
6333 OBJDUMP=$ac_ct_OBJDUMP
6334 fi
6335else
6336 OBJDUMP="$ac_cv_prog_OBJDUMP"
6337fi
6338
6339test -z "$OBJDUMP" && OBJDUMP=objdump
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6350$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6351if ${lt_cv_deplibs_check_method+:} false; then :
eff02e4f
ILT
6352 $as_echo_n "(cached) " >&6
6353else
6354 lt_cv_file_magic_cmd='$MAGIC_CMD'
6355lt_cv_file_magic_test_file=
6356lt_cv_deplibs_check_method='unknown'
6357# Need to set the preceding variable on all platforms that support
6358# interlibrary dependencies.
6359# 'none' -- dependencies not supported.
6360# `unknown' -- same as none, but documents that we really don't know.
6361# 'pass_all' -- all dependencies passed with no checks.
6362# 'test_compile' -- check by making test program.
6363# 'file_magic [[regex]]' -- check by looking for files in library path
6364# which responds to the $file_magic_cmd with a given extended regex.
6365# If you have `file' or equivalent on your system and you're not sure
6366# whether `pass_all' will *always* work, you probably want this one.
6367
6368case $host_os in
6369aix[4-9]*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373beos*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376
6377bsdi[45]*)
6378 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6379 lt_cv_file_magic_cmd='/usr/bin/file -L'
6380 lt_cv_file_magic_test_file=/shlib/libc.so
6381 ;;
6382
6383cygwin*)
6384 # func_win32_libid is a shell function defined in ltmain.sh
6385 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6386 lt_cv_file_magic_cmd='func_win32_libid'
6387 ;;
6388
6389mingw* | pw32*)
6390 # Base MSYS/MinGW do not provide the 'file' command needed by
6391 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6392 # unless we find 'file', for example because we are cross-compiling.
6393 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6394 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6396 lt_cv_file_magic_cmd='func_win32_libid'
6397 else
6398 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6399 lt_cv_file_magic_cmd='$OBJDUMP -f'
6400 fi
6401 ;;
6402
6403cegcc*)
6404 # use the weaker test based on 'objdump'. See mingw*.
6405 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6406 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 ;;
6408
6409darwin* | rhapsody*)
6410 lt_cv_deplibs_check_method=pass_all
6411 ;;
6412
6413freebsd* | dragonfly*)
6414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415 case $host_cpu in
6416 i*86 )
6417 # Not sure whether the presence of OpenBSD here was a mistake.
6418 # Let's accept both of them until this is cleared up.
6419 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6420 lt_cv_file_magic_cmd=/usr/bin/file
6421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6422 ;;
6423 esac
6424 else
6425 lt_cv_deplibs_check_method=pass_all
6426 fi
6427 ;;
6428
6429gnu*)
6430 lt_cv_deplibs_check_method=pass_all
6431 ;;
6432
6433haiku*)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436
6437hpux10.20* | hpux11*)
6438 lt_cv_file_magic_cmd=/usr/bin/file
6439 case $host_cpu in
6440 ia64*)
6441 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6442 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6443 ;;
6444 hppa*64*)
6445 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]'
6446 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6447 ;;
6448 *)
6449 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6450 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6451 ;;
6452 esac
6453 ;;
6454
6455interix[3-9]*)
6456 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6458 ;;
6459
6460irix5* | irix6* | nonstopux*)
6461 case $LD in
6462 *-32|*"-32 ") libmagic=32-bit;;
6463 *-n32|*"-n32 ") libmagic=N32;;
6464 *-64|*"-64 ") libmagic=64-bit;;
6465 *) libmagic=never-match;;
6466 esac
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470# This must be Linux ELF.
e9085da5 6471linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
6472 lt_cv_deplibs_check_method=pass_all
6473 ;;
6474
6475netbsd*)
6476 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 else
6479 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6480 fi
6481 ;;
6482
6483newos6*)
6484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6485 lt_cv_file_magic_cmd=/usr/bin/file
6486 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6487 ;;
6488
6489*nto* | *qnx*)
6490 lt_cv_deplibs_check_method=pass_all
6491 ;;
6492
6493openbsd*)
6494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6495 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496 else
6497 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6498 fi
6499 ;;
6500
6501osf3* | osf4* | osf5*)
6502 lt_cv_deplibs_check_method=pass_all
6503 ;;
6504
6505rdos*)
6506 lt_cv_deplibs_check_method=pass_all
6507 ;;
6508
6509solaris*)
6510 lt_cv_deplibs_check_method=pass_all
6511 ;;
6512
6513sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6514 lt_cv_deplibs_check_method=pass_all
6515 ;;
6516
6517sysv4 | sysv4.3*)
6518 case $host_vendor in
6519 motorola)
6520 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]'
6521 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6522 ;;
6523 ncr)
6524 lt_cv_deplibs_check_method=pass_all
6525 ;;
6526 sequent)
6527 lt_cv_file_magic_cmd='/bin/file'
6528 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6529 ;;
6530 sni)
6531 lt_cv_file_magic_cmd='/bin/file'
6532 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6533 lt_cv_file_magic_test_file=/lib/libc.so
6534 ;;
6535 siemens)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538 pc)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541 esac
6542 ;;
6543
6544tpf*)
6545 lt_cv_deplibs_check_method=pass_all
6546 ;;
6547esac
6548
6549fi
6550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6551$as_echo "$lt_cv_deplibs_check_method" >&6; }
6552file_magic_cmd=$lt_cv_file_magic_cmd
6553deplibs_check_method=$lt_cv_deplibs_check_method
6554test -z "$deplibs_check_method" && deplibs_check_method=unknown
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567if test -n "$ac_tool_prefix"; then
6568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6569set dummy ${ac_tool_prefix}ar; ac_word=$2
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6572if ${ac_cv_prog_AR+:} false; then :
eff02e4f
ILT
6573 $as_echo_n "(cached) " >&6
6574else
6575 if test -n "$AR"; then
6576 ac_cv_prog_AR="$AR" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6585 ac_cv_prog_AR="${ac_tool_prefix}ar"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590 done
6591IFS=$as_save_IFS
6592
6593fi
6594fi
6595AR=$ac_cv_prog_AR
6596if test -n "$AR"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6598$as_echo "$AR" >&6; }
6599else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
6602fi
6603
6604
6605fi
6606if test -z "$ac_cv_prog_AR"; then
6607 ac_ct_AR=$AR
6608 # Extract the first word of "ar", so it can be a program name with args.
6609set dummy ar; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6612if ${ac_cv_prog_ac_ct_AR+:} false; then :
eff02e4f
ILT
6613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$ac_ct_AR"; then
6616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6625 ac_cv_prog_ac_ct_AR="ar"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635ac_ct_AR=$ac_cv_prog_ac_ct_AR
6636if test -n "$ac_ct_AR"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6638$as_echo "$ac_ct_AR" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644 if test "x$ac_ct_AR" = x; then
6645 AR="false"
6646 else
6647 case $cross_compiling:$ac_tool_warned in
6648yes:)
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6651ac_tool_warned=yes ;;
6652esac
6653 AR=$ac_ct_AR
6654 fi
6655else
6656 AR="$ac_cv_prog_AR"
6657fi
6658
6659test -z "$AR" && AR=ar
6660test -z "$AR_FLAGS" && AR_FLAGS=cru
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672if test -n "$ac_tool_prefix"; then
6673 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6674set dummy ${ac_tool_prefix}strip; ac_word=$2
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6677if ${ac_cv_prog_STRIP+:} false; then :
eff02e4f
ILT
6678 $as_echo_n "(cached) " >&6
6679else
6680 if test -n "$STRIP"; then
6681 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6682else
6683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684for as_dir in $PATH
6685do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6690 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694done
6695 done
6696IFS=$as_save_IFS
6697
6698fi
6699fi
6700STRIP=$ac_cv_prog_STRIP
6701if test -n "$STRIP"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6703$as_echo "$STRIP" >&6; }
6704else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706$as_echo "no" >&6; }
6707fi
6708
6709
6710fi
6711if test -z "$ac_cv_prog_STRIP"; then
6712 ac_ct_STRIP=$STRIP
6713 # Extract the first word of "strip", so it can be a program name with args.
6714set dummy strip; ac_word=$2
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6716$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6717if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
eff02e4f
ILT
6718 $as_echo_n "(cached) " >&6
6719else
6720 if test -n "$ac_ct_STRIP"; then
6721 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6722else
6723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724for as_dir in $PATH
6725do
6726 IFS=$as_save_IFS
6727 test -z "$as_dir" && as_dir=.
6728 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6730 ac_cv_prog_ac_ct_STRIP="strip"
6731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6732 break 2
6733 fi
6734done
6735 done
6736IFS=$as_save_IFS
6737
6738fi
6739fi
6740ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6741if test -n "$ac_ct_STRIP"; then
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6743$as_echo "$ac_ct_STRIP" >&6; }
6744else
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6746$as_echo "no" >&6; }
6747fi
6748
6749 if test "x$ac_ct_STRIP" = x; then
6750 STRIP=":"
6751 else
6752 case $cross_compiling:$ac_tool_warned in
6753yes:)
6754{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6755$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6756ac_tool_warned=yes ;;
6757esac
6758 STRIP=$ac_ct_STRIP
6759 fi
6760else
6761 STRIP="$ac_cv_prog_STRIP"
6762fi
6763
6764test -z "$STRIP" && STRIP=:
6765
6766
6767
6768
6769
6770
6771if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6773set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6776if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
6777 $as_echo_n "(cached) " >&6
6778else
6779 if test -n "$RANLIB"; then
6780 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6781else
6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783for as_dir in $PATH
6784do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6789 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793done
6794 done
6795IFS=$as_save_IFS
6796
6797fi
6798fi
6799RANLIB=$ac_cv_prog_RANLIB
6800if test -n "$RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6802$as_echo "$RANLIB" >&6; }
6803else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805$as_echo "no" >&6; }
6806fi
6807
6808
6809fi
6810if test -z "$ac_cv_prog_RANLIB"; then
6811 ac_ct_RANLIB=$RANLIB
6812 # Extract the first word of "ranlib", so it can be a program name with args.
6813set dummy ranlib; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6816if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$ac_ct_RANLIB"; then
6820 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6829 ac_cv_prog_ac_ct_RANLIB="ranlib"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6840if test -n "$ac_ct_RANLIB"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6842$as_echo "$ac_ct_RANLIB" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848 if test "x$ac_ct_RANLIB" = x; then
6849 RANLIB=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852yes:)
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855ac_tool_warned=yes ;;
6856esac
6857 RANLIB=$ac_ct_RANLIB
6858 fi
6859else
6860 RANLIB="$ac_cv_prog_RANLIB"
6861fi
6862
6863test -z "$RANLIB" && RANLIB=:
6864
6865
6866
6867
6868
6869
6870# Determine commands to create old-style static archives.
6871old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6872old_postinstall_cmds='chmod 644 $oldlib'
6873old_postuninstall_cmds=
6874
6875if test -n "$RANLIB"; then
6876 case $host_os in
6877 openbsd*)
6878 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6879 ;;
6880 *)
6881 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6882 ;;
6883 esac
6884 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6885fi
6886
6887case $host_os in
6888 darwin*)
6889 lock_old_archive_extraction=yes ;;
6890 *)
6891 lock_old_archive_extraction=no ;;
6892esac
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
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# If no C compiler was specified, use CC.
6933LTCC=${LTCC-"$CC"}
6934
6935# If no C compiler flags were specified, use CFLAGS.
6936LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937
6938# Allow CC to be a program name with arguments.
6939compiler=$CC
6940
6941
6942# Check for command to grab the raw symbol name followed by C symbol from nm.
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6944$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6945if ${lt_cv_sys_global_symbol_pipe+:} false; then :
eff02e4f
ILT
6946 $as_echo_n "(cached) " >&6
6947else
6948
6949# These are sane defaults that work on at least a few old systems.
6950# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6951
6952# Character class describing NM global symbol codes.
6953symcode='[BCDEGRST]'
6954
6955# Regexp to match symbols that can be accessed directly from C.
6956sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957
6958# Define system-specific variables.
6959case $host_os in
6960aix*)
6961 symcode='[BCDT]'
6962 ;;
6963cygwin* | mingw* | pw32* | cegcc*)
6964 symcode='[ABCDGISTW]'
6965 ;;
6966hpux*)
6967 if test "$host_cpu" = ia64; then
6968 symcode='[ABCDEGRST]'
6969 fi
6970 ;;
6971irix* | nonstopux*)
6972 symcode='[BCDEGRST]'
6973 ;;
6974osf*)
6975 symcode='[BCDEGQRST]'
6976 ;;
6977solaris*)
6978 symcode='[BDRT]'
6979 ;;
6980sco3.2v5*)
6981 symcode='[DT]'
6982 ;;
6983sysv4.2uw2*)
6984 symcode='[DT]'
6985 ;;
6986sysv5* | sco5v6* | unixware* | OpenUNIX*)
6987 symcode='[ABDT]'
6988 ;;
6989sysv4)
6990 symcode='[DFNSTU]'
6991 ;;
6992esac
6993
6994# If we're using GNU nm, then use its standard symbol codes.
6995case `$NM -V 2>&1` in
6996*GNU* | *'with BFD'*)
6997 symcode='[ABCDGIRSTW]' ;;
6998esac
6999
7000# Transform an extracted symbol line into a proper C declaration.
7001# Some systems (esp. on ia64) link data and code symbols differently,
7002# so use this general approach.
7003lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004
7005# Transform an extracted symbol line into symbol name and symbol address
7006lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7007lt_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'"
7008
7009# Handle CRLF in mingw tool chain
7010opt_cr=
7011case $build_os in
7012mingw*)
7013 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7014 ;;
7015esac
7016
7017# Try without a prefix underscore, then with it.
7018for ac_symprfx in "" "_"; do
7019
7020 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7021 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022
7023 # Write the raw and C identifiers.
7024 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7025 # Fake it for dumpbin and say T for any non-static function
7026 # and D for any global variable.
7027 # Also find C++ and __fastcall symbols from MSVC++,
7028 # which start with @ or ?.
7029 lt_cv_sys_global_symbol_pipe="$AWK '"\
7030" {last_section=section; section=\$ 3};"\
7031" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7032" \$ 0!~/External *\|/{next};"\
7033" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7034" {if(hide[section]) next};"\
7035" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7036" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7037" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7038" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7039" ' prfx=^$ac_symprfx"
7040 else
7041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7042 fi
7043
7044 # Check to see that the pipe works correctly.
7045 pipe_works=no
7046
7047 rm -f conftest*
7048 cat > conftest.$ac_ext <<_LT_EOF
7049#ifdef __cplusplus
7050extern "C" {
7051#endif
7052char nm_test_var;
7053void nm_test_func(void);
7054void nm_test_func(void){}
7055#ifdef __cplusplus
7056}
7057#endif
7058int main(){nm_test_var='a';nm_test_func();return(0);}
7059_LT_EOF
7060
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 # Now try to grab the symbols.
7067 nlist=conftest.nm
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7069 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; } && test -s "$nlist"; then
7073 # Try sorting and uniquifying the output.
7074 if sort "$nlist" | uniq > "$nlist"T; then
7075 mv -f "$nlist"T "$nlist"
7076 else
7077 rm -f "$nlist"T
7078 fi
7079
7080 # Make sure that we snagged all the symbols we need.
7081 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7082 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7083 cat <<_LT_EOF > conftest.$ac_ext
7084#ifdef __cplusplus
7085extern "C" {
7086#endif
7087
7088_LT_EOF
7089 # Now generate the symbol file.
7090 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091
7092 cat <<_LT_EOF >> conftest.$ac_ext
7093
7094/* The mapping between symbol names and symbols. */
7095const struct {
7096 const char *name;
7097 void *address;
7098}
7099lt__PROGRAM__LTX_preloaded_symbols[] =
7100{
7101 { "@PROGRAM@", (void *) 0 },
7102_LT_EOF
7103 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7104 cat <<\_LT_EOF >> conftest.$ac_ext
7105 {0, (void *) 0}
7106};
7107
7108/* This works around a problem in FreeBSD linker */
7109#ifdef FREEBSD_WORKAROUND
7110static const void *lt_preloaded_setup() {
7111 return lt__PROGRAM__LTX_preloaded_symbols;
7112}
7113#endif
7114
7115#ifdef __cplusplus
7116}
7117#endif
7118_LT_EOF
7119 # Now try linking the two files.
7120 mv conftest.$ac_objext conftstm.$ac_objext
7121 lt_save_LIBS="$LIBS"
7122 lt_save_CFLAGS="$CFLAGS"
7123 LIBS="conftstm.$ac_objext"
7124 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7126 (eval $ac_link) 2>&5
7127 ac_status=$?
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7130 pipe_works=yes
7131 fi
7132 LIBS="$lt_save_LIBS"
7133 CFLAGS="$lt_save_CFLAGS"
7134 else
7135 echo "cannot find nm_test_func in $nlist" >&5
7136 fi
7137 else
7138 echo "cannot find nm_test_var in $nlist" >&5
7139 fi
7140 else
7141 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7142 fi
7143 else
7144 echo "$progname: failed program was:" >&5
7145 cat conftest.$ac_ext >&5
7146 fi
7147 rm -rf conftest* conftst*
7148
7149 # Do not use the global_symbol_pipe unless it works.
7150 if test "$pipe_works" = yes; then
7151 break
7152 else
7153 lt_cv_sys_global_symbol_pipe=
7154 fi
7155done
7156
7157fi
7158
7159if test -z "$lt_cv_sys_global_symbol_pipe"; then
7160 lt_cv_sys_global_symbol_to_cdecl=
7161fi
7162if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7164$as_echo "failed" >&6; }
7165else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7167$as_echo "ok" >&6; }
7168fi
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
eff02e4f
ILT
7189
7190
7191# Check whether --enable-libtool-lock was given.
7192if test "${enable_libtool_lock+set}" = set; then :
7193 enableval=$enable_libtool_lock;
7194fi
7195
7196test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197
7198# Some flags need to be propagated to the compiler or linker for good
7199# libtool support.
7200case $host in
7201ia64-*-hpux*)
7202 # Find out which ABI we are using.
7203 echo 'int i;' > conftest.$ac_ext
7204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7205 (eval $ac_compile) 2>&5
7206 ac_status=$?
7207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7208 test $ac_status = 0; }; then
7209 case `/usr/bin/file conftest.$ac_objext` in
7210 *ELF-32*)
7211 HPUX_IA64_MODE="32"
7212 ;;
7213 *ELF-64*)
7214 HPUX_IA64_MODE="64"
7215 ;;
7216 esac
7217 fi
7218 rm -rf conftest*
7219 ;;
7220*-*-irix6*)
7221 # Find out which ABI we are using.
7222 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 if test "$lt_cv_prog_gnu_ld" = yes; then
7229 case `/usr/bin/file conftest.$ac_objext` in
7230 *32-bit*)
7231 LD="${LD-ld} -melf32bsmip"
7232 ;;
7233 *N32*)
7234 LD="${LD-ld} -melf32bmipn32"
7235 ;;
7236 *64-bit*)
7237 LD="${LD-ld} -melf64bmip"
7238 ;;
7239 esac
7240 else
7241 case `/usr/bin/file conftest.$ac_objext` in
7242 *32-bit*)
7243 LD="${LD-ld} -32"
7244 ;;
7245 *N32*)
7246 LD="${LD-ld} -n32"
7247 ;;
7248 *64-bit*)
7249 LD="${LD-ld} -64"
7250 ;;
7251 esac
7252 fi
7253 fi
7254 rm -rf conftest*
7255 ;;
7256
3cbe17f7 7257x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
eff02e4f
ILT
7258s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7259 # Find out which ABI we are using.
7260 echo 'int i;' > conftest.$ac_ext
7261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7262 (eval $ac_compile) 2>&5
7263 ac_status=$?
7264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7265 test $ac_status = 0; }; then
7266 case `/usr/bin/file conftest.o` in
7267 *32-bit*)
7268 case $host in
7269 x86_64-*kfreebsd*-gnu)
7270 LD="${LD-ld} -m elf_i386_fbsd"
7271 ;;
7272 x86_64-*linux*)
7273 case `/usr/bin/file conftest.o` in
7274 *x86-64*)
7275 LD="${LD-ld} -m elf32_x86_64"
7276 ;;
7277 *)
7278 LD="${LD-ld} -m elf_i386"
7279 ;;
7280 esac
7281 ;;
3cbe17f7
AM
7282 powerpc64le-*linux*)
7283 LD="${LD-ld} -m elf32lppclinux"
7284 ;;
7285 powerpc64-*linux*)
eff02e4f
ILT
7286 LD="${LD-ld} -m elf32ppclinux"
7287 ;;
7288 s390x-*linux*)
7289 LD="${LD-ld} -m elf_s390"
7290 ;;
7291 sparc64-*linux*)
7292 LD="${LD-ld} -m elf32_sparc"
7293 ;;
7294 esac
7295 ;;
7296 *64-bit*)
7297 case $host in
7298 x86_64-*kfreebsd*-gnu)
7299 LD="${LD-ld} -m elf_x86_64_fbsd"
7300 ;;
7301 x86_64-*linux*)
7302 LD="${LD-ld} -m elf_x86_64"
7303 ;;
3cbe17f7
AM
7304 powerpcle-*linux*)
7305 LD="${LD-ld} -m elf64lppc"
7306 ;;
7307 powerpc-*linux*)
eff02e4f
ILT
7308 LD="${LD-ld} -m elf64ppc"
7309 ;;
7310 s390*-*linux*|s390*-*tpf*)
7311 LD="${LD-ld} -m elf64_s390"
7312 ;;
7313 sparc*-*linux*)
7314 LD="${LD-ld} -m elf64_sparc"
7315 ;;
7316 esac
7317 ;;
7318 esac
7319 fi
7320 rm -rf conftest*
7321 ;;
7322
7323*-*-sco3.2v5*)
7324 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7325 SAVE_CFLAGS="$CFLAGS"
7326 CFLAGS="$CFLAGS -belf"
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7328$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7329if ${lt_cv_cc_needs_belf+:} false; then :
eff02e4f
ILT
7330 $as_echo_n "(cached) " >&6
7331else
7332 ac_ext=c
7333ac_cpp='$CPP $CPPFLAGS'
7334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7336ac_compiler_gnu=$ac_cv_c_compiler_gnu
7337
7338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339/* end confdefs.h. */
7340
7341int
7342main ()
7343{
7344
7345 ;
7346 return 0;
7347}
7348_ACEOF
7349if ac_fn_c_try_link "$LINENO"; then :
7350 lt_cv_cc_needs_belf=yes
7351else
7352 lt_cv_cc_needs_belf=no
7353fi
7354rm -f core conftest.err conftest.$ac_objext \
7355 conftest$ac_exeext conftest.$ac_ext
7356 ac_ext=c
7357ac_cpp='$CPP $CPPFLAGS'
7358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7360ac_compiler_gnu=$ac_cv_c_compiler_gnu
7361
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7364$as_echo "$lt_cv_cc_needs_belf" >&6; }
7365 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7366 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7367 CFLAGS="$SAVE_CFLAGS"
7368 fi
7369 ;;
7370sparc*-*solaris*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.o` in
7379 *64-bit*)
7380 case $lt_cv_prog_gnu_ld in
7381 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7382 *)
7383 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7384 LD="${LD-ld} -64"
7385 fi
7386 ;;
7387 esac
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393esac
7394
7395need_locks="$enable_libtool_lock"
7396
7397
7398 case $host_os in
7399 rhapsody* | darwin*)
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7402set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7405if ${ac_cv_prog_DSYMUTIL+:} false; then :
eff02e4f
ILT
7406 $as_echo_n "(cached) " >&6
7407else
7408 if test -n "$DSYMUTIL"; then
7409 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7410else
7411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412for as_dir in $PATH
7413do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
7418 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422done
7423 done
7424IFS=$as_save_IFS
7425
7426fi
7427fi
7428DSYMUTIL=$ac_cv_prog_DSYMUTIL
7429if test -n "$DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7431$as_echo "$DSYMUTIL" >&6; }
7432else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434$as_echo "no" >&6; }
7435fi
7436
7437
7438fi
7439if test -z "$ac_cv_prog_DSYMUTIL"; then
7440 ac_ct_DSYMUTIL=$DSYMUTIL
7441 # Extract the first word of "dsymutil", so it can be a program name with args.
7442set dummy dsymutil; ac_word=$2
7443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7445if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
eff02e4f
ILT
7446 $as_echo_n "(cached) " >&6
7447else
d4c059d5
ILT
7448 if test -n "$ac_ct_DSYMUTIL"; then
7449 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
eff02e4f
ILT
7450else
7451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452for as_dir in $PATH
7453do
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7458 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
eff02e4f
ILT
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7461 fi
7462done
7463 done
7464IFS=$as_save_IFS
7465
7466fi
7467fi
d4c059d5
ILT
7468ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7469if test -n "$ac_ct_DSYMUTIL"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7471$as_echo "$ac_ct_DSYMUTIL" >&6; }
eff02e4f
ILT
7472else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474$as_echo "no" >&6; }
7475fi
7476
d4c059d5
ILT
7477 if test "x$ac_ct_DSYMUTIL" = x; then
7478 DSYMUTIL=":"
eff02e4f
ILT
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481yes:)
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484ac_tool_warned=yes ;;
7485esac
d4c059d5 7486 DSYMUTIL=$ac_ct_DSYMUTIL
eff02e4f
ILT
7487 fi
7488else
d4c059d5 7489 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
eff02e4f
ILT
7490fi
7491
7492 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7493 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7494set dummy ${ac_tool_prefix}nmedit; ac_word=$2
eff02e4f
ILT
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7497if ${ac_cv_prog_NMEDIT+:} false; then :
eff02e4f
ILT
7498 $as_echo_n "(cached) " >&6
7499else
d4c059d5
ILT
7500 if test -n "$NMEDIT"; then
7501 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
eff02e4f
ILT
7502else
7503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504for as_dir in $PATH
7505do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7510 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
eff02e4f
ILT
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514done
7515 done
7516IFS=$as_save_IFS
7517
7518fi
7519fi
d4c059d5
ILT
7520NMEDIT=$ac_cv_prog_NMEDIT
7521if test -n "$NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7523$as_echo "$NMEDIT" >&6; }
eff02e4f
ILT
7524else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526$as_echo "no" >&6; }
7527fi
7528
7529
7530fi
d4c059d5
ILT
7531if test -z "$ac_cv_prog_NMEDIT"; then
7532 ac_ct_NMEDIT=$NMEDIT
7533 # Extract the first word of "nmedit", so it can be a program name with args.
7534set dummy nmedit; ac_word=$2
eff02e4f
ILT
7535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7537if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
eff02e4f
ILT
7538 $as_echo_n "(cached) " >&6
7539else
d4c059d5
ILT
7540 if test -n "$ac_ct_NMEDIT"; then
7541 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
eff02e4f
ILT
7542else
7543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544for as_dir in $PATH
7545do
7546 IFS=$as_save_IFS
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7550 ac_cv_prog_ac_ct_NMEDIT="nmedit"
eff02e4f
ILT
7551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552 break 2
7553 fi
7554done
7555 done
7556IFS=$as_save_IFS
7557
7558fi
7559fi
d4c059d5
ILT
7560ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7561if test -n "$ac_ct_NMEDIT"; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7563$as_echo "$ac_ct_NMEDIT" >&6; }
eff02e4f
ILT
7564else
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566$as_echo "no" >&6; }
7567fi
7568
d4c059d5
ILT
7569 if test "x$ac_ct_NMEDIT" = x; then
7570 NMEDIT=":"
eff02e4f
ILT
7571 else
7572 case $cross_compiling:$ac_tool_warned in
7573yes:)
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576ac_tool_warned=yes ;;
7577esac
d4c059d5 7578 NMEDIT=$ac_ct_NMEDIT
eff02e4f
ILT
7579 fi
7580else
d4c059d5 7581 NMEDIT="$ac_cv_prog_NMEDIT"
eff02e4f
ILT
7582fi
7583
7584 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7585 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7586set dummy ${ac_tool_prefix}lipo; ac_word=$2
eff02e4f
ILT
7587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7589if ${ac_cv_prog_LIPO+:} false; then :
eff02e4f
ILT
7590 $as_echo_n "(cached) " >&6
7591else
d4c059d5
ILT
7592 if test -n "$LIPO"; then
7593 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
eff02e4f
ILT
7594else
7595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596for as_dir in $PATH
7597do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7602 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
eff02e4f
ILT
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606done
7607 done
7608IFS=$as_save_IFS
7609
7610fi
7611fi
d4c059d5
ILT
7612LIPO=$ac_cv_prog_LIPO
7613if test -n "$LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7615$as_echo "$LIPO" >&6; }
eff02e4f
ILT
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620
7621
7622fi
d4c059d5
ILT
7623if test -z "$ac_cv_prog_LIPO"; then
7624 ac_ct_LIPO=$LIPO
7625 # Extract the first word of "lipo", so it can be a program name with args.
7626set dummy lipo; ac_word=$2
eff02e4f
ILT
7627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7629if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
eff02e4f
ILT
7630 $as_echo_n "(cached) " >&6
7631else
d4c059d5
ILT
7632 if test -n "$ac_ct_LIPO"; then
7633 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
eff02e4f
ILT
7634else
7635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7636for as_dir in $PATH
7637do
7638 IFS=$as_save_IFS
7639 test -z "$as_dir" && as_dir=.
7640 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7642 ac_cv_prog_ac_ct_LIPO="lipo"
eff02e4f
ILT
7643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7644 break 2
7645 fi
7646done
7647 done
7648IFS=$as_save_IFS
7649
7650fi
7651fi
d4c059d5
ILT
7652ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7653if test -n "$ac_ct_LIPO"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7655$as_echo "$ac_ct_LIPO" >&6; }
eff02e4f
ILT
7656else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
d4c059d5
ILT
7661 if test "x$ac_ct_LIPO" = x; then
7662 LIPO=":"
eff02e4f
ILT
7663 else
7664 case $cross_compiling:$ac_tool_warned in
7665yes:)
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7668ac_tool_warned=yes ;;
7669esac
d4c059d5 7670 LIPO=$ac_ct_LIPO
eff02e4f
ILT
7671 fi
7672else
d4c059d5 7673 LIPO="$ac_cv_prog_LIPO"
eff02e4f
ILT
7674fi
7675
d4c059d5
ILT
7676 if test -n "$ac_tool_prefix"; then
7677 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7678set dummy ${ac_tool_prefix}otool; ac_word=$2
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7681if ${ac_cv_prog_OTOOL+:} false; then :
eff02e4f
ILT
7682 $as_echo_n "(cached) " >&6
7683else
d4c059d5
ILT
7684 if test -n "$OTOOL"; then
7685 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
eff02e4f 7686else
d4c059d5
ILT
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7694 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698done
7699 done
7700IFS=$as_save_IFS
eff02e4f 7701
eff02e4f 7702fi
eff02e4f 7703fi
d4c059d5
ILT
7704OTOOL=$ac_cv_prog_OTOOL
7705if test -n "$OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7707$as_echo "$OTOOL" >&6; }
7708else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
eff02e4f 7711fi
eff02e4f 7712
d4c059d5 7713
eff02e4f 7714fi
d4c059d5
ILT
7715if test -z "$ac_cv_prog_OTOOL"; then
7716 ac_ct_OTOOL=$OTOOL
7717 # Extract the first word of "otool", so it can be a program name with args.
7718set dummy otool; ac_word=$2
7719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7721if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
eff02e4f
ILT
7722 $as_echo_n "(cached) " >&6
7723else
d4c059d5
ILT
7724 if test -n "$ac_ct_OTOOL"; then
7725 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7726else
7727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7728for as_dir in $PATH
eff02e4f 7729do
d4c059d5
ILT
7730 IFS=$as_save_IFS
7731 test -z "$as_dir" && as_dir=.
7732 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7734 ac_cv_prog_ac_ct_OTOOL="otool"
7735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7736 break 2
7737 fi
7738done
7739 done
7740IFS=$as_save_IFS
eff02e4f 7741
d4c059d5
ILT
7742fi
7743fi
7744ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7745if test -n "$ac_ct_OTOOL"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7747$as_echo "$ac_ct_OTOOL" >&6; }
eff02e4f 7748else
d4c059d5
ILT
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
eff02e4f 7751fi
eff02e4f 7752
d4c059d5
ILT
7753 if test "x$ac_ct_OTOOL" = x; then
7754 OTOOL=":"
7755 else
7756 case $cross_compiling:$ac_tool_warned in
7757yes:)
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7760ac_tool_warned=yes ;;
7761esac
7762 OTOOL=$ac_ct_OTOOL
7763 fi
eff02e4f 7764else
d4c059d5 7765 OTOOL="$ac_cv_prog_OTOOL"
eff02e4f 7766fi
eff02e4f 7767
d4c059d5
ILT
7768 if test -n "$ac_tool_prefix"; then
7769 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7770set dummy ${ac_tool_prefix}otool64; ac_word=$2
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7773if ${ac_cv_prog_OTOOL64+:} false; then :
d4c059d5
ILT
7774 $as_echo_n "(cached) " >&6
7775else
7776 if test -n "$OTOOL64"; then
7777 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7778else
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7786 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
eff02e4f 7790done
d4c059d5
ILT
7791 done
7792IFS=$as_save_IFS
7793
7794fi
7795fi
7796OTOOL64=$ac_cv_prog_OTOOL64
7797if test -n "$OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7799$as_echo "$OTOOL64" >&6; }
7800else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
eff02e4f
ILT
7803fi
7804
eff02e4f
ILT
7805
7806fi
d4c059d5
ILT
7807if test -z "$ac_cv_prog_OTOOL64"; then
7808 ac_ct_OTOOL64=$OTOOL64
7809 # Extract the first word of "otool64", so it can be a program name with args.
7810set dummy otool64; ac_word=$2
7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7813if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d4c059d5 7814 $as_echo_n "(cached) " >&6
eff02e4f 7815else
d4c059d5
ILT
7816 if test -n "$ac_ct_OTOOL64"; then
7817 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7818else
7819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820for as_dir in $PATH
eff02e4f 7821do
d4c059d5
ILT
7822 IFS=$as_save_IFS
7823 test -z "$as_dir" && as_dir=.
7824 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7826 ac_cv_prog_ac_ct_OTOOL64="otool64"
7827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830done
7831 done
7832IFS=$as_save_IFS
eff02e4f 7833
d4c059d5
ILT
7834fi
7835fi
7836ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7837if test -n "$ac_ct_OTOOL64"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7839$as_echo "$ac_ct_OTOOL64" >&6; }
eff02e4f 7840else
d4c059d5
ILT
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842$as_echo "no" >&6; }
eff02e4f 7843fi
eff02e4f 7844
d4c059d5
ILT
7845 if test "x$ac_ct_OTOOL64" = x; then
7846 OTOOL64=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849yes:)
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852ac_tool_warned=yes ;;
7853esac
7854 OTOOL64=$ac_ct_OTOOL64
7855 fi
eff02e4f 7856else
d4c059d5 7857 OTOOL64="$ac_cv_prog_OTOOL64"
eff02e4f 7858fi
eff02e4f 7859
eff02e4f 7860
eff02e4f 7861
eff02e4f
ILT
7862
7863
eff02e4f 7864
eff02e4f 7865
eff02e4f 7866
eff02e4f 7867
eff02e4f 7868
eff02e4f 7869
eff02e4f 7870
eff02e4f 7871
eff02e4f 7872
eff02e4f 7873
eff02e4f 7874
d4c059d5
ILT
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7887$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7888if ${lt_cv_apple_cc_single_mod+:} false; then :
d4c059d5 7889 $as_echo_n "(cached) " >&6
eff02e4f 7890else
d4c059d5
ILT
7891 lt_cv_apple_cc_single_mod=no
7892 if test -z "${LT_MULTI_MODULE}"; then
7893 # By default we will add the -single_module flag. You can override
7894 # by either setting the environment variable LT_MULTI_MODULE
7895 # non-empty at configure time, or by adding -multi_module to the
7896 # link flags.
7897 rm -rf libconftest.dylib*
7898 echo "int foo(void){return 1;}" > conftest.c
7899 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7900-dynamiclib -Wl,-single_module conftest.c" >&5
7901 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7902 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7903 _lt_result=$?
7904 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7905 lt_cv_apple_cc_single_mod=yes
7906 else
7907 cat conftest.err >&5
7908 fi
7909 rm -rf libconftest.dylib*
7910 rm -f conftest.*
7911 fi
7912fi
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7914$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7916$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7917if ${lt_cv_ld_exported_symbols_list+:} false; then :
d4c059d5
ILT
7918 $as_echo_n "(cached) " >&6
7919else
7920 lt_cv_ld_exported_symbols_list=no
7921 save_LDFLAGS=$LDFLAGS
7922 echo "_main" > conftest.sym
7923 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f 7925/* end confdefs.h. */
eff02e4f 7926
eff02e4f
ILT
7927int
7928main ()
7929{
d4c059d5
ILT
7930
7931 ;
eff02e4f
ILT
7932 return 0;
7933}
7934_ACEOF
d4c059d5
ILT
7935if ac_fn_c_try_link "$LINENO"; then :
7936 lt_cv_ld_exported_symbols_list=yes
eff02e4f 7937else
d4c059d5 7938 lt_cv_ld_exported_symbols_list=no
eff02e4f 7939fi
d4c059d5
ILT
7940rm -f core conftest.err conftest.$ac_objext \
7941 conftest$ac_exeext conftest.$ac_ext
7942 LDFLAGS="$save_LDFLAGS"
eff02e4f
ILT
7943
7944fi
d4c059d5
ILT
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7946$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7948$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7949if ${lt_cv_ld_force_load+:} false; then :
d4c059d5
ILT
7950 $as_echo_n "(cached) " >&6
7951else
7952 lt_cv_ld_force_load=no
7953 cat > conftest.c << _LT_EOF
7954int forced_loaded() { return 2;}
7955_LT_EOF
7956 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7957 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7958 echo "$AR cru libconftest.a conftest.o" >&5
7959 $AR cru libconftest.a conftest.o 2>&5
7960 cat > conftest.c << _LT_EOF
7961int main() { return 0;}
7962_LT_EOF
7963 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7964 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7965 _lt_result=$?
7966 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7967 lt_cv_ld_force_load=yes
7968 else
7969 cat conftest.err >&5
7970 fi
7971 rm -f conftest.err libconftest.a conftest conftest.c
7972 rm -rf conftest.dSYM
eff02e4f
ILT
7973
7974fi
d4c059d5
ILT
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7976$as_echo "$lt_cv_ld_force_load" >&6; }
7977 case $host_os in
7978 rhapsody* | darwin1.[012])
7979 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7980 darwin1.*)
7981 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7982 darwin*) # darwin 5.x on
7983 # if running on 10.5 or later, the deployment target defaults
7984 # to the OS version, if on x86, and 10.4, the deployment
7985 # target defaults to 10.4. Don't you love it?
7986 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7987 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7988 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7989 10.[012][,.]*)
d4c059d5
ILT
7990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7991 10.*)
7992 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7993 esac
7994 ;;
7995 esac
7996 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7997 _lt_dar_single_mod='$single_module'
7998 fi
7999 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8000 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8001 else
8002 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8003 fi
8004 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8005 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 else
8007 _lt_dsymutil=
8008 fi
8009 ;;
8010 esac
eff02e4f
ILT
8011
8012for ac_header in dlfcn.h
8013do :
8014 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8015"
22e05272 8016if test "x$ac_cv_header_dlfcn_h" = xyes; then :
eff02e4f
ILT
8017 cat >>confdefs.h <<_ACEOF
8018#define HAVE_DLFCN_H 1
8019_ACEOF
8020
8021fi
8022
8023done
8024
8025
8026
8027
8028
8029# Set options
7e5c7547
UW
8030
8031
8032
8033 enable_dlopen=no
8034
8035
8036 enable_win32_dll=no
8037
8038
8039 # Check whether --enable-shared was given.
eff02e4f
ILT
8040if test "${enable_shared+set}" = set; then :
8041 enableval=$enable_shared; p=${PACKAGE-default}
8042 case $enableval in
8043 yes) enable_shared=yes ;;
8044 no) enable_shared=no ;;
8045 *)
8046 enable_shared=no
8047 # Look at the argument we got. We use all the common list separators.
8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8049 for pkg in $enableval; do
8050 IFS="$lt_save_ifs"
8051 if test "X$pkg" = "X$p"; then
8052 enable_shared=yes
8053 fi
8054 done
8055 IFS="$lt_save_ifs"
8056 ;;
8057 esac
8058else
7e5c7547 8059 enable_shared=yes
eff02e4f
ILT
8060fi
8061
8062
8063
8064
8065
8066
8067
8068
8069
eff02e4f
ILT
8070 # Check whether --enable-static was given.
8071if test "${enable_static+set}" = set; then :
8072 enableval=$enable_static; p=${PACKAGE-default}
8073 case $enableval in
8074 yes) enable_static=yes ;;
8075 no) enable_static=no ;;
8076 *)
8077 enable_static=no
8078 # Look at the argument we got. We use all the common list separators.
8079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8080 for pkg in $enableval; do
8081 IFS="$lt_save_ifs"
8082 if test "X$pkg" = "X$p"; then
8083 enable_static=yes
8084 fi
8085 done
8086 IFS="$lt_save_ifs"
8087 ;;
8088 esac
8089else
8090 enable_static=yes
8091fi
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102# Check whether --with-pic was given.
8103if test "${with_pic+set}" = set; then :
8104 withval=$with_pic; pic_mode="$withval"
8105else
8106 pic_mode=default
8107fi
8108
8109
8110test -z "$pic_mode" && pic_mode=default
8111
8112
8113
8114
8115
8116
8117
8118 # Check whether --enable-fast-install was given.
8119if test "${enable_fast_install+set}" = set; then :
8120 enableval=$enable_fast_install; p=${PACKAGE-default}
8121 case $enableval in
8122 yes) enable_fast_install=yes ;;
8123 no) enable_fast_install=no ;;
8124 *)
8125 enable_fast_install=no
8126 # Look at the argument we got. We use all the common list separators.
8127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8128 for pkg in $enableval; do
8129 IFS="$lt_save_ifs"
8130 if test "X$pkg" = "X$p"; then
8131 enable_fast_install=yes
8132 fi
8133 done
8134 IFS="$lt_save_ifs"
8135 ;;
8136 esac
8137else
8138 enable_fast_install=yes
8139fi
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151# This can be used to rebuild libtool when needed
8152LIBTOOL_DEPS="$ltmain"
8153
8154# Always use our own libtool.
8155LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182test -z "$LN_S" && LN_S="ln -s"
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197if test -n "${ZSH_VERSION+set}" ; then
8198 setopt NO_GLOB_SUBST
8199fi
8200
8201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8202$as_echo_n "checking for objdir... " >&6; }
22e05272 8203if ${lt_cv_objdir+:} false; then :
eff02e4f
ILT
8204 $as_echo_n "(cached) " >&6
8205else
8206 rm -f .libs 2>/dev/null
8207mkdir .libs 2>/dev/null
8208if test -d .libs; then
8209 lt_cv_objdir=.libs
8210else
8211 # MS-DOS does not allow filenames that begin with a dot.
8212 lt_cv_objdir=_libs
8213fi
8214rmdir .libs 2>/dev/null
8215fi
8216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8217$as_echo "$lt_cv_objdir" >&6; }
8218objdir=$lt_cv_objdir
8219
8220
8221
8222
8223
8224cat >>confdefs.h <<_ACEOF
8225#define LT_OBJDIR "$lt_cv_objdir/"
8226_ACEOF
8227
8228
8229
8230
8231case $host_os in
8232aix3*)
8233 # AIX sometimes has problems with the GCC collect2 program. For some
8234 # reason, if we set the COLLECT_NAMES environment variable, the problems
8235 # vanish in a puff of smoke.
8236 if test "X${COLLECT_NAMES+set}" != Xset; then
8237 COLLECT_NAMES=
8238 export COLLECT_NAMES
8239 fi
8240 ;;
8241esac
8242
8243# Global variables:
8244ofile=libtool
8245can_build_shared=yes
8246
8247# All known linkers require a `.a' archive for static linking (except MSVC,
8248# which needs '.lib').
8249libext=a
8250
8251with_gnu_ld="$lt_cv_prog_gnu_ld"
8252
8253old_CC="$CC"
8254old_CFLAGS="$CFLAGS"
8255
8256# Set sane defaults for various variables
8257test -z "$CC" && CC=cc
8258test -z "$LTCC" && LTCC=$CC
8259test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8260test -z "$LD" && LD=ld
8261test -z "$ac_objext" && ac_objext=o
8262
8263for cc_temp in $compiler""; do
8264 case $cc_temp in
8265 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8266 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8267 \-*) ;;
8268 *) break;;
8269 esac
8270done
8271cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8272
8273
8274# Only perform the check for file, if the check method requires it
8275test -z "$MAGIC_CMD" && MAGIC_CMD=file
8276case $deplibs_check_method in
8277file_magic*)
8278 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8280$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8281if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8282 $as_echo_n "(cached) " >&6
8283else
8284 case $MAGIC_CMD in
8285[\\/*] | ?:[\\/]*)
8286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8287 ;;
8288*)
8289 lt_save_MAGIC_CMD="$MAGIC_CMD"
8290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8291 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8292 for ac_dir in $ac_dummy; do
8293 IFS="$lt_save_ifs"
8294 test -z "$ac_dir" && ac_dir=.
8295 if test -f $ac_dir/${ac_tool_prefix}file; then
8296 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8297 if test -n "$file_magic_test_file"; then
8298 case $deplibs_check_method in
8299 "file_magic "*)
8300 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8303 $EGREP "$file_magic_regex" > /dev/null; then
8304 :
8305 else
8306 cat <<_LT_EOF 1>&2
8307
8308*** Warning: the command libtool uses to detect shared libraries,
8309*** $file_magic_cmd, produces output that libtool cannot recognize.
8310*** The result is that libtool may fail to recognize shared libraries
8311*** as such. This will affect the creation of libtool libraries that
8312*** depend on shared libraries, but programs linked with such libtool
8313*** libraries will work regardless of this problem. Nevertheless, you
8314*** may want to report the problem to your system manager and/or to
8315*** bug-libtool@gnu.org
8316
8317_LT_EOF
8318 fi ;;
8319 esac
8320 fi
8321 break
8322 fi
8323 done
8324 IFS="$lt_save_ifs"
8325 MAGIC_CMD="$lt_save_MAGIC_CMD"
8326 ;;
8327esac
8328fi
8329
8330MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8331if test -n "$MAGIC_CMD"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8333$as_echo "$MAGIC_CMD" >&6; }
8334else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336$as_echo "no" >&6; }
8337fi
8338
8339
8340
8341
8342
8343if test -z "$lt_cv_path_MAGIC_CMD"; then
8344 if test -n "$ac_tool_prefix"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8346$as_echo_n "checking for file... " >&6; }
22e05272 8347if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8348 $as_echo_n "(cached) " >&6
8349else
8350 case $MAGIC_CMD in
8351[\\/*] | ?:[\\/]*)
8352 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8353 ;;
8354*)
8355 lt_save_MAGIC_CMD="$MAGIC_CMD"
8356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8357 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8358 for ac_dir in $ac_dummy; do
8359 IFS="$lt_save_ifs"
8360 test -z "$ac_dir" && ac_dir=.
8361 if test -f $ac_dir/file; then
8362 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8363 if test -n "$file_magic_test_file"; then
8364 case $deplibs_check_method in
8365 "file_magic "*)
8366 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8367 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8368 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8369 $EGREP "$file_magic_regex" > /dev/null; then
8370 :
8371 else
8372 cat <<_LT_EOF 1>&2
8373
8374*** Warning: the command libtool uses to detect shared libraries,
8375*** $file_magic_cmd, produces output that libtool cannot recognize.
8376*** The result is that libtool may fail to recognize shared libraries
8377*** as such. This will affect the creation of libtool libraries that
8378*** depend on shared libraries, but programs linked with such libtool
8379*** libraries will work regardless of this problem. Nevertheless, you
8380*** may want to report the problem to your system manager and/or to
8381*** bug-libtool@gnu.org
8382
8383_LT_EOF
8384 fi ;;
8385 esac
8386 fi
8387 break
8388 fi
8389 done
8390 IFS="$lt_save_ifs"
8391 MAGIC_CMD="$lt_save_MAGIC_CMD"
8392 ;;
8393esac
8394fi
8395
8396MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8397if test -n "$MAGIC_CMD"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8399$as_echo "$MAGIC_CMD" >&6; }
8400else
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
8403fi
8404
8405
8406 else
8407 MAGIC_CMD=:
8408 fi
8409fi
8410
8411 fi
8412 ;;
8413esac
8414
8415# Use C for the default configuration in the libtool script
8416
8417lt_save_CC="$CC"
8418ac_ext=c
8419ac_cpp='$CPP $CPPFLAGS'
8420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8422ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423
8424
8425# Source file extension for C test sources.
8426ac_ext=c
8427
8428# Object file extension for compiled C test sources.
8429objext=o
8430objext=$objext
8431
8432# Code to be used in simple compile tests
8433lt_simple_compile_test_code="int some_variable = 0;"
8434
8435# Code to be used in simple link tests
8436lt_simple_link_test_code='int main(){return(0);}'
8437
8438
8439
8440
8441
8442
8443
8444# If no C compiler was specified, use CC.
8445LTCC=${LTCC-"$CC"}
8446
8447# If no C compiler flags were specified, use CFLAGS.
8448LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8449
8450# Allow CC to be a program name with arguments.
8451compiler=$CC
8452
8453# Save the default compiler, since it gets overwritten when the other
8454# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8455compiler_DEFAULT=$CC
8456
8457# save warnings/boilerplate of simple test code
8458ac_outfile=conftest.$ac_objext
8459echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461_lt_compiler_boilerplate=`cat conftest.err`
8462$RM conftest*
8463
8464ac_outfile=conftest.$ac_objext
8465echo "$lt_simple_link_test_code" >conftest.$ac_ext
8466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8467_lt_linker_boilerplate=`cat conftest.err`
8468$RM -r conftest*
8469
8470
8471## CAVEAT EMPTOR:
8472## There is no encapsulation within the following macros, do not change
8473## the running order or otherwise move them around unless you know exactly
8474## what you are doing...
8475if test -n "$compiler"; then
8476
8477lt_prog_compiler_no_builtin_flag=
8478
8479if test "$GCC" = yes; then
8480 case $cc_basename in
8481 nvcc*)
8482 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8483 *)
8484 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8485 esac
8486
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8488$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8489if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
eff02e4f
ILT
8490 $as_echo_n "(cached) " >&6
8491else
8492 lt_cv_prog_compiler_rtti_exceptions=no
8493 ac_outfile=conftest.$ac_objext
8494 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8495 lt_compiler_flag="-fno-rtti -fno-exceptions"
8496 # Insert the option either (1) after the last *FLAGS variable, or
8497 # (2) before a word containing "conftest.", or (3) at the end.
8498 # Note that $ac_compile itself does not contain backslashes and begins
8499 # with a dollar sign (not a hyphen), so the echo should work correctly.
8500 # The option is referenced via a variable to avoid confusing sed.
8501 lt_compile=`echo "$ac_compile" | $SED \
8502 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504 -e 's:$: $lt_compiler_flag:'`
8505 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506 (eval "$lt_compile" 2>conftest.err)
8507 ac_status=$?
8508 cat conftest.err >&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 if (exit $ac_status) && test -s "$ac_outfile"; then
8511 # The compiler can only warn and ignore the option if not recognized
8512 # So say no if there are warnings other than the usual output.
8513 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8514 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8515 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8516 lt_cv_prog_compiler_rtti_exceptions=yes
8517 fi
8518 fi
8519 $RM conftest*
8520
8521fi
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8523$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8524
8525if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8526 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8527else
8528 :
8529fi
8530
8531fi
8532
8533
8534
8535
8536
8537
8538 lt_prog_compiler_wl=
8539lt_prog_compiler_pic=
8540lt_prog_compiler_static=
8541
8542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8543$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8544
8545 if test "$GCC" = yes; then
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_static='-static'
8548
8549 case $host_os in
8550 aix*)
8551 # All AIX code is PIC.
8552 if test "$host_cpu" = ia64; then
8553 # AIX 5 now supports IA64 processor
8554 lt_prog_compiler_static='-Bstatic'
8555 fi
772a71a9 8556 lt_prog_compiler_pic='-fPIC'
eff02e4f
ILT
8557 ;;
8558
8559 amigaos*)
8560 case $host_cpu in
8561 powerpc)
8562 # see comment about AmigaOS4 .so support
8563 lt_prog_compiler_pic='-fPIC'
8564 ;;
8565 m68k)
8566 # FIXME: we need at least 68020 code to build shared libraries, but
8567 # adding the `-m68020' flag to GCC prevents building anything better,
8568 # like `-m68040'.
8569 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8570 ;;
8571 esac
8572 ;;
8573
8574 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8575 # PIC is the default for these OSes.
8576 ;;
8577
8578 mingw* | cygwin* | pw32* | os2* | cegcc*)
8579 # This hack is so that the source file can tell whether it is being
8580 # built for inclusion in a dll (and should export symbols for example).
8581 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8582 # (--disable-auto-import) libraries
8583 lt_prog_compiler_pic='-DDLL_EXPORT'
8584 ;;
8585
8586 darwin* | rhapsody*)
8587 # PIC is the default on this platform
8588 # Common symbols not allowed in MH_DYLIB files
8589 lt_prog_compiler_pic='-fno-common'
8590 ;;
8591
8592 haiku*)
8593 # PIC is the default for Haiku.
8594 # The "-static" flag exists, but is broken.
8595 lt_prog_compiler_static=
8596 ;;
8597
8598 hpux*)
8599 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8600 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8601 # sets the default TLS model and affects inlining.
8602 case $host_cpu in
8603 hppa*64*)
8604 # +Z the default
8605 ;;
8606 *)
8607 lt_prog_compiler_pic='-fPIC'
8608 ;;
8609 esac
8610 ;;
8611
8612 interix[3-9]*)
8613 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8614 # Instead, we relocate shared libraries at runtime.
8615 ;;
8616
8617 msdosdjgpp*)
8618 # Just because we use GCC doesn't mean we suddenly get shared libraries
8619 # on systems that don't support them.
8620 lt_prog_compiler_can_build_shared=no
8621 enable_shared=no
8622 ;;
8623
8624 *nto* | *qnx*)
8625 # QNX uses GNU C++, but need to define -shared option too, otherwise
8626 # it will coredump.
8627 lt_prog_compiler_pic='-fPIC -shared'
8628 ;;
8629
8630 sysv4*MP*)
8631 if test -d /usr/nec; then
8632 lt_prog_compiler_pic=-Kconform_pic
8633 fi
8634 ;;
8635
8636 *)
8637 lt_prog_compiler_pic='-fPIC'
8638 ;;
8639 esac
8640
8641 case $cc_basename in
8642 nvcc*) # Cuda Compiler Driver 2.2
8643 lt_prog_compiler_wl='-Xlinker '
8644 lt_prog_compiler_pic='-Xcompiler -fPIC'
8645 ;;
8646 esac
8647 else
8648 # PORTME Check for flag to pass linker flags through the system compiler.
8649 case $host_os in
8650 aix*)
8651 lt_prog_compiler_wl='-Wl,'
8652 if test "$host_cpu" = ia64; then
8653 # AIX 5 now supports IA64 processor
8654 lt_prog_compiler_static='-Bstatic'
8655 else
8656 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8657 fi
8658 ;;
8659
8660 mingw* | cygwin* | pw32* | os2* | cegcc*)
8661 # This hack is so that the source file can tell whether it is being
8662 # built for inclusion in a dll (and should export symbols for example).
8663 lt_prog_compiler_pic='-DDLL_EXPORT'
8664 ;;
8665
8666 hpux9* | hpux10* | hpux11*)
8667 lt_prog_compiler_wl='-Wl,'
8668 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669 # not for PA HP-UX.
8670 case $host_cpu in
8671 hppa*64*|ia64*)
8672 # +Z the default
8673 ;;
8674 *)
8675 lt_prog_compiler_pic='+Z'
8676 ;;
8677 esac
8678 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679 lt_prog_compiler_static='${wl}-a ${wl}archive'
8680 ;;
8681
8682 irix5* | irix6* | nonstopux*)
8683 lt_prog_compiler_wl='-Wl,'
8684 # PIC (with -KPIC) is the default.
8685 lt_prog_compiler_static='-non_shared'
8686 ;;
8687
8688 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8689 case $cc_basename in
8690 # old Intel for x86_64 which still supported -KPIC.
8691 ecc*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='-KPIC'
8694 lt_prog_compiler_static='-static'
8695 ;;
8696 # icc used to be incompatible with GCC.
8697 # ICC 10 doesn't accept -KPIC any more.
8698 icc* | ifort*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='-fPIC'
8701 lt_prog_compiler_static='-static'
8702 ;;
8703 # Lahey Fortran 8.1.
8704 lf95*)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='--shared'
8707 lt_prog_compiler_static='--static'
8708 ;;
8709 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8710 # Portland Group compilers (*not* the Pentium gcc compiler,
8711 # which looks to be a dead project)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-fpic'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716 ccc*)
8717 lt_prog_compiler_wl='-Wl,'
8718 # All Alpha code is PIC.
8719 lt_prog_compiler_static='-non_shared'
8720 ;;
8721 xl* | bgxl* | bgf* | mpixl*)
8722 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8723 lt_prog_compiler_wl='-Wl,'
8724 lt_prog_compiler_pic='-qpic'
8725 lt_prog_compiler_static='-qstaticlink'
8726 ;;
8727 *)
8728 case `$CC -V 2>&1 | sed 5q` in
8729 *Sun\ F* | *Sun*Fortran*)
8730 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 lt_prog_compiler_wl=''
8734 ;;
8735 *Sun\ C*)
8736 # Sun C 5.9
8737 lt_prog_compiler_pic='-KPIC'
8738 lt_prog_compiler_static='-Bstatic'
8739 lt_prog_compiler_wl='-Wl,'
8740 ;;
8741 esac
8742 ;;
8743 esac
8744 ;;
8745
8746 newsos6)
8747 lt_prog_compiler_pic='-KPIC'
8748 lt_prog_compiler_static='-Bstatic'
8749 ;;
8750
8751 *nto* | *qnx*)
8752 # QNX uses GNU C++, but need to define -shared option too, otherwise
8753 # it will coredump.
8754 lt_prog_compiler_pic='-fPIC -shared'
8755 ;;
8756
8757 osf3* | osf4* | osf5*)
8758 lt_prog_compiler_wl='-Wl,'
8759 # All OSF/1 code is PIC.
8760 lt_prog_compiler_static='-non_shared'
8761 ;;
8762
8763 rdos*)
8764 lt_prog_compiler_static='-non_shared'
8765 ;;
8766
8767 solaris*)
8768 lt_prog_compiler_pic='-KPIC'
8769 lt_prog_compiler_static='-Bstatic'
8770 case $cc_basename in
8771 f77* | f90* | f95*)
8772 lt_prog_compiler_wl='-Qoption ld ';;
8773 *)
8774 lt_prog_compiler_wl='-Wl,';;
8775 esac
8776 ;;
8777
8778 sunos4*)
8779 lt_prog_compiler_wl='-Qoption ld '
8780 lt_prog_compiler_pic='-PIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 ;;
8783
8784 sysv4 | sysv4.2uw2* | sysv4.3*)
8785 lt_prog_compiler_wl='-Wl,'
8786 lt_prog_compiler_pic='-KPIC'
8787 lt_prog_compiler_static='-Bstatic'
8788 ;;
8789
8790 sysv4*MP*)
8791 if test -d /usr/nec ;then
8792 lt_prog_compiler_pic='-Kconform_pic'
8793 lt_prog_compiler_static='-Bstatic'
8794 fi
8795 ;;
8796
8797 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_pic='-KPIC'
8800 lt_prog_compiler_static='-Bstatic'
8801 ;;
8802
8803 unicos*)
8804 lt_prog_compiler_wl='-Wl,'
8805 lt_prog_compiler_can_build_shared=no
8806 ;;
8807
8808 uts4*)
8809 lt_prog_compiler_pic='-pic'
8810 lt_prog_compiler_static='-Bstatic'
8811 ;;
8812
8813 *)
8814 lt_prog_compiler_can_build_shared=no
8815 ;;
8816 esac
8817 fi
8818
8819case $host_os in
8820 # For platforms which do not support PIC, -DPIC is meaningless:
8821 *djgpp*)
8822 lt_prog_compiler_pic=
8823 ;;
8824 *)
8825 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8826 ;;
8827esac
8828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8829$as_echo "$lt_prog_compiler_pic" >&6; }
8830
8831
8832
8833
8834
8835
8836#
8837# Check to make sure the PIC flag actually works.
8838#
8839if test -n "$lt_prog_compiler_pic"; then
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8841$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8842if ${lt_cv_prog_compiler_pic_works+:} false; then :
eff02e4f
ILT
8843 $as_echo_n "(cached) " >&6
8844else
8845 lt_cv_prog_compiler_pic_works=no
8846 ac_outfile=conftest.$ac_objext
8847 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8848 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8849 # Insert the option either (1) after the last *FLAGS variable, or
8850 # (2) before a word containing "conftest.", or (3) at the end.
8851 # Note that $ac_compile itself does not contain backslashes and begins
8852 # with a dollar sign (not a hyphen), so the echo should work correctly.
8853 # The option is referenced via a variable to avoid confusing sed.
8854 lt_compile=`echo "$ac_compile" | $SED \
8855 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857 -e 's:$: $lt_compiler_flag:'`
8858 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8859 (eval "$lt_compile" 2>conftest.err)
8860 ac_status=$?
8861 cat conftest.err >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 if (exit $ac_status) && test -s "$ac_outfile"; then
8864 # The compiler can only warn and ignore the option if not recognized
8865 # So say no if there are warnings other than the usual output.
8866 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_pic_works=yes
8870 fi
8871 fi
8872 $RM conftest*
8873
8874fi
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8876$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8877
8878if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8879 case $lt_prog_compiler_pic in
8880 "" | " "*) ;;
8881 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8882 esac
8883else
8884 lt_prog_compiler_pic=
8885 lt_prog_compiler_can_build_shared=no
8886fi
8887
8888fi
8889
8890
8891
8892
8893
8894
8895#
8896# Check to make sure the static flag actually works.
8897#
8898wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8900$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8901if ${lt_cv_prog_compiler_static_works+:} false; then :
eff02e4f
ILT
8902 $as_echo_n "(cached) " >&6
8903else
8904 lt_cv_prog_compiler_static_works=no
8905 save_LDFLAGS="$LDFLAGS"
8906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8909 # The linker can only warn and ignore the option if not recognized
8910 # So say no if there are warnings
8911 if test -s conftest.err; then
8912 # Append any errors to the config.log.
8913 cat conftest.err 1>&5
8914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8916 if diff conftest.exp conftest.er2 >/dev/null; then
8917 lt_cv_prog_compiler_static_works=yes
8918 fi
8919 else
8920 lt_cv_prog_compiler_static_works=yes
8921 fi
8922 fi
8923 $RM -r conftest*
8924 LDFLAGS="$save_LDFLAGS"
8925
8926fi
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8928$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8929
8930if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8931 :
8932else
8933 lt_prog_compiler_static=
8934fi
8935
8936
8937
8938
8939
8940
8941
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8943$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8944if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8945 $as_echo_n "(cached) " >&6
8946else
8947 lt_cv_prog_compiler_c_o=no
8948 $RM -r conftest 2>/dev/null
8949 mkdir conftest
8950 cd conftest
8951 mkdir out
8952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8953
8954 lt_compiler_flag="-o out/conftest2.$ac_objext"
8955 # Insert the option either (1) after the last *FLAGS variable, or
8956 # (2) before a word containing "conftest.", or (3) at the end.
8957 # Note that $ac_compile itself does not contain backslashes and begins
8958 # with a dollar sign (not a hyphen), so the echo should work correctly.
8959 lt_compile=`echo "$ac_compile" | $SED \
8960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962 -e 's:$: $lt_compiler_flag:'`
8963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964 (eval "$lt_compile" 2>out/conftest.err)
8965 ac_status=$?
8966 cat out/conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8969 then
8970 # The compiler can only warn and ignore the option if not recognized
8971 # So say no if there are warnings
8972 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8973 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8974 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8975 lt_cv_prog_compiler_c_o=yes
8976 fi
8977 fi
8978 chmod u+w . 2>&5
8979 $RM conftest*
8980 # SGI C++ compiler will create directory out/ii_files/ for
8981 # template instantiation
8982 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8983 $RM out/* && rmdir out
8984 cd ..
8985 $RM -r conftest
8986 $RM conftest*
8987
8988fi
8989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8990$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8991
8992
8993
8994
8995
8996
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8998$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8999if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
9000 $as_echo_n "(cached) " >&6
9001else
9002 lt_cv_prog_compiler_c_o=no
9003 $RM -r conftest 2>/dev/null
9004 mkdir conftest
9005 cd conftest
9006 mkdir out
9007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9008
9009 lt_compiler_flag="-o out/conftest2.$ac_objext"
9010 # Insert the option either (1) after the last *FLAGS variable, or
9011 # (2) before a word containing "conftest.", or (3) at the end.
9012 # Note that $ac_compile itself does not contain backslashes and begins
9013 # with a dollar sign (not a hyphen), so the echo should work correctly.
9014 lt_compile=`echo "$ac_compile" | $SED \
9015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9017 -e 's:$: $lt_compiler_flag:'`
9018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9019 (eval "$lt_compile" 2>out/conftest.err)
9020 ac_status=$?
9021 cat out/conftest.err >&5
9022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9024 then
9025 # The compiler can only warn and ignore the option if not recognized
9026 # So say no if there are warnings
9027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9028 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9029 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9030 lt_cv_prog_compiler_c_o=yes
9031 fi
9032 fi
9033 chmod u+w . 2>&5
9034 $RM conftest*
9035 # SGI C++ compiler will create directory out/ii_files/ for
9036 # template instantiation
9037 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9038 $RM out/* && rmdir out
9039 cd ..
9040 $RM -r conftest
9041 $RM conftest*
9042
9043fi
9044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9045$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9046
9047
9048
9049
9050hard_links="nottested"
9051if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9052 # do not overwrite the value of need_locks provided by the user
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9054$as_echo_n "checking if we can lock with hard links... " >&6; }
9055 hard_links=yes
9056 $RM conftest*
9057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9058 touch conftest.a
9059 ln conftest.a conftest.b 2>&5 || hard_links=no
9060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9062$as_echo "$hard_links" >&6; }
9063 if test "$hard_links" = no; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9065$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9066 need_locks=warn
9067 fi
9068else
9069 need_locks=no
9070fi
9071
9072
9073
9074
9075
9076
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9078$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9079
9080 runpath_var=
9081 allow_undefined_flag=
9082 always_export_symbols=no
9083 archive_cmds=
9084 archive_expsym_cmds=
9085 compiler_needs_object=no
9086 enable_shared_with_static_runtimes=no
9087 export_dynamic_flag_spec=
9088 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9089 hardcode_automatic=no
9090 hardcode_direct=no
9091 hardcode_direct_absolute=no
9092 hardcode_libdir_flag_spec=
9093 hardcode_libdir_flag_spec_ld=
9094 hardcode_libdir_separator=
9095 hardcode_minus_L=no
9096 hardcode_shlibpath_var=unsupported
9097 inherit_rpath=no
9098 link_all_deplibs=unknown
9099 module_cmds=
9100 module_expsym_cmds=
9101 old_archive_from_new_cmds=
9102 old_archive_from_expsyms_cmds=
9103 thread_safe_flag_spec=
9104 whole_archive_flag_spec=
9105 # include_expsyms should be a list of space-separated symbols to be *always*
9106 # included in the symbol list
9107 include_expsyms=
9108 # exclude_expsyms can be an extended regexp of symbols to exclude
9109 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9110 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9111 # as well as any symbol that contains `d'.
9112 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9113 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9114 # platforms (ab)use it in PIC code, but their linkers get confused if
9115 # the symbol is explicitly referenced. Since portable code cannot
9116 # rely on this symbol name, it's probably fine to never include it in
9117 # preloaded symbol tables.
9118 # Exclude shared library initialization/finalization symbols.
9119 extract_expsyms_cmds=
9120
9121 case $host_os in
9122 cygwin* | mingw* | pw32* | cegcc*)
9123 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9124 # When not using gcc, we currently assume that we are using
9125 # Microsoft Visual C++.
9126 if test "$GCC" != yes; then
9127 with_gnu_ld=no
9128 fi
9129 ;;
9130 interix*)
9131 # we just hope/assume this is gcc and not c89 (= MSVC++)
9132 with_gnu_ld=yes
9133 ;;
9134 openbsd*)
9135 with_gnu_ld=no
9136 ;;
9137 esac
9138
9139 ld_shlibs=yes
9140
9141 # On some targets, GNU ld is compatible enough with the native linker
9142 # that we're better off using the native interface for both.
9143 lt_use_gnu_ld_interface=no
9144 if test "$with_gnu_ld" = yes; then
9145 case $host_os in
9146 aix*)
9147 # The AIX port of GNU ld has always aspired to compatibility
9148 # with the native linker. However, as the warning in the GNU ld
9149 # block says, versions before 2.19.5* couldn't really create working
9150 # shared libraries, regardless of the interface used.
9151 case `$LD -v 2>&1` in
9152 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9153 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9154 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9155 *)
9156 lt_use_gnu_ld_interface=yes
9157 ;;
9158 esac
9159 ;;
9160 *)
9161 lt_use_gnu_ld_interface=yes
9162 ;;
9163 esac
9164 fi
9165
9166 if test "$lt_use_gnu_ld_interface" = yes; then
9167 # If archive_cmds runs LD, not CC, wlarc should be empty
9168 wlarc='${wl}'
9169
9170 # Set some defaults for GNU ld with shared library support. These
9171 # are reset later if shared libraries are not supported. Putting them
9172 # here allows them to be overridden if necessary.
9173 runpath_var=LD_RUN_PATH
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 export_dynamic_flag_spec='${wl}--export-dynamic'
9176 # ancient GNU ld didn't support --whole-archive et. al.
9177 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9178 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9179 else
9180 whole_archive_flag_spec=
9181 fi
9182 supports_anon_versioning=no
9183 case `$LD -v 2>&1` in
9184 *GNU\ gold*) supports_anon_versioning=yes ;;
9185 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9186 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9187 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9188 *\ 2.11.*) ;; # other 2.11 versions
9189 *) supports_anon_versioning=yes ;;
9190 esac
9191
9192 # See if GNU ld supports shared libraries.
9193 case $host_os in
9194 aix[3-9]*)
9195 # On AIX/PPC, the GNU linker is very broken
9196 if test "$host_cpu" != ia64; then
9197 ld_shlibs=no
9198 cat <<_LT_EOF 1>&2
9199
9200*** Warning: the GNU linker, at least up to release 2.19, is reported
9201*** to be unable to reliably create shared libraries on AIX.
9202*** Therefore, libtool is disabling shared libraries support. If you
9203*** really care for shared libraries, you may want to install binutils
9204*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9205*** You will then need to restart the configuration process.
9206
9207_LT_EOF
9208 fi
9209 ;;
9210
9211 amigaos*)
9212 case $host_cpu in
9213 powerpc)
9214 # see comment about AmigaOS4 .so support
9215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216 archive_expsym_cmds=''
9217 ;;
9218 m68k)
9219 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)'
9220 hardcode_libdir_flag_spec='-L$libdir'
9221 hardcode_minus_L=yes
9222 ;;
9223 esac
9224 ;;
9225
9226 beos*)
9227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228 allow_undefined_flag=unsupported
9229 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9230 # support --undefined. This deserves some investigation. FIXME
9231 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 else
9233 ld_shlibs=no
9234 fi
9235 ;;
9236
9237 cygwin* | mingw* | pw32* | cegcc*)
9238 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9239 # as there is no search path for DLLs.
9240 hardcode_libdir_flag_spec='-L$libdir'
9241 export_dynamic_flag_spec='${wl}--export-all-symbols'
9242 allow_undefined_flag=unsupported
9243 always_export_symbols=no
9244 enable_shared_with_static_runtimes=yes
9245 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9246
9247 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9248 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9249 # If the export-symbols file already is a .def file (1st line
9250 # is EXPORTS), use it as is; otherwise, prepend...
9251 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9252 cp $export_symbols $output_objdir/$soname.def;
9253 else
9254 echo EXPORTS > $output_objdir/$soname.def;
9255 cat $export_symbols >> $output_objdir/$soname.def;
9256 fi~
9257 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9258 else
9259 ld_shlibs=no
9260 fi
9261 ;;
9262
9263 haiku*)
9264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9265 link_all_deplibs=yes
9266 ;;
9267
9268 interix[3-9]*)
9269 hardcode_direct=no
9270 hardcode_shlibpath_var=no
9271 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9272 export_dynamic_flag_spec='${wl}-E'
9273 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9274 # Instead, shared libraries are loaded at an image base (0x10000000 by
9275 # default) and relocated if they conflict, which is a slow very memory
9276 # consuming and fragmenting process. To avoid this, we pick a random,
9277 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9278 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9279 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9280 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'
9281 ;;
9282
e9085da5 9283 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
9284 tmp_diet=no
9285 if test "$host_os" = linux-dietlibc; then
9286 case $cc_basename in
9287 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9288 esac
9289 fi
9290 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9291 && test "$tmp_diet" = no
9292 then
a699d672 9293 tmp_addflag=' $pic_flag'
eff02e4f
ILT
9294 tmp_sharedflag='-shared'
9295 case $cc_basename,$host_cpu in
9296 pgcc*) # Portland Group C compiler
9297 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'
9298 tmp_addflag=' $pic_flag'
9299 ;;
9300 pgf77* | pgf90* | pgf95* | pgfortran*)
9301 # Portland Group f77 and f90 compilers
9302 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'
9303 tmp_addflag=' $pic_flag -Mnomain' ;;
9304 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9305 tmp_addflag=' -i_dynamic' ;;
9306 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9307 tmp_addflag=' -i_dynamic -nofor_main' ;;
9308 ifc* | ifort*) # Intel Fortran compiler
9309 tmp_addflag=' -nofor_main' ;;
9310 lf95*) # Lahey Fortran 8.1
9311 whole_archive_flag_spec=
9312 tmp_sharedflag='--shared' ;;
9313 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9314 tmp_sharedflag='-qmkshrobj'
9315 tmp_addflag= ;;
9316 nvcc*) # Cuda Compiler Driver 2.2
9317 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'
9318 compiler_needs_object=yes
9319 ;;
9320 esac
9321 case `$CC -V 2>&1 | sed 5q` in
9322 *Sun\ C*) # Sun C 5.9
9323 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'
9324 compiler_needs_object=yes
9325 tmp_sharedflag='-G' ;;
9326 *Sun\ F*) # Sun Fortran 8.3
9327 tmp_sharedflag='-G' ;;
9328 esac
9329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9330
9331 if test "x$supports_anon_versioning" = xyes; then
9332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9334 echo "local: *; };" >> $output_objdir/$libname.ver~
9335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9336 fi
9337
9338 case $cc_basename in
9339 xlf* | bgf* | bgxlf* | mpixlf*)
9340 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9342 hardcode_libdir_flag_spec=
9343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9344 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
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 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9350 fi
9351 ;;
9352 esac
9353 else
9354 ld_shlibs=no
9355 fi
9356 ;;
9357
9358 netbsd*)
9359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9361 wlarc=
9362 else
9363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9365 fi
9366 ;;
9367
9368 solaris*)
9369 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9370 ld_shlibs=no
9371 cat <<_LT_EOF 1>&2
9372
9373*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9374*** create shared libraries on Solaris systems. Therefore, libtool
9375*** is disabling shared libraries support. We urge you to upgrade GNU
9376*** binutils to release 2.9.1 or newer. Another option is to modify
9377*** your PATH or compiler configuration so that the native linker is
9378*** used, and then restart.
9379
9380_LT_EOF
9381 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 else
9385 ld_shlibs=no
9386 fi
9387 ;;
9388
9389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9390 case `$LD -v 2>&1` in
9391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9392 ld_shlibs=no
9393 cat <<_LT_EOF 1>&2
9394
9395*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9396*** reliably create shared libraries on SCO systems. Therefore, libtool
9397*** is disabling shared libraries support. We urge you to upgrade GNU
9398*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9399*** your PATH or compiler configuration so that the native linker is
9400*** used, and then restart.
9401
9402_LT_EOF
9403 ;;
9404 *)
9405 # For security reasons, it is highly recommended that you always
9406 # use absolute paths for naming shared libraries, and exclude the
9407 # DT_RUNPATH tag from executables and libraries. But doing so
9408 # requires that you compile everything twice, which is a pain.
9409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413 else
9414 ld_shlibs=no
9415 fi
9416 ;;
9417 esac
9418 ;;
9419
9420 sunos4*)
9421 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9422 wlarc=
9423 hardcode_direct=yes
9424 hardcode_shlibpath_var=no
9425 ;;
9426
9427 *)
9428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9431 else
9432 ld_shlibs=no
9433 fi
9434 ;;
9435 esac
9436
9437 if test "$ld_shlibs" = no; then
9438 runpath_var=
9439 hardcode_libdir_flag_spec=
9440 export_dynamic_flag_spec=
9441 whole_archive_flag_spec=
9442 fi
9443 else
9444 # PORTME fill in a description of your system's linker (not GNU ld)
9445 case $host_os in
9446 aix3*)
9447 allow_undefined_flag=unsupported
9448 always_export_symbols=yes
9449 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'
9450 # Note: this linker hardcodes the directories in LIBPATH if there
9451 # are no directories specified by -L.
9452 hardcode_minus_L=yes
9453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9454 # Neither direct hardcoding nor static linking is supported with a
9455 # broken collect2.
9456 hardcode_direct=unsupported
9457 fi
9458 ;;
9459
9460 aix[4-9]*)
9461 if test "$host_cpu" = ia64; then
9462 # On IA64, the linker does run time linking by default, so we don't
9463 # have to do anything special.
9464 aix_use_runtimelinking=no
9465 exp_sym_flag='-Bexport'
9466 no_entry_flag=""
9467 else
9468 # If we're using GNU nm, then we don't want the "-C" option.
9469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9470 # Also, AIX nm treats weak defined symbols like other global
9471 # defined symbols, whereas GNU nm marks them as "W".
9472 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9473 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'
9474 else
2f401a8f 9475 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'
eff02e4f
ILT
9476 fi
9477 aix_use_runtimelinking=no
9478
9479 # Test if we are trying to use run time linking or normal
9480 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9481 # need to do runtime linking.
9482 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9483 for ld_flag in $LDFLAGS; do
9484 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9485 aix_use_runtimelinking=yes
9486 break
9487 fi
9488 done
9489 ;;
9490 esac
9491
9492 exp_sym_flag='-bexport'
9493 no_entry_flag='-bnoentry'
9494 fi
9495
9496 # When large executables or shared objects are built, AIX ld can
9497 # have problems creating the table of contents. If linking a library
9498 # or program results in "error TOC overflow" add -mminimal-toc to
9499 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9500 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9501
9502 archive_cmds=''
9503 hardcode_direct=yes
9504 hardcode_direct_absolute=yes
9505 hardcode_libdir_separator=':'
9506 link_all_deplibs=yes
9507 file_list_spec='${wl}-f,'
9508
9509 if test "$GCC" = yes; then
9510 case $host_os in aix4.[012]|aix4.[012].*)
9511 # We only want to do this on AIX 4.2 and lower, the check
9512 # below for broken collect2 doesn't work under 4.3+
9513 collect2name=`${CC} -print-prog-name=collect2`
9514 if test -f "$collect2name" &&
9515 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9516 then
9517 # We have reworked collect2
9518 :
9519 else
9520 # We have old collect2
9521 hardcode_direct=unsupported
9522 # It fails to find uninstalled libraries when the uninstalled
9523 # path is not listed in the libpath. Setting hardcode_minus_L
9524 # to unsupported forces relinking
9525 hardcode_minus_L=yes
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_libdir_separator=
9528 fi
9529 ;;
9530 esac
9531 shared_flag='-shared'
9532 if test "$aix_use_runtimelinking" = yes; then
9533 shared_flag="$shared_flag "'${wl}-G'
9534 fi
9535 else
9536 # not using gcc
9537 if test "$host_cpu" = ia64; then
9538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9539 # chokes on -Wl,-G. The following line is correct:
9540 shared_flag='-G'
9541 else
9542 if test "$aix_use_runtimelinking" = yes; then
9543 shared_flag='${wl}-G'
9544 else
9545 shared_flag='${wl}-bM:SRE'
9546 fi
9547 fi
9548 fi
9549
9550 export_dynamic_flag_spec='${wl}-bexpall'
9551 # It seems that -bexpall does not export symbols beginning with
9552 # underscore (_), so it is better to generate a list of symbols to export.
9553 always_export_symbols=yes
9554 if test "$aix_use_runtimelinking" = yes; then
9555 # Warning - without using the other runtime loading flags (-brtl),
9556 # -berok will link without error, but may produce a broken library.
9557 allow_undefined_flag='-berok'
9558 # Determine the default libpath from the value encoded in an
9559 # empty executable.
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561/* end confdefs.h. */
9562
9563int
9564main ()
9565{
9566
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571if ac_fn_c_try_link "$LINENO"; then :
9572
9573lt_aix_libpath_sed='
9574 /Import File Strings/,/^$/ {
9575 /^0/ {
9576 s/^0 *\(.*\)$/\1/
9577 p
9578 }
9579 }'
9580aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9581# Check for a 64-bit object if we didn't find anything.
9582if test -z "$aix_libpath"; then
9583 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9584fi
9585fi
9586rm -f core conftest.err conftest.$ac_objext \
9587 conftest$ac_exeext conftest.$ac_ext
9588if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9589
9590 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9591 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"
9592 else
9593 if test "$host_cpu" = ia64; then
9594 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9595 allow_undefined_flag="-z nodefs"
9596 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"
9597 else
9598 # Determine the default libpath from the value encoded in an
9599 # empty executable.
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601/* end confdefs.h. */
9602
9603int
9604main ()
9605{
9606
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611if ac_fn_c_try_link "$LINENO"; then :
9612
9613lt_aix_libpath_sed='
9614 /Import File Strings/,/^$/ {
9615 /^0/ {
9616 s/^0 *\(.*\)$/\1/
9617 p
9618 }
9619 }'
9620aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9621# Check for a 64-bit object if we didn't find anything.
9622if test -z "$aix_libpath"; then
9623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9624fi
9625fi
9626rm -f core conftest.err conftest.$ac_objext \
9627 conftest$ac_exeext conftest.$ac_ext
9628if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9629
9630 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9631 # Warning - without using the other run time loading flags,
9632 # -berok will link without error, but may produce a broken library.
9633 no_undefined_flag=' ${wl}-bernotok'
9634 allow_undefined_flag=' ${wl}-berok'
9635 if test "$with_gnu_ld" = yes; then
9636 # We only use this code for GNU lds that support --whole-archive.
9637 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9638 else
9639 # Exported symbols can be pulled into shared objects from archives
9640 whole_archive_flag_spec='$convenience'
9641 fi
9642 archive_cmds_need_lc=yes
9643 # This is similar to how AIX traditionally builds its shared libraries.
9644 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'
9645 fi
9646 fi
9647 ;;
9648
9649 amigaos*)
9650 case $host_cpu in
9651 powerpc)
9652 # see comment about AmigaOS4 .so support
9653 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9654 archive_expsym_cmds=''
9655 ;;
9656 m68k)
9657 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)'
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_minus_L=yes
9660 ;;
9661 esac
9662 ;;
9663
9664 bsdi[45]*)
9665 export_dynamic_flag_spec=-rdynamic
9666 ;;
9667
9668 cygwin* | mingw* | pw32* | cegcc*)
9669 # When not using gcc, we currently assume that we are using
9670 # Microsoft Visual C++.
9671 # hardcode_libdir_flag_spec is actually meaningless, as there is
9672 # no search path for DLLs.
9673 hardcode_libdir_flag_spec=' '
9674 allow_undefined_flag=unsupported
9675 # Tell ltmain to make .lib files, not .a files.
9676 libext=lib
9677 # Tell ltmain to make .dll files, not .so files.
9678 shrext_cmds=".dll"
9679 # FIXME: Setting linknames here is a bad hack.
9680 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9681 # The linker will automatically build a .lib file if we build a DLL.
9682 old_archive_from_new_cmds='true'
9683 # FIXME: Should let the user specify the lib program.
9684 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9685 fix_srcfile_path='`cygpath -w "$srcfile"`'
9686 enable_shared_with_static_runtimes=yes
9687 ;;
9688
9689 darwin* | rhapsody*)
9690
9691
9692 archive_cmds_need_lc=no
9693 hardcode_direct=no
9694 hardcode_automatic=yes
9695 hardcode_shlibpath_var=unsupported
9696 if test "$lt_cv_ld_force_load" = "yes"; then
9697 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\"`'
9698 else
9699 whole_archive_flag_spec=''
9700 fi
9701 link_all_deplibs=yes
9702 allow_undefined_flag="$_lt_dar_allow_undefined"
9703 case $cc_basename in
9704 ifort*) _lt_dar_can_shared=yes ;;
9705 *) _lt_dar_can_shared=$GCC ;;
9706 esac
9707 if test "$_lt_dar_can_shared" = "yes"; then
9708 output_verbose_link_cmd=func_echo_all
9709 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9710 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9711 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}"
9712 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}"
9713
9714 else
9715 ld_shlibs=no
9716 fi
9717
9718 ;;
9719
9720 dgux*)
9721 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9722 hardcode_libdir_flag_spec='-L$libdir'
9723 hardcode_shlibpath_var=no
9724 ;;
9725
9726 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9727 # support. Future versions do this automatically, but an explicit c++rt0.o
9728 # does not break anything, and helps significantly (at the cost of a little
9729 # extra space).
9730 freebsd2.2*)
9731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9732 hardcode_libdir_flag_spec='-R$libdir'
9733 hardcode_direct=yes
9734 hardcode_shlibpath_var=no
9735 ;;
9736
9737 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9738 freebsd2.*)
9739 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9740 hardcode_direct=yes
9741 hardcode_minus_L=yes
9742 hardcode_shlibpath_var=no
9743 ;;
9744
9745 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9746 freebsd* | dragonfly*)
9747 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9748 hardcode_libdir_flag_spec='-R$libdir'
9749 hardcode_direct=yes
9750 hardcode_shlibpath_var=no
9751 ;;
9752
9753 hpux9*)
9754 if test "$GCC" = yes; then
9755 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'
9756 else
9757 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'
9758 fi
9759 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9760 hardcode_libdir_separator=:
9761 hardcode_direct=yes
9762
9763 # hardcode_minus_L: Not really in the search PATH,
9764 # but as the default location of the library.
9765 hardcode_minus_L=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767 ;;
9768
9769 hpux10*)
9770 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9771 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9772 else
9773 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9774 fi
9775 if test "$with_gnu_ld" = no; then
9776 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9777 hardcode_libdir_flag_spec_ld='+b $libdir'
9778 hardcode_libdir_separator=:
9779 hardcode_direct=yes
9780 hardcode_direct_absolute=yes
9781 export_dynamic_flag_spec='${wl}-E'
9782 # hardcode_minus_L: Not really in the search PATH,
9783 # but as the default location of the library.
9784 hardcode_minus_L=yes
9785 fi
9786 ;;
9787
9788 hpux11*)
9789 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9790 case $host_cpu in
9791 hppa*64*)
9792 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 ia64*)
9795 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 *)
9798 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 esac
9801 else
9802 case $host_cpu in
9803 hppa*64*)
9804 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9805 ;;
9806 ia64*)
9807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 *)
9810
9811 # Older versions of the 11.00 compiler do not understand -b yet
9812 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9814$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9815if ${lt_cv_prog_compiler__b+:} false; then :
eff02e4f
ILT
9816 $as_echo_n "(cached) " >&6
9817else
9818 lt_cv_prog_compiler__b=no
9819 save_LDFLAGS="$LDFLAGS"
9820 LDFLAGS="$LDFLAGS -b"
9821 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9822 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9823 # The linker can only warn and ignore the option if not recognized
9824 # So say no if there are warnings
9825 if test -s conftest.err; then
9826 # Append any errors to the config.log.
9827 cat conftest.err 1>&5
9828 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9829 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9830 if diff conftest.exp conftest.er2 >/dev/null; then
9831 lt_cv_prog_compiler__b=yes
9832 fi
9833 else
9834 lt_cv_prog_compiler__b=yes
9835 fi
9836 fi
9837 $RM -r conftest*
9838 LDFLAGS="$save_LDFLAGS"
9839
9840fi
9841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9842$as_echo "$lt_cv_prog_compiler__b" >&6; }
9843
9844if test x"$lt_cv_prog_compiler__b" = xyes; then
9845 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9846else
9847 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9848fi
9849
9850 ;;
9851 esac
9852 fi
9853 if test "$with_gnu_ld" = no; then
9854 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9855 hardcode_libdir_separator=:
9856
9857 case $host_cpu in
9858 hppa*64*|ia64*)
9859 hardcode_direct=no
9860 hardcode_shlibpath_var=no
9861 ;;
9862 *)
9863 hardcode_direct=yes
9864 hardcode_direct_absolute=yes
9865 export_dynamic_flag_spec='${wl}-E'
9866
9867 # hardcode_minus_L: Not really in the search PATH,
9868 # but as the default location of the library.
9869 hardcode_minus_L=yes
9870 ;;
9871 esac
9872 fi
9873 ;;
9874
9875 irix5* | irix6* | nonstopux*)
9876 if test "$GCC" = yes; then
9877 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'
9878 # Try to use the -exported_symbol ld option, if it does not
9879 # work, assume that -exports_file does not work either and
9880 # implicitly export all symbols.
9881 save_LDFLAGS="$LDFLAGS"
9882 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884/* end confdefs.h. */
9885int foo(void) {}
9886_ACEOF
9887if ac_fn_c_try_link "$LINENO"; then :
9888 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'
9889
9890fi
9891rm -f core conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 LDFLAGS="$save_LDFLAGS"
9894 else
9895 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'
9896 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'
9897 fi
9898 archive_cmds_need_lc='no'
9899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9900 hardcode_libdir_separator=:
9901 inherit_rpath=yes
9902 link_all_deplibs=yes
9903 ;;
9904
9905 netbsd*)
9906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9908 else
9909 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9910 fi
9911 hardcode_libdir_flag_spec='-R$libdir'
9912 hardcode_direct=yes
9913 hardcode_shlibpath_var=no
9914 ;;
9915
9916 newsos6)
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_direct=yes
9919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9920 hardcode_libdir_separator=:
9921 hardcode_shlibpath_var=no
9922 ;;
9923
9924 *nto* | *qnx*)
9925 ;;
9926
9927 openbsd*)
9928 if test -f /usr/libexec/ld.so; then
9929 hardcode_direct=yes
9930 hardcode_shlibpath_var=no
9931 hardcode_direct_absolute=yes
9932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9935 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9936 export_dynamic_flag_spec='${wl}-E'
9937 else
9938 case $host_os in
9939 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 ;;
9943 *)
9944 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9945 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9946 ;;
9947 esac
9948 fi
9949 else
9950 ld_shlibs=no
9951 fi
9952 ;;
9953
9954 os2*)
9955 hardcode_libdir_flag_spec='-L$libdir'
9956 hardcode_minus_L=yes
9957 allow_undefined_flag=unsupported
9958 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'
9959 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9960 ;;
9961
9962 osf3*)
9963 if test "$GCC" = yes; then
9964 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9965 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'
9966 else
9967 allow_undefined_flag=' -expect_unresolved \*'
9968 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'
9969 fi
9970 archive_cmds_need_lc='no'
9971 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9972 hardcode_libdir_separator=:
9973 ;;
9974
9975 osf4* | osf5*) # as osf3* with the addition of -msym flag
9976 if test "$GCC" = yes; then
9977 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9978 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'
9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9980 else
9981 allow_undefined_flag=' -expect_unresolved \*'
9982 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'
9983 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~
9984 $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'
9985
9986 # Both c and cxx compiler support -rpath directly
9987 hardcode_libdir_flag_spec='-rpath $libdir'
9988 fi
9989 archive_cmds_need_lc='no'
9990 hardcode_libdir_separator=:
9991 ;;
9992
9993 solaris*)
9994 no_undefined_flag=' -z defs'
9995 if test "$GCC" = yes; then
9996 wlarc='${wl}'
9997 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10000 else
10001 case `$CC -V 2>&1` in
10002 *"Compilers 5.0"*)
10003 wlarc=''
10004 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10006 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10007 ;;
10008 *)
10009 wlarc='${wl}'
10010 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10011 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10012 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10013 ;;
10014 esac
10015 fi
10016 hardcode_libdir_flag_spec='-R$libdir'
10017 hardcode_shlibpath_var=no
10018 case $host_os in
10019 solaris2.[0-5] | solaris2.[0-5].*) ;;
10020 *)
10021 # The compiler driver will combine and reorder linker options,
10022 # but understands `-z linker_flag'. GCC discards it without `$wl',
10023 # but is careful enough not to reorder.
10024 # Supported since Solaris 2.6 (maybe 2.5.1?)
10025 if test "$GCC" = yes; then
10026 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10027 else
10028 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10029 fi
10030 ;;
10031 esac
10032 link_all_deplibs=yes
10033 ;;
10034
10035 sunos4*)
10036 if test "x$host_vendor" = xsequent; then
10037 # Use $CC to link under sequent, because it throws in some extra .o
10038 # files that make .init and .fini sections work.
10039 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10040 else
10041 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10042 fi
10043 hardcode_libdir_flag_spec='-L$libdir'
10044 hardcode_direct=yes
10045 hardcode_minus_L=yes
10046 hardcode_shlibpath_var=no
10047 ;;
10048
10049 sysv4)
10050 case $host_vendor in
10051 sni)
10052 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10053 hardcode_direct=yes # is this really true???
10054 ;;
10055 siemens)
10056 ## LD is ld it makes a PLAMLIB
10057 ## CC just makes a GrossModule.
10058 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10059 reload_cmds='$CC -r -o $output$reload_objs'
10060 hardcode_direct=no
10061 ;;
10062 motorola)
10063 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10064 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10065 ;;
10066 esac
10067 runpath_var='LD_RUN_PATH'
10068 hardcode_shlibpath_var=no
10069 ;;
10070
10071 sysv4.3*)
10072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073 hardcode_shlibpath_var=no
10074 export_dynamic_flag_spec='-Bexport'
10075 ;;
10076
10077 sysv4*MP*)
10078 if test -d /usr/nec; then
10079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10080 hardcode_shlibpath_var=no
10081 runpath_var=LD_RUN_PATH
10082 hardcode_runpath_var=yes
10083 ld_shlibs=yes
10084 fi
10085 ;;
10086
10087 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10088 no_undefined_flag='${wl}-z,text'
10089 archive_cmds_need_lc=no
10090 hardcode_shlibpath_var=no
10091 runpath_var='LD_RUN_PATH'
10092
10093 if test "$GCC" = yes; then
10094 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10095 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 else
10097 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 fi
10100 ;;
10101
10102 sysv5* | sco3.2v5* | sco5v6*)
10103 # Note: We can NOT use -z defs as we might desire, because we do not
10104 # link with -lc, and that would cause any symbols used from libc to
10105 # always be unresolved, which means just about no library would
10106 # ever link correctly. If we're not using GNU ld we use -z text
10107 # though, which does catch some bad symbols but isn't as heavy-handed
10108 # as -z defs.
10109 no_undefined_flag='${wl}-z,text'
10110 allow_undefined_flag='${wl}-z,nodefs'
10111 archive_cmds_need_lc=no
10112 hardcode_shlibpath_var=no
10113 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10114 hardcode_libdir_separator=':'
10115 link_all_deplibs=yes
10116 export_dynamic_flag_spec='${wl}-Bexport'
10117 runpath_var='LD_RUN_PATH'
10118
10119 if test "$GCC" = yes; then
10120 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10121 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 else
10123 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10125 fi
10126 ;;
10127
10128 uts4*)
10129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10130 hardcode_libdir_flag_spec='-L$libdir'
10131 hardcode_shlibpath_var=no
10132 ;;
10133
10134 *)
10135 ld_shlibs=no
10136 ;;
10137 esac
10138
10139 if test x$host_vendor = xsni; then
10140 case $host in
10141 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10142 export_dynamic_flag_spec='${wl}-Blargedynsym'
10143 ;;
10144 esac
10145 fi
10146 fi
10147
10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10149$as_echo "$ld_shlibs" >&6; }
10150test "$ld_shlibs" = no && can_build_shared=no
10151
10152with_gnu_ld=$with_gnu_ld
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168#
10169# Do we need to explicitly link libc?
10170#
10171case "x$archive_cmds_need_lc" in
10172x|xyes)
10173 # Assume -lc should be added
10174 archive_cmds_need_lc=yes
10175
10176 if test "$enable_shared" = yes && test "$GCC" = yes; then
10177 case $archive_cmds in
10178 *'~'*)
10179 # FIXME: we may have to deal with multi-command sequences.
10180 ;;
10181 '$CC '*)
10182 # Test whether the compiler implicitly links with -lc since on some
10183 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10184 # to ld, don't add -lc before -lgcc.
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10186$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10187if ${lt_cv_archive_cmds_need_lc+:} false; then :
eff02e4f
ILT
10188 $as_echo_n "(cached) " >&6
10189else
10190 $RM conftest*
10191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10192
10193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10194 (eval $ac_compile) 2>&5
10195 ac_status=$?
10196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10197 test $ac_status = 0; } 2>conftest.err; then
10198 soname=conftest
10199 lib=conftest
10200 libobjs=conftest.$ac_objext
10201 deplibs=
10202 wl=$lt_prog_compiler_wl
10203 pic_flag=$lt_prog_compiler_pic
10204 compiler_flags=-v
10205 linker_flags=-v
10206 verstring=
10207 output_objdir=.
10208 libname=conftest
10209 lt_save_allow_undefined_flag=$allow_undefined_flag
10210 allow_undefined_flag=
10211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10212 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10213 ac_status=$?
10214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215 test $ac_status = 0; }
10216 then
10217 lt_cv_archive_cmds_need_lc=no
10218 else
10219 lt_cv_archive_cmds_need_lc=yes
10220 fi
10221 allow_undefined_flag=$lt_save_allow_undefined_flag
10222 else
10223 cat conftest.err 1>&5
10224 fi
10225 $RM conftest*
10226
10227fi
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10229$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10230 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10231 ;;
10232 esac
10233 fi
10234 ;;
10235esac
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10394$as_echo_n "checking dynamic linker characteristics... " >&6; }
10395
10396if test "$GCC" = yes; then
10397 case $host_os in
10398 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10399 *) lt_awk_arg="/^libraries:/" ;;
10400 esac
10401 case $host_os in
10402 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10403 *) lt_sed_strip_eq="s,=/,/,g" ;;
10404 esac
10405 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10406 case $lt_search_path_spec in
10407 *\;*)
10408 # if the path contains ";" then we assume it to be the separator
10409 # otherwise default to the standard path separator (i.e. ":") - it is
10410 # assumed that no part of a normal pathname contains ";" but that should
10411 # okay in the real world where ";" in dirpaths is itself problematic.
10412 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10413 ;;
10414 *)
10415 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10416 ;;
10417 esac
10418 # Ok, now we have the path, separated by spaces, we can step through it
10419 # and add multilib dir if necessary.
10420 lt_tmp_lt_search_path_spec=
10421 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10422 for lt_sys_path in $lt_search_path_spec; do
10423 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10424 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10425 else
10426 test -d "$lt_sys_path" && \
10427 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10428 fi
10429 done
10430 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10431BEGIN {RS=" "; FS="/|\n";} {
10432 lt_foo="";
10433 lt_count=0;
10434 for (lt_i = NF; lt_i > 0; lt_i--) {
10435 if ($lt_i != "" && $lt_i != ".") {
10436 if ($lt_i == "..") {
10437 lt_count++;
10438 } else {
10439 if (lt_count == 0) {
10440 lt_foo="/" $lt_i lt_foo;
10441 } else {
10442 lt_count--;
10443 }
10444 }
10445 }
10446 }
10447 if (lt_foo != "") { lt_freq[lt_foo]++; }
10448 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10449}'`
10450 # AWK program above erroneously prepends '/' to C:/dos/paths
10451 # for these hosts.
10452 case $host_os in
10453 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10454 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10455 esac
10456 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10457else
10458 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10459fi
10460library_names_spec=
10461libname_spec='lib$name'
10462soname_spec=
10463shrext_cmds=".so"
10464postinstall_cmds=
10465postuninstall_cmds=
10466finish_cmds=
10467finish_eval=
10468shlibpath_var=
10469shlibpath_overrides_runpath=unknown
10470version_type=none
10471dynamic_linker="$host_os ld.so"
10472sys_lib_dlsearch_path_spec="/lib /usr/lib"
10473need_lib_prefix=unknown
10474hardcode_into_libs=no
10475
10476# when you set need_version to no, make sure it does not cause -set_version
10477# flags to be left without arguments
10478need_version=unknown
10479
10480case $host_os in
10481aix3*)
10482 version_type=linux
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10484 shlibpath_var=LIBPATH
10485
10486 # AIX 3 has no versioning support, so we append a major version to the name.
10487 soname_spec='${libname}${release}${shared_ext}$major'
10488 ;;
10489
10490aix[4-9]*)
10491 version_type=linux
10492 need_lib_prefix=no
10493 need_version=no
10494 hardcode_into_libs=yes
10495 if test "$host_cpu" = ia64; then
10496 # AIX 5 supports IA64
10497 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10498 shlibpath_var=LD_LIBRARY_PATH
10499 else
10500 # With GCC up to 2.95.x, collect2 would create an import file
10501 # for dependence libraries. The import file would start with
10502 # the line `#! .'. This would cause the generated library to
10503 # depend on `.', always an invalid library. This was fixed in
10504 # development snapshots of GCC prior to 3.0.
10505 case $host_os in
10506 aix4 | aix4.[01] | aix4.[01].*)
10507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10508 echo ' yes '
10509 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10510 :
10511 else
10512 can_build_shared=no
10513 fi
10514 ;;
10515 esac
10516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10517 # soname into executable. Probably we can add versioning support to
10518 # collect2, so additional links can be useful in future.
10519 if test "$aix_use_runtimelinking" = yes; then
10520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10521 # instead of lib<name>.a to let people know that these are not
10522 # typical AIX shared libraries.
10523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524 else
10525 # We preserve .a as extension for shared libraries through AIX4.2
10526 # and later when we are not doing run time linking.
10527 library_names_spec='${libname}${release}.a $libname.a'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 fi
10530 shlibpath_var=LIBPATH
10531 fi
10532 ;;
10533
10534amigaos*)
10535 case $host_cpu in
10536 powerpc)
10537 # Since July 2007 AmigaOS4 officially supports .so libraries.
10538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10540 ;;
10541 m68k)
10542 library_names_spec='$libname.ixlibrary $libname.a'
10543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10544 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'
10545 ;;
10546 esac
10547 ;;
10548
10549beos*)
10550 library_names_spec='${libname}${shared_ext}'
10551 dynamic_linker="$host_os ld.so"
10552 shlibpath_var=LIBRARY_PATH
10553 ;;
10554
10555bsdi[45]*)
10556 version_type=linux
10557 need_version=no
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10561 shlibpath_var=LD_LIBRARY_PATH
10562 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10563 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10564 # the default ld.so.conf also contains /usr/contrib/lib and
10565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10566 # libtool to hard-code these into programs
10567 ;;
10568
10569cygwin* | mingw* | pw32* | cegcc*)
10570 version_type=windows
10571 shrext_cmds=".dll"
10572 need_version=no
10573 need_lib_prefix=no
10574
10575 case $GCC,$host_os in
10576 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10577 library_names_spec='$libname.dll.a'
10578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10579 postinstall_cmds='base_file=`basename \${file}`~
10580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10581 dldir=$destdir/`dirname \$dlpath`~
10582 test -d \$dldir || mkdir -p \$dldir~
10583 $install_prog $dir/$dlname \$dldir/$dlname~
10584 chmod a+x \$dldir/$dlname~
10585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10587 fi'
10588 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10589 dlpath=$dir/\$dldll~
10590 $RM \$dlpath'
10591 shlibpath_overrides_runpath=yes
10592
10593 case $host_os in
10594 cygwin*)
10595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10596 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597
10598 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10599 ;;
10600 mingw* | cegcc*)
10601 # MinGW DLLs use traditional 'lib' prefix
10602 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10603 ;;
10604 pw32*)
10605 # pw32 DLLs use 'pw' prefix rather than 'lib'
10606 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10607 ;;
10608 esac
10609 ;;
10610
10611 *)
10612 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10613 ;;
10614 esac
10615 dynamic_linker='Win32 ld.exe'
10616 # FIXME: first we should search . and the directory the executable is in
10617 shlibpath_var=PATH
10618 ;;
10619
10620darwin* | rhapsody*)
10621 dynamic_linker="$host_os dyld"
10622 version_type=darwin
10623 need_lib_prefix=no
10624 need_version=no
10625 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10626 soname_spec='${libname}${release}${major}$shared_ext'
10627 shlibpath_overrides_runpath=yes
10628 shlibpath_var=DYLD_LIBRARY_PATH
10629 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10630
10631 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10632 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10633 ;;
10634
10635dgux*)
10636 version_type=linux
10637 need_lib_prefix=no
10638 need_version=no
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10640 soname_spec='${libname}${release}${shared_ext}$major'
10641 shlibpath_var=LD_LIBRARY_PATH
10642 ;;
10643
10644freebsd* | dragonfly*)
10645 # DragonFly does not have aout. When/if they implement a new
10646 # versioning mechanism, adjust this.
10647 if test -x /usr/bin/objformat; then
10648 objformat=`/usr/bin/objformat`
10649 else
10650 case $host_os in
10651 freebsd[23].*) objformat=aout ;;
10652 *) objformat=elf ;;
10653 esac
10654 fi
10655 version_type=freebsd-$objformat
10656 case $version_type in
10657 freebsd-elf*)
10658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10659 need_version=no
10660 need_lib_prefix=no
10661 ;;
10662 freebsd-*)
10663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10664 need_version=yes
10665 ;;
10666 esac
10667 shlibpath_var=LD_LIBRARY_PATH
10668 case $host_os in
10669 freebsd2.*)
10670 shlibpath_overrides_runpath=yes
10671 ;;
10672 freebsd3.[01]* | freebsdelf3.[01]*)
10673 shlibpath_overrides_runpath=yes
10674 hardcode_into_libs=yes
10675 ;;
10676 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10677 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10678 shlibpath_overrides_runpath=no
10679 hardcode_into_libs=yes
10680 ;;
10681 *) # from 4.6 on, and DragonFly
10682 shlibpath_overrides_runpath=yes
10683 hardcode_into_libs=yes
10684 ;;
10685 esac
10686 ;;
10687
10688gnu*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 hardcode_into_libs=yes
10696 ;;
10697
10698haiku*)
10699 version_type=linux
10700 need_lib_prefix=no
10701 need_version=no
10702 dynamic_linker="$host_os runtime_loader"
10703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10704 soname_spec='${libname}${release}${shared_ext}$major'
10705 shlibpath_var=LIBRARY_PATH
10706 shlibpath_overrides_runpath=yes
10707 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10708 hardcode_into_libs=yes
10709 ;;
10710
10711hpux9* | hpux10* | hpux11*)
10712 # Give a soname corresponding to the major version so that dld.sl refuses to
10713 # link against other versions.
10714 version_type=sunos
10715 need_lib_prefix=no
10716 need_version=no
10717 case $host_cpu in
10718 ia64*)
10719 shrext_cmds='.so'
10720 hardcode_into_libs=yes
10721 dynamic_linker="$host_os dld.so"
10722 shlibpath_var=LD_LIBRARY_PATH
10723 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 if test "X$HPUX_IA64_MODE" = X32; then
10727 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10728 else
10729 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10730 fi
10731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10732 ;;
10733 hppa*64*)
10734 shrext_cmds='.sl'
10735 hardcode_into_libs=yes
10736 dynamic_linker="$host_os dld.sl"
10737 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10738 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10740 soname_spec='${libname}${release}${shared_ext}$major'
10741 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10742 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10743 ;;
10744 *)
10745 shrext_cmds='.sl'
10746 dynamic_linker="$host_os dld.sl"
10747 shlibpath_var=SHLIB_PATH
10748 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 ;;
10752 esac
10753 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10754 postinstall_cmds='chmod 555 $lib'
10755 # or fails outright, so override atomically:
10756 install_override_mode=555
10757 ;;
10758
10759interix[3-9]*)
10760 version_type=linux
10761 need_lib_prefix=no
10762 need_version=no
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10766 shlibpath_var=LD_LIBRARY_PATH
10767 shlibpath_overrides_runpath=no
10768 hardcode_into_libs=yes
10769 ;;
10770
10771irix5* | irix6* | nonstopux*)
10772 case $host_os in
10773 nonstopux*) version_type=nonstopux ;;
10774 *)
10775 if test "$lt_cv_prog_gnu_ld" = yes; then
10776 version_type=linux
10777 else
10778 version_type=irix
10779 fi ;;
10780 esac
10781 need_lib_prefix=no
10782 need_version=no
10783 soname_spec='${libname}${release}${shared_ext}$major'
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10785 case $host_os in
10786 irix5* | nonstopux*)
10787 libsuff= shlibsuff=
10788 ;;
10789 *)
10790 case $LD in # libtool.m4 will add one of these switches to LD
10791 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10792 libsuff= shlibsuff= libmagic=32-bit;;
10793 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10794 libsuff=32 shlibsuff=N32 libmagic=N32;;
10795 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10796 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10797 *) libsuff= shlibsuff= libmagic=never-match;;
10798 esac
10799 ;;
10800 esac
10801 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10802 shlibpath_overrides_runpath=no
10803 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10804 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10805 hardcode_into_libs=yes
10806 ;;
10807
10808# No shared lib support for Linux oldld, aout, or coff.
10809linux*oldld* | linux*aout* | linux*coff*)
10810 dynamic_linker=no
10811 ;;
10812
10813# This must be Linux ELF.
e9085da5
MR
10814
10815# uclinux* changes (here and below) have been submitted to the libtool
10816# project, but have not yet been accepted: they are GCC-local changes
10817# for the time being. (See
10818# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10819linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
10820 version_type=linux
10821 need_lib_prefix=no
10822 need_version=no
10823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824 soname_spec='${libname}${release}${shared_ext}$major'
10825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=no
10828
10829 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10830 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
eff02e4f
ILT
10831 $as_echo_n "(cached) " >&6
10832else
10833 lt_cv_shlibpath_overrides_runpath=no
10834 save_LDFLAGS=$LDFLAGS
10835 save_libdir=$libdir
10836 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10837 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10839/* end confdefs.h. */
10840
10841int
10842main ()
10843{
10844
10845 ;
10846 return 0;
10847}
10848_ACEOF
10849if ac_fn_c_try_link "$LINENO"; then :
10850 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10851 lt_cv_shlibpath_overrides_runpath=yes
10852fi
10853fi
10854rm -f core conftest.err conftest.$ac_objext \
10855 conftest$ac_exeext conftest.$ac_ext
10856 LDFLAGS=$save_LDFLAGS
10857 libdir=$save_libdir
10858
10859fi
10860
10861 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10862
10863 # This implies no fast_install, which is unacceptable.
10864 # Some rework will be needed to allow for fast_install
10865 # before this can be enabled.
10866 hardcode_into_libs=yes
10867
10868 # Append ld.so.conf contents to the search path
10869 if test -f /etc/ld.so.conf; then
10870 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' ' '`
10871 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10872 fi
10873
10874 # We used to test for /lib/ld.so.1 and disable shared libraries on
10875 # powerpc, because MkLinux only supported shared libraries with the
10876 # GNU dynamic linker. Since this was broken with cross compilers,
10877 # most powerpc-linux boxes support dynamic linking these days and
10878 # people can always --disable-shared, the test was removed, and we
10879 # assume the GNU/Linux dynamic linker is in use.
10880 dynamic_linker='GNU/Linux ld.so'
10881 ;;
10882
10883netbsd*)
10884 version_type=sunos
10885 need_lib_prefix=no
10886 need_version=no
10887 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10890 dynamic_linker='NetBSD (a.out) ld.so'
10891 else
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 dynamic_linker='NetBSD ld.elf_so'
10895 fi
10896 shlibpath_var=LD_LIBRARY_PATH
10897 shlibpath_overrides_runpath=yes
10898 hardcode_into_libs=yes
10899 ;;
10900
10901newsos6)
10902 version_type=linux
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 shlibpath_var=LD_LIBRARY_PATH
10905 shlibpath_overrides_runpath=yes
10906 ;;
10907
10908*nto* | *qnx*)
10909 version_type=qnx
10910 need_lib_prefix=no
10911 need_version=no
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=no
10916 hardcode_into_libs=yes
10917 dynamic_linker='ldqnx.so'
10918 ;;
10919
10920openbsd*)
10921 version_type=sunos
10922 sys_lib_dlsearch_path_spec="/usr/lib"
10923 need_lib_prefix=no
10924 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10925 case $host_os in
10926 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10927 *) need_version=no ;;
10928 esac
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10933 case $host_os in
10934 openbsd2.[89] | openbsd2.[89].*)
10935 shlibpath_overrides_runpath=no
10936 ;;
10937 *)
10938 shlibpath_overrides_runpath=yes
10939 ;;
10940 esac
10941 else
10942 shlibpath_overrides_runpath=yes
10943 fi
10944 ;;
10945
10946os2*)
10947 libname_spec='$name'
10948 shrext_cmds=".dll"
10949 need_lib_prefix=no
10950 library_names_spec='$libname${shared_ext} $libname.a'
10951 dynamic_linker='OS/2 ld.exe'
10952 shlibpath_var=LIBPATH
10953 ;;
10954
10955osf3* | osf4* | osf5*)
10956 version_type=osf
10957 need_lib_prefix=no
10958 need_version=no
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10963 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10964 ;;
10965
10966rdos*)
10967 dynamic_linker=no
10968 ;;
10969
10970solaris*)
10971 version_type=linux
10972 need_lib_prefix=no
10973 need_version=no
10974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975 soname_spec='${libname}${release}${shared_ext}$major'
10976 shlibpath_var=LD_LIBRARY_PATH
10977 shlibpath_overrides_runpath=yes
10978 hardcode_into_libs=yes
10979 # ldd complains unless libraries are executable
10980 postinstall_cmds='chmod +x $lib'
10981 ;;
10982
10983sunos4*)
10984 version_type=sunos
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=yes
10989 if test "$with_gnu_ld" = yes; then
10990 need_lib_prefix=no
10991 fi
10992 need_version=yes
10993 ;;
10994
10995sysv4 | sysv4.3*)
10996 version_type=linux
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 case $host_vendor in
11001 sni)
11002 shlibpath_overrides_runpath=no
11003 need_lib_prefix=no
11004 runpath_var=LD_RUN_PATH
11005 ;;
11006 siemens)
11007 need_lib_prefix=no
11008 ;;
11009 motorola)
11010 need_lib_prefix=no
11011 need_version=no
11012 shlibpath_overrides_runpath=no
11013 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11014 ;;
11015 esac
11016 ;;
11017
11018sysv4*MP*)
11019 if test -d /usr/nec ;then
11020 version_type=linux
11021 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11022 soname_spec='$libname${shared_ext}.$major'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 fi
11025 ;;
11026
11027sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11028 version_type=freebsd-elf
11029 need_lib_prefix=no
11030 need_version=no
11031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11032 soname_spec='${libname}${release}${shared_ext}$major'
11033 shlibpath_var=LD_LIBRARY_PATH
11034 shlibpath_overrides_runpath=yes
11035 hardcode_into_libs=yes
11036 if test "$with_gnu_ld" = yes; then
11037 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11038 else
11039 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11040 case $host_os in
11041 sco3.2v5*)
11042 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11043 ;;
11044 esac
11045 fi
11046 sys_lib_dlsearch_path_spec='/usr/lib'
11047 ;;
11048
11049tpf*)
11050 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11051 version_type=linux
11052 need_lib_prefix=no
11053 need_version=no
11054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 shlibpath_overrides_runpath=no
11057 hardcode_into_libs=yes
11058 ;;
11059
11060uts4*)
11061 version_type=linux
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 ;;
11066
11067*)
11068 dynamic_linker=no
11069 ;;
11070esac
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11072$as_echo "$dynamic_linker" >&6; }
11073test "$dynamic_linker" = no && can_build_shared=no
11074
11075variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11076if test "$GCC" = yes; then
11077 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11078fi
11079
11080if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11081 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11082fi
11083if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11084 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11085fi
11086
11087
11088
11089
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11179$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11180hardcode_action=
11181if test -n "$hardcode_libdir_flag_spec" ||
11182 test -n "$runpath_var" ||
11183 test "X$hardcode_automatic" = "Xyes" ; then
11184
11185 # We can hardcode non-existent directories.
11186 if test "$hardcode_direct" != no &&
11187 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11188 # have to relink, otherwise we might link with an installed library
11189 # when we should be linking with a yet-to-be-installed one
11190 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11191 test "$hardcode_minus_L" != no; then
11192 # Linking always hardcodes the temporary library directory.
11193 hardcode_action=relink
11194 else
11195 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11196 hardcode_action=immediate
11197 fi
11198else
11199 # We cannot hardcode anything, or else we can only hardcode existing
11200 # directories.
11201 hardcode_action=unsupported
11202fi
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11204$as_echo "$hardcode_action" >&6; }
11205
11206if test "$hardcode_action" = relink ||
11207 test "$inherit_rpath" = yes; then
11208 # Fast installation is not supported
11209 enable_fast_install=no
11210elif test "$shlibpath_overrides_runpath" = yes ||
11211 test "$enable_shared" = no; then
11212 # Fast installation is not necessary
11213 enable_fast_install=needless
11214fi
11215
11216
11217
11218
11219
11220
11221 if test "x$enable_dlopen" != xyes; then
11222 enable_dlopen=unknown
11223 enable_dlopen_self=unknown
11224 enable_dlopen_self_static=unknown
11225else
11226 lt_cv_dlopen=no
11227 lt_cv_dlopen_libs=
11228
11229 case $host_os in
11230 beos*)
11231 lt_cv_dlopen="load_add_on"
11232 lt_cv_dlopen_libs=
11233 lt_cv_dlopen_self=yes
11234 ;;
11235
11236 mingw* | pw32* | cegcc*)
11237 lt_cv_dlopen="LoadLibrary"
11238 lt_cv_dlopen_libs=
11239 ;;
11240
11241 cygwin*)
11242 lt_cv_dlopen="dlopen"
11243 lt_cv_dlopen_libs=
11244 ;;
11245
11246 darwin*)
11247 # if libdl is installed we need to link against it
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11249$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11250if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11251 $as_echo_n "(cached) " >&6
11252else
11253 ac_check_lib_save_LIBS=$LIBS
11254LIBS="-ldl $LIBS"
11255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11256/* end confdefs.h. */
11257
11258/* Override any GCC internal prototype to avoid an error.
11259 Use char because int might match the return type of a GCC
11260 builtin and then its argument prototype would still apply. */
11261#ifdef __cplusplus
11262extern "C"
11263#endif
11264char dlopen ();
11265int
11266main ()
11267{
11268return dlopen ();
11269 ;
11270 return 0;
11271}
11272_ACEOF
11273if ac_fn_c_try_link "$LINENO"; then :
11274 ac_cv_lib_dl_dlopen=yes
11275else
11276 ac_cv_lib_dl_dlopen=no
11277fi
11278rm -f core conftest.err conftest.$ac_objext \
11279 conftest$ac_exeext conftest.$ac_ext
11280LIBS=$ac_check_lib_save_LIBS
11281fi
11282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11283$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11284if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11285 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11286else
11287
11288 lt_cv_dlopen="dyld"
11289 lt_cv_dlopen_libs=
11290 lt_cv_dlopen_self=yes
11291
11292fi
11293
11294 ;;
11295
11296 *)
11297 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11298if test "x$ac_cv_func_shl_load" = xyes; then :
eff02e4f
ILT
11299 lt_cv_dlopen="shl_load"
11300else
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11302$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11303if ${ac_cv_lib_dld_shl_load+:} false; then :
eff02e4f
ILT
11304 $as_echo_n "(cached) " >&6
11305else
11306 ac_check_lib_save_LIBS=$LIBS
11307LIBS="-ldld $LIBS"
11308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309/* end confdefs.h. */
11310
11311/* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314#ifdef __cplusplus
11315extern "C"
11316#endif
11317char shl_load ();
11318int
11319main ()
11320{
11321return shl_load ();
11322 ;
11323 return 0;
11324}
11325_ACEOF
11326if ac_fn_c_try_link "$LINENO"; then :
11327 ac_cv_lib_dld_shl_load=yes
11328else
11329 ac_cv_lib_dld_shl_load=no
11330fi
11331rm -f core conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11333LIBS=$ac_check_lib_save_LIBS
11334fi
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11336$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11337if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
eff02e4f
ILT
11338 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11339else
11340 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11341if test "x$ac_cv_func_dlopen" = xyes; then :
eff02e4f
ILT
11342 lt_cv_dlopen="dlopen"
11343else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11345$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11346if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11347 $as_echo_n "(cached) " >&6
11348else
11349 ac_check_lib_save_LIBS=$LIBS
11350LIBS="-ldl $LIBS"
11351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352/* end confdefs.h. */
11353
11354/* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11357#ifdef __cplusplus
11358extern "C"
11359#endif
11360char dlopen ();
11361int
11362main ()
11363{
11364return dlopen ();
11365 ;
11366 return 0;
11367}
11368_ACEOF
11369if ac_fn_c_try_link "$LINENO"; then :
11370 ac_cv_lib_dl_dlopen=yes
11371else
11372 ac_cv_lib_dl_dlopen=no
11373fi
11374rm -f core conftest.err conftest.$ac_objext \
11375 conftest$ac_exeext conftest.$ac_ext
11376LIBS=$ac_check_lib_save_LIBS
11377fi
11378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11379$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11380if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11381 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11382else
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11384$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11385if ${ac_cv_lib_svld_dlopen+:} false; then :
eff02e4f
ILT
11386 $as_echo_n "(cached) " >&6
11387else
11388 ac_check_lib_save_LIBS=$LIBS
11389LIBS="-lsvld $LIBS"
11390cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11391/* end confdefs.h. */
11392
11393/* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11396#ifdef __cplusplus
11397extern "C"
11398#endif
11399char dlopen ();
11400int
11401main ()
11402{
11403return dlopen ();
11404 ;
11405 return 0;
11406}
11407_ACEOF
11408if ac_fn_c_try_link "$LINENO"; then :
11409 ac_cv_lib_svld_dlopen=yes
11410else
11411 ac_cv_lib_svld_dlopen=no
11412fi
11413rm -f core conftest.err conftest.$ac_objext \
11414 conftest$ac_exeext conftest.$ac_ext
11415LIBS=$ac_check_lib_save_LIBS
11416fi
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11418$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11419if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
eff02e4f
ILT
11420 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11421else
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11423$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11424if ${ac_cv_lib_dld_dld_link+:} false; then :
eff02e4f
ILT
11425 $as_echo_n "(cached) " >&6
11426else
11427 ac_check_lib_save_LIBS=$LIBS
11428LIBS="-ldld $LIBS"
11429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430/* end confdefs.h. */
11431
11432/* Override any GCC internal prototype to avoid an error.
11433 Use char because int might match the return type of a GCC
11434 builtin and then its argument prototype would still apply. */
11435#ifdef __cplusplus
11436extern "C"
11437#endif
11438char dld_link ();
11439int
11440main ()
11441{
11442return dld_link ();
11443 ;
11444 return 0;
11445}
11446_ACEOF
11447if ac_fn_c_try_link "$LINENO"; then :
11448 ac_cv_lib_dld_dld_link=yes
11449else
11450 ac_cv_lib_dld_dld_link=no
11451fi
11452rm -f core conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11454LIBS=$ac_check_lib_save_LIBS
11455fi
11456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11457$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11458if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
eff02e4f
ILT
11459 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11460fi
11461
11462
11463fi
11464
11465
11466fi
11467
11468
11469fi
11470
11471
11472fi
11473
11474
11475fi
11476
11477 ;;
11478 esac
11479
11480 if test "x$lt_cv_dlopen" != xno; then
11481 enable_dlopen=yes
11482 else
11483 enable_dlopen=no
11484 fi
11485
11486 case $lt_cv_dlopen in
11487 dlopen)
11488 save_CPPFLAGS="$CPPFLAGS"
11489 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11490
11491 save_LDFLAGS="$LDFLAGS"
11492 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11493
11494 save_LIBS="$LIBS"
11495 LIBS="$lt_cv_dlopen_libs $LIBS"
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11498$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11499if ${lt_cv_dlopen_self+:} false; then :
eff02e4f
ILT
11500 $as_echo_n "(cached) " >&6
11501else
11502 if test "$cross_compiling" = yes; then :
11503 lt_cv_dlopen_self=cross
11504else
11505 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11506 lt_status=$lt_dlunknown
11507 cat > conftest.$ac_ext <<_LT_EOF
d2148648 11508#line 11508 "configure"
eff02e4f
ILT
11509#include "confdefs.h"
11510
11511#if HAVE_DLFCN_H
11512#include <dlfcn.h>
11513#endif
11514
11515#include <stdio.h>
11516
11517#ifdef RTLD_GLOBAL
11518# define LT_DLGLOBAL RTLD_GLOBAL
11519#else
11520# ifdef DL_GLOBAL
11521# define LT_DLGLOBAL DL_GLOBAL
11522# else
11523# define LT_DLGLOBAL 0
11524# endif
11525#endif
11526
11527/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11528 find out it does not work in some platform. */
11529#ifndef LT_DLLAZY_OR_NOW
11530# ifdef RTLD_LAZY
11531# define LT_DLLAZY_OR_NOW RTLD_LAZY
11532# else
11533# ifdef DL_LAZY
11534# define LT_DLLAZY_OR_NOW DL_LAZY
11535# else
11536# ifdef RTLD_NOW
11537# define LT_DLLAZY_OR_NOW RTLD_NOW
11538# else
11539# ifdef DL_NOW
11540# define LT_DLLAZY_OR_NOW DL_NOW
11541# else
11542# define LT_DLLAZY_OR_NOW 0
11543# endif
11544# endif
11545# endif
11546# endif
11547#endif
11548
11549/* When -fvisbility=hidden is used, assume the code has been annotated
11550 correspondingly for the symbols needed. */
11551#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11552void fnord () __attribute__((visibility("default")));
11553#endif
11554
11555void fnord () { int i=42; }
11556int main ()
11557{
11558 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11559 int status = $lt_dlunknown;
11560
11561 if (self)
11562 {
11563 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11564 else
11565 {
11566 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11567 else puts (dlerror ());
11568 }
11569 /* dlclose (self); */
11570 }
11571 else
11572 puts (dlerror ());
11573
11574 return status;
11575}
11576_LT_EOF
11577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11578 (eval $ac_link) 2>&5
11579 ac_status=$?
11580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11582 (./conftest; exit; ) >&5 2>/dev/null
11583 lt_status=$?
11584 case x$lt_status in
11585 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11586 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11587 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11588 esac
11589 else :
11590 # compilation failed
11591 lt_cv_dlopen_self=no
11592 fi
11593fi
11594rm -fr conftest*
11595
11596
11597fi
11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11599$as_echo "$lt_cv_dlopen_self" >&6; }
11600
11601 if test "x$lt_cv_dlopen_self" = xyes; then
11602 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11604$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11605if ${lt_cv_dlopen_self_static+:} false; then :
eff02e4f
ILT
11606 $as_echo_n "(cached) " >&6
11607else
11608 if test "$cross_compiling" = yes; then :
11609 lt_cv_dlopen_self_static=cross
11610else
11611 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11612 lt_status=$lt_dlunknown
11613 cat > conftest.$ac_ext <<_LT_EOF
d2148648 11614#line 11614 "configure"
eff02e4f
ILT
11615#include "confdefs.h"
11616
11617#if HAVE_DLFCN_H
11618#include <dlfcn.h>
11619#endif
11620
11621#include <stdio.h>
11622
11623#ifdef RTLD_GLOBAL
11624# define LT_DLGLOBAL RTLD_GLOBAL
11625#else
11626# ifdef DL_GLOBAL
11627# define LT_DLGLOBAL DL_GLOBAL
11628# else
11629# define LT_DLGLOBAL 0
11630# endif
11631#endif
11632
11633/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11634 find out it does not work in some platform. */
11635#ifndef LT_DLLAZY_OR_NOW
11636# ifdef RTLD_LAZY
11637# define LT_DLLAZY_OR_NOW RTLD_LAZY
11638# else
11639# ifdef DL_LAZY
11640# define LT_DLLAZY_OR_NOW DL_LAZY
11641# else
11642# ifdef RTLD_NOW
11643# define LT_DLLAZY_OR_NOW RTLD_NOW
11644# else
11645# ifdef DL_NOW
11646# define LT_DLLAZY_OR_NOW DL_NOW
11647# else
11648# define LT_DLLAZY_OR_NOW 0
11649# endif
11650# endif
11651# endif
11652# endif
11653#endif
11654
11655/* When -fvisbility=hidden is used, assume the code has been annotated
11656 correspondingly for the symbols needed. */
11657#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11658void fnord () __attribute__((visibility("default")));
11659#endif
11660
11661void fnord () { int i=42; }
11662int main ()
11663{
11664 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11665 int status = $lt_dlunknown;
11666
11667 if (self)
11668 {
11669 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11670 else
11671 {
11672 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11673 else puts (dlerror ());
11674 }
11675 /* dlclose (self); */
11676 }
11677 else
11678 puts (dlerror ());
11679
11680 return status;
11681}
11682_LT_EOF
11683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11684 (eval $ac_link) 2>&5
11685 ac_status=$?
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11688 (./conftest; exit; ) >&5 2>/dev/null
11689 lt_status=$?
11690 case x$lt_status in
11691 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11692 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11693 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11694 esac
11695 else :
11696 # compilation failed
11697 lt_cv_dlopen_self_static=no
11698 fi
11699fi
11700rm -fr conftest*
11701
11702
11703fi
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11705$as_echo "$lt_cv_dlopen_self_static" >&6; }
11706 fi
11707
11708 CPPFLAGS="$save_CPPFLAGS"
11709 LDFLAGS="$save_LDFLAGS"
11710 LIBS="$save_LIBS"
11711 ;;
11712 esac
11713
11714 case $lt_cv_dlopen_self in
11715 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11716 *) enable_dlopen_self=unknown ;;
11717 esac
11718
11719 case $lt_cv_dlopen_self_static in
11720 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11721 *) enable_dlopen_self_static=unknown ;;
11722 esac
11723fi
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741striplib=
11742old_striplib=
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11744$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11745if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11746 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11747 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749$as_echo "yes" >&6; }
11750else
11751# FIXME - insert some real tests, host_os isn't really good enough
11752 case $host_os in
11753 darwin*)
11754 if test -n "$STRIP" ; then
11755 striplib="$STRIP -x"
11756 old_striplib="$STRIP -S"
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11758$as_echo "yes" >&6; }
11759 else
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
11762 fi
11763 ;;
11764 *)
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766$as_echo "no" >&6; }
11767 ;;
11768 esac
11769fi
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 # Report which library types will actually be built
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11784$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11786$as_echo "$can_build_shared" >&6; }
11787
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11789$as_echo_n "checking whether to build shared libraries... " >&6; }
11790 test "$can_build_shared" = "no" && enable_shared=no
11791
11792 # On AIX, shared libraries and static libraries use the same namespace, and
11793 # are all built from PIC.
11794 case $host_os in
11795 aix3*)
11796 test "$enable_shared" = yes && enable_static=no
11797 if test -n "$RANLIB"; then
11798 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11799 postinstall_cmds='$RANLIB $lib'
11800 fi
11801 ;;
11802
11803 aix[4-9]*)
11804 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11805 test "$enable_shared" = yes && enable_static=no
11806 fi
11807 ;;
11808 esac
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11810$as_echo "$enable_shared" >&6; }
11811
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11813$as_echo_n "checking whether to build static libraries... " >&6; }
11814 # Make sure either enable_shared or enable_static is yes.
11815 test "$enable_shared" = yes || enable_static=yes
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11817$as_echo "$enable_static" >&6; }
11818
11819
11820
11821
11822fi
11823ac_ext=c
11824ac_cpp='$CPP $CPPFLAGS'
11825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11827ac_compiler_gnu=$ac_cv_c_compiler_gnu
11828
11829CC="$lt_save_CC"
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 ac_config_commands="$ac_config_commands libtool"
11844
11845
11846
11847
11848# Only expand once:
11849
11850
11851
11852
e91a2ddc
RB
11853# Check whether --enable-largefile was given.
11854if test "${enable_largefile+set}" = set; then :
11855 enableval=$enable_largefile;
11856fi
11857
11858if test "$enable_largefile" != no; then
11859
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11861$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 11862if ${ac_cv_sys_largefile_CC+:} false; then :
e91a2ddc
RB
11863 $as_echo_n "(cached) " >&6
11864else
11865 ac_cv_sys_largefile_CC=no
11866 if test "$GCC" != yes; then
11867 ac_save_CC=$CC
11868 while :; do
11869 # IRIX 6.2 and later do not support large files by default,
11870 # so use the C compiler's -n32 option if that helps.
11871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11872/* end confdefs.h. */
11873#include <sys/types.h>
11874 /* Check that off_t can represent 2**63 - 1 correctly.
11875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11876 since some C++ compilers masquerading as C compilers
11877 incorrectly reject 9223372036854775807. */
11878#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11880 && LARGE_OFF_T % 2147483647 == 1)
11881 ? 1 : -1];
11882int
11883main ()
11884{
11885
11886 ;
11887 return 0;
11888}
11889_ACEOF
11890 if ac_fn_c_try_compile "$LINENO"; then :
11891 break
11892fi
11893rm -f core conftest.err conftest.$ac_objext
11894 CC="$CC -n32"
11895 if ac_fn_c_try_compile "$LINENO"; then :
11896 ac_cv_sys_largefile_CC=' -n32'; break
11897fi
11898rm -f core conftest.err conftest.$ac_objext
11899 break
11900 done
11901 CC=$ac_save_CC
11902 rm -f conftest.$ac_ext
11903 fi
11904fi
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11906$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11907 if test "$ac_cv_sys_largefile_CC" != no; then
11908 CC=$CC$ac_cv_sys_largefile_CC
11909 fi
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11912$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 11913if ${ac_cv_sys_file_offset_bits+:} false; then :
e91a2ddc
RB
11914 $as_echo_n "(cached) " >&6
11915else
11916 while :; do
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918/* end confdefs.h. */
11919#include <sys/types.h>
11920 /* Check that off_t can represent 2**63 - 1 correctly.
11921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11922 since some C++ compilers masquerading as C compilers
11923 incorrectly reject 9223372036854775807. */
11924#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11926 && LARGE_OFF_T % 2147483647 == 1)
11927 ? 1 : -1];
11928int
11929main ()
11930{
11931
11932 ;
11933 return 0;
11934}
11935_ACEOF
11936if ac_fn_c_try_compile "$LINENO"; then :
11937 ac_cv_sys_file_offset_bits=no; break
11938fi
11939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11941/* end confdefs.h. */
11942#define _FILE_OFFSET_BITS 64
11943#include <sys/types.h>
11944 /* Check that off_t can represent 2**63 - 1 correctly.
11945 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11946 since some C++ compilers masquerading as C compilers
11947 incorrectly reject 9223372036854775807. */
11948#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11949 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11950 && LARGE_OFF_T % 2147483647 == 1)
11951 ? 1 : -1];
11952int
11953main ()
11954{
11955
11956 ;
11957 return 0;
11958}
11959_ACEOF
11960if ac_fn_c_try_compile "$LINENO"; then :
11961 ac_cv_sys_file_offset_bits=64; break
11962fi
11963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11964 ac_cv_sys_file_offset_bits=unknown
11965 break
11966done
11967fi
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11969$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11970case $ac_cv_sys_file_offset_bits in #(
11971 no | unknown) ;;
11972 *)
11973cat >>confdefs.h <<_ACEOF
11974#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11975_ACEOF
11976;;
11977esac
11978rm -rf conftest*
11979 if test $ac_cv_sys_file_offset_bits = unknown; then
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11981$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 11982if ${ac_cv_sys_large_files+:} false; then :
e91a2ddc
RB
11983 $as_echo_n "(cached) " >&6
11984else
11985 while :; do
11986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11987/* end confdefs.h. */
11988#include <sys/types.h>
11989 /* Check that off_t can represent 2**63 - 1 correctly.
11990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11991 since some C++ compilers masquerading as C compilers
11992 incorrectly reject 9223372036854775807. */
11993#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11995 && LARGE_OFF_T % 2147483647 == 1)
11996 ? 1 : -1];
11997int
11998main ()
11999{
12000
12001 ;
12002 return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_compile "$LINENO"; then :
12006 ac_cv_sys_large_files=no; break
12007fi
12008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010/* end confdefs.h. */
12011#define _LARGE_FILES 1
12012#include <sys/types.h>
12013 /* Check that off_t can represent 2**63 - 1 correctly.
12014 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12015 since some C++ compilers masquerading as C compilers
12016 incorrectly reject 9223372036854775807. */
12017#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12018 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12019 && LARGE_OFF_T % 2147483647 == 1)
12020 ? 1 : -1];
12021int
12022main ()
12023{
12024
12025 ;
12026 return 0;
12027}
12028_ACEOF
12029if ac_fn_c_try_compile "$LINENO"; then :
12030 ac_cv_sys_large_files=1; break
12031fi
12032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 ac_cv_sys_large_files=unknown
12034 break
12035done
12036fi
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12038$as_echo "$ac_cv_sys_large_files" >&6; }
12039case $ac_cv_sys_large_files in #(
12040 no | unknown) ;;
12041 *)
12042cat >>confdefs.h <<_ACEOF
12043#define _LARGE_FILES $ac_cv_sys_large_files
12044_ACEOF
12045;;
12046esac
12047rm -rf conftest*
12048 fi
22e05272
JM
12049
12050
e91a2ddc
RB
12051fi
12052
12053
eff02e4f
ILT
12054backtrace_supported=yes
12055
12056if test -n "${with_target_subdir}"; then
12057 # We are compiling a GCC library. We can assume that the unwind
12058 # library exists.
eff02e4f
ILT
12059 BACKTRACE_FILE="backtrace.lo simple.lo"
12060else
12061 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
22e05272 12062if test "x$ac_cv_header_unwind_h" = xyes; then :
eff02e4f 12063 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
22e05272 12064if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
eff02e4f
ILT
12065 BACKTRACE_FILE="backtrace.lo simple.lo"
12066else
12067 BACKTRACE_FILE="nounwind.lo"
12068 backtrace_supported=no
12069fi
12070
12071else
12072 BACKTRACE_FILE="nounwind.lo"
12073 backtrace_supported=no
12074fi
12075
12076
12077fi
12078
12079
56195009 12080EXTRA_FLAGS=
32061319 12081if test -n "${with_target_subdir}"; then
36a58fb3 12082 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
32061319
ILT
12083else
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12085$as_echo_n "checking for -funwind-tables option... " >&6; }
22e05272 12086if ${libbacktrace_cv_c_unwind_tables+:} false; then :
32061319
ILT
12087 $as_echo_n "(cached) " >&6
12088else
12089 CFLAGS_hold="$CFLAGS"
12090 CFLAGS="$CFLAGS -funwind-tables"
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092/* end confdefs.h. */
12093static int f() { return 0; }
12094int
12095main ()
12096{
12097return f();
12098 ;
12099 return 0;
12100}
12101_ACEOF
12102if ac_fn_c_try_compile "$LINENO"; then :
12103 libbacktrace_cv_c_unwind_tables=yes
12104else
12105 libbacktrace_cv_c_unwind_tables=no
12106fi
12107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 CFLAGS="$CFLAGS_hold"
12109fi
12110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12111$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
36a58fb3
JJ
12112 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12113 EXTRA_FLAGS=-funwind-tables
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12116$as_echo_n "checking for -frandom-seed=string option... " >&6; }
22e05272 12117if ${libbacktrace_cv_c_random_seed_string+:} false; then :
36a58fb3
JJ
12118 $as_echo_n "(cached) " >&6
12119else
12120 CFLAGS_hold="$CFLAGS"
12121 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123/* end confdefs.h. */
12124
12125int
12126main ()
12127{
12128return 0;
12129 ;
12130 return 0;
12131}
12132_ACEOF
12133if ac_fn_c_try_compile "$LINENO"; then :
12134 libbacktrace_cv_c_random_seed_string=yes
12135else
12136 libbacktrace_cv_c_random_seed_string=no
12137fi
12138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 CFLAGS="$CFLAGS_hold"
12140fi
12141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12142$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12143 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12144 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12145 fi
56195009
UB
12146fi
12147
44685d37
IT
12148if test -n "${with_target_subdir}"; then
12149 # Add CET specific flags is Intel CET is enabled.
12150 # Check whether --enable-cet was given.
12151if test "${enable_cet+set}" = set; then :
12152 enableval=$enable_cet;
12153 case "$enableval" in
a0e1df88 12154 yes|no|auto) ;;
22e05272 12155 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
44685d37
IT
12156 esac
12157
12158else
8d286dd1 12159 enable_cet=auto
44685d37
IT
12160fi
12161
12162
14e335ed
IT
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12164$as_echo_n "checking for CET support... " >&6; }
12165
9051b548 12166# NB: Avoid nested save_CFLAGS and save_LDFLAGS.
44685d37
IT
12167case "$host" in
12168 i[34567]86-*-linux* | x86_64-*-linux*)
12169 case "$enable_cet" in
a0e1df88 12170 auto)
14e335ed 12171 # Check if target supports multi-byte NOPs
4712bde3 12172 # and if compiler and assembler support CET insn.
9051b548 12173 cet_save_CFLAGS="$CFLAGS"
4c1a5d8b 12174 CFLAGS="$CFLAGS -fcf-protection"
44685d37
IT
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176/* end confdefs.h. */
12177
12178int
12179main ()
12180{
14e335ed
IT
12181
12182#if !defined(__SSE2__)
12183#error target does not support multi-byte NOPs
12184#else
44685d37 12185asm ("setssbsy");
14e335ed
IT
12186#endif
12187
44685d37
IT
12188 ;
12189 return 0;
12190}
12191_ACEOF
12192if ac_fn_c_try_compile "$LINENO"; then :
12193 enable_cet=yes
12194else
12195 enable_cet=no
12196fi
12197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9051b548 12198 CFLAGS="$cet_save_CFLAGS"
44685d37
IT
12199 ;;
12200 yes)
12201 # Check if assembler supports CET.
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203/* end confdefs.h. */
12204
12205int
12206main ()
12207{
12208asm ("setssbsy");
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213if ac_fn_c_try_compile "$LINENO"; then :
12214
12215else
22e05272 12216 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
44685d37
IT
12217fi
12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 ;;
12220 esac
12221 ;;
12222 *)
12223 enable_cet=no
12224 ;;
12225esac
12226if test x$enable_cet = xyes; then
7b47ecf2 12227 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229$as_echo "yes" >&6; }
12230else
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
44685d37
IT
12233fi
12234
12235 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12236fi
12237
56195009 12238
1b533361
UW
12239ac_ext=c
12240ac_cpp='$CPP $CPPFLAGS'
12241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12243ac_compiler_gnu=$ac_cv_c_compiler_gnu
12244
eff02e4f
ILT
12245WARN_FLAGS=
12246save_CFLAGS="$CFLAGS"
12247for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12248 -Wmissing-prototypes -Wold-style-definition \
12249 -Wmissing-format-attribute -Wcast-qual; do
12250 # Do the check with the no- prefix removed since gcc silently
12251 # accepts any -Wno-* option on purpose
12252 case $real_option in
12253 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12254 *) option=$real_option ;;
12255 esac
12256 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12259$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 12260if eval \${$as_acx_Woption+:} false; then :
eff02e4f
ILT
12261 $as_echo_n "(cached) " >&6
12262else
12263 CFLAGS="$option"
12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h. */
12266
12267int
12268main ()
12269{
12270
12271 ;
12272 return 0;
12273}
12274_ACEOF
12275if ac_fn_c_try_compile "$LINENO"; then :
12276 eval "$as_acx_Woption=yes"
12277else
12278 eval "$as_acx_Woption=no"
12279fi
12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12281
12282fi
12283eval ac_res=\$$as_acx_Woption
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12285$as_echo "$ac_res" >&6; }
12286 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12287 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12288fi
12289 done
12290CFLAGS="$save_CFLAGS"
1b533361
UW
12291ac_ext=c
12292ac_cpp='$CPP $CPPFLAGS'
12293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295ac_compiler_gnu=$ac_cv_c_compiler_gnu
12296
eff02e4f
ILT
12297
12298
73c3ed27 12299if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12300 WARN_FLAGS="$WARN_FLAGS -Werror"
12301fi
12302
12303
12304
64b89453 12305if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12306
12307
12308# Check whether --with-system-libunwind was given.
12309if test "${with_system_libunwind+set}" = set; then :
12310 withval=$with_system_libunwind;
12311fi
12312
12313 # If system-libunwind was not specifically set, pick a default setting.
12314 if test x$with_system_libunwind = x; then
12315 case ${target} in
12316 ia64-*-hpux*) with_system_libunwind=yes ;;
12317 *) with_system_libunwind=no ;;
12318 esac
12319 fi
12320 # Based on system-libunwind and target, do we have ipinfo?
12321 if test x$with_system_libunwind = xyes; then
12322 case ${target} in
12323 ia64-*-*) have_unwind_getipinfo=no ;;
12324 *) have_unwind_getipinfo=yes ;;
12325 esac
12326 else
12327 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12328
12329 case ${target} in
12330 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12331 *) have_unwind_getipinfo=yes ;;
12332 esac
12333
12334 fi
12335
12336 if test x$have_unwind_getipinfo = xyes; then
12337
12338$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12339
12340 fi
12341
64b89453 12342else
385710cf
JH
12343 ac_save_CFFLAGS="$CFLAGS"
12344 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12346$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12348/* end confdefs.h. */
12349#include "unwind.h"
12350 struct _Unwind_Context *context;
12351 int ip_before_insn = 0;
12352int
12353main ()
12354{
12355return _Unwind_GetIPInfo (context, &ip_before_insn);
12356 ;
12357 return 0;
12358}
12359_ACEOF
63fefb4b 12360if ac_fn_c_try_link "$LINENO"; then :
64b89453
ILT
12361 have_unwind_getipinfo=yes
12362else
12363 have_unwind_getipinfo=no
12364fi
63fefb4b
MDM
12365rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
385710cf
JH
12367 CFLAGS="$ac_save_CFLAGS"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12369$as_echo "$have_unwind_getipinfo" >&6; }
64b89453
ILT
12370 if test "$have_unwind_getipinfo" = "yes"; then
12371
12372$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12373
12374 fi
12375fi
eff02e4f 12376
7e5c7547 12377# Enable --enable-host-shared.
459260ec
DM
12378# Check whether --enable-host-shared was given.
12379if test "${enable_host_shared+set}" = set; then :
12380 enableval=$enable_host_shared; PIC_FLAG=-fPIC
7e5c7547
UW
12381else
12382 PIC_FLAG=
459260ec
DM
12383fi
12384
eff02e4f
ILT
12385
12386
d2148648
L
12387# Enable Intel CET on Intel CET enabled host if jit is enabled.
12388 # Check whether --enable-cet was given.
12389if test "${enable_cet+set}" = set; then :
12390 enableval=$enable_cet;
12391 case "$enableval" in
12392 yes|no|auto) ;;
12393 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
12394 esac
12395
12396else
12397 enable_cet=auto
12398fi
12399
12400
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12402$as_echo_n "checking for CET support... " >&6; }
12403
12404case "$host" in
12405 i[34567]86-*-linux* | x86_64-*-linux*)
12406 may_have_cet=yes
9051b548 12407 cet_save_CFLAGS="$CFLAGS"
d2148648
L
12408 CFLAGS="$CFLAGS -fcf-protection"
12409 case "$enable_cet" in
12410 auto)
12411 # Check if target supports multi-byte NOPs
4712bde3 12412 # and if compiler and assembler support CET.
d2148648
L
12413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12414/* end confdefs.h. */
12415
12416int
12417main ()
12418{
12419
12420#if !defined(__SSE2__)
12421#error target does not support multi-byte NOPs
12422#else
12423asm ("setssbsy");
12424#endif
12425
12426 ;
12427 return 0;
12428}
12429_ACEOF
12430if ac_fn_c_try_compile "$LINENO"; then :
12431 enable_cet=yes
12432else
12433 enable_cet=no
12434fi
12435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436 ;;
12437 yes)
4712bde3 12438 # Check if compiler and assembler support CET.
d2148648
L
12439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12440/* end confdefs.h. */
12441
12442int
12443main ()
12444{
12445asm ("setssbsy");
12446 ;
12447 return 0;
12448}
12449_ACEOF
12450if ac_fn_c_try_compile "$LINENO"; then :
4712bde3 12451 support_cet=yes
d2148648 12452else
4712bde3 12453 support_cet=no
d2148648
L
12454fi
12455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4712bde3
L
12456 if test $support_cet = "no"; then
12457 if test x$enable_bootstrap != xno \
12458 && test -z "${with_build_subdir}" \
12459 && (test ! -f ../stage_current \
12460 || test `cat ../stage_current` != "stage1"); then
12461 # Require CET support only for the final GCC build.
12462 as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
12463 else
12464 # Don't enable CET without CET support for non-bootstrap
12465 # build, in stage1 nor for build support.
12466 enable_cet=no
12467 fi
12468 fi
d2148648
L
12469 ;;
12470 esac
9051b548 12471 CFLAGS="$cet_save_CFLAGS"
d2148648
L
12472 ;;
12473 *)
12474 may_have_cet=no
12475 enable_cet=no
12476 ;;
12477esac
12478
9051b548 12479cet_save_CFLAGS="$CFLAGS"
d2148648 12480CFLAGS="$CFLAGS -fcf-protection=none"
9051b548 12481cet_save_LDFLAGS="$LDFLAGS"
d2148648
L
12482LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
12483if test x$may_have_cet = xyes; then
12484 # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
12485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486/* end confdefs.h. */
12487
12488int
12489main ()
12490{
12491return 0;
12492 ;
12493 return 0;
12494}
12495_ACEOF
12496if ac_fn_c_try_link "$LINENO"; then :
12497 may_have_cet=yes
12498else
12499 may_have_cet=no
12500fi
12501rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503fi
12504
12505if test x$may_have_cet = xyes; then
8d286dd1
L
12506 if test x$cross_compiling = xno; then
12507 if test "$cross_compiling" = yes; then :
d2148648
L
12508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12510as_fn_error $? "cannot run test program while cross compiling
12511See \`config.log' for more details" "$LINENO" 5; }
12512else
12513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h. */
12515
12516static void
12517foo (void)
12518{
12519}
12520
12521static void
12522__attribute__ ((noinline, noclone))
12523xxx (void (*f) (void))
12524{
12525 f ();
12526}
12527
12528static void
12529__attribute__ ((noinline, noclone))
12530bar (void)
12531{
12532 xxx (foo);
12533}
12534
12535int
12536main ()
12537{
12538 bar ();
12539 return 0;
12540}
12541
12542_ACEOF
12543if ac_fn_c_try_run "$LINENO"; then :
12544 have_cet=no
12545else
12546 have_cet=yes
12547fi
12548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549 conftest.$ac_objext conftest.beam conftest.$ac_ext
12550fi
12551
8d286dd1
L
12552 if test x$enable_cet = xno -a x$have_cet = xyes; then
12553 as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
12554 fi
d2148648 12555 fi
8d286dd1
L
12556else
12557 # Enable CET in cross compiler if possible so that it will run on both
12558 # CET and non-CET hosts.
12559 have_cet=yes
d2148648
L
12560fi
12561if test x$enable_cet = xyes; then
12562 CET_HOST_FLAGS="-fcf-protection"
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12564$as_echo "yes" >&6; }
12565else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
9051b548
L
12569CFLAGS="$cet_save_CFLAGS"
12570LDFLAGS="$cet_save_LDFLAGS"
d2148648
L
12571
12572case x$enable_languages in
12573*jit*)
12574 ;;
12575*)
12576 CET_HOST_FLAGS=
12577 ;;
12578esac
12579
12580
eff02e4f
ILT
12581# Test for __sync support.
12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12583$as_echo_n "checking __sync extensions... " >&6; }
22e05272 12584if ${libbacktrace_cv_sys_sync+:} false; then :
eff02e4f
ILT
12585 $as_echo_n "(cached) " >&6
12586else
12587 if test -n "${with_target_subdir}"; then
2f401a8f
JDA
12588 case "${host}" in
12589 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12590 *) libbacktrace_cv_sys_sync=yes ;;
12591 esac
eff02e4f
ILT
12592 else
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594/* end confdefs.h. */
12595int i;
12596int
12597main ()
12598{
12599__sync_bool_compare_and_swap (&i, i, i);
12600 __sync_lock_test_and_set (&i, 1);
12601 __sync_lock_release (&i);
12602 ;
12603 return 0;
12604}
12605_ACEOF
12606if ac_fn_c_try_link "$LINENO"; then :
12607 libbacktrace_cv_sys_sync=yes
12608else
12609 libbacktrace_cv_sys_sync=no
12610fi
12611rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 fi
12614fi
12615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12616$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12617BACKTRACE_SUPPORTS_THREADS=0
12618if test "$libbacktrace_cv_sys_sync" = "yes"; then
12619 BACKTRACE_SUPPORTS_THREADS=1
12620
12621$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12622
12623fi
12624
12625
49579c7e
ILT
12626# Test for __atomic support.
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12628$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 12629if ${libbacktrace_cv_sys_atomic+:} false; then :
49579c7e
ILT
12630 $as_echo_n "(cached) " >&6
12631else
12632 if test -n "${with_target_subdir}"; then
12633 libbacktrace_cv_sys_atomic=yes
12634 else
12635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636/* end confdefs.h. */
12637int i;
12638int
12639main ()
12640{
12641__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12642 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12643 ;
12644 return 0;
12645}
12646_ACEOF
12647if ac_fn_c_try_link "$LINENO"; then :
12648 libbacktrace_cv_sys_atomic=yes
12649else
12650 libbacktrace_cv_sys_atomic=no
12651fi
12652rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 fi
12655fi
12656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12657$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12658if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12659
12660$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12661
12662fi
12663
eff02e4f
ILT
12664# The library needs to be able to read the executable itself. Compile
12665# a file to determine the executable format. The awk script
12666# filetype.awk prints out the file type.
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12668$as_echo_n "checking output filetype... " >&6; }
22e05272 12669if ${libbacktrace_cv_sys_filetype+:} false; then :
eff02e4f
ILT
12670 $as_echo_n "(cached) " >&6
12671else
12672 filetype=
12673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12674/* end confdefs.h. */
12675int i;
12676int
12677main ()
12678{
12679int j;
12680 ;
12681 return 0;
12682}
12683_ACEOF
12684if ac_fn_c_try_compile "$LINENO"; then :
12685 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12686else
12687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12689as_fn_error $? "compiler failed
12690See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
12691fi
12692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693libbacktrace_cv_sys_filetype=$filetype
12694fi
12695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12696$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12697
12698# Match the file type to decide what files to compile.
12699FORMAT_FILE=
e24afc10 12700backtrace_supports_data=yes
eff02e4f
ILT
12701case "$libbacktrace_cv_sys_filetype" in
12702elf*) FORMAT_FILE="elf.lo" ;;
dea40c94 12703macho) FORMAT_FILE="macho.lo" ;;
e24afc10
TG
12704pecoff) FORMAT_FILE="pecoff.lo"
12705 backtrace_supports_data=no
12706 ;;
7e2a8417
TR
12707xcoff*) FORMAT_FILE="xcoff.lo"
12708 backtrace_supports_data=no
12709 ;;
eff02e4f
ILT
12710*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12711$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12712 FORMAT_FILE="unknown.lo"
12713 backtrace_supported=no
12714 ;;
12715esac
12716
12717
12718# ELF defines.
12719elfsize=
12720case "$libbacktrace_cv_sys_filetype" in
12721elf32) elfsize=32 ;;
12722elf64) elfsize=64 ;;
e24afc10 12723*) elfsize=unused
eff02e4f
ILT
12724esac
12725
12726cat >>confdefs.h <<_ACEOF
12727#define BACKTRACE_ELF_SIZE $elfsize
12728_ACEOF
12729
fddbc193
TV
12730 if test "$FORMAT_FILE" = "elf.lo"; then
12731 HAVE_ELF_TRUE=
12732 HAVE_ELF_FALSE='#'
12733else
12734 HAVE_ELF_TRUE='#'
12735 HAVE_ELF_FALSE=
12736fi
12737
eff02e4f 12738
7e2a8417
TR
12739# XCOFF defines.
12740xcoffsize=
12741case "$libbacktrace_cv_sys_filetype" in
12742xcoff32) xcoffsize=32 ;;
12743xcoff64) xcoffsize=64 ;;
12744*) xcoffsize=unused
12745esac
12746
12747cat >>confdefs.h <<_ACEOF
12748#define BACKTRACE_XCOFF_SIZE $xcoffsize
12749_ACEOF
12750
12751
eff02e4f
ILT
12752BACKTRACE_SUPPORTED=0
12753if test "$backtrace_supported" = "yes"; then
12754 BACKTRACE_SUPPORTED=1
12755fi
12756
12757
e24afc10
TG
12758BACKTRACE_SUPPORTS_DATA=0
12759if test "$backtrace_supports_data" = "yes"; then
12760 BACKTRACE_SUPPORTS_DATA=1
12761fi
12762
12763
76850556
RO
12764
12765
12766inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12767
12768acx_cv_header_stdint=stddef.h
12769acx_cv_header_stdint_kind="(already complete)"
12770for i in stdint.h $inttype_headers; do
12771 unset ac_cv_type_uintptr_t
12772 unset ac_cv_type_uintmax_t
12773 unset ac_cv_type_int_least32_t
12774 unset ac_cv_type_int_fast32_t
12775 unset ac_cv_type_uint64_t
12776 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12777 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12778#include <$i>
12779"
22e05272 12780if test "x$ac_cv_type_uintmax_t" = xyes; then :
76850556
RO
12781 acx_cv_header_stdint=$i
12782else
12783 continue
12784fi
12785
12786 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12787#include <$i>
12788"
22e05272 12789if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12790
12791else
12792 acx_cv_header_stdint_kind="(mostly complete)"
12793fi
12794
12795 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12796#include <$i>
12797"
22e05272 12798if test "x$ac_cv_type_int_least32_t" = xyes; then :
76850556
RO
12799
12800else
12801 acx_cv_header_stdint_kind="(mostly complete)"
12802fi
12803
12804 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12805#include <$i>
12806"
22e05272 12807if test "x$ac_cv_type_int_fast32_t" = xyes; then :
76850556
RO
12808
12809else
12810 acx_cv_header_stdint_kind="(mostly complete)"
12811fi
12812
12813 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12814#include <$i>
12815"
22e05272 12816if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12817
12818else
12819 acx_cv_header_stdint_kind="(lacks uint64_t)"
12820fi
12821
12822 break
12823done
12824if test "$acx_cv_header_stdint" = stddef.h; then
12825 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12826 for i in stdint.h $inttype_headers; do
12827 unset ac_cv_type_uintptr_t
12828 unset ac_cv_type_uint32_t
12829 unset ac_cv_type_uint64_t
12830 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12831 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12832#include <$i>
12833"
22e05272 12834if test "x$ac_cv_type_uint32_t" = xyes; then :
76850556
RO
12835 acx_cv_header_stdint=$i
12836else
12837 continue
12838fi
12839
12840 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12841#include <$i>
12842"
22e05272 12843if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12844
12845fi
12846
12847 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12848#include <$i>
12849"
22e05272 12850if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12851
12852fi
12853
12854 break
12855 done
12856fi
12857if test "$acx_cv_header_stdint" = stddef.h; then
12858 acx_cv_header_stdint_kind="(u_intXX_t style)"
12859 for i in sys/types.h $inttype_headers; do
12860 unset ac_cv_type_u_int32_t
12861 unset ac_cv_type_u_int64_t
12862 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12863 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12864#include <$i>
12865"
22e05272 12866if test "x$ac_cv_type_u_int32_t" = xyes; then :
76850556
RO
12867 acx_cv_header_stdint=$i
12868else
12869 continue
12870fi
12871
12872 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12873#include <$i>
12874"
22e05272 12875if test "x$ac_cv_type_u_int64_t" = xyes; then :
76850556
RO
12876
12877fi
12878
12879 break
12880 done
12881fi
12882if test "$acx_cv_header_stdint" = stddef.h; then
12883 acx_cv_header_stdint_kind="(using manual detection)"
12884fi
12885
12886test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12887test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12888test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12889test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12890test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12891
12892# ----------------- Summarize what we found so far
12893
12894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12895$as_echo_n "checking what to include in gstdint.h... " >&6; }
12896
12897case `$as_basename -- gstdint.h ||
12898$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12899 Xgstdint.h : 'X\(//\)$' \| \
12900 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12901$as_echo X/gstdint.h |
12902 sed '/^.*\/\([^/][^/]*\)\/*$/{
12903 s//\1/
12904 q
12905 }
12906 /^X\/\(\/\/\)$/{
12907 s//\1/
12908 q
12909 }
12910 /^X\/\(\/\).*/{
12911 s//\1/
12912 q
12913 }
12914 s/.*/./; q'` in
12915 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12916$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12917 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12918$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12919 *) ;;
12920esac
12921
12922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12923$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12924
12925# ----------------- done included file, check C basic types --------
12926
12927# Lacking an uintptr_t? Test size of void *
12928case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12929 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12932# This bug is HP SR number 8606223364.
12933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12934$as_echo_n "checking size of void *... " >&6; }
22e05272 12935if ${ac_cv_sizeof_void_p+:} false; then :
76850556
RO
12936 $as_echo_n "(cached) " >&6
12937else
12938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12939
12940else
12941 if test "$ac_cv_type_void_p" = yes; then
12942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12944as_fn_error 77 "cannot compute sizeof (void *)
12945See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12946 else
12947 ac_cv_sizeof_void_p=0
12948 fi
12949fi
12950
12951fi
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12953$as_echo "$ac_cv_sizeof_void_p" >&6; }
12954
12955
12956
12957cat >>confdefs.h <<_ACEOF
12958#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12959_ACEOF
12960
12961 ;;
12962esac
12963
12964# Lacking an uint64_t? Test size of long
12965case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12966 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12967# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12968# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12969# This bug is HP SR number 8606223364.
12970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12971$as_echo_n "checking size of long... " >&6; }
22e05272 12972if ${ac_cv_sizeof_long+:} false; then :
76850556
RO
12973 $as_echo_n "(cached) " >&6
12974else
12975 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12976
12977else
12978 if test "$ac_cv_type_long" = yes; then
12979 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12980$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12981as_fn_error 77 "cannot compute sizeof (long)
12982See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12983 else
12984 ac_cv_sizeof_long=0
12985 fi
12986fi
12987
12988fi
12989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12990$as_echo "$ac_cv_sizeof_long" >&6; }
12991
12992
12993
12994cat >>confdefs.h <<_ACEOF
12995#define SIZEOF_LONG $ac_cv_sizeof_long
12996_ACEOF
12997
12998 ;;
12999esac
13000
13001if test $acx_cv_header_stdint = stddef.h; then
13002 # Lacking a good header? Test size of everything and deduce all types.
13003 # The cast to long int works around a bug in the HP C Compiler
13004# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13005# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13006# This bug is HP SR number 8606223364.
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13008$as_echo_n "checking size of int... " >&6; }
22e05272 13009if ${ac_cv_sizeof_int+:} false; then :
76850556
RO
13010 $as_echo_n "(cached) " >&6
13011else
13012 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13013
13014else
13015 if test "$ac_cv_type_int" = yes; then
13016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
13018as_fn_error 77 "cannot compute sizeof (int)
13019See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
13020 else
13021 ac_cv_sizeof_int=0
13022 fi
13023fi
13024
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13027$as_echo "$ac_cv_sizeof_int" >&6; }
13028
13029
13030
13031cat >>confdefs.h <<_ACEOF
13032#define SIZEOF_INT $ac_cv_sizeof_int
13033_ACEOF
13034
13035
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 short" >&5
13041$as_echo_n "checking size of short... " >&6; }
22e05272 13042if ${ac_cv_sizeof_short+:} false; then :
76850556
RO
13043 $as_echo_n "(cached) " >&6
13044else
13045 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13046
13047else
13048 if test "$ac_cv_type_short" = 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;}
22e05272
JM
13051as_fn_error 77 "cannot compute sizeof (short)
13052See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
13053 else
13054 ac_cv_sizeof_short=0
13055 fi
13056fi
13057
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13060$as_echo "$ac_cv_sizeof_short" >&6; }
13061
13062
13063
13064cat >>confdefs.h <<_ACEOF
13065#define SIZEOF_SHORT $ac_cv_sizeof_short
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 char" >&5
13074$as_echo_n "checking size of char... " >&6; }
22e05272 13075if ${ac_cv_sizeof_char+:} false; then :
76850556
RO
13076 $as_echo_n "(cached) " >&6
13077else
13078 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13079
13080else
13081 if test "$ac_cv_type_char" = 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;}
22e05272
JM
13084as_fn_error 77 "cannot compute sizeof (char)
13085See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
13086 else
13087 ac_cv_sizeof_char=0
13088 fi
13089fi
13090
13091fi
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13093$as_echo "$ac_cv_sizeof_char" >&6; }
13094
13095
13096
13097cat >>confdefs.h <<_ACEOF
13098#define SIZEOF_CHAR $ac_cv_sizeof_char
13099_ACEOF
13100
13101
13102
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13104$as_echo_n "checking for type equivalent to int8_t... " >&6; }
13105 case "$ac_cv_sizeof_char" in
13106 1) acx_cv_type_int8_t=char ;;
22e05272 13107 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
76850556
RO
13108 esac
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13110$as_echo "$acx_cv_type_int8_t" >&6; }
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13113$as_echo_n "checking for type equivalent to int16_t... " >&6; }
13114 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13115 2:*) acx_cv_type_int16_t=int ;;
13116 *:2) acx_cv_type_int16_t=short ;;
22e05272 13117 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
76850556
RO
13118 esac
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13120$as_echo "$acx_cv_type_int16_t" >&6; }
13121
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13123$as_echo_n "checking for type equivalent to int32_t... " >&6; }
13124 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13125 4:*) acx_cv_type_int32_t=int ;;
13126 *:4) acx_cv_type_int32_t=long ;;
22e05272 13127 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
76850556
RO
13128 esac
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13130$as_echo "$acx_cv_type_int32_t" >&6; }
13131fi
13132
13133# These tests are here to make the output prettier
13134
13135if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13136 case "$ac_cv_sizeof_long" in
13137 8) acx_cv_type_int64_t=long ;;
13138 esac
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13140$as_echo_n "checking for type equivalent to int64_t... " >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13142$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13143fi
13144
13145# Now we can use the above types
13146
13147if test "$ac_cv_type_uintptr_t" != yes; then
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13149$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13150 case $ac_cv_sizeof_void_p in
13151 2) acx_cv_type_intptr_t=int16_t ;;
13152 4) acx_cv_type_intptr_t=int32_t ;;
13153 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 13154 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
76850556
RO
13155 esac
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13157$as_echo "$acx_cv_type_intptr_t" >&6; }
13158fi
13159
13160# ----------------- done all checks, emit header -------------
13161ac_config_commands="$ac_config_commands gstdint.h"
13162
13163
13164
13165
eff02e4f
ILT
13166for ac_header in sys/mman.h
13167do :
13168 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
22e05272 13169if test "x$ac_cv_header_sys_mman_h" = xyes; then :
eff02e4f
ILT
13170 cat >>confdefs.h <<_ACEOF
13171#define HAVE_SYS_MMAN_H 1
13172_ACEOF
13173
13174fi
13175
13176done
13177
13178if test "$ac_cv_header_sys_mman_h" = "no"; then
13179 have_mmap=no
13180else
13181 if test -n "${with_target_subdir}"; then
13182 # When built as a GCC target library, we can't do a link test. We
13183 # simply assume that if we have mman.h, we have mmap.
13184 have_mmap=yes
1b533361 13185 case "${host}" in
2f2aeda9
UW
13186 *-*-msdosdjgpp)
13187 # DJGPP has sys/man.h, but no mmap
1b533361
UW
13188 have_mmap=no ;;
13189 esac
eff02e4f
ILT
13190 else
13191 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 13192if test "x$ac_cv_func_mmap" = xyes; then :
eff02e4f
ILT
13193 have_mmap=yes
13194else
13195 have_mmap=no
13196fi
13197
13198 fi
13199fi
13200if test "$have_mmap" = "no"; then
13201 VIEW_FILE=read.lo
13202 ALLOC_FILE=alloc.lo
13203else
13204 VIEW_FILE=mmapio.lo
13205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206/* end confdefs.h. */
13207
13208#include <sys/mman.h>
13209#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13210 #error no MAP_ANONYMOUS
13211#endif
13212
13213_ACEOF
13214if ac_fn_c_try_cpp "$LINENO"; then :
13215 ALLOC_FILE=mmap.lo
13216else
13217 ALLOC_FILE=alloc.lo
13218fi
22e05272 13219rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f
ILT
13220fi
13221
13222
13223
13224BACKTRACE_USES_MALLOC=0
13225if test "$ALLOC_FILE" = "alloc.lo"; then
13226 BACKTRACE_USES_MALLOC=1
13227fi
13228
13229
e561a992
ILT
13230# Check for dl_iterate_phdr.
13231for ac_header in link.h
13232do :
13233 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 13234if test "x$ac_cv_header_link_h" = xyes; then :
e561a992
ILT
13235 cat >>confdefs.h <<_ACEOF
13236#define HAVE_LINK_H 1
13237_ACEOF
13238
13239fi
13240
13241done
13242
13243if test "$ac_cv_header_link_h" = "no"; then
13244 have_dl_iterate_phdr=no
13245else
13246 if test -n "${with_target_subdir}"; then
13247 # When built as a GCC target library, we can't do a link test.
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249/* end confdefs.h. */
13250#include <link.h>
13251
13252_ACEOF
13253if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13254 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13255 have_dl_iterate_phdr=yes
13256else
13257 have_dl_iterate_phdr=no
13258fi
13259rm -f conftest*
13260
13261 else
13262 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
22e05272 13263if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
e561a992
ILT
13264 have_dl_iterate_phdr=yes
13265else
13266 have_dl_iterate_phdr=no
13267fi
13268
13269 fi
13270fi
13271if test "$have_dl_iterate_phdr" = "yes"; then
13272
13273$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13274
13275fi
13276
dea40c94
ILT
13277# Check for header file for Mach-O image functions.
13278for ac_header in mach-o/dyld.h
13279do :
13280 ac_fn_c_check_header_mongrel "$LINENO" "mach-o/dyld.h" "ac_cv_header_mach_o_dyld_h" "$ac_includes_default"
13281if test "x$ac_cv_header_mach_o_dyld_h" = xyes; then :
13282 cat >>confdefs.h <<_ACEOF
13283#define HAVE_MACH_O_DYLD_H 1
13284_ACEOF
13285
13286fi
13287
13288done
13289
13290
7e2a8417
TR
13291# Check for loadquery.
13292for ac_header in sys/ldr.h
13293do :
13294 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
22e05272 13295if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
7e2a8417
TR
13296 cat >>confdefs.h <<_ACEOF
13297#define HAVE_SYS_LDR_H 1
13298_ACEOF
13299
13300fi
13301
13302done
13303
13304if test "$ac_cv_header_sys_ldr_h" = "no"; then
13305 have_loadquery=no
13306else
13307 if test -n "${with_target_subdir}"; then
13308 # When built as a GCC target library, we can't do a link test.
13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13310/* end confdefs.h. */
13311#include <sys/ldr.h>
13312
13313_ACEOF
13314if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13315 $EGREP "loadquery" >/dev/null 2>&1; then :
13316 have_loadquery=yes
13317else
13318 have_loadquery=no
13319fi
13320rm -f conftest*
13321
13322 else
13323 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
22e05272 13324if test "x$ac_cv_func_loadquery" = xyes; then :
7e2a8417
TR
13325 have_loadquery=yes
13326else
13327 have_loadquery=no
13328fi
13329
13330 fi
13331fi
13332if test "$have_loadquery" = "yes"; then
13333
13334$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13335
13336fi
13337
3319ef17
ILT
13338# Check for the fcntl function.
13339if test -n "${with_target_subdir}"; then
13340 case "${host}" in
13341 *-*-mingw*) have_fcntl=no ;;
13342 *) have_fcntl=yes ;;
13343 esac
13344else
13345 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 13346if test "x$ac_cv_func_fcntl" = xyes; then :
3319ef17
ILT
13347 have_fcntl=yes
13348else
13349 have_fcntl=no
13350fi
13351
13352fi
13353if test "$have_fcntl" = "yes"; then
13354
13355$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13356
13357fi
13358
772a71a9 13359ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 13360if test "x$ac_cv_have_decl_strnlen" = xyes; then :
772a71a9
ILT
13361 ac_have_decl=1
13362else
13363 ac_have_decl=0
13364fi
13365
13366cat >>confdefs.h <<_ACEOF
13367#define HAVE_DECL_STRNLEN $ac_have_decl
13368_ACEOF
47f4703c
ILT
13369ac_fn_c_check_decl "$LINENO" "getpagesize" "ac_cv_have_decl_getpagesize" "$ac_includes_default"
13370if test "x$ac_cv_have_decl_getpagesize" = xyes; then :
13371 ac_have_decl=1
13372else
13373 ac_have_decl=0
13374fi
13375
13376cat >>confdefs.h <<_ACEOF
13377#define HAVE_DECL_GETPAGESIZE $ac_have_decl
13378_ACEOF
772a71a9 13379
8c2ea6b2
ILT
13380for ac_func in lstat readlink
13381do :
13382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 13384if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8c2ea6b2
ILT
13385 cat >>confdefs.h <<_ACEOF
13386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13387_ACEOF
13388
13389fi
13390done
13391
772a71a9 13392
33521509
ILT
13393# Check for getexecname function.
13394if test -n "${with_target_subdir}"; then
13395 case "${host}" in
13396 *-*-solaris2*) have_getexecname=yes ;;
13397 *) have_getexecname=no ;;
13398 esac
13399else
13400 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 13401if test "x$ac_cv_func_getexecname" = xyes; then :
33521509
ILT
13402 have_getexecname=yes
13403else
13404 have_getexecname=no
13405fi
13406
13407fi
13408if test "$have_getexecname" = "yes"; then
13409
13410$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13411
13412fi
13413
26135684
ILT
13414# Check for sysctl definitions.
13415
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROC" >&5
13417$as_echo_n "checking for KERN_PROC... " >&6; }
13418if ${libbacktrace_cv_proc+:} false; then :
13419 $as_echo_n "(cached) " >&6
13420else
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422/* end confdefs.h. */
13423
13424#include <sys/types.h>
13425#include <sys/sysctl.h>
13426
13427int
13428main ()
13429{
13430int mib0 = CTL_KERN; int mib1 = KERN_PROC; int mib2 = KERN_PROC_PATHNAME;
13431 ;
13432 return 0;
13433}
13434_ACEOF
13435if ac_fn_c_try_compile "$LINENO"; then :
13436 libbacktrace_cv_proc=yes
13437else
13438 libbacktrace_cv_proc=no
13439fi
13440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13441fi
13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_proc" >&5
13443$as_echo "$libbacktrace_cv_proc" >&6; }
13444if test "$libbacktrace_cv_proc" = "yes"; then
13445
13446$as_echo "#define HAVE_KERN_PROC 1" >>confdefs.h
13447
13448fi
13449
13450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for KERN_PROG_ARGS" >&5
13451$as_echo_n "checking for KERN_PROG_ARGS... " >&6; }
13452if ${libbacktrace_cv_procargs+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454else
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456/* end confdefs.h. */
13457
13458#include <sys/types.h>
13459#include <sys/sysctl.h>
13460
13461int
13462main ()
13463{
13464int mib0 = CTL_KERN; int mib1 = KERN_PROC_ARGS; int mib2 = KERN_PROC_PATHNAME;
13465 ;
13466 return 0;
13467}
13468_ACEOF
13469if ac_fn_c_try_compile "$LINENO"; then :
13470 libbacktrace_cv_procargs=yes
13471else
13472 libbacktrace_cv_procargs=no
13473fi
13474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475fi
13476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_procargs" >&5
13477$as_echo "$libbacktrace_cv_procargs" >&6; }
13478if test "$libbacktrace_cv_procargs" = "yes"; then
13479
13480$as_echo "#define HAVE_KERN_PROC_ARGS 1" >>confdefs.h
13481
13482fi
13483
dbc31f20
TS
13484# Check for the clock_gettime function.
13485for ac_func in clock_gettime
13486do :
13487 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22e05272 13488if test "x$ac_cv_func_clock_gettime" = xyes; then :
dbc31f20
TS
13489 cat >>confdefs.h <<_ACEOF
13490#define HAVE_CLOCK_GETTIME 1
13491_ACEOF
13492
13493fi
13494done
13495
dd954c67
TS
13496clock_gettime_link=
13497# At least for glibc, clock_gettime is in librt. But don't
13498# pull that in if it still doesn't give us the function we want. This
13499# test is copied from libgomp, and modified to not link in -lrt as
13500# we're using this for test timing only.
13501if test "$ac_cv_func_clock_gettime" = no; then
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13503$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 13504if ${ac_cv_lib_rt_clock_gettime+:} false; then :
dd954c67
TS
13505 $as_echo_n "(cached) " >&6
13506else
13507 ac_check_lib_save_LIBS=$LIBS
13508LIBS="-lrt $LIBS"
13509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13510/* end confdefs.h. */
13511
13512/* Override any GCC internal prototype to avoid an error.
13513 Use char because int might match the return type of a GCC
13514 builtin and then its argument prototype would still apply. */
13515#ifdef __cplusplus
13516extern "C"
13517#endif
13518char clock_gettime ();
13519int
13520main ()
13521{
13522return clock_gettime ();
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527if ac_fn_c_try_link "$LINENO"; then :
13528 ac_cv_lib_rt_clock_gettime=yes
13529else
13530 ac_cv_lib_rt_clock_gettime=no
13531fi
13532rm -f core conftest.err conftest.$ac_objext \
13533 conftest$ac_exeext conftest.$ac_ext
13534LIBS=$ac_check_lib_save_LIBS
13535fi
13536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13537$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 13538if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8398c1df 13539 CLOCK_GETTIME_LINK=-lrt
dd954c67
TS
13540
13541$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13542
13543fi
13544
13545fi
13546
dbc31f20 13547
d1609a23
ILT
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13549$as_echo_n "checking whether -pthread is supported... " >&6; }
22e05272 13550if ${libgo_cv_lib_pthread+:} false; then :
d1609a23
ILT
13551 $as_echo_n "(cached) " >&6
13552else
13553 CFLAGS_hold=$CFLAGS
13554CFLAGS="$CFLAGS -pthread"
13555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h. */
13557int i;
13558_ACEOF
13559if ac_fn_c_try_compile "$LINENO"; then :
13560 libgo_cv_lib_pthread=yes
13561else
13562 libgo_cv_lib_pthread=no
13563fi
13564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565CFLAGS=$CFLAGS_hold
13566fi
13567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13568$as_echo "$libgo_cv_lib_pthread" >&6; }
13569PTHREAD_CFLAGS=
13570if test "$libgo_cv_lib_pthread" = yes; then
13571 PTHREAD_CFLAGS=-pthread
13572fi
13573
13574
13575 if test "$libgo_cv_lib_pthread" = yes; then
13576 HAVE_PTHREAD_TRUE=
13577 HAVE_PTHREAD_FALSE='#'
13578else
13579 HAVE_PTHREAD_TRUE='#'
13580 HAVE_PTHREAD_FALSE=
13581fi
13582
13583
c926fd82
ILT
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13585$as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13586if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13587 $as_echo_n "(cached) " >&6
13588else
13589 CFLAGS_hold=$CFLAGS
13590CFLAGS="$CFLAGS -gdwarf-5"
13591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592/* end confdefs.h. */
13593int i;
fccb41b9
ILT
13594int
13595main ()
13596{
13597return 0;
13598 ;
13599 return 0;
13600}
c926fd82 13601_ACEOF
fccb41b9 13602if ac_fn_c_try_link "$LINENO"; then :
c926fd82
ILT
13603 libbacktrace_cv_lib_dwarf5=yes
13604else
13605 libbacktrace_cv_lib_dwarf5=no
13606fi
fccb41b9
ILT
13607rm -f core conftest.err conftest.$ac_objext \
13608 conftest$ac_exeext conftest.$ac_ext
c926fd82
ILT
13609CFLAGS=$CFLAGS_hold
13610fi
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13612$as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13613 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13614 HAVE_DWARF5_TRUE=
13615 HAVE_DWARF5_FALSE='#'
13616else
13617 HAVE_DWARF5_TRUE='#'
13618 HAVE_DWARF5_FALSE=
13619fi
13620
13621
8da872d9
ILT
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13623$as_echo_n "checking for compress in -lz... " >&6; }
22e05272 13624if ${ac_cv_lib_z_compress+:} false; then :
8da872d9
ILT
13625 $as_echo_n "(cached) " >&6
13626else
13627 ac_check_lib_save_LIBS=$LIBS
13628LIBS="-lz $LIBS"
13629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13630/* end confdefs.h. */
13631
13632/* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
13635#ifdef __cplusplus
13636extern "C"
13637#endif
13638char compress ();
13639int
13640main ()
13641{
13642return compress ();
13643 ;
13644 return 0;
13645}
13646_ACEOF
13647if ac_fn_c_try_link "$LINENO"; then :
13648 ac_cv_lib_z_compress=yes
13649else
13650 ac_cv_lib_z_compress=no
13651fi
13652rm -f core conftest.err conftest.$ac_objext \
13653 conftest$ac_exeext conftest.$ac_ext
13654LIBS=$ac_check_lib_save_LIBS
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13657$as_echo "$ac_cv_lib_z_compress" >&6; }
22e05272 13658if test "x$ac_cv_lib_z_compress" = xyes; then :
8da872d9
ILT
13659
13660$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13661
13662fi
2206fb89 13663
8da872d9
ILT
13664 if test "$ac_cv_lib_z_compress" = yes; then
13665 HAVE_ZLIB_TRUE=
13666 HAVE_ZLIB_FALSE='#'
13667else
13668 HAVE_ZLIB_TRUE='#'
13669 HAVE_ZLIB_FALSE=
13670fi
13671
13672
13673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13674$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
22e05272 13675if ${libgo_cv_ld_compress+:} false; then :
8da872d9
ILT
13676 $as_echo_n "(cached) " >&6
13677else
13678 LDFLAGS_hold=$LDFLAGS
13679LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681/* end confdefs.h. */
13682
13683int
13684main ()
13685{
13686
13687 ;
13688 return 0;
13689}
13690_ACEOF
13691if ac_fn_c_try_link "$LINENO"; then :
13692 libgo_cv_ld_compress=yes
13693else
13694 libgo_cv_ld_compress=no
13695fi
13696rm -f core conftest.err conftest.$ac_objext \
13697 conftest$ac_exeext conftest.$ac_ext
13698LDFLAGS=$LDFLAGS_hold
13699fi
13700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13701$as_echo "$libgo_cv_ld_compress" >&6; }
13702 if test "$libgo_cv_ld_compress" = yes; then
13703 HAVE_COMPRESSED_DEBUG_TRUE=
13704 HAVE_COMPRESSED_DEBUG_FALSE='#'
13705else
13706 HAVE_COMPRESSED_DEBUG_TRUE='#'
13707 HAVE_COMPRESSED_DEBUG_FALSE=
13708fi
13709
13710
9283471b
ILT
13711
13712# Extract the first word of "objcopy", so it can be a program name with args.
13713set dummy objcopy; ac_word=$2
13714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13716if ${ac_cv_prog_OBJCOPY+:} false; then :
9283471b
ILT
13717 $as_echo_n "(cached) " >&6
13718else
13719 if test -n "$OBJCOPY"; then
13720 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13721else
13722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723for as_dir in $PATH
13724do
13725 IFS=$as_save_IFS
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283471b
ILT
13729 ac_cv_prog_OBJCOPY="objcopy"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 break 2
13732 fi
13733done
13734 done
13735IFS=$as_save_IFS
13736
13737fi
13738fi
13739OBJCOPY=$ac_cv_prog_OBJCOPY
13740if test -n "$OBJCOPY"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13742$as_echo "$OBJCOPY" >&6; }
13743else
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745$as_echo "no" >&6; }
13746fi
13747
13748
fddbc193
TV
13749# Extract the first word of "readelf", so it can be a program name with args.
13750set dummy readelf; ac_word=$2
13751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13752$as_echo_n "checking for $ac_word... " >&6; }
13753if ${ac_cv_prog_READELF+:} false; then :
13754 $as_echo_n "(cached) " >&6
13755else
13756 if test -n "$READELF"; then
13757 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13758else
13759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13760for as_dir in $PATH
13761do
13762 IFS=$as_save_IFS
13763 test -z "$as_dir" && as_dir=.
13764 for ac_exec_ext in '' $ac_executable_extensions; do
13765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13766 ac_cv_prog_READELF="readelf"
13767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13768 break 2
13769 fi
13770done
13771 done
13772IFS=$as_save_IFS
13773
13774fi
13775fi
13776READELF=$ac_cv_prog_READELF
13777if test -n "$READELF"; then
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13779$as_echo "$READELF" >&6; }
13780else
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782$as_echo "no" >&6; }
13783fi
13784
13785
9283471b
ILT
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13787$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
22e05272 13788if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
9283471b
ILT
13789 $as_echo_n "(cached) " >&6
13790else
13791 if test -n "${with_target_subdir}"; then
13792 libbacktrace_cv_objcopy_debuglink=no
dea40c94
ILT
13793elif ! test -n "${OBJCOPY}"; then
13794 libbacktrace_cv_objcopy_debuglink=no
9283471b
ILT
13795elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13796 rm -f /tmp/ls$$
13797 libbacktrace_cv_objcopy_debuglink=yes
13798else
13799 libbacktrace_cv_objcopy_debuglink=no
13800fi
13801fi
13802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13803$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13804 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13805 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13806 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13807else
13808 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13809 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13810fi
13811
13812
dea40c94
ILT
13813
13814# Extract the first word of "dsymutil", so it can be a program name with args.
13815set dummy dsymutil; ac_word=$2
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13817$as_echo_n "checking for $ac_word... " >&6; }
13818if ${ac_cv_prog_DSYMUTIL+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820else
13821 if test -n "$DSYMUTIL"; then
13822 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13823else
13824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825for as_dir in $PATH
13826do
13827 IFS=$as_save_IFS
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_DSYMUTIL="dsymutil"
13832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 break 2
13834 fi
13835done
13836 done
13837IFS=$as_save_IFS
13838
13839fi
13840fi
13841DSYMUTIL=$ac_cv_prog_DSYMUTIL
13842if test -n "$DSYMUTIL"; then
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13844$as_echo "$DSYMUTIL" >&6; }
13845else
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13847$as_echo "no" >&6; }
13848fi
13849
13850
13851 if test -n "${DSYMUTIL}"; then
13852 HAVE_DSYMUTIL_TRUE=
13853 HAVE_DSYMUTIL_FALSE='#'
13854else
13855 HAVE_DSYMUTIL_TRUE='#'
13856 HAVE_DSYMUTIL_FALSE=
13857fi
13858
13859
eff02e4f
ILT
13860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13861$as_echo_n "checking whether tests can run... " >&6; }
22e05272 13862if ${libbacktrace_cv_sys_native+:} false; then :
eff02e4f
ILT
13863 $as_echo_n "(cached) " >&6
13864else
13865 if test "$cross_compiling" = yes; then :
13866 libbacktrace_cv_sys_native=no
13867else
13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13869/* end confdefs.h. */
13870
13871int
13872main ()
13873{
13874return 0;
13875 ;
13876 return 0;
13877}
13878_ACEOF
13879if ac_fn_c_try_run "$LINENO"; then :
13880 libbacktrace_cv_sys_native=yes
13881else
13882 libbacktrace_cv_sys_native=no
13883fi
13884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13885 conftest.$ac_objext conftest.beam conftest.$ac_ext
13886fi
13887
13888fi
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13890$as_echo "$libbacktrace_cv_sys_native" >&6; }
13891 if test "$libbacktrace_cv_sys_native" = "yes"; then
13892 NATIVE_TRUE=
13893 NATIVE_FALSE='#'
13894else
13895 NATIVE_TRUE='#'
13896 NATIVE_FALSE=
13897fi
13898
13899
13900if test "${multilib}" = "yes"; then
13901 multilib_arg="--enable-multilib"
13902else
13903 multilib_arg=
13904fi
13905
13906ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13907
fddbc193
TV
13908ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
13909
eff02e4f
ILT
13910
13911# We need multilib support, but only if configuring for the target.
13912ac_config_commands="$ac_config_commands default"
13913
13914
13915cat >confcache <<\_ACEOF
13916# This file is a shell script that caches the results of configure
13917# tests run on this system so they can be shared between configure
13918# scripts and configure runs, see configure's option --config-cache.
13919# It is not useful on other systems. If it contains results you don't
13920# want to keep, you may remove or edit it.
13921#
13922# config.status only pays attention to the cache file if you give it
13923# the --recheck option to rerun configure.
13924#
13925# `ac_cv_env_foo' variables (set or unset) will be overridden when
13926# loading this file, other *unset* `ac_cv_foo' will be assigned the
13927# following values.
13928
13929_ACEOF
13930
13931# The following way of writing the cache mishandles newlines in values,
13932# but we know of no workaround that is simple, portable, and efficient.
13933# So, we kill variables containing newlines.
13934# Ultrix sh set writes to stderr and can't be redirected directly,
13935# and sets the high bit in the cache file unless we assign to the vars.
13936(
13937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13938 eval ac_val=\$$ac_var
13939 case $ac_val in #(
13940 *${as_nl}*)
13941 case $ac_var in #(
13942 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13944 esac
13945 case $ac_var in #(
13946 _ | IFS | as_nl) ;; #(
13947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13948 *) { eval $ac_var=; unset $ac_var;} ;;
13949 esac ;;
13950 esac
13951 done
13952
13953 (set) 2>&1 |
13954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13955 *${as_nl}ac_space=\ *)
13956 # `set' does not quote correctly, so add quotes: double-quote
13957 # substitution turns \\\\ into \\, and sed turns \\ into \.
13958 sed -n \
13959 "s/'/'\\\\''/g;
13960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13961 ;; #(
13962 *)
13963 # `set' quotes correctly as required by POSIX, so do not add quotes.
13964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13965 ;;
13966 esac |
13967 sort
13968) |
13969 sed '
13970 /^ac_cv_env_/b end
13971 t clear
13972 :clear
13973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13974 t end
13975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13976 :end' >>confcache
13977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13978 if test -w "$cache_file"; then
22e05272 13979 if test "x$cache_file" != "x/dev/null"; then
eff02e4f
ILT
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13981$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13982 if test ! -f "$cache_file" || test -h "$cache_file"; then
13983 cat confcache >"$cache_file"
13984 else
13985 case $cache_file in #(
13986 */* | ?:*)
13987 mv -f confcache "$cache_file"$$ &&
13988 mv -f "$cache_file"$$ "$cache_file" ;; #(
13989 *)
13990 mv -f confcache "$cache_file" ;;
13991 esac
13992 fi
13993 fi
eff02e4f
ILT
13994 else
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13997 fi
13998fi
13999rm -f confcache
14000
14001test "x$prefix" = xNONE && prefix=$ac_default_prefix
14002# Let make expand exec_prefix.
14003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14004
14005DEFS=-DHAVE_CONFIG_H
14006
14007ac_libobjs=
14008ac_ltlibobjs=
22e05272 14009U=
eff02e4f
ILT
14010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14011 # 1. Remove the extension, and $U if already installed.
14012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14015 # will be set to the directory where LIBOBJS objects are built.
14016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14018done
14019LIBOBJS=$ac_libobjs
14020
14021LTLIBOBJS=$ac_ltlibobjs
14022
14023
22e05272
JM
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14025$as_echo_n "checking that generated files are newer than configure... " >&6; }
14026 if test -n "$am_sleep_pid"; then
14027 # Hide warnings about reused PIDs.
14028 wait $am_sleep_pid 2>/dev/null
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14031$as_echo "done" >&6; }
eff02e4f
ILT
14032 if test -n "$EXEEXT"; then
14033 am__EXEEXT_TRUE=
14034 am__EXEEXT_FALSE='#'
14035else
14036 am__EXEEXT_TRUE='#'
14037 am__EXEEXT_FALSE=
14038fi
14039
14040if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 14041 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
eff02e4f
ILT
14042Usually this means the macro was only invoked conditionally." "$LINENO" 5
14043fi
10f48858
TV
14044if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
14045 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
14046Usually this means the macro was only invoked conditionally." "$LINENO" 5
14047fi
fddbc193
TV
14048if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
14049 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
14050Usually this means the macro was only invoked conditionally." "$LINENO" 5
14051fi
d1609a23 14052if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22e05272 14053 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
d1609a23
ILT
14054Usually this means the macro was only invoked conditionally." "$LINENO" 5
14055fi
c926fd82
ILT
14056if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
14057 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
14058Usually this means the macro was only invoked conditionally." "$LINENO" 5
14059fi
8da872d9 14060if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22e05272 14061 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
8da872d9
ILT
14062Usually this means the macro was only invoked conditionally." "$LINENO" 5
14063fi
14064if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
22e05272 14065 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
8da872d9
ILT
14066Usually this means the macro was only invoked conditionally." "$LINENO" 5
14067fi
9283471b 14068if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
22e05272 14069 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
9283471b
ILT
14070Usually this means the macro was only invoked conditionally." "$LINENO" 5
14071fi
dea40c94
ILT
14072if test -z "${HAVE_DSYMUTIL_TRUE}" && test -z "${HAVE_DSYMUTIL_FALSE}"; then
14073 as_fn_error $? "conditional \"HAVE_DSYMUTIL\" was never defined.
14074Usually this means the macro was only invoked conditionally." "$LINENO" 5
14075fi
eff02e4f 14076if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
22e05272 14077 as_fn_error $? "conditional \"NATIVE\" was never defined.
eff02e4f
ILT
14078Usually this means the macro was only invoked conditionally." "$LINENO" 5
14079fi
14080
22e05272 14081: "${CONFIG_STATUS=./config.status}"
eff02e4f
ILT
14082ac_write_fail=0
14083ac_clean_files_save=$ac_clean_files
14084ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14086$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14087as_write_fail=0
14088cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14089#! $SHELL
14090# Generated by $as_me.
14091# Run this file to recreate the current configuration.
14092# Compiler output produced by configure, useful for debugging
14093# configure, is in config.log if it exists.
14094
14095debug=false
14096ac_cs_recheck=false
14097ac_cs_silent=false
14098
14099SHELL=\${CONFIG_SHELL-$SHELL}
14100export SHELL
14101_ASEOF
14102cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14103## -------------------- ##
14104## M4sh Initialization. ##
14105## -------------------- ##
14106
14107# Be more Bourne compatible
14108DUALCASE=1; export DUALCASE # for MKS sh
14109if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14110 emulate sh
14111 NULLCMD=:
14112 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14113 # is contrary to our usage. Disable this feature.
14114 alias -g '${1+"$@"}'='"$@"'
14115 setopt NO_GLOB_SUBST
14116else
14117 case `(set -o) 2>/dev/null` in #(
14118 *posix*) :
14119 set -o posix ;; #(
14120 *) :
14121 ;;
14122esac
14123fi
14124
14125
14126as_nl='
14127'
14128export as_nl
14129# Printing a long string crashes Solaris 7 /usr/bin/printf.
14130as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14131as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14132as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14133# Prefer a ksh shell builtin over an external printf program on Solaris,
14134# but without wasting forks for bash or zsh.
14135if test -z "$BASH_VERSION$ZSH_VERSION" \
14136 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14137 as_echo='print -r --'
14138 as_echo_n='print -rn --'
14139elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14140 as_echo='printf %s\n'
14141 as_echo_n='printf %s'
14142else
14143 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14144 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14145 as_echo_n='/usr/ucb/echo -n'
14146 else
14147 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14148 as_echo_n_body='eval
14149 arg=$1;
14150 case $arg in #(
14151 *"$as_nl"*)
14152 expr "X$arg" : "X\\(.*\\)$as_nl";
14153 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14154 esac;
14155 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14156 '
14157 export as_echo_n_body
14158 as_echo_n='sh -c $as_echo_n_body as_echo'
14159 fi
14160 export as_echo_body
14161 as_echo='sh -c $as_echo_body as_echo'
14162fi
14163
14164# The user is always right.
14165if test "${PATH_SEPARATOR+set}" != set; then
14166 PATH_SEPARATOR=:
14167 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14168 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14169 PATH_SEPARATOR=';'
14170 }
14171fi
14172
14173
14174# IFS
14175# We need space, tab and new line, in precisely that order. Quoting is
14176# there to prevent editors from complaining about space-tab.
14177# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14178# splitting by setting IFS to empty value.)
14179IFS=" "" $as_nl"
14180
14181# Find who we are. Look in the path if we contain no directory separator.
22e05272 14182as_myself=
eff02e4f
ILT
14183case $0 in #((
14184 *[\\/]* ) as_myself=$0 ;;
14185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186for as_dir in $PATH
14187do
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14191 done
14192IFS=$as_save_IFS
14193
14194 ;;
14195esac
14196# We did not find ourselves, most probably we were run as `sh COMMAND'
14197# in which case we are not to be found in the path.
14198if test "x$as_myself" = x; then
14199 as_myself=$0
14200fi
14201if test ! -f "$as_myself"; then
14202 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14203 exit 1
14204fi
14205
14206# Unset variables that we do not need and which cause bugs (e.g. in
14207# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14208# suppresses any "Segmentation fault" message there. '((' could
14209# trigger a bug in pdksh 5.2.14.
14210for as_var in BASH_ENV ENV MAIL MAILPATH
14211do eval test x\${$as_var+set} = xset \
14212 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14213done
14214PS1='$ '
14215PS2='> '
14216PS4='+ '
14217
14218# NLS nuisances.
14219LC_ALL=C
14220export LC_ALL
14221LANGUAGE=C
14222export LANGUAGE
14223
14224# CDPATH.
14225(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14226
14227
22e05272
JM
14228# as_fn_error STATUS ERROR [LINENO LOG_FD]
14229# ----------------------------------------
eff02e4f
ILT
14230# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14231# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 14232# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
14233as_fn_error ()
14234{
22e05272
JM
14235 as_status=$1; test $as_status -eq 0 && as_status=1
14236 if test "$4"; then
14237 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14238 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
eff02e4f 14239 fi
22e05272 14240 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
14241 as_fn_exit $as_status
14242} # as_fn_error
14243
14244
14245# as_fn_set_status STATUS
14246# -----------------------
14247# Set $? to STATUS, without forking.
14248as_fn_set_status ()
14249{
14250 return $1
14251} # as_fn_set_status
14252
14253# as_fn_exit STATUS
14254# -----------------
14255# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14256as_fn_exit ()
14257{
14258 set +e
14259 as_fn_set_status $1
14260 exit $1
14261} # as_fn_exit
14262
14263# as_fn_unset VAR
14264# ---------------
14265# Portably unset VAR.
14266as_fn_unset ()
14267{
14268 { eval $1=; unset $1;}
14269}
14270as_unset=as_fn_unset
14271# as_fn_append VAR VALUE
14272# ----------------------
14273# Append the text in VALUE to the end of the definition contained in VAR. Take
14274# advantage of any shell optimizations that allow amortized linear growth over
14275# repeated appends, instead of the typical quadratic growth present in naive
14276# implementations.
14277if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14278 eval 'as_fn_append ()
14279 {
14280 eval $1+=\$2
14281 }'
14282else
14283 as_fn_append ()
14284 {
14285 eval $1=\$$1\$2
14286 }
14287fi # as_fn_append
14288
14289# as_fn_arith ARG...
14290# ------------------
14291# Perform arithmetic evaluation on the ARGs, and store the result in the
14292# global $as_val. Take advantage of shells that can avoid forks. The arguments
14293# must be portable across $(()) and expr.
14294if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14295 eval 'as_fn_arith ()
14296 {
14297 as_val=$(( $* ))
14298 }'
14299else
14300 as_fn_arith ()
14301 {
14302 as_val=`expr "$@" || test $? -eq 1`
14303 }
14304fi # as_fn_arith
14305
14306
14307if expr a : '\(a\)' >/dev/null 2>&1 &&
14308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14309 as_expr=expr
14310else
14311 as_expr=false
14312fi
14313
14314if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14315 as_basename=basename
14316else
14317 as_basename=false
14318fi
14319
14320if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14321 as_dirname=dirname
14322else
14323 as_dirname=false
14324fi
14325
14326as_me=`$as_basename -- "$0" ||
14327$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14328 X"$0" : 'X\(//\)$' \| \
14329 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14330$as_echo X/"$0" |
14331 sed '/^.*\/\([^/][^/]*\)\/*$/{
14332 s//\1/
14333 q
14334 }
14335 /^X\/\(\/\/\)$/{
14336 s//\1/
14337 q
14338 }
14339 /^X\/\(\/\).*/{
14340 s//\1/
14341 q
14342 }
14343 s/.*/./; q'`
14344
14345# Avoid depending upon Character Ranges.
14346as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14347as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14348as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14349as_cr_digits='0123456789'
14350as_cr_alnum=$as_cr_Letters$as_cr_digits
14351
14352ECHO_C= ECHO_N= ECHO_T=
14353case `echo -n x` in #(((((
14354-n*)
14355 case `echo 'xy\c'` in
14356 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14357 xy) ECHO_C='\c';;
14358 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14359 ECHO_T=' ';;
14360 esac;;
14361*)
14362 ECHO_N='-n';;
14363esac
14364
14365rm -f conf$$ conf$$.exe conf$$.file
14366if test -d conf$$.dir; then
14367 rm -f conf$$.dir/conf$$.file
14368else
14369 rm -f conf$$.dir
14370 mkdir conf$$.dir 2>/dev/null
14371fi
14372if (echo >conf$$.file) 2>/dev/null; then
14373 if ln -s conf$$.file conf$$ 2>/dev/null; then
14374 as_ln_s='ln -s'
14375 # ... but there are two gotchas:
14376 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14377 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 14378 # In both cases, we have to default to `cp -pR'.
eff02e4f 14379 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 14380 as_ln_s='cp -pR'
eff02e4f
ILT
14381 elif ln conf$$.file conf$$ 2>/dev/null; then
14382 as_ln_s=ln
14383 else
22e05272 14384 as_ln_s='cp -pR'
eff02e4f
ILT
14385 fi
14386else
22e05272 14387 as_ln_s='cp -pR'
eff02e4f
ILT
14388fi
14389rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14390rmdir conf$$.dir 2>/dev/null
14391
14392
14393# as_fn_mkdir_p
14394# -------------
14395# Create "$as_dir" as a directory, including parents if necessary.
14396as_fn_mkdir_p ()
14397{
14398
14399 case $as_dir in #(
14400 -*) as_dir=./$as_dir;;
14401 esac
14402 test -d "$as_dir" || eval $as_mkdir_p || {
14403 as_dirs=
14404 while :; do
14405 case $as_dir in #(
14406 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14407 *) as_qdir=$as_dir;;
14408 esac
14409 as_dirs="'$as_qdir' $as_dirs"
14410 as_dir=`$as_dirname -- "$as_dir" ||
14411$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14412 X"$as_dir" : 'X\(//\)[^/]' \| \
14413 X"$as_dir" : 'X\(//\)$' \| \
14414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14415$as_echo X"$as_dir" |
14416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14417 s//\1/
14418 q
14419 }
14420 /^X\(\/\/\)[^/].*/{
14421 s//\1/
14422 q
14423 }
14424 /^X\(\/\/\)$/{
14425 s//\1/
14426 q
14427 }
14428 /^X\(\/\).*/{
14429 s//\1/
14430 q
14431 }
14432 s/.*/./; q'`
14433 test -d "$as_dir" && break
14434 done
14435 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 14436 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
14437
14438
14439} # as_fn_mkdir_p
14440if mkdir -p . 2>/dev/null; then
14441 as_mkdir_p='mkdir -p "$as_dir"'
14442else
14443 test -d ./-p && rmdir ./-p
14444 as_mkdir_p=false
14445fi
14446
22e05272
JM
14447
14448# as_fn_executable_p FILE
14449# -----------------------
14450# Test if FILE is an executable regular file.
14451as_fn_executable_p ()
14452{
14453 test -f "$1" && test -x "$1"
14454} # as_fn_executable_p
14455as_test_x='test -x'
14456as_executable_p=as_fn_executable_p
eff02e4f
ILT
14457
14458# Sed expression to map a string onto a valid CPP name.
14459as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14460
14461# Sed expression to map a string onto a valid variable name.
14462as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14463
14464
14465exec 6>&1
14466## ----------------------------------- ##
14467## Main body of $CONFIG_STATUS script. ##
14468## ----------------------------------- ##
14469_ASEOF
14470test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14471
14472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14473# Save the log message, to keep $0 and so on meaningful, and to
14474# report actual input values of CONFIG_FILES etc. instead of their
14475# values after options handling.
14476ac_log="
14477This file was extended by package-unused $as_me version-unused, which was
22e05272 14478generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
14479
14480 CONFIG_FILES = $CONFIG_FILES
14481 CONFIG_HEADERS = $CONFIG_HEADERS
14482 CONFIG_LINKS = $CONFIG_LINKS
14483 CONFIG_COMMANDS = $CONFIG_COMMANDS
14484 $ $0 $@
14485
14486on `(hostname || uname -n) 2>/dev/null | sed 1q`
14487"
14488
14489_ACEOF
14490
14491case $ac_config_files in *"
14492"*) set x $ac_config_files; shift; ac_config_files=$*;;
14493esac
14494
14495case $ac_config_headers in *"
14496"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14497esac
14498
14499
14500cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14501# Files that config.status was made for.
14502config_files="$ac_config_files"
14503config_headers="$ac_config_headers"
14504config_commands="$ac_config_commands"
14505
14506_ACEOF
14507
14508cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14509ac_cs_usage="\
14510\`$as_me' instantiates files and other configuration actions
14511from templates according to the current configuration. Unless the files
14512and actions are specified as TAGs, all are instantiated by default.
14513
14514Usage: $0 [OPTION]... [TAG]...
14515
14516 -h, --help print this help, then exit
14517 -V, --version print version number and configuration settings, then exit
22e05272 14518 --config print configuration, then exit
eff02e4f
ILT
14519 -q, --quiet, --silent
14520 do not print progress messages
14521 -d, --debug don't remove temporary files
14522 --recheck update $as_me by reconfiguring in the same conditions
14523 --file=FILE[:TEMPLATE]
14524 instantiate the configuration file FILE
14525 --header=FILE[:TEMPLATE]
14526 instantiate the configuration header FILE
14527
14528Configuration files:
14529$config_files
14530
14531Configuration headers:
14532$config_headers
14533
14534Configuration commands:
14535$config_commands
14536
14537Report bugs to the package provider."
14538
14539_ACEOF
14540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14541ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
eff02e4f
ILT
14542ac_cs_version="\\
14543package-unused config.status version-unused
22e05272
JM
14544configured by $0, generated by GNU Autoconf 2.69,
14545 with options \\"\$ac_cs_config\\"
eff02e4f 14546
22e05272 14547Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
14548This config.status script is free software; the Free Software Foundation
14549gives unlimited permission to copy, distribute and modify it."
14550
14551ac_pwd='$ac_pwd'
14552srcdir='$srcdir'
14553INSTALL='$INSTALL'
14554MKDIR_P='$MKDIR_P'
14555AWK='$AWK'
14556test -n "\$AWK" || AWK=awk
14557_ACEOF
14558
14559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14560# The default lists apply if the user does not specify any file.
14561ac_need_defaults=:
14562while test $# != 0
14563do
14564 case $1 in
22e05272 14565 --*=?*)
eff02e4f
ILT
14566 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14567 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14568 ac_shift=:
14569 ;;
22e05272
JM
14570 --*=)
14571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14572 ac_optarg=
14573 ac_shift=:
14574 ;;
eff02e4f
ILT
14575 *)
14576 ac_option=$1
14577 ac_optarg=$2
14578 ac_shift=shift
14579 ;;
14580 esac
14581
14582 case $ac_option in
14583 # Handling of the options.
14584 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14585 ac_cs_recheck=: ;;
14586 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14587 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
14588 --config | --confi | --conf | --con | --co | --c )
14589 $as_echo "$ac_cs_config"; exit ;;
eff02e4f
ILT
14590 --debug | --debu | --deb | --de | --d | -d )
14591 debug=: ;;
14592 --file | --fil | --fi | --f )
14593 $ac_shift
14594 case $ac_optarg in
14595 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 14596 '') as_fn_error $? "missing file argument" ;;
eff02e4f
ILT
14597 esac
14598 as_fn_append CONFIG_FILES " '$ac_optarg'"
14599 ac_need_defaults=false;;
14600 --header | --heade | --head | --hea )
14601 $ac_shift
14602 case $ac_optarg in
14603 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14604 esac
14605 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14606 ac_need_defaults=false;;
14607 --he | --h)
14608 # Conflict between --help and --header
22e05272 14609 as_fn_error $? "ambiguous option: \`$1'
eff02e4f
ILT
14610Try \`$0 --help' for more information.";;
14611 --help | --hel | -h )
14612 $as_echo "$ac_cs_usage"; exit ;;
14613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14614 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14615 ac_cs_silent=: ;;
14616
14617 # This is an error.
22e05272 14618 -*) as_fn_error $? "unrecognized option: \`$1'
eff02e4f
ILT
14619Try \`$0 --help' for more information." ;;
14620
14621 *) as_fn_append ac_config_targets " $1"
14622 ac_need_defaults=false ;;
14623
14624 esac
14625 shift
14626done
14627
14628ac_configure_extra_args=
14629
14630if $ac_cs_silent; then
14631 exec 6>/dev/null
14632 ac_configure_extra_args="$ac_configure_extra_args --silent"
14633fi
14634
14635_ACEOF
14636cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14637if \$ac_cs_recheck; then
22e05272 14638 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
eff02e4f
ILT
14639 shift
14640 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14641 CONFIG_SHELL='$SHELL'
14642 export CONFIG_SHELL
14643 exec "\$@"
14644fi
14645
14646_ACEOF
14647cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14648exec 5>>config.log
14649{
14650 echo
14651 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14652## Running $as_me. ##
14653_ASBOX
14654 $as_echo "$ac_log"
14655} >&5
14656
14657_ACEOF
14658cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14659#
14660# INIT-COMMANDS
14661#
eff02e4f 14662
405a6b1c
MK
14663srcdir="$srcdir"
14664host="$host"
14665target="$target"
14666with_multisubdir="$with_multisubdir"
14667with_multisrctop="$with_multisrctop"
14668with_target_subdir="$with_target_subdir"
14669ac_configure_args="${multilib_arg} ${ac_configure_args}"
14670multi_basedir="$multi_basedir"
14671CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14672CC="$CC"
14673CXX="$CXX"
14674GFORTRAN="$GFORTRAN"
22e05272 14675GDC="$GDC"
405a6b1c 14676
eff02e4f
ILT
14677
14678# The HP-UX ksh and POSIX shell print the target directory to stdout
14679# if CDPATH is set.
14680(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14681
14682sed_quote_subst='$sed_quote_subst'
14683double_quote_subst='$double_quote_subst'
14684delay_variable_subst='$delay_variable_subst'
14685macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14686macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14687enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14688enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14689pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14690enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14691SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14692ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14693host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14694host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14695host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14696build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14697build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14698build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14699SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14700Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14701GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14702EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14703FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14704LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14705NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14706LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14707max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14708ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14709exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14710lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14711lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14712lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14713reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14714reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14715OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14716deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14717file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14718AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14719AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14720STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14721RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14722old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14723old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14724old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14725lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14726CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14727CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14728compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14729GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14730lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14731lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14732lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14733lt_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"`'
14734objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14735MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14736lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14737lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14738lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14739lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14740lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14741need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14742DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14743NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14744LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14745OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14746OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14747libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14748shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14749extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14750archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14751enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14752export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14753whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14754compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14755old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14756old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14757archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14758archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14759module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14760module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14761with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14762allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14763no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14764hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14765hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14766hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14767hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14768hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14769hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14770hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14771hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14772inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14773link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14774fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14775always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14776export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14777exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14778include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14779prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14780file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14781variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14782need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14783need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14784version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14785runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14786shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14787shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14788libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14789library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14790soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14791install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14792postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14793postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14794finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14795finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14796hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14797sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14798sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14799hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14800enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14801enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14802enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14803old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14804striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14805
14806LTCC='$LTCC'
14807LTCFLAGS='$LTCFLAGS'
14808compiler='$compiler_DEFAULT'
14809
14810# A function that is used when there is no print builtin or printf.
14811func_fallback_echo ()
14812{
14813 eval 'cat <<_LTECHO_EOF
14814\$1
14815_LTECHO_EOF'
14816}
14817
14818# Quote evaled strings.
14819for var in SHELL \
14820ECHO \
14821SED \
14822GREP \
14823EGREP \
14824FGREP \
14825LD \
14826NM \
14827LN_S \
14828lt_SP2NL \
14829lt_NL2SP \
14830reload_flag \
14831OBJDUMP \
14832deplibs_check_method \
14833file_magic_cmd \
14834AR \
14835AR_FLAGS \
14836STRIP \
14837RANLIB \
14838CC \
14839CFLAGS \
14840compiler \
14841lt_cv_sys_global_symbol_pipe \
14842lt_cv_sys_global_symbol_to_cdecl \
14843lt_cv_sys_global_symbol_to_c_name_address \
14844lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14845lt_prog_compiler_no_builtin_flag \
14846lt_prog_compiler_wl \
14847lt_prog_compiler_pic \
14848lt_prog_compiler_static \
14849lt_cv_prog_compiler_c_o \
14850need_locks \
14851DSYMUTIL \
14852NMEDIT \
14853LIPO \
14854OTOOL \
14855OTOOL64 \
14856shrext_cmds \
14857export_dynamic_flag_spec \
14858whole_archive_flag_spec \
14859compiler_needs_object \
14860with_gnu_ld \
14861allow_undefined_flag \
14862no_undefined_flag \
14863hardcode_libdir_flag_spec \
14864hardcode_libdir_flag_spec_ld \
14865hardcode_libdir_separator \
14866fix_srcfile_path \
14867exclude_expsyms \
14868include_expsyms \
14869file_list_spec \
14870variables_saved_for_relink \
14871libname_spec \
14872library_names_spec \
14873soname_spec \
14874install_override_mode \
14875finish_eval \
14876old_striplib \
14877striplib; do
14878 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14879 *[\\\\\\\`\\"\\\$]*)
14880 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14881 ;;
14882 *)
14883 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14884 ;;
14885 esac
14886done
14887
14888# Double-quote double-evaled strings.
14889for var in reload_cmds \
14890old_postinstall_cmds \
14891old_postuninstall_cmds \
14892old_archive_cmds \
14893extract_expsyms_cmds \
14894old_archive_from_new_cmds \
14895old_archive_from_expsyms_cmds \
14896archive_cmds \
14897archive_expsym_cmds \
14898module_cmds \
14899module_expsym_cmds \
14900export_symbols_cmds \
14901prelink_cmds \
14902postinstall_cmds \
14903postuninstall_cmds \
14904finish_cmds \
14905sys_lib_search_path_spec \
14906sys_lib_dlsearch_path_spec; do
14907 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14908 *[\\\\\\\`\\"\\\$]*)
14909 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14910 ;;
14911 *)
14912 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14913 ;;
14914 esac
14915done
14916
14917ac_aux_dir='$ac_aux_dir'
14918xsi_shell='$xsi_shell'
14919lt_shell_append='$lt_shell_append'
14920
14921# See if we are running on zsh, and set the options which allow our
14922# commands through without removal of \ escapes INIT.
14923if test -n "\${ZSH_VERSION+set}" ; then
14924 setopt NO_GLOB_SUBST
14925fi
14926
14927
14928 PACKAGE='$PACKAGE'
14929 VERSION='$VERSION'
14930 TIMESTAMP='$TIMESTAMP'
14931 RM='$RM'
14932 ofile='$ofile'
14933
14934
14935
14936
76850556
RO
14937GCC="$GCC"
14938CC="$CC"
14939acx_cv_header_stdint="$acx_cv_header_stdint"
14940acx_cv_type_int8_t="$acx_cv_type_int8_t"
14941acx_cv_type_int16_t="$acx_cv_type_int16_t"
14942acx_cv_type_int32_t="$acx_cv_type_int32_t"
14943acx_cv_type_int64_t="$acx_cv_type_int64_t"
14944acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14945ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14946ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14947ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14948ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14949ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14950ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14951ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14952ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14953
14954
eff02e4f
ILT
14955# Variables needed in config.status (file generation) which aren't already
14956# passed by autoconf.
14957SUBDIRS="$SUBDIRS"
14958
14959
14960_ACEOF
14961
14962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963
14964# Handling of arguments.
14965for ac_config_target in $ac_config_targets
14966do
14967 case $ac_config_target in
14968 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
eff02e4f 14969 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
405a6b1c 14970 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
76850556 14971 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
eff02e4f
ILT
14972 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14973 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
fddbc193 14974 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
eff02e4f
ILT
14975 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14976
22e05272 14977 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
eff02e4f
ILT
14978 esac
14979done
14980
14981
14982# If the user did not use the arguments to specify the items to instantiate,
14983# then the envvar interface is used. Set only those that are not.
14984# We use the long form for the default assignment because of an extremely
14985# bizarre bug on SunOS 4.1.3.
14986if $ac_need_defaults; then
14987 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14988 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14989 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14990fi
14991
14992# Have a temporary directory for convenience. Make it in the build tree
14993# simply because there is no reason against having it here, and in addition,
14994# creating and moving files from /tmp can sometimes cause problems.
14995# Hook for its removal unless debugging.
14996# Note that there is a small window in which the directory will not be cleaned:
14997# after its creation but before its name has been assigned to `$tmp'.
14998$debug ||
14999{
22e05272 15000 tmp= ac_tmp=
eff02e4f 15001 trap 'exit_status=$?
22e05272
JM
15002 : "${ac_tmp:=$tmp}"
15003 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
eff02e4f
ILT
15004' 0
15005 trap 'as_fn_exit 1' 1 2 13 15
15006}
15007# Create a (secure) tmp directory for tmp files.
15008
15009{
15010 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 15011 test -d "$tmp"
eff02e4f
ILT
15012} ||
15013{
15014 tmp=./conf$$-$RANDOM
15015 (umask 077 && mkdir "$tmp")
22e05272
JM
15016} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15017ac_tmp=$tmp
eff02e4f
ILT
15018
15019# Set up the scripts for CONFIG_FILES section.
15020# No need to generate them if there are no CONFIG_FILES.
15021# This happens for instance with `./config.status config.h'.
15022if test -n "$CONFIG_FILES"; then
15023
15024
15025ac_cr=`echo X | tr X '\015'`
15026# On cygwin, bash can eat \r inside `` if the user requested igncr.
15027# But we know of no other shell where ac_cr would be empty at this
15028# point, so we can use a bashism as a fallback.
15029if test "x$ac_cr" = x; then
15030 eval ac_cr=\$\'\\r\'
15031fi
15032ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15033if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 15034 ac_cs_awk_cr='\\r'
eff02e4f
ILT
15035else
15036 ac_cs_awk_cr=$ac_cr
15037fi
15038
22e05272 15039echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
eff02e4f
ILT
15040_ACEOF
15041
15042
15043{
15044 echo "cat >conf$$subs.awk <<_ACEOF" &&
15045 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15046 echo "_ACEOF"
15047} >conf$$subs.sh ||
22e05272
JM
15048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15049ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
eff02e4f
ILT
15050ac_delim='%!_!# '
15051for ac_last_try in false false false false false :; do
15052 . ./conf$$subs.sh ||
22e05272 15053 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
15054
15055 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15056 if test $ac_delim_n = $ac_delim_num; then
15057 break
15058 elif $ac_last_try; then
22e05272 15059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
15060 else
15061 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15062 fi
15063done
15064rm -f conf$$subs.sh
15065
15066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 15067cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
eff02e4f
ILT
15068_ACEOF
15069sed -n '
15070h
15071s/^/S["/; s/!.*/"]=/
15072p
15073g
15074s/^[^!]*!//
15075:repl
15076t repl
15077s/'"$ac_delim"'$//
15078t delim
15079:nl
15080h
22e05272 15081s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
15082t more1
15083s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15084p
15085n
15086b repl
15087:more1
15088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15089p
15090g
15091s/.\{148\}//
15092t nl
15093:delim
15094h
22e05272 15095s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
15096t more2
15097s/["\\]/\\&/g; s/^/"/; s/$/"/
15098p
15099b
15100:more2
15101s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15102p
15103g
15104s/.\{148\}//
15105t delim
15106' <conf$$subs.awk | sed '
15107/^[^""]/{
15108 N
15109 s/\n//
15110}
15111' >>$CONFIG_STATUS || ac_write_fail=1
15112rm -f conf$$subs.awk
15113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15114_ACAWK
22e05272 15115cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
eff02e4f
ILT
15116 for (key in S) S_is_set[key] = 1
15117 FS = "\a"
15118
15119}
15120{
15121 line = $ 0
15122 nfields = split(line, field, "@")
15123 substed = 0
15124 len = length(field[1])
15125 for (i = 2; i < nfields; i++) {
15126 key = field[i]
15127 keylen = length(key)
15128 if (S_is_set[key]) {
15129 value = S[key]
15130 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15131 len += length(value) + length(field[++i])
15132 substed = 1
15133 } else
15134 len += 1 + keylen
15135 }
15136
15137 print line
15138}
15139
15140_ACAWK
15141_ACEOF
15142cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15143if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15144 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15145else
15146 cat
22e05272
JM
15147fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15148 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
eff02e4f
ILT
15149_ACEOF
15150
22e05272
JM
15151# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15152# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
eff02e4f
ILT
15153# trailing colons and then remove the whole line if VPATH becomes empty
15154# (actually we leave an empty line to preserve line numbers).
15155if test "x$srcdir" = x.; then
22e05272
JM
15156 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15157h
15158s///
15159s/^/:/
15160s/[ ]*$/:/
15161s/:\$(srcdir):/:/g
15162s/:\${srcdir}:/:/g
15163s/:@srcdir@:/:/g
15164s/^:*//
eff02e4f 15165s/:*$//
22e05272
JM
15166x
15167s/\(=[ ]*\).*/\1/
15168G
15169s/\n//
eff02e4f
ILT
15170s/^[^=]*=[ ]*$//
15171}'
15172fi
15173
15174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15175fi # test -n "$CONFIG_FILES"
15176
15177# Set up the scripts for CONFIG_HEADERS section.
15178# No need to generate them if there are no CONFIG_HEADERS.
15179# This happens for instance with `./config.status Makefile'.
15180if test -n "$CONFIG_HEADERS"; then
22e05272 15181cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
eff02e4f
ILT
15182BEGIN {
15183_ACEOF
15184
15185# Transform confdefs.h into an awk script `defines.awk', embedded as
15186# here-document in config.status, that substitutes the proper values into
15187# config.h.in to produce config.h.
15188
15189# Create a delimiter string that does not exist in confdefs.h, to ease
15190# handling of long lines.
15191ac_delim='%!_!# '
15192for ac_last_try in false false :; do
22e05272
JM
15193 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15194 if test -z "$ac_tt"; then
eff02e4f
ILT
15195 break
15196 elif $ac_last_try; then
22e05272 15197 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
eff02e4f
ILT
15198 else
15199 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15200 fi
15201done
15202
15203# For the awk script, D is an array of macro values keyed by name,
15204# likewise P contains macro parameters if any. Preserve backslash
15205# newline sequences.
15206
15207ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15208sed -n '
15209s/.\{148\}/&'"$ac_delim"'/g
15210t rset
15211:rset
15212s/^[ ]*#[ ]*define[ ][ ]*/ /
15213t def
15214d
15215:def
15216s/\\$//
15217t bsnl
15218s/["\\]/\\&/g
15219s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15220D["\1"]=" \3"/p
15221s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15222d
15223:bsnl
15224s/["\\]/\\&/g
15225s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15226D["\1"]=" \3\\\\\\n"\\/p
15227t cont
15228s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15229t cont
15230d
15231:cont
15232n
15233s/.\{148\}/&'"$ac_delim"'/g
15234t clear
15235:clear
15236s/\\$//
15237t bsnlc
15238s/["\\]/\\&/g; s/^/"/; s/$/"/p
15239d
15240:bsnlc
15241s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15242b cont
15243' <confdefs.h | sed '
15244s/'"$ac_delim"'/"\\\
15245"/g' >>$CONFIG_STATUS || ac_write_fail=1
15246
15247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15248 for (key in D) D_is_set[key] = 1
15249 FS = "\a"
15250}
15251/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15252 line = \$ 0
15253 split(line, arg, " ")
15254 if (arg[1] == "#") {
15255 defundef = arg[2]
15256 mac1 = arg[3]
15257 } else {
15258 defundef = substr(arg[1], 2)
15259 mac1 = arg[2]
15260 }
15261 split(mac1, mac2, "(") #)
15262 macro = mac2[1]
15263 prefix = substr(line, 1, index(line, defundef) - 1)
15264 if (D_is_set[macro]) {
15265 # Preserve the white space surrounding the "#".
15266 print prefix "define", macro P[macro] D[macro]
15267 next
15268 } else {
15269 # Replace #undef with comments. This is necessary, for example,
15270 # in the case of _POSIX_SOURCE, which is predefined and required
15271 # on some systems where configure will not decide to define it.
15272 if (defundef == "undef") {
15273 print "/*", prefix defundef, macro, "*/"
15274 next
15275 }
15276 }
15277}
15278{ print }
15279_ACAWK
15280_ACEOF
15281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 15282 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
eff02e4f
ILT
15283fi # test -n "$CONFIG_HEADERS"
15284
15285
15286eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15287shift
15288for ac_tag
15289do
15290 case $ac_tag in
15291 :[FHLC]) ac_mode=$ac_tag; continue;;
15292 esac
15293 case $ac_mode$ac_tag in
15294 :[FHL]*:*);;
22e05272 15295 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
eff02e4f
ILT
15296 :[FH]-) ac_tag=-:-;;
15297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15298 esac
15299 ac_save_IFS=$IFS
15300 IFS=:
15301 set x $ac_tag
15302 IFS=$ac_save_IFS
15303 shift
15304 ac_file=$1
15305 shift
15306
15307 case $ac_mode in
15308 :L) ac_source=$1;;
15309 :[FH])
15310 ac_file_inputs=
15311 for ac_f
15312 do
15313 case $ac_f in
22e05272 15314 -) ac_f="$ac_tmp/stdin";;
eff02e4f
ILT
15315 *) # Look for the file first in the build tree, then in the source tree
15316 # (if the path is not absolute). The absolute path cannot be DOS-style,
15317 # because $ac_f cannot contain `:'.
15318 test -f "$ac_f" ||
15319 case $ac_f in
15320 [\\/$]*) false;;
15321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15322 esac ||
22e05272 15323 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
eff02e4f
ILT
15324 esac
15325 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15326 as_fn_append ac_file_inputs " '$ac_f'"
15327 done
15328
15329 # Let's still pretend it is `configure' which instantiates (i.e., don't
15330 # use $as_me), people would be surprised to read:
15331 # /* config.h. Generated by config.status. */
15332 configure_input='Generated from '`
15333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15334 `' by configure.'
15335 if test x"$ac_file" != x-; then
15336 configure_input="$ac_file. $configure_input"
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15338$as_echo "$as_me: creating $ac_file" >&6;}
15339 fi
15340 # Neutralize special characters interpreted by sed in replacement strings.
15341 case $configure_input in #(
15342 *\&* | *\|* | *\\* )
15343 ac_sed_conf_input=`$as_echo "$configure_input" |
15344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15345 *) ac_sed_conf_input=$configure_input;;
15346 esac
15347
15348 case $ac_tag in
22e05272
JM
15349 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15350 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
eff02e4f
ILT
15351 esac
15352 ;;
15353 esac
15354
15355 ac_dir=`$as_dirname -- "$ac_file" ||
15356$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15357 X"$ac_file" : 'X\(//\)[^/]' \| \
15358 X"$ac_file" : 'X\(//\)$' \| \
15359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15360$as_echo X"$ac_file" |
15361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15362 s//\1/
15363 q
15364 }
15365 /^X\(\/\/\)[^/].*/{
15366 s//\1/
15367 q
15368 }
15369 /^X\(\/\/\)$/{
15370 s//\1/
15371 q
15372 }
15373 /^X\(\/\).*/{
15374 s//\1/
15375 q
15376 }
15377 s/.*/./; q'`
15378 as_dir="$ac_dir"; as_fn_mkdir_p
15379 ac_builddir=.
15380
15381case "$ac_dir" in
15382.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15383*)
15384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15385 # A ".." for each directory in $ac_dir_suffix.
15386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15387 case $ac_top_builddir_sub in
15388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15390 esac ;;
15391esac
15392ac_abs_top_builddir=$ac_pwd
15393ac_abs_builddir=$ac_pwd$ac_dir_suffix
15394# for backward compatibility:
15395ac_top_builddir=$ac_top_build_prefix
15396
15397case $srcdir in
15398 .) # We are building in place.
15399 ac_srcdir=.
15400 ac_top_srcdir=$ac_top_builddir_sub
15401 ac_abs_top_srcdir=$ac_pwd ;;
15402 [\\/]* | ?:[\\/]* ) # Absolute name.
15403 ac_srcdir=$srcdir$ac_dir_suffix;
15404 ac_top_srcdir=$srcdir
15405 ac_abs_top_srcdir=$srcdir ;;
15406 *) # Relative name.
15407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15408 ac_top_srcdir=$ac_top_build_prefix$srcdir
15409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15410esac
15411ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15412
15413
15414 case $ac_mode in
15415 :F)
15416 #
15417 # CONFIG_FILE
15418 #
15419
15420 case $INSTALL in
15421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15423 esac
15424 ac_MKDIR_P=$MKDIR_P
15425 case $MKDIR_P in
15426 [\\/$]* | ?:[\\/]* ) ;;
15427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15428 esac
15429_ACEOF
15430
15431cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432# If the template does not know about datarootdir, expand it.
15433# FIXME: This hack should be removed a few years after 2.60.
15434ac_datarootdir_hack=; ac_datarootdir_seen=
15435ac_sed_dataroot='
15436/datarootdir/ {
15437 p
15438 q
15439}
15440/@datadir@/p
15441/@docdir@/p
15442/@infodir@/p
15443/@localedir@/p
15444/@mandir@/p'
15445case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15446*datarootdir*) ac_datarootdir_seen=yes;;
15447*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15449$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15450_ACEOF
15451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15452 ac_datarootdir_hack='
15453 s&@datadir@&$datadir&g
15454 s&@docdir@&$docdir&g
15455 s&@infodir@&$infodir&g
15456 s&@localedir@&$localedir&g
15457 s&@mandir@&$mandir&g
15458 s&\\\${datarootdir}&$datarootdir&g' ;;
15459esac
15460_ACEOF
15461
15462# Neutralize VPATH when `$srcdir' = `.'.
15463# Shell code in configure.ac might set extrasub.
15464# FIXME: do we really want to maintain this feature?
15465cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15466ac_sed_extra="$ac_vpsub
15467$extrasub
15468_ACEOF
15469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15470:t
15471/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15472s|@configure_input@|$ac_sed_conf_input|;t t
15473s&@top_builddir@&$ac_top_builddir_sub&;t t
15474s&@top_build_prefix@&$ac_top_build_prefix&;t t
15475s&@srcdir@&$ac_srcdir&;t t
15476s&@abs_srcdir@&$ac_abs_srcdir&;t t
15477s&@top_srcdir@&$ac_top_srcdir&;t t
15478s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15479s&@builddir@&$ac_builddir&;t t
15480s&@abs_builddir@&$ac_abs_builddir&;t t
15481s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15482s&@INSTALL@&$ac_INSTALL&;t t
15483s&@MKDIR_P@&$ac_MKDIR_P&;t t
15484$ac_datarootdir_hack
15485"
22e05272
JM
15486eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15487 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15488
15489test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
15490 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15492 "$ac_tmp/out"`; test -z "$ac_out"; } &&
eff02e4f 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15494which seems to be undefined. Please make sure it is defined" >&5
eff02e4f 15495$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15496which seems to be undefined. Please make sure it is defined" >&2;}
eff02e4f 15497
22e05272 15498 rm -f "$ac_tmp/stdin"
eff02e4f 15499 case $ac_file in
22e05272
JM
15500 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15501 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
eff02e4f 15502 esac \
22e05272 15503 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15504 ;;
15505 :H)
15506 #
15507 # CONFIG_HEADER
15508 #
15509 if test x"$ac_file" != x-; then
15510 {
15511 $as_echo "/* $configure_input */" \
22e05272
JM
15512 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15513 } >"$ac_tmp/config.h" \
15514 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15515 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
eff02e4f
ILT
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15517$as_echo "$as_me: $ac_file is unchanged" >&6;}
15518 else
15519 rm -f "$ac_file"
22e05272
JM
15520 mv "$ac_tmp/config.h" "$ac_file" \
15521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15522 fi
15523 else
15524 $as_echo "/* $configure_input */" \
22e05272
JM
15525 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15526 || as_fn_error $? "could not create -" "$LINENO" 5
eff02e4f
ILT
15527 fi
15528# Compute "$ac_file"'s index in $config_headers.
15529_am_arg="$ac_file"
15530_am_stamp_count=1
15531for _am_header in $config_headers :; do
15532 case $_am_header in
15533 $_am_arg | $_am_arg:* )
15534 break ;;
15535 * )
15536 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15537 esac
15538done
15539echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15540$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15541 X"$_am_arg" : 'X\(//\)[^/]' \| \
15542 X"$_am_arg" : 'X\(//\)$' \| \
15543 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15544$as_echo X"$_am_arg" |
15545 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15546 s//\1/
15547 q
15548 }
15549 /^X\(\/\/\)[^/].*/{
15550 s//\1/
15551 q
15552 }
15553 /^X\(\/\/\)$/{
15554 s//\1/
15555 q
15556 }
15557 /^X\(\/\).*/{
15558 s//\1/
15559 q
15560 }
15561 s/.*/./; q'`/stamp-h$_am_stamp_count
15562 ;;
15563
15564 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15565$as_echo "$as_me: executing $ac_file commands" >&6;}
15566 ;;
15567 esac
15568
15569
15570 case $ac_file$ac_mode in
405a6b1c
MK
15571 "default-1":C)
15572# Only add multilib support code if we just rebuilt the top-level
15573# Makefile.
15574case " $CONFIG_FILES " in
15575 *" Makefile "*)
15576 ac_file=Makefile . ${multi_basedir}/config-ml.in
15577 ;;
15578esac ;;
eff02e4f
ILT
15579 "libtool":C)
15580
15581 # See if we are running on zsh, and set the options which allow our
15582 # commands through without removal of \ escapes.
15583 if test -n "${ZSH_VERSION+set}" ; then
15584 setopt NO_GLOB_SUBST
15585 fi
15586
15587 cfgfile="${ofile}T"
15588 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15589 $RM "$cfgfile"
15590
15591 cat <<_LT_EOF >> "$cfgfile"
15592#! $SHELL
15593
15594# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15595# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15596# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15597# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15598#
15599# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15600# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15601# Written by Gordon Matzigkeit, 1996
15602#
15603# This file is part of GNU Libtool.
15604#
15605# GNU Libtool is free software; you can redistribute it and/or
15606# modify it under the terms of the GNU General Public License as
15607# published by the Free Software Foundation; either version 2 of
15608# the License, or (at your option) any later version.
15609#
15610# As a special exception to the GNU General Public License,
15611# if you distribute this file as part of a program or library that
15612# is built using GNU Libtool, you may include this file under the
15613# same distribution terms that you use for the rest of that program.
15614#
15615# GNU Libtool is distributed in the hope that it will be useful,
15616# but WITHOUT ANY WARRANTY; without even the implied warranty of
15617# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15618# GNU General Public License for more details.
15619#
15620# You should have received a copy of the GNU General Public License
15621# along with GNU Libtool; see the file COPYING. If not, a copy
15622# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15623# obtained by writing to the Free Software Foundation, Inc.,
15624# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15625
15626
15627# The names of the tagged configurations supported by this script.
15628available_tags=""
15629
15630# ### BEGIN LIBTOOL CONFIG
15631
15632# Which release of libtool.m4 was used?
15633macro_version=$macro_version
15634macro_revision=$macro_revision
15635
15636# Whether or not to build shared libraries.
15637build_libtool_libs=$enable_shared
15638
15639# Whether or not to build static libraries.
15640build_old_libs=$enable_static
15641
15642# What type of objects to build.
15643pic_mode=$pic_mode
15644
15645# Whether or not to optimize for fast installation.
15646fast_install=$enable_fast_install
15647
15648# Shell to use when invoking shell scripts.
15649SHELL=$lt_SHELL
15650
15651# An echo program that protects backslashes.
15652ECHO=$lt_ECHO
15653
15654# The host system.
15655host_alias=$host_alias
15656host=$host
15657host_os=$host_os
15658
15659# The build system.
15660build_alias=$build_alias
15661build=$build
15662build_os=$build_os
15663
15664# A sed program that does not truncate output.
15665SED=$lt_SED
15666
15667# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15668Xsed="\$SED -e 1s/^X//"
15669
15670# A grep program that handles long lines.
15671GREP=$lt_GREP
15672
15673# An ERE matcher.
15674EGREP=$lt_EGREP
15675
15676# A literal string matcher.
15677FGREP=$lt_FGREP
15678
15679# A BSD- or MS-compatible name lister.
15680NM=$lt_NM
15681
15682# Whether we need soft or hard links.
15683LN_S=$lt_LN_S
15684
15685# What is the maximum length of a command?
15686max_cmd_len=$max_cmd_len
15687
15688# Object file suffix (normally "o").
15689objext=$ac_objext
15690
15691# Executable file suffix (normally "").
15692exeext=$exeext
15693
15694# whether the shell understands "unset".
15695lt_unset=$lt_unset
15696
15697# turn spaces into newlines.
15698SP2NL=$lt_lt_SP2NL
15699
15700# turn newlines into spaces.
15701NL2SP=$lt_lt_NL2SP
15702
15703# An object symbol dumper.
15704OBJDUMP=$lt_OBJDUMP
15705
15706# Method to check whether dependent libraries are shared objects.
15707deplibs_check_method=$lt_deplibs_check_method
15708
15709# Command to use when deplibs_check_method == "file_magic".
15710file_magic_cmd=$lt_file_magic_cmd
15711
15712# The archiver.
15713AR=$lt_AR
15714AR_FLAGS=$lt_AR_FLAGS
15715
15716# A symbol stripping program.
15717STRIP=$lt_STRIP
15718
15719# Commands used to install an old-style archive.
15720RANLIB=$lt_RANLIB
15721old_postinstall_cmds=$lt_old_postinstall_cmds
15722old_postuninstall_cmds=$lt_old_postuninstall_cmds
15723
15724# Whether to use a lock for old archive extraction.
15725lock_old_archive_extraction=$lock_old_archive_extraction
15726
15727# A C compiler.
15728LTCC=$lt_CC
15729
15730# LTCC compiler flags.
15731LTCFLAGS=$lt_CFLAGS
15732
15733# Take the output of nm and produce a listing of raw symbols and C names.
15734global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15735
15736# Transform the output of nm in a proper C declaration.
15737global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15738
15739# Transform the output of nm in a C name address pair.
15740global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15741
15742# Transform the output of nm in a C name address pair when lib prefix is needed.
15743global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15744
15745# The name of the directory that contains temporary libtool files.
15746objdir=$objdir
15747
15748# Used to examine libraries when file_magic_cmd begins with "file".
15749MAGIC_CMD=$MAGIC_CMD
15750
15751# Must we lock files when doing compilation?
15752need_locks=$lt_need_locks
15753
15754# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15755DSYMUTIL=$lt_DSYMUTIL
15756
15757# Tool to change global to local symbols on Mac OS X.
15758NMEDIT=$lt_NMEDIT
15759
15760# Tool to manipulate fat objects and archives on Mac OS X.
15761LIPO=$lt_LIPO
15762
15763# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15764OTOOL=$lt_OTOOL
15765
15766# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15767OTOOL64=$lt_OTOOL64
15768
15769# Old archive suffix (normally "a").
15770libext=$libext
15771
15772# Shared library suffix (normally ".so").
15773shrext_cmds=$lt_shrext_cmds
15774
15775# The commands to extract the exported symbol list from a shared archive.
15776extract_expsyms_cmds=$lt_extract_expsyms_cmds
15777
15778# Variables whose values should be saved in libtool wrapper scripts and
15779# restored at link time.
15780variables_saved_for_relink=$lt_variables_saved_for_relink
15781
15782# Do we need the "lib" prefix for modules?
15783need_lib_prefix=$need_lib_prefix
15784
15785# Do we need a version for libraries?
15786need_version=$need_version
15787
15788# Library versioning type.
15789version_type=$version_type
15790
15791# Shared library runtime path variable.
15792runpath_var=$runpath_var
15793
15794# Shared library path variable.
15795shlibpath_var=$shlibpath_var
15796
15797# Is shlibpath searched before the hard-coded library search path?
15798shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15799
15800# Format of library name prefix.
15801libname_spec=$lt_libname_spec
15802
15803# List of archive names. First name is the real one, the rest are links.
15804# The last name is the one that the linker finds with -lNAME
15805library_names_spec=$lt_library_names_spec
15806
15807# The coded name of the library, if different from the real name.
15808soname_spec=$lt_soname_spec
15809
15810# Permission mode override for installation of shared libraries.
15811install_override_mode=$lt_install_override_mode
15812
15813# Command to use after installation of a shared archive.
15814postinstall_cmds=$lt_postinstall_cmds
15815
15816# Command to use after uninstallation of a shared archive.
15817postuninstall_cmds=$lt_postuninstall_cmds
15818
15819# Commands used to finish a libtool library installation in a directory.
15820finish_cmds=$lt_finish_cmds
15821
15822# As "finish_cmds", except a single script fragment to be evaled but
15823# not shown.
15824finish_eval=$lt_finish_eval
15825
15826# Whether we should hardcode library paths into libraries.
15827hardcode_into_libs=$hardcode_into_libs
15828
15829# Compile-time system search path for libraries.
15830sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15831
15832# Run-time system search path for libraries.
15833sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15834
15835# Whether dlopen is supported.
15836dlopen_support=$enable_dlopen
15837
15838# Whether dlopen of programs is supported.
15839dlopen_self=$enable_dlopen_self
15840
15841# Whether dlopen of statically linked programs is supported.
15842dlopen_self_static=$enable_dlopen_self_static
15843
15844# Commands to strip libraries.
15845old_striplib=$lt_old_striplib
15846striplib=$lt_striplib
15847
15848
15849# The linker used to build libraries.
15850LD=$lt_LD
15851
15852# How to create reloadable object files.
15853reload_flag=$lt_reload_flag
15854reload_cmds=$lt_reload_cmds
15855
15856# Commands used to build an old-style archive.
15857old_archive_cmds=$lt_old_archive_cmds
15858
15859# A language specific compiler.
15860CC=$lt_compiler
15861
15862# Is the compiler the GNU compiler?
15863with_gcc=$GCC
15864
15865# Compiler flag to turn off builtin functions.
15866no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15867
15868# How to pass a linker flag through the compiler.
15869wl=$lt_lt_prog_compiler_wl
15870
15871# Additional compiler flags for building library objects.
15872pic_flag=$lt_lt_prog_compiler_pic
15873
15874# Compiler flag to prevent dynamic linking.
15875link_static_flag=$lt_lt_prog_compiler_static
15876
15877# Does compiler simultaneously support -c and -o options?
15878compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15879
15880# Whether or not to add -lc for building shared libraries.
15881build_libtool_need_lc=$archive_cmds_need_lc
15882
15883# Whether or not to disallow shared libs when runtime libs are static.
15884allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15885
15886# Compiler flag to allow reflexive dlopens.
15887export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15888
15889# Compiler flag to generate shared objects directly from archives.
15890whole_archive_flag_spec=$lt_whole_archive_flag_spec
15891
15892# Whether the compiler copes with passing no objects directly.
15893compiler_needs_object=$lt_compiler_needs_object
15894
15895# Create an old-style archive from a shared archive.
15896old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15897
15898# Create a temporary old-style archive to link instead of a shared archive.
15899old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15900
15901# Commands used to build a shared archive.
15902archive_cmds=$lt_archive_cmds
15903archive_expsym_cmds=$lt_archive_expsym_cmds
15904
15905# Commands used to build a loadable module if different from building
15906# a shared archive.
15907module_cmds=$lt_module_cmds
15908module_expsym_cmds=$lt_module_expsym_cmds
15909
15910# Whether we are building with GNU ld or not.
15911with_gnu_ld=$lt_with_gnu_ld
15912
15913# Flag that allows shared libraries with undefined symbols to be built.
15914allow_undefined_flag=$lt_allow_undefined_flag
15915
15916# Flag that enforces no undefined symbols.
15917no_undefined_flag=$lt_no_undefined_flag
15918
15919# Flag to hardcode \$libdir into a binary during linking.
15920# This must work even if \$libdir does not exist
15921hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15922
15923# If ld is used when linking, flag to hardcode \$libdir into a binary
15924# during linking. This must work even if \$libdir does not exist.
15925hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15926
15927# Whether we need a single "-rpath" flag with a separated argument.
15928hardcode_libdir_separator=$lt_hardcode_libdir_separator
15929
15930# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15931# DIR into the resulting binary.
15932hardcode_direct=$hardcode_direct
15933
15934# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15935# DIR into the resulting binary and the resulting library dependency is
15936# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15937# library is relocated.
15938hardcode_direct_absolute=$hardcode_direct_absolute
15939
15940# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15941# into the resulting binary.
15942hardcode_minus_L=$hardcode_minus_L
15943
15944# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15945# into the resulting binary.
15946hardcode_shlibpath_var=$hardcode_shlibpath_var
15947
15948# Set to "yes" if building a shared library automatically hardcodes DIR
15949# into the library and all subsequent libraries and executables linked
15950# against it.
15951hardcode_automatic=$hardcode_automatic
15952
15953# Set to yes if linker adds runtime paths of dependent libraries
15954# to runtime path list.
15955inherit_rpath=$inherit_rpath
15956
15957# Whether libtool must link a program against all its dependency libraries.
15958link_all_deplibs=$link_all_deplibs
15959
15960# Fix the shell variable \$srcfile for the compiler.
15961fix_srcfile_path=$lt_fix_srcfile_path
15962
15963# Set to "yes" if exported symbols are required.
15964always_export_symbols=$always_export_symbols
15965
15966# The commands to list exported symbols.
15967export_symbols_cmds=$lt_export_symbols_cmds
15968
15969# Symbols that should not be listed in the preloaded symbols.
15970exclude_expsyms=$lt_exclude_expsyms
15971
15972# Symbols that must always be exported.
15973include_expsyms=$lt_include_expsyms
15974
15975# Commands necessary for linking programs (against libraries) with templates.
15976prelink_cmds=$lt_prelink_cmds
15977
15978# Specify filename containing input files.
15979file_list_spec=$lt_file_list_spec
15980
15981# How to hardcode a shared library path into an executable.
15982hardcode_action=$hardcode_action
15983
15984# ### END LIBTOOL CONFIG
15985
15986_LT_EOF
15987
15988 case $host_os in
15989 aix3*)
15990 cat <<\_LT_EOF >> "$cfgfile"
15991# AIX sometimes has problems with the GCC collect2 program. For some
15992# reason, if we set the COLLECT_NAMES environment variable, the problems
15993# vanish in a puff of smoke.
15994if test "X${COLLECT_NAMES+set}" != Xset; then
15995 COLLECT_NAMES=
15996 export COLLECT_NAMES
15997fi
15998_LT_EOF
15999 ;;
16000 esac
16001
16002
16003ltmain="$ac_aux_dir/ltmain.sh"
16004
16005
16006 # We use sed instead of cat because bash on DJGPP gets confused if
16007 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16008 # text mode, it properly converts lines to CR/LF. This bash problem
16009 # is reportedly fixed, but why not run on old versions too?
16010 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16011 || (rm -f "$cfgfile"; exit 1)
16012
16013 case $xsi_shell in
16014 yes)
16015 cat << \_LT_EOF >> "$cfgfile"
16016
16017# func_dirname file append nondir_replacement
16018# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16019# otherwise set result to NONDIR_REPLACEMENT.
16020func_dirname ()
16021{
16022 case ${1} in
16023 */*) func_dirname_result="${1%/*}${2}" ;;
16024 * ) func_dirname_result="${3}" ;;
16025 esac
16026}
16027
16028# func_basename file
16029func_basename ()
16030{
16031 func_basename_result="${1##*/}"
16032}
16033
16034# func_dirname_and_basename file append nondir_replacement
16035# perform func_basename and func_dirname in a single function
16036# call:
16037# dirname: Compute the dirname of FILE. If nonempty,
16038# add APPEND to the result, otherwise set result
16039# to NONDIR_REPLACEMENT.
16040# value returned in "$func_dirname_result"
16041# basename: Compute filename of FILE.
16042# value retuned in "$func_basename_result"
16043# Implementation must be kept synchronized with func_dirname
16044# and func_basename. For efficiency, we do not delegate to
16045# those functions but instead duplicate the functionality here.
16046func_dirname_and_basename ()
16047{
16048 case ${1} in
16049 */*) func_dirname_result="${1%/*}${2}" ;;
16050 * ) func_dirname_result="${3}" ;;
16051 esac
16052 func_basename_result="${1##*/}"
16053}
16054
16055# func_stripname prefix suffix name
16056# strip PREFIX and SUFFIX off of NAME.
16057# PREFIX and SUFFIX must not contain globbing or regex special
16058# characters, hashes, percent signs, but SUFFIX may contain a leading
16059# dot (in which case that matches only a dot).
16060func_stripname ()
16061{
16062 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16063 # positional parameters, so assign one to ordinary parameter first.
16064 func_stripname_result=${3}
16065 func_stripname_result=${func_stripname_result#"${1}"}
16066 func_stripname_result=${func_stripname_result%"${2}"}
16067}
16068
16069# func_opt_split
16070func_opt_split ()
16071{
16072 func_opt_split_opt=${1%%=*}
16073 func_opt_split_arg=${1#*=}
16074}
16075
16076# func_lo2o object
16077func_lo2o ()
16078{
16079 case ${1} in
16080 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16081 *) func_lo2o_result=${1} ;;
16082 esac
16083}
16084
16085# func_xform libobj-or-source
16086func_xform ()
16087{
16088 func_xform_result=${1%.*}.lo
16089}
16090
16091# func_arith arithmetic-term...
16092func_arith ()
16093{
16094 func_arith_result=$(( $* ))
16095}
16096
16097# func_len string
16098# STRING may not start with a hyphen.
16099func_len ()
16100{
16101 func_len_result=${#1}
16102}
16103
16104_LT_EOF
16105 ;;
16106 *) # Bourne compatible functions.
16107 cat << \_LT_EOF >> "$cfgfile"
16108
16109# func_dirname file append nondir_replacement
16110# Compute the dirname of FILE. If nonempty, add APPEND to the result,
16111# otherwise set result to NONDIR_REPLACEMENT.
16112func_dirname ()
16113{
16114 # Extract subdirectory from the argument.
16115 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16116 if test "X$func_dirname_result" = "X${1}"; then
16117 func_dirname_result="${3}"
16118 else
16119 func_dirname_result="$func_dirname_result${2}"
16120 fi
16121}
16122
16123# func_basename file
16124func_basename ()
16125{
16126 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16127}
16128
16129
16130# func_stripname prefix suffix name
16131# strip PREFIX and SUFFIX off of NAME.
16132# PREFIX and SUFFIX must not contain globbing or regex special
16133# characters, hashes, percent signs, but SUFFIX may contain a leading
16134# dot (in which case that matches only a dot).
16135# func_strip_suffix prefix name
16136func_stripname ()
16137{
16138 case ${2} in
16139 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16140 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16141 esac
16142}
16143
16144# sed scripts:
16145my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16146my_sed_long_arg='1s/^-[^=]*=//'
16147
16148# func_opt_split
16149func_opt_split ()
16150{
16151 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16152 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16153}
16154
16155# func_lo2o object
16156func_lo2o ()
16157{
16158 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16159}
16160
16161# func_xform libobj-or-source
16162func_xform ()
16163{
16164 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16165}
16166
16167# func_arith arithmetic-term...
16168func_arith ()
16169{
16170 func_arith_result=`expr "$@"`
16171}
16172
16173# func_len string
16174# STRING may not start with a hyphen.
16175func_len ()
16176{
16177 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16178}
16179
16180_LT_EOF
16181esac
16182
16183case $lt_shell_append in
16184 yes)
16185 cat << \_LT_EOF >> "$cfgfile"
16186
16187# func_append var value
16188# Append VALUE to the end of shell variable VAR.
16189func_append ()
16190{
16191 eval "$1+=\$2"
16192}
16193_LT_EOF
16194 ;;
16195 *)
16196 cat << \_LT_EOF >> "$cfgfile"
16197
16198# func_append var value
16199# Append VALUE to the end of shell variable VAR.
16200func_append ()
16201{
16202 eval "$1=\$$1\$2"
16203}
16204
16205_LT_EOF
16206 ;;
16207 esac
16208
16209
16210 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16211 || (rm -f "$cfgfile"; exit 1)
16212
16213 mv -f "$cfgfile" "$ofile" ||
16214 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16215 chmod +x "$ofile"
16216
16217 ;;
76850556
RO
16218 "gstdint.h":C)
16219if test "$GCC" = yes; then
16220 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
16221else
16222 echo "/* generated for $CC */" > tmp-stdint.h
16223fi
16224
16225sed 's/^ *//' >> tmp-stdint.h <<EOF
16226
16227 #ifndef GCC_GENERATED_STDINT_H
16228 #define GCC_GENERATED_STDINT_H 1
16229
16230 #include <sys/types.h>
16231EOF
16232
16233if test "$acx_cv_header_stdint" != stdint.h; then
16234 echo "#include <stddef.h>" >> tmp-stdint.h
16235fi
16236if test "$acx_cv_header_stdint" != stddef.h; then
16237 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
16238fi
16239
16240sed 's/^ *//' >> tmp-stdint.h <<EOF
16241 /* glibc uses these symbols as guards to prevent redefinitions. */
16242 #ifdef __int8_t_defined
16243 #define _INT8_T
16244 #define _INT16_T
16245 #define _INT32_T
16246 #endif
16247 #ifdef __uint32_t_defined
16248 #define _UINT32_T
16249 #endif
16250
16251EOF
16252
16253# ----------------- done header, emit basic int types -------------
16254if test "$acx_cv_header_stdint" = stddef.h; then
16255 sed 's/^ *//' >> tmp-stdint.h <<EOF
16256
16257 #ifndef _UINT8_T
16258 #define _UINT8_T
16259 #ifndef __uint8_t_defined
16260 #define __uint8_t_defined
16261 #ifndef uint8_t
16262 typedef unsigned $acx_cv_type_int8_t uint8_t;
16263 #endif
16264 #endif
16265 #endif
16266
16267 #ifndef _UINT16_T
16268 #define _UINT16_T
16269 #ifndef __uint16_t_defined
16270 #define __uint16_t_defined
16271 #ifndef uint16_t
16272 typedef unsigned $acx_cv_type_int16_t uint16_t;
16273 #endif
16274 #endif
16275 #endif
16276
16277 #ifndef _UINT32_T
16278 #define _UINT32_T
16279 #ifndef __uint32_t_defined
16280 #define __uint32_t_defined
16281 #ifndef uint32_t
16282 typedef unsigned $acx_cv_type_int32_t uint32_t;
16283 #endif
16284 #endif
16285 #endif
16286
16287 #ifndef _INT8_T
16288 #define _INT8_T
16289 #ifndef __int8_t_defined
16290 #define __int8_t_defined
16291 #ifndef int8_t
16292 typedef $acx_cv_type_int8_t int8_t;
16293 #endif
16294 #endif
16295 #endif
16296
16297 #ifndef _INT16_T
16298 #define _INT16_T
16299 #ifndef __int16_t_defined
16300 #define __int16_t_defined
16301 #ifndef int16_t
16302 typedef $acx_cv_type_int16_t int16_t;
16303 #endif
16304 #endif
16305 #endif
16306
16307 #ifndef _INT32_T
16308 #define _INT32_T
16309 #ifndef __int32_t_defined
16310 #define __int32_t_defined
16311 #ifndef int32_t
16312 typedef $acx_cv_type_int32_t int32_t;
16313 #endif
16314 #endif
16315 #endif
16316EOF
16317elif test "$ac_cv_type_u_int32_t" = yes; then
16318 sed 's/^ *//' >> tmp-stdint.h <<EOF
16319
16320 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
16321 #ifndef _INT8_T
16322 #define _INT8_T
16323 #endif
16324 #ifndef _INT16_T
16325 #define _INT16_T
16326 #endif
16327 #ifndef _INT32_T
16328 #define _INT32_T
16329 #endif
16330
16331 #ifndef _UINT8_T
16332 #define _UINT8_T
16333 #ifndef __uint8_t_defined
16334 #define __uint8_t_defined
16335 #ifndef uint8_t
16336 typedef u_int8_t uint8_t;
16337 #endif
16338 #endif
16339 #endif
16340
16341 #ifndef _UINT16_T
16342 #define _UINT16_T
16343 #ifndef __uint16_t_defined
16344 #define __uint16_t_defined
16345 #ifndef uint16_t
16346 typedef u_int16_t uint16_t;
16347 #endif
16348 #endif
16349 #endif
16350
16351 #ifndef _UINT32_T
16352 #define _UINT32_T
16353 #ifndef __uint32_t_defined
16354 #define __uint32_t_defined
16355 #ifndef uint32_t
16356 typedef u_int32_t uint32_t;
16357 #endif
16358 #endif
16359 #endif
16360EOF
16361else
16362 sed 's/^ *//' >> tmp-stdint.h <<EOF
16363
16364 /* Some systems have guard macros to prevent redefinitions, define them. */
16365 #ifndef _INT8_T
16366 #define _INT8_T
16367 #endif
16368 #ifndef _INT16_T
16369 #define _INT16_T
16370 #endif
16371 #ifndef _INT32_T
16372 #define _INT32_T
16373 #endif
16374 #ifndef _UINT8_T
16375 #define _UINT8_T
16376 #endif
16377 #ifndef _UINT16_T
16378 #define _UINT16_T
16379 #endif
16380 #ifndef _UINT32_T
16381 #define _UINT32_T
16382 #endif
16383EOF
16384fi
16385
16386# ------------- done basic int types, emit int64_t types ------------
16387if test "$ac_cv_type_uint64_t" = yes; then
16388 sed 's/^ *//' >> tmp-stdint.h <<EOF
16389
16390 /* system headers have good uint64_t and int64_t */
16391 #ifndef _INT64_T
16392 #define _INT64_T
16393 #endif
16394 #ifndef _UINT64_T
16395 #define _UINT64_T
16396 #endif
16397EOF
16398elif test "$ac_cv_type_u_int64_t" = yes; then
16399 sed 's/^ *//' >> tmp-stdint.h <<EOF
16400
16401 /* system headers have an u_int64_t (and int64_t) */
16402 #ifndef _INT64_T
16403 #define _INT64_T
16404 #endif
16405 #ifndef _UINT64_T
16406 #define _UINT64_T
16407 #ifndef __uint64_t_defined
16408 #define __uint64_t_defined
16409 #ifndef uint64_t
16410 typedef u_int64_t uint64_t;
16411 #endif
16412 #endif
16413 #endif
16414EOF
16415elif test -n "$acx_cv_type_int64_t"; then
16416 sed 's/^ *//' >> tmp-stdint.h <<EOF
16417
16418 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16419 #ifndef _INT64_T
16420 #define _INT64_T
16421 #ifndef int64_t
16422 typedef $acx_cv_type_int64_t int64_t;
16423 #endif
16424 #endif
16425 #ifndef _UINT64_T
16426 #define _UINT64_T
16427 #ifndef __uint64_t_defined
16428 #define __uint64_t_defined
16429 #ifndef uint64_t
16430 typedef unsigned $acx_cv_type_int64_t uint64_t;
16431 #endif
16432 #endif
16433 #endif
16434EOF
16435else
16436 sed 's/^ *//' >> tmp-stdint.h <<EOF
16437
16438 /* some common heuristics for int64_t, using compiler-specific tests */
16439 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16440 #ifndef _INT64_T
16441 #define _INT64_T
16442 #ifndef __int64_t_defined
16443 #ifndef int64_t
16444 typedef long long int64_t;
16445 #endif
16446 #endif
16447 #endif
16448 #ifndef _UINT64_T
16449 #define _UINT64_T
16450 #ifndef uint64_t
16451 typedef unsigned long long uint64_t;
16452 #endif
16453 #endif
16454
16455 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16456 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16457 does not implement __extension__. But that compiler doesn't define
16458 __GNUC_MINOR__. */
16459 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16460 # define __extension__
16461 # endif
16462
16463 # ifndef _INT64_T
16464 # define _INT64_T
16465 # ifndef int64_t
16466 __extension__ typedef long long int64_t;
16467 # endif
16468 # endif
16469 # ifndef _UINT64_T
16470 # define _UINT64_T
16471 # ifndef uint64_t
16472 __extension__ typedef unsigned long long uint64_t;
16473 # endif
16474 # endif
16475
16476 #elif !defined __STRICT_ANSI__
16477 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16478
16479 # ifndef _INT64_T
16480 # define _INT64_T
16481 # ifndef int64_t
16482 typedef __int64 int64_t;
16483 # endif
16484 # endif
16485 # ifndef _UINT64_T
16486 # define _UINT64_T
16487 # ifndef uint64_t
16488 typedef unsigned __int64 uint64_t;
16489 # endif
16490 # endif
16491 # endif /* compiler */
16492
16493 #endif /* ANSI version */
16494EOF
16495fi
16496
16497# ------------- done int64_t types, emit intptr types ------------
16498if test "$ac_cv_type_uintptr_t" != yes; then
16499 sed 's/^ *//' >> tmp-stdint.h <<EOF
16500
16501 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16502 #ifndef __uintptr_t_defined
16503 #ifndef uintptr_t
16504 typedef u$acx_cv_type_intptr_t uintptr_t;
16505 #endif
16506 #endif
16507 #ifndef __intptr_t_defined
16508 #ifndef intptr_t
16509 typedef $acx_cv_type_intptr_t intptr_t;
16510 #endif
16511 #endif
16512EOF
16513fi
16514
16515# ------------- done intptr types, emit int_least types ------------
16516if test "$ac_cv_type_int_least32_t" != yes; then
16517 sed 's/^ *//' >> tmp-stdint.h <<EOF
16518
16519 /* Define int_least types */
16520 typedef int8_t int_least8_t;
16521 typedef int16_t int_least16_t;
16522 typedef int32_t int_least32_t;
16523 #ifdef _INT64_T
16524 typedef int64_t int_least64_t;
16525 #endif
16526
16527 typedef uint8_t uint_least8_t;
16528 typedef uint16_t uint_least16_t;
16529 typedef uint32_t uint_least32_t;
16530 #ifdef _UINT64_T
16531 typedef uint64_t uint_least64_t;
16532 #endif
16533EOF
16534fi
16535
16536# ------------- done intptr types, emit int_fast types ------------
16537if test "$ac_cv_type_int_fast32_t" != yes; then
16538 sed 's/^ *//' >> tmp-stdint.h <<EOF
16539
16540 /* Define int_fast types. short is often slow */
16541 typedef int8_t int_fast8_t;
16542 typedef int int_fast16_t;
16543 typedef int32_t int_fast32_t;
16544 #ifdef _INT64_T
16545 typedef int64_t int_fast64_t;
16546 #endif
16547
16548 typedef uint8_t uint_fast8_t;
16549 typedef unsigned int uint_fast16_t;
16550 typedef uint32_t uint_fast32_t;
16551 #ifdef _UINT64_T
16552 typedef uint64_t uint_fast64_t;
16553 #endif
16554EOF
16555fi
16556
16557if test "$ac_cv_type_uintmax_t" != yes; then
16558 sed 's/^ *//' >> tmp-stdint.h <<EOF
16559
16560 /* Define intmax based on what we found */
16561 #ifndef intmax_t
16562 #ifdef _INT64_T
16563 typedef int64_t intmax_t;
16564 #else
16565 typedef long intmax_t;
16566 #endif
16567 #endif
16568 #ifndef uintmax_t
16569 #ifdef _UINT64_T
16570 typedef uint64_t uintmax_t;
16571 #else
16572 typedef unsigned long uintmax_t;
16573 #endif
16574 #endif
16575EOF
16576fi
16577
16578sed 's/^ *//' >> tmp-stdint.h <<EOF
16579
16580 #endif /* GCC_GENERATED_STDINT_H */
16581EOF
16582
16583if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16584 rm -f tmp-stdint.h
16585else
16586 mv -f tmp-stdint.h gstdint.h
16587fi
16588
16589 ;;
fddbc193 16590 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
eff02e4f
ILT
16591 "default":C) if test -n "$CONFIG_FILES"; then
16592 if test -n "${with_target_subdir}"; then
16593 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16594 # that multilib installs will end up installed in the correct place.
16595 # The testsuite needs it for multilib-aware ABI baseline files.
16596 # To work around this not being passed down from config-ml.in ->
16597 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16598 # append it here. Only modify Makefiles that have just been created.
16599 #
16600 # Also, get rid of this simulated-VPATH thing that automake does.
16601 cat > vpsed << \_EOF
16602 s!`test -f '$<' || echo '$(srcdir)/'`!!
16603_EOF
16604 for i in $SUBDIRS; do
16605 case $CONFIG_FILES in
16606 *${i}/Makefile*)
16607 #echo "Adding MULTISUBDIR to $i/Makefile"
16608 sed -f vpsed $i/Makefile > tmp
16609 grep '^MULTISUBDIR =' Makefile >> tmp
16610 mv tmp $i/Makefile
16611 ;;
16612 esac
16613 done
16614 rm vpsed
16615 fi
16616 fi
16617 ;;
16618
16619 esac
16620done # for ac_tag
16621
16622
16623as_fn_exit 0
16624_ACEOF
16625ac_clean_files=$ac_clean_files_save
16626
16627test $ac_write_fail = 0 ||
22e05272 16628 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
16629
16630
16631# configure is writing to config.log, and then calls config.status.
16632# config.status does its own redirection, appending to config.log.
16633# Unfortunately, on DOS this fails, as config.log is still kept open
16634# by configure, so config.status won't be able to write to it; its
16635# output is simply discarded. So we exec the FD to /dev/null,
16636# effectively closing config.log, so it can be properly (re)opened and
16637# appended to by config.status. When coming back to configure, we
16638# need to make the FD available again.
16639if test "$no_create" != yes; then
16640 ac_cs_success=:
16641 ac_config_status_args=
16642 test "$silent" = yes &&
16643 ac_config_status_args="$ac_config_status_args --quiet"
16644 exec 5>/dev/null
16645 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16646 exec 5>>config.log
16647 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16648 # would make configure fail if this is the last instruction.
22e05272 16649 $ac_cs_success || as_fn_exit 1
eff02e4f
ILT
16650fi
16651if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16653$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16654fi
16655