]> git.ipfire.org Git - thirdparty/gcc.git/blame - libbacktrace/configure
Update copyright year
[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
9283471b
ILT
638HAVE_OBJCOPY_DEBUGLINK_FALSE
639HAVE_OBJCOPY_DEBUGLINK_TRUE
fddbc193 640READELF
9283471b 641OBJCOPY
8da872d9
ILT
642HAVE_COMPRESSED_DEBUG_FALSE
643HAVE_COMPRESSED_DEBUG_TRUE
644HAVE_ZLIB_FALSE
645HAVE_ZLIB_TRUE
c926fd82
ILT
646HAVE_DWARF5_FALSE
647HAVE_DWARF5_TRUE
d1609a23
ILT
648HAVE_PTHREAD_FALSE
649HAVE_PTHREAD_TRUE
650PTHREAD_CFLAGS
8398c1df 651CLOCK_GETTIME_LINK
eff02e4f
ILT
652BACKTRACE_USES_MALLOC
653ALLOC_FILE
654VIEW_FILE
e24afc10 655BACKTRACE_SUPPORTS_DATA
eff02e4f 656BACKTRACE_SUPPORTED
fddbc193
TV
657HAVE_ELF_FALSE
658HAVE_ELF_TRUE
eff02e4f
ILT
659FORMAT_FILE
660BACKTRACE_SUPPORTS_THREADS
661PIC_FLAG
662WARN_FLAGS
56195009 663EXTRA_FLAGS
eff02e4f 664BACKTRACE_FILE
eff02e4f
ILT
665OTOOL64
666OTOOL
667LIPO
668NMEDIT
669DSYMUTIL
670AR
671OBJDUMP
672LN_S
673NM
674ac_ct_DUMPBIN
675DUMPBIN
676LD
677FGREP
eff02e4f
ILT
678SED
679LIBTOOL
10f48858
TV
680HAVE_DWZ_FALSE
681HAVE_DWZ_TRUE
682DWZ
eff02e4f 683RANLIB
d4c059d5
ILT
684MAINT
685MAINTAINER_MODE_FALSE
686MAINTAINER_MODE_TRUE
22e05272
JM
687AM_BACKSLASH
688AM_DEFAULT_VERBOSITY
689AM_DEFAULT_V
690AM_V
eff02e4f
ILT
691am__untar
692am__tar
693AMTAR
694am__leading_dot
695SET_MAKE
696AWK
697mkdir_p
698MKDIR_P
699INSTALL_STRIP_PROGRAM
700STRIP
701install_sh
702MAKEINFO
703AUTOHEADER
704AUTOMAKE
705AUTOCONF
706ACLOCAL
707VERSION
708PACKAGE
709CYGPATH_W
710am__isrc
711INSTALL_DATA
712INSTALL_SCRIPT
713INSTALL_PROGRAM
714libtool_VERSION
d4c059d5
ILT
715EGREP
716GREP
717CPP
718OBJEXT
719EXEEXT
720ac_ct_CC
721CPPFLAGS
722LDFLAGS
723CFLAGS
724CC
eff02e4f
ILT
725target_os
726target_vendor
727target_cpu
728target
729host_os
730host_vendor
731host_cpu
732host
733build_os
734build_vendor
735build_cpu
736build
405a6b1c 737multi_basedir
eff02e4f
ILT
738target_alias
739host_alias
740build_alias
741LIBS
742ECHO_T
743ECHO_N
744ECHO_C
745DEFS
746mandir
747localedir
748libdir
749psdir
750pdfdir
751dvidir
752htmldir
753infodir
754docdir
755oldincludedir
756includedir
757localstatedir
758sharedstatedir
759sysconfdir
760datadir
761datarootdir
762libexecdir
763sbindir
764bindir
765program_transform_name
766prefix
767exec_prefix
768PACKAGE_URL
769PACKAGE_BUGREPORT
770PACKAGE_STRING
771PACKAGE_VERSION
772PACKAGE_TARNAME
773PACKAGE_NAME
774PATH_SEPARATOR
775SHELL'
776ac_subst_files=''
777ac_user_opts='
778enable_option_checking
405a6b1c 779enable_multilib
22e05272 780enable_silent_rules
eff02e4f
ILT
781enable_maintainer_mode
782with_target_subdir
eff02e4f
ILT
783enable_shared
784enable_static
785with_pic
786enable_fast_install
787with_gnu_ld
788enable_libtool_lock
e91a2ddc 789enable_largefile
44685d37 790enable_cet
eff02e4f 791with_system_libunwind
459260ec 792enable_host_shared
eff02e4f
ILT
793'
794 ac_precious_vars='build_alias
795host_alias
796target_alias
d4c059d5
ILT
797CC
798CFLAGS
799LDFLAGS
800LIBS
801CPPFLAGS
9283471b
ILT
802CPP
803OBJCOPY'
eff02e4f
ILT
804
805
806# Initialize some variables set by options.
807ac_init_help=
808ac_init_version=false
809ac_unrecognized_opts=
810ac_unrecognized_sep=
811# The variables have the same names as the options, with
812# dashes changed to underlines.
813cache_file=/dev/null
814exec_prefix=NONE
815no_create=
816no_recursion=
817prefix=NONE
818program_prefix=NONE
819program_suffix=NONE
820program_transform_name=s,x,x,
821silent=
822site=
823srcdir=
824verbose=
825x_includes=NONE
826x_libraries=NONE
827
828# Installation directory options.
829# These are left unexpanded so users can "make install exec_prefix=/foo"
830# and all the variables that are supposed to be based on exec_prefix
831# by default will actually change.
832# Use braces instead of parens because sh, perl, etc. also accept them.
833# (The list follows the same order as the GNU Coding Standards.)
834bindir='${exec_prefix}/bin'
835sbindir='${exec_prefix}/sbin'
836libexecdir='${exec_prefix}/libexec'
837datarootdir='${prefix}/share'
838datadir='${datarootdir}'
839sysconfdir='${prefix}/etc'
840sharedstatedir='${prefix}/com'
841localstatedir='${prefix}/var'
842includedir='${prefix}/include'
843oldincludedir='/usr/include'
844docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845infodir='${datarootdir}/info'
846htmldir='${docdir}'
847dvidir='${docdir}'
848pdfdir='${docdir}'
849psdir='${docdir}'
850libdir='${exec_prefix}/lib'
851localedir='${datarootdir}/locale'
852mandir='${datarootdir}/man'
853
854ac_prev=
855ac_dashdash=
856for ac_option
857do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
22e05272
JM
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
eff02e4f
ILT
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 913 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 939 as_fn_error $? "invalid feature name: $ac_useropt"
eff02e4f
ILT
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1143 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148"with_$ac_useropt"
1149"*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
22e05272 1159 as_fn_error $? "invalid package name: $ac_useropt"
eff02e4f
ILT
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164"with_$ac_useropt"
1165"*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
22e05272
JM
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190Try \`$0 --help' for more information"
eff02e4f
ILT
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
22e05272 1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
eff02e4f
ILT
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22e05272 1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
eff02e4f
ILT
1209 ;;
1210
1211 esac
1212done
1213
1214if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22e05272 1216 as_fn_error $? "missing argument to $ac_option"
eff02e4f
ILT
1217fi
1218
1219if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
22e05272 1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
eff02e4f
ILT
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225fi
1226
1227# Check all directory arguments for consistency.
1228for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
22e05272 1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
eff02e4f
ILT
1246done
1247
1248# There might be people who depend on the old broken behavior: `$host'
1249# used to hold the argument of --host etc.
1250# FIXME: To remove some day.
1251build=$build_alias
1252host=$host_alias
1253target=$target_alias
1254
1255# FIXME: To remove some day.
1256if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
eff02e4f
ILT
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262fi
1263
1264ac_tool_prefix=
1265test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267test "$silent" = yes && exec 6>/dev/null
1268
1269
1270ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271ac_ls_di=`ls -di .` &&
1272ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
22e05272 1273 as_fn_error $? "working directory cannot be determined"
eff02e4f 1274test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
22e05272 1275 as_fn_error $? "pwd does not report name of working directory"
eff02e4f
ILT
1276
1277
1278# Find the source files, if location was not specified.
1279if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287$as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309else
1310 ac_srcdir_defaulted=no
1311fi
1312if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
22e05272 1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
eff02e4f
ILT
1315fi
1316ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317ac_abs_confdir=`(
22e05272 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
eff02e4f
ILT
1319 pwd)`
1320# When building in place, set srcdir=.
1321if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323fi
1324# Remove unnecessary trailing slashes from srcdir.
1325# Double slashes in file names in object file debugging info
1326# mess up M-x gdb in Emacs.
1327case $srcdir in
1328*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329esac
1330for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335done
1336
1337#
1338# Report the --help message.
1339#
1340if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344\`configure' configures package-unused version-unused to adapt to many kinds of systems.
1345
1346Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351Defaults for the options are specified in brackets.
1352
1353Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
22e05272 1358 -q, --quiet, --silent do not print \`checking ...' messages
eff02e4f
ILT
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370By default, \`make install' will install all the files in
1371\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373for instance \`--prefix=\$HOME'.
1374
1375For better control, use the options below.
1376
1377Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397_ACEOF
1398
1399 cat <<\_ACEOF
1400
1401Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 --target=TARGET configure for building compilers for TARGET [HOST]
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of package-unused version-unused:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
405a6b1c 1423 --enable-multilib build many library versions (default)
22e05272
JM
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-maintainer-mode
1427 enable make rules and dependencies not useful (and
1428 sometimes confusing) to the casual installer
7e5c7547 1429 --enable-shared[=PKGS] build shared libraries [default=yes]
eff02e4f
ILT
1430 --enable-static[=PKGS] build static libraries [default=yes]
1431 --enable-fast-install[=PKGS]
1432 optimize for fast installation [default=yes]
1433 --disable-libtool-lock avoid locking (might break parallel builds)
e91a2ddc 1434 --disable-largefile omit support for large files
a0e1df88 1435 --enable-cet enable Intel CET in target libraries [default=no]
459260ec 1436 --enable-host-shared build host code as shared libraries
eff02e4f
ILT
1437
1438Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-target-subdir=SUBDIR Configuring in a subdirectory for target
1442 --with-pic try to use only PIC/non-PIC objects [default=use
1443 both]
1444 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1445 --with-system-libunwind use installed libunwind
1446
1447Some influential environment variables:
1448 CC C compiler command
1449 CFLAGS C compiler flags
1450 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1451 nonstandard directory <lib dir>
1452 LIBS libraries to pass to the linker, e.g. -l<library>
22e05272 1453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
eff02e4f
ILT
1454 you have headers in a nonstandard directory <include dir>
1455 CPP C preprocessor
9283471b 1456 OBJCOPY location of objcopy
eff02e4f
ILT
1457
1458Use these variables to override the choices made by `configure' or to help
1459it to find libraries and programs with nonstandard names/locations.
1460
1461Report bugs to the package provider.
1462_ACEOF
1463ac_status=$?
1464fi
1465
1466if test "$ac_init_help" = "recursive"; then
1467 # If there are subdirs, report their specific --help.
1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
1472 ac_builddir=.
1473
1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1478 # A ".." for each directory in $ac_dir_suffix.
1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1480 case $ac_top_builddir_sub in
1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
1489
1490case $srcdir in
1491 .) # We are building in place.
1492 ac_srcdir=.
1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
1514 else
1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1516 fi || ac_status=$?
1517 cd "$ac_pwd" || { ac_status=$?; break; }
1518 done
1519fi
1520
1521test -n "$ac_init_help" && exit $ac_status
1522if $ac_init_version; then
1523 cat <<\_ACEOF
1524package-unused configure version-unused
22e05272 1525generated by GNU Autoconf 2.69
eff02e4f 1526
22e05272 1527Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
1528This configure script is free software; the Free Software Foundation
1529gives unlimited permission to copy, distribute and modify it.
1530_ACEOF
1531 exit
1532fi
1533
1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
1537
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570fi
22e05272
JM
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
eff02e4f
ILT
1573
1574} # ac_fn_c_try_compile
1575
d4c059d5
ILT
1576# ac_fn_c_try_cpp LINENO
1577# ----------------------
1578# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_c_try_cpp ()
eff02e4f
ILT
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d4c059d5 1582 if { { ac_try="$ac_cpp conftest.$ac_ext"
eff02e4f
ILT
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
d4c059d5 1589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
eff02e4f
ILT
1590 ac_status=$?
1591 if test -s conftest.err; then
1592 grep -v '^ *+' conftest.err >conftest.er1
1593 cat conftest.er1 >&5
1594 mv -f conftest.er1 conftest.err
1595 fi
1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22e05272 1597 test $ac_status = 0; } > conftest.i && {
d4c059d5 1598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
eff02e4f 1599 test ! -s conftest.err
eff02e4f
ILT
1600 }; then :
1601 ac_retval=0
1602else
1603 $as_echo "$as_me: failed program was:" >&5
1604sed 's/^/| /' conftest.$ac_ext >&5
1605
d4c059d5 1606 ac_retval=1
eff02e4f 1607fi
22e05272
JM
1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1609 as_fn_set_status $ac_retval
eff02e4f 1610
d4c059d5 1611} # ac_fn_c_try_cpp
eff02e4f 1612
d4c059d5 1613# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
eff02e4f 1614# -------------------------------------------------------
d4c059d5
ILT
1615# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1616# the include files in INCLUDES and setting the cache variable VAR
1617# accordingly.
1618ac_fn_c_check_header_mongrel ()
eff02e4f
ILT
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22e05272 1621 if eval \${$3+:} false; then :
eff02e4f
ILT
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623$as_echo_n "checking for $2... " >&6; }
22e05272 1624if eval \${$3+:} false; then :
eff02e4f 1625 $as_echo_n "(cached) " >&6
d4c059d5
ILT
1626fi
1627eval ac_res=\$$3
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629$as_echo "$ac_res" >&6; }
eff02e4f 1630else
d4c059d5
ILT
1631 # Is the header compilable?
1632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1633$as_echo_n "checking $2 usability... " >&6; }
1634cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f
ILT
1635/* end confdefs.h. */
1636$4
1637#include <$2>
1638_ACEOF
1639if ac_fn_c_try_compile "$LINENO"; then :
d4c059d5 1640 ac_header_compiler=yes
eff02e4f 1641else
d4c059d5 1642 ac_header_compiler=no
eff02e4f
ILT
1643fi
1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d4c059d5
ILT
1645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1646$as_echo "$ac_header_compiler" >&6; }
eff02e4f 1647
d4c059d5
ILT
1648# Is the header present?
1649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1650$as_echo_n "checking $2 presence... " >&6; }
1651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1652/* end confdefs.h. */
1653#include <$2>
1654_ACEOF
1655if ac_fn_c_try_cpp "$LINENO"; then :
1656 ac_header_preproc=yes
1657else
1658 ac_header_preproc=no
1659fi
22e05272 1660rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
1661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1662$as_echo "$ac_header_preproc" >&6; }
eff02e4f 1663
d4c059d5
ILT
1664# So? What about this header?
1665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1666 yes:no: )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1668$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1670$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1671 ;;
1672 no:yes:* )
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1674$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1676$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1678$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1680$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1682$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1683 ;;
eff02e4f 1684esac
d4c059d5
ILT
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
22e05272 1687if eval \${$3+:} false; then :
d4c059d5 1688 $as_echo_n "(cached) " >&6
eff02e4f 1689else
d4c059d5
ILT
1690 eval "$3=\$ac_header_compiler"
1691fi
1692eval ac_res=\$$3
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694$as_echo "$ac_res" >&6; }
eff02e4f 1695fi
22e05272 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f 1697
d4c059d5 1698} # ac_fn_c_check_header_mongrel
eff02e4f
ILT
1699
1700# ac_fn_c_try_run LINENO
1701# ----------------------
1702# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703# that executables *can* be run.
1704ac_fn_c_try_run ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1728 ac_retval=0
1729else
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=$ac_status
1735fi
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
eff02e4f
ILT
1739
1740} # ac_fn_c_try_run
1741
d4c059d5
ILT
1742# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1743# -------------------------------------------------------
1744# Tests whether HEADER exists and can be compiled using the include files in
1745# INCLUDES, setting the cache variable VAR accordingly.
1746ac_fn_c_check_header_compile ()
1747{
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750$as_echo_n "checking for $2... " >&6; }
22e05272 1751if eval \${$3+:} false; then :
d4c059d5
ILT
1752 $as_echo_n "(cached) " >&6
1753else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756$4
1757#include <$2>
1758_ACEOF
1759if ac_fn_c_try_compile "$LINENO"; then :
1760 eval "$3=yes"
1761else
1762 eval "$3=no"
1763fi
1764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
22e05272 1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d4c059d5
ILT
1770
1771} # ac_fn_c_check_header_compile
1772
1773# ac_fn_c_try_link LINENO
1774# -----------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_c_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_c_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
22e05272 1800 test -x conftest$ac_exeext
d4c059d5
ILT
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
22e05272
JM
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
d4c059d5
ILT
1816
1817} # ac_fn_c_try_link
1818
eff02e4f
ILT
1819# ac_fn_c_check_func LINENO FUNC VAR
1820# ----------------------------------
1821# Tests whether FUNC exists, setting the cache variable VAR accordingly
1822ac_fn_c_check_func ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1826$as_echo_n "checking for $2... " >&6; }
22e05272 1827if eval \${$3+:} false; then :
eff02e4f
ILT
1828 $as_echo_n "(cached) " >&6
1829else
1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h. */
1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1834#define $2 innocuous_$2
1835
1836/* System header to define __stub macros and hopefully few prototypes,
1837 which can conflict with char $2 (); below.
1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1839 <limits.h> exists even on freestanding compilers. */
1840
1841#ifdef __STDC__
1842# include <limits.h>
1843#else
1844# include <assert.h>
1845#endif
1846
1847#undef $2
1848
1849/* Override any GCC internal prototype to avoid an error.
1850 Use char because int might match the return type of a GCC
1851 builtin and then its argument prototype would still apply. */
1852#ifdef __cplusplus
1853extern "C"
1854#endif
1855char $2 ();
1856/* The GNU C library defines this for functions which it implements
1857 to always fail with ENOSYS. Some functions are actually named
1858 something starting with __ and the normal name is an alias. */
1859#if defined __stub_$2 || defined __stub___$2
1860choke me
1861#endif
1862
1863int
1864main ()
1865{
1866return $2 ();
1867 ;
1868 return 0;
1869}
1870_ACEOF
1871if ac_fn_c_try_link "$LINENO"; then :
1872 eval "$3=yes"
1873else
1874 eval "$3=no"
1875fi
1876rm -f core conftest.err conftest.$ac_objext \
1877 conftest$ac_exeext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
22e05272 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
eff02e4f
ILT
1883
1884} # ac_fn_c_check_func
1885
76850556
RO
1886# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1887# -------------------------------------------
1888# Tests whether TYPE exists after having included INCLUDES, setting cache
1889# variable VAR accordingly.
1890ac_fn_c_check_type ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
22e05272 1895if eval \${$3+:} false; then :
76850556
RO
1896 $as_echo_n "(cached) " >&6
1897else
1898 eval "$3=no"
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902int
1903main ()
1904{
1905if (sizeof ($2))
1906 return 0;
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_compile "$LINENO"; then :
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913/* end confdefs.h. */
1914$4
1915int
1916main ()
1917{
1918if (sizeof (($2)))
1919 return 0;
1920 ;
1921 return 0;
1922}
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925
1926else
1927 eval "$3=yes"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932fi
1933eval ac_res=\$$3
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935$as_echo "$ac_res" >&6; }
22e05272 1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
76850556
RO
1937
1938} # ac_fn_c_check_type
1939
1940# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1941# --------------------------------------------
1942# Tries to find the compile-time value of EXPR in a program that includes
1943# INCLUDES, setting VAR accordingly. Returns whether the value could be
1944# computed
1945ac_fn_c_compute_int ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if test "$cross_compiling" = yes; then
1949 # Depending upon the size, compute the lo and hi bounds.
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$4
1953int
1954main ()
1955{
1956static int test_array [1 - 2 * !(($2) >= 0)];
22e05272
JM
1957test_array [0] = 0;
1958return test_array [0];
76850556
RO
1959
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965 ac_lo=0 ac_mid=0
1966 while :; do
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$4
1970int
1971main ()
1972{
1973static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
1974test_array [0] = 0;
1975return test_array [0];
76850556
RO
1976
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_compile "$LINENO"; then :
1982 ac_hi=$ac_mid; break
1983else
1984 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1985 if test $ac_lo -le $ac_mid; then
1986 ac_lo= ac_hi=
1987 break
1988 fi
1989 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1990fi
1991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 done
1993else
1994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) < 0)];
22e05272
JM
2001test_array [0] = 0;
2002return test_array [0];
76850556
RO
2003
2004 ;
2005 return 0;
2006}
2007_ACEOF
2008if ac_fn_c_try_compile "$LINENO"; then :
2009 ac_hi=-1 ac_mid=-1
2010 while :; do
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014int
2015main ()
2016{
2017static int test_array [1 - 2 * !(($2) >= $ac_mid)];
22e05272
JM
2018test_array [0] = 0;
2019return test_array [0];
76850556
RO
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_lo=$ac_mid; break
2027else
2028 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2029 if test $ac_mid -le $ac_hi; then
2030 ac_lo= ac_hi=
2031 break
2032 fi
2033 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037else
2038 ac_lo= ac_hi=
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043# Binary search between lo and hi bounds.
2044while test "x$ac_lo" != "x$ac_hi"; do
2045 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047/* end confdefs.h. */
2048$4
2049int
2050main ()
2051{
2052static int test_array [1 - 2 * !(($2) <= $ac_mid)];
22e05272
JM
2053test_array [0] = 0;
2054return test_array [0];
76850556
RO
2055
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid
2062else
2063 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066done
2067case $ac_lo in #((
2068?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2069'') ac_retval=1 ;;
2070esac
2071 else
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h. */
2074$4
2075static long int longval () { return $2; }
2076static unsigned long int ulongval () { return $2; }
2077#include <stdio.h>
2078#include <stdlib.h>
2079int
2080main ()
2081{
2082
2083 FILE *f = fopen ("conftest.val", "w");
2084 if (! f)
2085 return 1;
2086 if (($2) < 0)
2087 {
2088 long int i = longval ();
2089 if (i != ($2))
2090 return 1;
2091 fprintf (f, "%ld", i);
2092 }
2093 else
2094 {
2095 unsigned long int i = ulongval ();
2096 if (i != ($2))
2097 return 1;
2098 fprintf (f, "%lu", i);
2099 }
2100 /* Do not output a trailing newline, as this causes \r\n confusion
2101 on some platforms. */
2102 return ferror (f) || fclose (f) != 0;
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_run "$LINENO"; then :
2109 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2110else
2111 ac_retval=1
2112fi
2113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2114 conftest.$ac_objext conftest.beam conftest.$ac_ext
2115rm -f conftest.val
2116
2117 fi
22e05272
JM
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119 as_fn_set_status $ac_retval
76850556
RO
2120
2121} # ac_fn_c_compute_int
2122
22e05272
JM
2123# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2124# ---------------------------------------------
2125# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2126# accordingly.
772a71a9
ILT
2127ac_fn_c_check_decl ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 as_decl_name=`echo $2|sed 's/ *(.*//'`
2131 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2133$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
22e05272 2134if eval \${$3+:} false; then :
772a71a9
ILT
2135 $as_echo_n "(cached) " >&6
2136else
2137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143#ifndef $as_decl_name
2144#ifdef __cplusplus
2145 (void) $as_decl_use;
2146#else
2147 (void) $as_decl_name;
2148#endif
2149#endif
2150
2151 ;
2152 return 0;
2153}
2154_ACEOF
2155if ac_fn_c_try_compile "$LINENO"; then :
2156 eval "$3=yes"
2157else
2158 eval "$3=no"
2159fi
2160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161fi
2162eval ac_res=\$$3
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164$as_echo "$ac_res" >&6; }
22e05272 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
772a71a9
ILT
2166
2167} # ac_fn_c_check_decl
eff02e4f
ILT
2168cat >config.log <<_ACEOF
2169This file contains any messages produced by compilers while
2170running configure, to aid debugging if configure makes a mistake.
2171
2172It was created by package-unused $as_me version-unused, which was
22e05272 2173generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
2174
2175 $ $0 $@
2176
2177_ACEOF
2178exec 5>>config.log
2179{
2180cat <<_ASUNAME
2181## --------- ##
2182## Platform. ##
2183## --------- ##
2184
2185hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190
2191/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193
2194/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201
2202_ASUNAME
2203
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211IFS=$as_save_IFS
2212
2213} >&5
2214
2215cat >&5 <<_ACEOF
2216
2217
2218## ----------- ##
2219## Core tests. ##
2220## ----------- ##
2221
2222_ACEOF
2223
2224
2225# Keep a trace of the command line.
2226# Strip out --no-create and --no-recursion so they do not pile up.
2227# Strip out --silent because we don't want to record it for future runs.
2228# Also quote any args containing shell meta-characters.
2229# Make two passes to allow for proper duplicate-argument suppression.
2230ac_configure_args=
2231ac_configure_args0=
2232ac_configure_args1=
2233ac_must_keep_next=false
2234for ac_pass in 1 2
2235do
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 2)
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2261 ;;
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2264 fi
2265 as_fn_append ac_configure_args " '$ac_arg'"
2266 ;;
2267 esac
2268 done
2269done
2270{ ac_configure_args0=; unset ac_configure_args0;}
2271{ ac_configure_args1=; unset ac_configure_args1;}
2272
2273# When interrupted or exit'd, cleanup temporary files, and complete
2274# config.log. We remove comments because anyway the quotes in there
2275# would cause problems or look ugly.
2276# WARNING: Use '\'' to represent an apostrophe within the trap.
2277# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2280 {
2281 echo
2282
22e05272 2283 $as_echo "## ---------------- ##
eff02e4f 2284## Cache variables. ##
22e05272 2285## ---------------- ##"
eff02e4f
ILT
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288(
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316)
2317 echo
2318
22e05272 2319 $as_echo "## ----------------- ##
eff02e4f 2320## Output variables. ##
22e05272 2321## ----------------- ##"
eff02e4f
ILT
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
22e05272 2334 $as_echo "## ------------------- ##
eff02e4f 2335## File substitutions. ##
22e05272 2336## ------------------- ##"
eff02e4f
ILT
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
22e05272 2350 $as_echo "## ----------- ##
eff02e4f 2351## confdefs.h. ##
22e05272 2352## ----------- ##"
eff02e4f
ILT
2353 echo
2354 cat confdefs.h
2355 echo
2356 fi
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2364' 0
2365for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367done
2368ac_signal=0
2369
2370# confdefs.h avoids OS command line length limits that DEFS can exceed.
2371rm -f -r conftest* confdefs.h
2372
2373$as_echo "/* confdefs.h */" > confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383_ACEOF
2384
2385cat >>confdefs.h <<_ACEOF
2386#define PACKAGE_VERSION "$PACKAGE_VERSION"
2387_ACEOF
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_STRING "$PACKAGE_STRING"
2391_ACEOF
2392
2393cat >>confdefs.h <<_ACEOF
2394#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395_ACEOF
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_URL "$PACKAGE_URL"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
22e05272
JM
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
eff02e4f
ILT
2413elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2419fi
2420for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421do
2422 test "x$ac_site_file" = xNONE && continue
22e05272 2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
eff02e4f
ILT
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
22e05272
JM
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430as_fn_error $? "failed to load site script $ac_site_file
2431See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
2432 fi
2433done
2434
2435if test -r "$cache_file"; then
22e05272
JM
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
eff02e4f
ILT
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440$as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448$as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450fi
2451
2452# Check that the precious variables saved in the cache have kept the same
2453# value.
2454ac_cache_corrupted=false
2455for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2500 fi
2501done
2502if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
22e05272 2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
eff02e4f
ILT
2508fi
2509## -------------------- ##
2510## Main body of script. ##
2511## -------------------- ##
2512
2513ac_ext=c
2514ac_cpp='$CPP $CPPFLAGS'
2515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522
2523
2524ac_config_headers="$ac_config_headers config.h"
2525
2526
405a6b1c
MK
2527if test -n "${with_target_subdir}"; then
2528 # Default to --enable-multilib
2529# Check whether --enable-multilib was given.
2530if test "${enable_multilib+set}" = set; then :
2531 enableval=$enable_multilib; case "$enableval" in
2532 yes) multilib=yes ;;
2533 no) multilib=no ;;
22e05272 2534 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
405a6b1c
MK
2535 esac
2536else
2537 multilib=yes
2538fi
2539
2540
2541# We may get other options which we leave undocumented:
2542# --with-target-subdir, --with-multisrctop, --with-multisubdir
2543# See config-ml.in if you want the gory details.
2544
2545if test "$srcdir" = "."; then
2546 if test "$with_target_subdir" != "."; then
2547 multi_basedir="$srcdir/$with_multisrctop../.."
2548 else
2549 multi_basedir="$srcdir/$with_multisrctop.."
2550 fi
2551else
2552 multi_basedir="$srcdir/.."
2553fi
2554
2555
2556# Even if the default multilib is not a cross compilation,
2557# it may be that some of the other multilibs are.
2558if test $cross_compiling = no && test $multilib = yes \
2559 && test "x${with_multisubdir}" != x ; then
2560 cross_compiling=maybe
2561fi
2562
2563ac_config_commands="$ac_config_commands default-1"
2564
2565fi
2566
eff02e4f
ILT
2567ac_aux_dir=
2568for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
22e05272
JM
2569 if test -f "$ac_dir/install-sh"; then
2570 ac_aux_dir=$ac_dir
2571 ac_install_sh="$ac_aux_dir/install-sh -c"
2572 break
2573 elif test -f "$ac_dir/install.sh"; then
2574 ac_aux_dir=$ac_dir
2575 ac_install_sh="$ac_aux_dir/install.sh -c"
2576 break
2577 elif test -f "$ac_dir/shtool"; then
2578 ac_aux_dir=$ac_dir
2579 ac_install_sh="$ac_aux_dir/shtool install -c"
2580 break
2581 fi
eff02e4f
ILT
2582done
2583if test -z "$ac_aux_dir"; then
22e05272 2584 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
eff02e4f
ILT
2585fi
2586
2587# These three variables are undocumented and unsupported,
2588# and are intended to be withdrawn in a future Autoconf release.
2589# They can cause serious problems if a builder's source tree is in a directory
2590# whose full name contains unusual characters.
2591ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2592ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2593ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2594
2595
2596# Make sure we can run config.sub.
2597$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
22e05272 2598 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
eff02e4f
ILT
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2601$as_echo_n "checking build system type... " >&6; }
22e05272 2602if ${ac_cv_build+:} false; then :
eff02e4f
ILT
2603 $as_echo_n "(cached) " >&6
2604else
2605 ac_build_alias=$build_alias
2606test "x$ac_build_alias" = x &&
2607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608test "x$ac_build_alias" = x &&
22e05272 2609 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
eff02e4f 2610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
22e05272 2611 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
eff02e4f
ILT
2612
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2615$as_echo "$ac_cv_build" >&6; }
2616case $ac_cv_build in
2617*-*-*) ;;
22e05272 2618*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
eff02e4f
ILT
2619esac
2620build=$ac_cv_build
2621ac_save_IFS=$IFS; IFS='-'
2622set x $ac_cv_build
2623shift
2624build_cpu=$1
2625build_vendor=$2
2626shift; shift
2627# Remember, the first character of IFS is used to create $*,
2628# except with old shells:
2629build_os=$*
2630IFS=$ac_save_IFS
2631case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2632
2633
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2635$as_echo_n "checking host system type... " >&6; }
22e05272 2636if ${ac_cv_host+:} false; then :
eff02e4f
ILT
2637 $as_echo_n "(cached) " >&6
2638else
2639 if test "x$host_alias" = x; then
2640 ac_cv_host=$ac_cv_build
2641else
2642 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
22e05272 2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
eff02e4f
ILT
2644fi
2645
2646fi
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2648$as_echo "$ac_cv_host" >&6; }
2649case $ac_cv_host in
2650*-*-*) ;;
22e05272 2651*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
eff02e4f
ILT
2652esac
2653host=$ac_cv_host
2654ac_save_IFS=$IFS; IFS='-'
2655set x $ac_cv_host
2656shift
2657host_cpu=$1
2658host_vendor=$2
2659shift; shift
2660# Remember, the first character of IFS is used to create $*,
2661# except with old shells:
2662host_os=$*
2663IFS=$ac_save_IFS
2664case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2665
2666
2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2668$as_echo_n "checking target system type... " >&6; }
22e05272 2669if ${ac_cv_target+:} false; then :
eff02e4f
ILT
2670 $as_echo_n "(cached) " >&6
2671else
2672 if test "x$target_alias" = x; then
2673 ac_cv_target=$ac_cv_host
2674else
2675 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
22e05272 2676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
eff02e4f
ILT
2677fi
2678
2679fi
2680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2681$as_echo "$ac_cv_target" >&6; }
2682case $ac_cv_target in
2683*-*-*) ;;
22e05272 2684*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
eff02e4f
ILT
2685esac
2686target=$ac_cv_target
2687ac_save_IFS=$IFS; IFS='-'
2688set x $ac_cv_target
2689shift
2690target_cpu=$1
2691target_vendor=$2
2692shift; shift
2693# Remember, the first character of IFS is used to create $*,
2694# except with old shells:
2695target_os=$*
2696IFS=$ac_save_IFS
2697case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2698
2699
2700# The aliases save the names the user supplied, while $host etc.
2701# will get canonicalized.
2702test -n "$target_alias" &&
2703 test "$program_prefix$program_suffix$program_transform_name" = \
2704 NONENONEs,x,x, &&
2705 program_prefix=${target_alias}-
2706
2707target_alias=${target_alias-$host_alias}
2708
22e05272
JM
2709# Expand $ac_aux_dir to an absolute path.
2710am_aux_dir=`cd "$ac_aux_dir" && pwd`
2711
d4c059d5
ILT
2712ac_ext=c
2713ac_cpp='$CPP $CPPFLAGS'
2714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2716ac_compiler_gnu=$ac_cv_c_compiler_gnu
2717if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2719set dummy ${ac_tool_prefix}gcc; ac_word=$2
2720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2722if ${ac_cv_prog_CC+:} false; then :
d4c059d5
ILT
2723 $as_echo_n "(cached) " >&6
2724else
2725 if test -n "$CC"; then
2726 ac_cv_prog_CC="$CC" # Let the user override the test.
2727else
2728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2729for as_dir in $PATH
2730do
2731 IFS=$as_save_IFS
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 break 2
2738 fi
2739done
2740 done
2741IFS=$as_save_IFS
eff02e4f 2742
d4c059d5
ILT
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2748$as_echo "$CC" >&6; }
2749else
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2751$as_echo "no" >&6; }
2752fi
eff02e4f 2753
eff02e4f 2754
d4c059d5
ILT
2755fi
2756if test -z "$ac_cv_prog_CC"; then
2757 ac_ct_CC=$CC
2758 # Extract the first word of "gcc", so it can be a program name with args.
2759set dummy gcc; ac_word=$2
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2762if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2763 $as_echo_n "(cached) " >&6
2764else
d4c059d5
ILT
2765 if test -n "$ac_ct_CC"; then
2766 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2767else
2768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
eff02e4f
ILT
2769for as_dir in $PATH
2770do
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
d4c059d5 2773 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2775 ac_cv_prog_ac_ct_CC="gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2778 fi
2779done
eff02e4f
ILT
2780 done
2781IFS=$as_save_IFS
2782
eff02e4f 2783fi
d4c059d5
ILT
2784fi
2785ac_ct_CC=$ac_cv_prog_ac_ct_CC
2786if test -n "$ac_ct_CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2788$as_echo "$ac_ct_CC" >&6; }
2789else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791$as_echo "no" >&6; }
2792fi
2793
2794 if test "x$ac_ct_CC" = x; then
2795 CC=""
eff02e4f 2796 else
d4c059d5
ILT
2797 case $cross_compiling:$ac_tool_warned in
2798yes:)
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2801ac_tool_warned=yes ;;
2802esac
2803 CC=$ac_ct_CC
eff02e4f 2804 fi
d4c059d5
ILT
2805else
2806 CC="$ac_cv_prog_CC"
eff02e4f 2807fi
eff02e4f 2808
d4c059d5
ILT
2809if test -z "$CC"; then
2810 if test -n "$ac_tool_prefix"; then
2811 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2812set dummy ${ac_tool_prefix}cc; ac_word=$2
eff02e4f
ILT
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2815if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2816 $as_echo_n "(cached) " >&6
2817else
d4c059d5
ILT
2818 if test -n "$CC"; then
2819 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f
ILT
2820else
2821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2828 ac_cv_prog_CC="${ac_tool_prefix}cc"
eff02e4f
ILT
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832done
2833 done
2834IFS=$as_save_IFS
2835
2836fi
2837fi
d4c059d5
ILT
2838CC=$ac_cv_prog_CC
2839if test -n "$CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2841$as_echo "$CC" >&6; }
eff02e4f
ILT
2842else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844$as_echo "no" >&6; }
2845fi
2846
2847
d4c059d5 2848 fi
eff02e4f 2849fi
d4c059d5
ILT
2850if test -z "$CC"; then
2851 # Extract the first word of "cc", so it can be a program name with args.
2852set dummy cc; ac_word=$2
eff02e4f
ILT
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2855if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2856 $as_echo_n "(cached) " >&6
2857else
d4c059d5
ILT
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
eff02e4f 2860else
d4c059d5 2861 ac_prog_rejected=no
eff02e4f
ILT
2862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863for as_dir in $PATH
2864do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2869 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
eff02e4f
ILT
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877done
2878 done
2879IFS=$as_save_IFS
2880
d4c059d5
ILT
2881if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2884 shift
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2889 shift
2890 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2891 fi
eff02e4f
ILT
2892fi
2893fi
d4c059d5
ILT
2894fi
2895CC=$ac_cv_prog_CC
2896if test -n "$CC"; then
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2898$as_echo "$CC" >&6; }
eff02e4f
ILT
2899else
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2901$as_echo "no" >&6; }
2902fi
2903
eff02e4f
ILT
2904
2905fi
d4c059d5
ILT
2906if test -z "$CC"; then
2907 if test -n "$ac_tool_prefix"; then
2908 for ac_prog in cl.exe
2909 do
2910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2911set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2914if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
2915 $as_echo_n "(cached) " >&6
2916else
d4c059d5
ILT
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
2920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
eff02e4f
ILT
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
d4c059d5 2925 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931done
eff02e4f
ILT
2932 done
2933IFS=$as_save_IFS
2934
2935fi
eff02e4f 2936fi
d4c059d5
ILT
2937CC=$ac_cv_prog_CC
2938if test -n "$CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2940$as_echo "$CC" >&6; }
2941else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943$as_echo "no" >&6; }
2944fi
eff02e4f 2945
eff02e4f 2946
d4c059d5
ILT
2947 test -n "$CC" && break
2948 done
2949fi
2950if test -z "$CC"; then
2951 ac_ct_CC=$CC
2952 for ac_prog in cl.exe
eff02e4f
ILT
2953do
2954 # Extract the first word of "$ac_prog", so it can be a program name with args.
2955set dummy $ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
22e05272 2958if ${ac_cv_prog_ac_ct_CC+:} false; then :
eff02e4f
ILT
2959 $as_echo_n "(cached) " >&6
2960else
d4c059d5
ILT
2961 if test -n "$ac_ct_CC"; then
2962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
eff02e4f
ILT
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 2970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 2971 ac_cv_prog_ac_ct_CC="$ac_prog"
eff02e4f
ILT
2972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 break 2
2974 fi
2975done
2976 done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
d4c059d5
ILT
2981ac_ct_CC=$ac_cv_prog_ac_ct_CC
2982if test -n "$ac_ct_CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2984$as_echo "$ac_ct_CC" >&6; }
eff02e4f
ILT
2985else
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
d4c059d5 2991 test -n "$ac_ct_CC" && break
eff02e4f
ILT
2992done
2993
d4c059d5
ILT
2994 if test "x$ac_ct_CC" = x; then
2995 CC=""
2996 else
2997 case $cross_compiling:$ac_tool_warned in
2998yes:)
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3001ac_tool_warned=yes ;;
eff02e4f 3002esac
d4c059d5 3003 CC=$ac_ct_CC
eff02e4f
ILT
3004 fi
3005fi
3006
eff02e4f
ILT
3007fi
3008
3009
d4c059d5
ILT
3010test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3012as_fn_error $? "no acceptable C compiler found in \$PATH
3013See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3014
d4c059d5
ILT
3015# Provide some information about the compiler.
3016$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3017set X $ac_compile
3018ac_compiler=$2
3019for ac_option in --version -v -V -qversion; do
3020 { { ac_try="$ac_compiler $ac_option >&5"
3021case "(($ac_try" in
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3024esac
3025eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3026$as_echo "$ac_try_echo"; } >&5
3027 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3028 ac_status=$?
3029 if test -s conftest.err; then
3030 sed '10a\
3031... rest of stderr output deleted ...
3032 10q' conftest.err >conftest.er1
3033 cat conftest.er1 >&5
d4c059d5 3034 fi
22e05272 3035 rm -f conftest.er1 conftest.err
d4c059d5
ILT
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }
3038done
eff02e4f 3039
d4c059d5
ILT
3040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
eff02e4f 3042
d4c059d5
ILT
3043int
3044main ()
3045{
eff02e4f 3046
d4c059d5
ILT
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051ac_clean_files_save=$ac_clean_files
22e05272 3052ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
d4c059d5
ILT
3053# Try to create an executable without -o first, disregard a.out.
3054# It will help us diagnose broken compilers, and finding out an intuition
3055# of exeext.
22e05272
JM
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3057$as_echo_n "checking whether the C compiler works... " >&6; }
d4c059d5 3058ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
eff02e4f 3059
d4c059d5
ILT
3060# The possible output files:
3061ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
eff02e4f 3062
d4c059d5
ILT
3063ac_rmfiles=
3064for ac_file in $ac_files
3065do
3066 case $ac_file in
3067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3068 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3069 esac
3070done
3071rm -f $ac_rmfiles
eff02e4f 3072
d4c059d5
ILT
3073if { { ac_try="$ac_link_default"
3074case "(($ac_try" in
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3077esac
3078eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3079$as_echo "$ac_try_echo"; } >&5
3080 (eval "$ac_link_default") 2>&5
3081 ac_status=$?
3082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }; then :
3084 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3085# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3086# in a Makefile. We should not override ac_cv_exeext if it was cached,
3087# so that the user can short-circuit this test for compilers unknown to
3088# Autoconf.
3089for ac_file in $ac_files ''
3090do
3091 test -f "$ac_file" || continue
3092 case $ac_file in
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3094 ;;
3095 [ab].out )
3096 # We found the default executable, but exeext='' is most
3097 # certainly right.
3098 break;;
3099 *.* )
3100 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3101 then :; else
3102 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3103 fi
3104 # We set ac_cv_exeext here because the later test for it is not
3105 # safe: cross compilers may not add the suffix if given an `-o'
3106 # argument, so we may need to know it at that point already.
3107 # Even if this section looks crufty: it has the advantage of
3108 # actually working.
3109 break;;
3110 * )
3111 break;;
3112 esac
3113done
3114test "$ac_cv_exeext" = no && ac_cv_exeext=
eff02e4f 3115
eff02e4f 3116else
d4c059d5 3117 ac_file=''
eff02e4f 3118fi
d4c059d5 3119if test -z "$ac_file"; then :
22e05272
JM
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3121$as_echo "no" >&6; }
3122$as_echo "$as_me: failed program was:" >&5
d4c059d5 3123sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3124
d4c059d5
ILT
3125{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3127as_fn_error 77 "C compiler cannot create executables
3128See \`config.log' for more details" "$LINENO" 5; }
3129else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3131$as_echo "yes" >&6; }
eff02e4f 3132fi
22e05272
JM
3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3134$as_echo_n "checking for C compiler default output file name... " >&6; }
3135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3136$as_echo "$ac_file" >&6; }
d4c059d5 3137ac_exeext=$ac_cv_exeext
eff02e4f 3138
22e05272 3139rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
d4c059d5 3140ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142$as_echo_n "checking for suffix of executables... " >&6; }
3143if { { ac_try="$ac_link"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149$as_echo "$ac_try_echo"; } >&5
3150 (eval "$ac_link") 2>&5
3151 ac_status=$?
3152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }; then :
3154 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3156# work properly (i.e., refer to `conftest.exe'), while it won't with
3157# `rm'.
3158for ac_file in conftest.exe conftest conftest.*; do
3159 test -f "$ac_file" || continue
3160 case $ac_file in
3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 break;;
3164 * ) break;;
3165 esac
3166done
eff02e4f 3167else
d4c059d5
ILT
3168 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3170as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3171See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3172fi
22e05272 3173rm -f conftest conftest$ac_cv_exeext
d4c059d5
ILT
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175$as_echo "$ac_cv_exeext" >&6; }
eff02e4f 3176
d4c059d5
ILT
3177rm -f conftest.$ac_ext
3178EXEEXT=$ac_cv_exeext
3179ac_exeext=$EXEEXT
22e05272
JM
3180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181/* end confdefs.h. */
3182#include <stdio.h>
3183int
3184main ()
3185{
3186FILE *f = fopen ("conftest.out", "w");
3187 return ferror (f) || fclose (f) != 0;
3188
3189 ;
3190 return 0;
3191}
3192_ACEOF
3193ac_clean_files="$ac_clean_files conftest.out"
3194# Check that the compiler produces executables we can run. If not, either
3195# the compiler is broken, or we cross compile.
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3197$as_echo_n "checking whether we are cross compiling... " >&6; }
3198if test "$cross_compiling" != yes; then
3199 { { ac_try="$ac_link"
3200case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203esac
3204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205$as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }
3210 if { ac_try='./conftest$ac_cv_exeext'
3211 { { case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
3215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_try") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; }; then
3221 cross_compiling=no
3222 else
3223 if test "$cross_compiling" = maybe; then
3224 cross_compiling=yes
3225 else
3226 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3227$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3228as_fn_error $? "cannot run C compiled programs.
3229If you meant to cross compile, use \`--host'.
3230See \`config.log' for more details" "$LINENO" 5; }
3231 fi
3232 fi
3233fi
3234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3235$as_echo "$cross_compiling" >&6; }
3236
3237rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3238ac_clean_files=$ac_clean_files_save
d4c059d5
ILT
3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3240$as_echo_n "checking for suffix of object files... " >&6; }
22e05272 3241if ${ac_cv_objext+:} false; then :
eff02e4f
ILT
3242 $as_echo_n "(cached) " >&6
3243else
d4c059d5
ILT
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
eff02e4f 3246
d4c059d5
ILT
3247int
3248main ()
3249{
eff02e4f 3250
d4c059d5
ILT
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.o conftest.obj
3256if { { ac_try="$ac_compile"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
eff02e4f 3260esac
d4c059d5
ILT
3261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3262$as_echo "$ac_try_echo"; } >&5
3263 (eval "$ac_compile") 2>&5
3264 ac_status=$?
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }; then :
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274done
eff02e4f 3275else
d4c059d5
ILT
3276 $as_echo "$as_me: failed program was:" >&5
3277sed 's/^/| /' conftest.$ac_ext >&5
eff02e4f 3278
d4c059d5
ILT
3279{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3281as_fn_error $? "cannot compute suffix of object files: cannot compile
3282See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
3283fi
3284rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285fi
3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3287$as_echo "$ac_cv_objext" >&6; }
3288OBJEXT=$ac_cv_objext
3289ac_objext=$OBJEXT
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3291$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 3292if ${ac_cv_c_compiler_gnu+:} false; then :
eff02e4f
ILT
3293 $as_echo_n "(cached) " >&6
3294else
d4c059d5
ILT
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
eff02e4f 3297
d4c059d5
ILT
3298int
3299main ()
3300{
3301#ifndef __GNUC__
3302 choke me
3303#endif
3304
3305 ;
3306 return 0;
3307}
3308_ACEOF
3309if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_compiler_gnu=yes
eff02e4f 3311else
d4c059d5 3312 ac_compiler_gnu=no
eff02e4f 3313fi
d4c059d5
ILT
3314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 3316
eff02e4f 3317fi
d4c059d5
ILT
3318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320if test $ac_compiler_gnu = yes; then
3321 GCC=yes
eff02e4f 3322else
d4c059d5
ILT
3323 GCC=
3324fi
3325ac_test_CFLAGS=${CFLAGS+set}
3326ac_save_CFLAGS=$CFLAGS
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 3329if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5 3330 $as_echo_n "(cached) " >&6
eff02e4f 3331else
d4c059d5
ILT
3332 ac_save_c_werror_flag=$ac_c_werror_flag
3333 ac_c_werror_flag=yes
3334 ac_cv_prog_cc_g=no
3335 CFLAGS="-g"
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337/* end confdefs.h. */
eff02e4f 3338
d4c059d5
ILT
3339int
3340main ()
3341{
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
3347if ac_fn_c_try_compile "$LINENO"; then :
3348 ac_cv_prog_cc_g=yes
eff02e4f 3349else
d4c059d5
ILT
3350 CFLAGS=""
3351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352/* end confdefs.h. */
eff02e4f 3353
d4c059d5
ILT
3354int
3355main ()
3356{
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
3362if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 3363
eff02e4f 3364else
d4c059d5
ILT
3365 ac_c_werror_flag=$ac_save_c_werror_flag
3366 CFLAGS="-g"
3367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368/* end confdefs.h. */
3369
3370int
3371main ()
3372{
eff02e4f 3373
d4c059d5
ILT
3374 ;
3375 return 0;
3376}
3377_ACEOF
3378if ac_fn_c_try_compile "$LINENO"; then :
3379 ac_cv_prog_cc_g=yes
eff02e4f 3380fi
d4c059d5 3381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3382fi
d4c059d5 3383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
eff02e4f 3384fi
d4c059d5
ILT
3385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 ac_c_werror_flag=$ac_save_c_werror_flag
eff02e4f 3387fi
d4c059d5
ILT
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389$as_echo "$ac_cv_prog_cc_g" >&6; }
3390if test "$ac_test_CFLAGS" = set; then
3391 CFLAGS=$ac_save_CFLAGS
3392elif test $ac_cv_prog_cc_g = yes; then
3393 if test "$GCC" = yes; then
3394 CFLAGS="-g -O2"
3395 else
3396 CFLAGS="-g"
3397 fi
eff02e4f 3398else
d4c059d5
ILT
3399 if test "$GCC" = yes; then
3400 CFLAGS="-O2"
3401 else
3402 CFLAGS=
eff02e4f 3403 fi
eff02e4f 3404fi
d4c059d5
ILT
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3406$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 3407if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5 3408 $as_echo_n "(cached) " >&6
eff02e4f 3409else
d4c059d5
ILT
3410 ac_cv_prog_cc_c89=no
3411ac_save_CC=$CC
3412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413/* end confdefs.h. */
3414#include <stdarg.h>
3415#include <stdio.h>
22e05272 3416struct stat;
d4c059d5
ILT
3417/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3418struct buf { int x; };
3419FILE * (*rcsopen) (struct buf *, struct stat *, int);
3420static char *e (p, i)
3421 char **p;
3422 int i;
3423{
3424 return p[i];
3425}
3426static char *f (char * (*g) (char **, int), char **p, ...)
3427{
3428 char *s;
3429 va_list v;
3430 va_start (v,p);
3431 s = g (p, va_arg (v,int));
3432 va_end (v);
3433 return s;
3434}
eff02e4f 3435
d4c059d5
ILT
3436/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3437 function prototypes and stuff, but not '\xHH' hex character constants.
3438 These don't provoke an error unfortunately, instead are silently treated
3439 as 'x'. The following induces an error, until -std is added to get
3440 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3441 array size at least. It's necessary to write '\x00'==0 to get something
3442 that's true only with -std. */
3443int osf4_cc_array ['\x00' == 0 ? 1 : -1];
eff02e4f 3444
d4c059d5
ILT
3445/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3446 inside strings and character constants. */
3447#define FOO(x) 'x'
3448int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
eff02e4f 3449
d4c059d5
ILT
3450int test (int i, double x);
3451struct s1 {int (*f) (int a);};
3452struct s2 {int (*f) (double a);};
3453int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3454int argc;
3455char **argv;
3456int
3457main ()
3458{
3459return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3460 ;
3461 return 0;
3462}
3463_ACEOF
3464for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3465 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3466do
3467 CC="$ac_save_CC $ac_arg"
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 3470fi
d4c059d5
ILT
3471rm -f core conftest.err conftest.$ac_objext
3472 test "x$ac_cv_prog_cc_c89" != "xno" && break
3473done
3474rm -f conftest.$ac_ext
3475CC=$ac_save_CC
eff02e4f
ILT
3476
3477fi
d4c059d5
ILT
3478# AC_CACHE_VAL
3479case "x$ac_cv_prog_cc_c89" in
3480 x)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3482$as_echo "none needed" >&6; } ;;
3483 xno)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3485$as_echo "unsupported" >&6; } ;;
3486 *)
3487 CC="$CC $ac_cv_prog_cc_c89"
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3489$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
eff02e4f 3490esac
d4c059d5 3491if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 3492
d4c059d5 3493fi
eff02e4f 3494
d4c059d5
ILT
3495ac_ext=c
3496ac_cpp='$CPP $CPPFLAGS'
3497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3499ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 3500
22e05272
JM
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
3506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3507$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3508if ${am_cv_prog_cc_c_o+:} false; then :
3509 $as_echo_n "(cached) " >&6
3510else
3511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3512/* end confdefs.h. */
3513
3514int
3515main ()
3516{
3517
3518 ;
3519 return 0;
3520}
3521_ACEOF
3522 # Make sure it works both with $CC and with simple cc.
3523 # Following AC_PROG_CC_C_O, we do the test twice because some
3524 # compilers refuse to overwrite an existing .o file with -o,
3525 # though they will create one.
3526 am_cv_prog_cc_c_o=yes
3527 for am_i in 1 2; do
3528 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3529 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } \
3533 && test -f conftest2.$ac_objext; then
3534 : OK
3535 else
3536 am_cv_prog_cc_c_o=no
3537 break
3538 fi
3539 done
3540 rm -f core conftest*
3541 unset am_i
3542fi
3543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3544$as_echo "$am_cv_prog_cc_c_o" >&6; }
3545if test "$am_cv_prog_cc_c_o" != yes; then
3546 # Losing compiler, so override with the script.
3547 # FIXME: It is wrong to rewrite CC.
3548 # But if we don't then we get into trouble of one sort or another.
3549 # A longer-term fix would be to have automake use am__CC in this case,
3550 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3551 CC="$am_aux_dir/compile $CC"
3552fi
3553ac_ext=c
3554ac_cpp='$CPP $CPPFLAGS'
3555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3557ac_compiler_gnu=$ac_cv_c_compiler_gnu
3558
3559
d4c059d5
ILT
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3567$as_echo_n "checking how to run the C preprocessor... " >&6; }
3568# On Suns, sometimes $CPP names a directory.
3569if test -n "$CPP" && test -d "$CPP"; then
3570 CPP=
3571fi
3572if test -z "$CPP"; then
22e05272 3573 if ${ac_cv_prog_CPP+:} false; then :
d4c059d5
ILT
3574 $as_echo_n "(cached) " >&6
3575else
3576 # Double quotes because CPP needs to be expanded
3577 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3578 do
3579 ac_preproc_ok=false
3580for ac_c_preproc_warn_flag in '' yes
3581do
3582 # Use a header file that comes with gcc, so configuring glibc
3583 # with a fresh cross-compiler works.
3584 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3585 # <limits.h> exists even on freestanding compilers.
3586 # On the NeXT, cc -E runs the code through the compiler's parser,
3587 # not just through cpp. "Syntax error" is here to catch this case.
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589/* end confdefs.h. */
3590#ifdef __STDC__
3591# include <limits.h>
3592#else
3593# include <assert.h>
3594#endif
3595 Syntax error
eff02e4f 3596_ACEOF
d4c059d5 3597if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f 3598
d4c059d5
ILT
3599else
3600 # Broken: fails on valid input.
3601continue
3602fi
22e05272 3603rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3604
3605 # OK, works on sane cases. Now check whether nonexistent headers
3606 # can be detected and how.
3607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3608/* end confdefs.h. */
3609#include <ac_nonexistent.h>
3610_ACEOF
3611if ac_fn_c_try_cpp "$LINENO"; then :
3612 # Broken: success on invalid input.
3613continue
3614else
3615 # Passes both tests.
3616ac_preproc_ok=:
3617break
3618fi
22e05272 3619rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3620
eff02e4f 3621done
d4c059d5 3622# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3623rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3624if $ac_preproc_ok; then :
3625 break
3626fi
eff02e4f 3627
d4c059d5
ILT
3628 done
3629 ac_cv_prog_CPP=$CPP
3630
3631fi
3632 CPP=$ac_cv_prog_CPP
3633else
3634 ac_cv_prog_CPP=$CPP
3635fi
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3637$as_echo "$CPP" >&6; }
3638ac_preproc_ok=false
3639for ac_c_preproc_warn_flag in '' yes
eff02e4f 3640do
d4c059d5
ILT
3641 # Use a header file that comes with gcc, so configuring glibc
3642 # with a fresh cross-compiler works.
3643 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3644 # <limits.h> exists even on freestanding compilers.
3645 # On the NeXT, cc -E runs the code through the compiler's parser,
3646 # not just through cpp. "Syntax error" is here to catch this case.
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648/* end confdefs.h. */
3649#ifdef __STDC__
3650# include <limits.h>
3651#else
3652# include <assert.h>
3653#endif
3654 Syntax error
3655_ACEOF
3656if ac_fn_c_try_cpp "$LINENO"; then :
eff02e4f
ILT
3657
3658else
d4c059d5
ILT
3659 # Broken: fails on valid input.
3660continue
eff02e4f 3661fi
22e05272 3662rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f 3663
d4c059d5
ILT
3664 # OK, works on sane cases. Now check whether nonexistent headers
3665 # can be detected and how.
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667/* end confdefs.h. */
3668#include <ac_nonexistent.h>
3669_ACEOF
3670if ac_fn_c_try_cpp "$LINENO"; then :
3671 # Broken: success on invalid input.
3672continue
3673else
3674 # Passes both tests.
3675ac_preproc_ok=:
3676break
3677fi
22e05272 3678rm -f conftest.err conftest.i conftest.$ac_ext
d4c059d5
ILT
3679
3680done
3681# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
22e05272 3682rm -f conftest.i conftest.err conftest.$ac_ext
d4c059d5
ILT
3683if $ac_preproc_ok; then :
3684
3685else
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
eff02e4f 3687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
3688as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3689See \`config.log' for more details" "$LINENO" 5; }
eff02e4f 3690fi
eff02e4f 3691
d4c059d5
ILT
3692ac_ext=c
3693ac_cpp='$CPP $CPPFLAGS'
3694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3696ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
3698
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3700$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
22e05272 3701if ${ac_cv_path_GREP+:} false; then :
d4c059d5
ILT
3702 $as_echo_n "(cached) " >&6
3703else
3704 if test -z "$GREP"; then
3705 ac_path_GREP_found=false
3706 # Loop through the user's path and test for each of PROGNAME-LIST
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_prog in grep ggrep; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3715 as_fn_executable_p "$ac_path_GREP" || continue
d4c059d5
ILT
3716# Check for GNU ac_path_GREP and select it if it is found.
3717 # Check for GNU $ac_path_GREP
3718case `"$ac_path_GREP" --version 2>&1` in
3719*GNU*)
3720 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3721*)
3722 ac_count=0
3723 $as_echo_n 0123456789 >"conftest.in"
3724 while :
3725 do
3726 cat "conftest.in" "conftest.in" >"conftest.tmp"
3727 mv "conftest.tmp" "conftest.in"
3728 cp "conftest.in" "conftest.nl"
3729 $as_echo 'GREP' >> "conftest.nl"
3730 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3731 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3732 as_fn_arith $ac_count + 1 && ac_count=$as_val
3733 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3734 # Best one so far, save it but keep looking for a better one
3735 ac_cv_path_GREP="$ac_path_GREP"
3736 ac_path_GREP_max=$ac_count
eff02e4f 3737 fi
d4c059d5
ILT
3738 # 10*(2^10) chars as input seems more than enough
3739 test $ac_count -gt 10 && break
3740 done
3741 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3742esac
3743
3744 $ac_path_GREP_found && break 3
3745 done
3746 done
3747 done
3748IFS=$as_save_IFS
3749 if test -z "$ac_cv_path_GREP"; then
22e05272 3750 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f 3751 fi
d4c059d5
ILT
3752else
3753 ac_cv_path_GREP=$GREP
eff02e4f 3754fi
eff02e4f 3755
d4c059d5
ILT
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3758$as_echo "$ac_cv_path_GREP" >&6; }
3759 GREP="$ac_cv_path_GREP"
eff02e4f 3760
d4c059d5
ILT
3761
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3763$as_echo_n "checking for egrep... " >&6; }
22e05272 3764if ${ac_cv_path_EGREP+:} false; then :
d4c059d5
ILT
3765 $as_echo_n "(cached) " >&6
3766else
3767 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3768 then ac_cv_path_EGREP="$GREP -E"
3769 else
3770 if test -z "$EGREP"; then
3771 ac_path_EGREP_found=false
3772 # Loop through the user's path and test for each of PROGNAME-LIST
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3775do
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_prog in egrep; do
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 3781 as_fn_executable_p "$ac_path_EGREP" || continue
d4c059d5
ILT
3782# Check for GNU ac_path_EGREP and select it if it is found.
3783 # Check for GNU $ac_path_EGREP
3784case `"$ac_path_EGREP" --version 2>&1` in
3785*GNU*)
3786 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3787*)
3788 ac_count=0
3789 $as_echo_n 0123456789 >"conftest.in"
3790 while :
3791 do
3792 cat "conftest.in" "conftest.in" >"conftest.tmp"
3793 mv "conftest.tmp" "conftest.in"
3794 cp "conftest.in" "conftest.nl"
3795 $as_echo 'EGREP' >> "conftest.nl"
3796 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3797 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3798 as_fn_arith $ac_count + 1 && ac_count=$as_val
3799 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3800 # Best one so far, save it but keep looking for a better one
3801 ac_cv_path_EGREP="$ac_path_EGREP"
3802 ac_path_EGREP_max=$ac_count
3803 fi
3804 # 10*(2^10) chars as input seems more than enough
3805 test $ac_count -gt 10 && break
3806 done
3807 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
eff02e4f 3808esac
d4c059d5
ILT
3809
3810 $ac_path_EGREP_found && break 3
3811 done
3812 done
3813 done
3814IFS=$as_save_IFS
3815 if test -z "$ac_cv_path_EGREP"; then
22e05272 3816 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
d4c059d5 3817 fi
eff02e4f 3818else
d4c059d5
ILT
3819 ac_cv_path_EGREP=$EGREP
3820fi
3821
3822 fi
3823fi
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3825$as_echo "$ac_cv_path_EGREP" >&6; }
3826 EGREP="$ac_cv_path_EGREP"
3827
3828
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3830$as_echo_n "checking for ANSI C header files... " >&6; }
22e05272 3831if ${ac_cv_header_stdc+:} false; then :
d4c059d5
ILT
3832 $as_echo_n "(cached) " >&6
3833else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835/* end confdefs.h. */
3836#include <stdlib.h>
3837#include <stdarg.h>
3838#include <string.h>
3839#include <float.h>
3840
3841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
3848_ACEOF
3849if ac_fn_c_try_compile "$LINENO"; then :
3850 ac_cv_header_stdc=yes
3851else
3852 ac_cv_header_stdc=no
3853fi
3854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855
3856if test $ac_cv_header_stdc = yes; then
3857 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859/* end confdefs.h. */
3860#include <string.h>
3861
3862_ACEOF
3863if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3864 $EGREP "memchr" >/dev/null 2>&1; then :
3865
3866else
3867 ac_cv_header_stdc=no
3868fi
3869rm -f conftest*
3870
3871fi
3872
3873if test $ac_cv_header_stdc = yes; then
3874 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876/* end confdefs.h. */
3877#include <stdlib.h>
3878
3879_ACEOF
3880if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 $EGREP "free" >/dev/null 2>&1; then :
3882
3883else
3884 ac_cv_header_stdc=no
3885fi
3886rm -f conftest*
3887
3888fi
3889
3890if test $ac_cv_header_stdc = yes; then
3891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3892 if test "$cross_compiling" = yes; then :
3893 :
3894else
3895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3896/* end confdefs.h. */
3897#include <ctype.h>
3898#include <stdlib.h>
3899#if ((' ' & 0x0FF) == 0x020)
3900# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3901# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3902#else
3903# define ISLOWER(c) \
3904 (('a' <= (c) && (c) <= 'i') \
3905 || ('j' <= (c) && (c) <= 'r') \
3906 || ('s' <= (c) && (c) <= 'z'))
3907# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3908#endif
3909
3910#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911int
3912main ()
3913{
3914 int i;
3915 for (i = 0; i < 256; i++)
3916 if (XOR (islower (i), ISLOWER (i))
3917 || toupper (i) != TOUPPER (i))
3918 return 2;
3919 return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_run "$LINENO"; then :
3923
3924else
3925 ac_cv_header_stdc=no
3926fi
3927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3928 conftest.$ac_objext conftest.beam conftest.$ac_ext
3929fi
3930
3931fi
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3934$as_echo "$ac_cv_header_stdc" >&6; }
3935if test $ac_cv_header_stdc = yes; then
3936
3937$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3938
3939fi
3940
3941# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3943 inttypes.h stdint.h unistd.h
3944do :
3945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3946ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3947"
22e05272 3948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d4c059d5
ILT
3949 cat >>confdefs.h <<_ACEOF
3950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3951_ACEOF
3952
3953fi
3954
3955done
3956
3957
3958
3959 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
22e05272 3960if test "x$ac_cv_header_minix_config_h" = xyes; then :
d4c059d5
ILT
3961 MINIX=yes
3962else
3963 MINIX=
3964fi
3965
3966
3967 if test "$MINIX" = yes; then
3968
3969$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3970
3971
3972$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3973
3974
3975$as_echo "#define _MINIX 1" >>confdefs.h
3976
3977 fi
3978
3979
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3981$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
22e05272 3982if ${ac_cv_safe_to_define___extensions__+:} false; then :
d4c059d5
ILT
3983 $as_echo_n "(cached) " >&6
3984else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986/* end confdefs.h. */
3987
22e05272
JM
3988# define __EXTENSIONS__ 1
3989 $ac_includes_default
d4c059d5
ILT
3990int
3991main ()
3992{
3993
3994 ;
3995 return 0;
3996}
3997_ACEOF
3998if ac_fn_c_try_compile "$LINENO"; then :
3999 ac_cv_safe_to_define___extensions__=yes
4000else
4001 ac_cv_safe_to_define___extensions__=no
4002fi
4003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4006$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4007 test $ac_cv_safe_to_define___extensions__ = yes &&
4008 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4009
4010 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4011
4012 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4013
4014 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4015
4016 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4017
4018
4019
4020libtool_VERSION=1:0:0
4021
4022
af710874
ILT
4023# 1.11.1: Require that version of automake.
4024# foreign: Don't require README, INSTALL, NEWS, etc.
4025# no-define: Don't define PACKAGE and VERSION.
4026# no-dependencies: Don't generate automatic dependencies.
4027# (because it breaks when using bootstrap-lean, since some of the
4028# headers are gone at "make install" time).
4029# -Wall: Issue all automake warnings.
4030# -Wno-portability: Don't warn about constructs supported by GNU make.
4031# (because GCC requires GNU make anyhow).
22e05272 4032am__api_version='1.15'
d4c059d5
ILT
4033
4034# Find a good install program. We prefer a C program (faster),
4035# so one script is as good as another. But avoid the broken or
4036# incompatible versions:
4037# SysV /etc/install, /usr/sbin/install
4038# SunOS /usr/etc/install
4039# IRIX /sbin/install
4040# AIX /bin/install
4041# AmigaOS /C/install, which installs bootblocks on floppy discs
4042# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4043# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4044# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4045# OS/2's system install, which has a completely different semantic
4046# ./install, which can be erroneously created by make from ./install.sh.
4047# Reject install programs that cannot install multiple files.
4048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4049$as_echo_n "checking for a BSD-compatible install... " >&6; }
4050if test -z "$INSTALL"; then
22e05272 4051if ${ac_cv_path_install+:} false; then :
d4c059d5
ILT
4052 $as_echo_n "(cached) " >&6
4053else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055for as_dir in $PATH
4056do
4057 IFS=$as_save_IFS
4058 test -z "$as_dir" && as_dir=.
4059 # Account for people who put trailing slashes in PATH elements.
4060case $as_dir/ in #((
4061 ./ | .// | /[cC]/* | \
4062 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4063 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4064 /usr/ucb/* ) ;;
4065 *)
4066 # OSF1 and SCO ODT 3.0 have their own names for install.
4067 # Don't use installbsd from OSF since it installs stuff as root
4068 # by default.
4069 for ac_prog in ginstall scoinst install; do
4070 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4071 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
d4c059d5
ILT
4072 if test $ac_prog = install &&
4073 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4074 # AIX install. It has an incompatible calling convention.
4075 :
4076 elif test $ac_prog = install &&
4077 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4078 # program-specific install script used by HP pwplus--don't use.
4079 :
4080 else
4081 rm -rf conftest.one conftest.two conftest.dir
4082 echo one > conftest.one
4083 echo two > conftest.two
4084 mkdir conftest.dir
4085 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4086 test -s conftest.one && test -s conftest.two &&
4087 test -s conftest.dir/conftest.one &&
4088 test -s conftest.dir/conftest.two
4089 then
4090 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4091 break 3
4092 fi
4093 fi
4094 fi
4095 done
4096 done
4097 ;;
4098esac
4099
4100 done
4101IFS=$as_save_IFS
4102
4103rm -rf conftest.one conftest.two conftest.dir
4104
4105fi
4106 if test "${ac_cv_path_install+set}" = set; then
4107 INSTALL=$ac_cv_path_install
4108 else
4109 # As a last resort, use the slow shell script. Don't cache a
4110 # value for INSTALL within a source directory, because that will
4111 # break other packages using the cache if that directory is
4112 # removed, or if the value is a relative name.
4113 INSTALL=$ac_install_sh
4114 fi
4115fi
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4117$as_echo "$INSTALL" >&6; }
4118
4119# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4120# It thinks the first close brace ends the variable substitution.
4121test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4122
4123test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4124
4125test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4126
4127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4128$as_echo_n "checking whether build environment is sane... " >&6; }
d4c059d5
ILT
4129# Reject unsafe characters in $srcdir or the absolute working directory
4130# name. Accept space and tab only in the latter.
4131am_lf='
4132'
4133case `pwd` in
4134 *[\\\"\#\$\&\'\`$am_lf]*)
22e05272 4135 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
d4c059d5
ILT
4136esac
4137case $srcdir in
4138 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
22e05272 4139 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
d4c059d5
ILT
4140esac
4141
22e05272 4142# Do 'set' in a subshell so we don't clobber the current shell's
d4c059d5
ILT
4143# arguments. Must try -L first in case configure is actually a
4144# symlink; some systems play weird games with the mod time of symlinks
4145# (eg FreeBSD returns the mod time of the symlink's containing
4146# directory).
4147if (
22e05272
JM
4148 am_has_slept=no
4149 for am_try in 1 2; do
4150 echo "timestamp, slept: $am_has_slept" > conftest.file
4151 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4152 if test "$*" = "X"; then
4153 # -L didn't work.
4154 set X `ls -t "$srcdir/configure" conftest.file`
4155 fi
4156 if test "$*" != "X $srcdir/configure conftest.file" \
4157 && test "$*" != "X conftest.file $srcdir/configure"; then
4158
4159 # If neither matched, then we have a broken ls. This can happen
4160 # if, for instance, CONFIG_SHELL is bash and it inherits a
4161 # broken ls alias from the environment. This has actually
4162 # happened. Such a system could not be considered "sane".
4163 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4164 alias in your environment" "$LINENO" 5
4165 fi
4166 if test "$2" = conftest.file || test $am_try -eq 2; then
4167 break
4168 fi
4169 # Just in case.
4170 sleep 1
4171 am_has_slept=yes
4172 done
d4c059d5
ILT
4173 test "$2" = conftest.file
4174 )
4175then
4176 # Ok.
4177 :
4178else
22e05272 4179 as_fn_error $? "newly created file is older than distributed files!
d4c059d5
ILT
4180Check your system clock" "$LINENO" 5
4181fi
4182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4183$as_echo "yes" >&6; }
22e05272
JM
4184# If we didn't sleep, we still need to ensure time stamps of config.status and
4185# generated files are strictly newer.
4186am_sleep_pid=
4187if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4188 ( sleep 1 ) &
4189 am_sleep_pid=$!
4190fi
4191
4192rm -f conftest.file
4193
d4c059d5
ILT
4194test "$program_prefix" != NONE &&
4195 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4196# Use a double $ so make ignores it.
4197test "$program_suffix" != NONE &&
4198 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4199# Double any \ or $.
4200# By default was `s,x,x', remove it if useless.
4201ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4202program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4203
d4c059d5
ILT
4204if test x"${MISSING+set}" != xset; then
4205 case $am_aux_dir in
4206 *\ * | *\ *)
4207 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4208 *)
4209 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4210 esac
4211fi
4212# Use eval to expand $SHELL
22e05272
JM
4213if eval "$MISSING --is-lightweight"; then
4214 am_missing_run="$MISSING "
d4c059d5
ILT
4215else
4216 am_missing_run=
22e05272
JM
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4218$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
d4c059d5
ILT
4219fi
4220
22e05272 4221if test x"${install_sh+set}" != xset; then
d4c059d5
ILT
4222 case $am_aux_dir in
4223 *\ * | *\ *)
4224 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4225 *)
4226 install_sh="\${SHELL} $am_aux_dir/install-sh"
4227 esac
4228fi
4229
22e05272
JM
4230# Installed binaries are usually stripped using 'strip' when the user
4231# run "make install-strip". However 'strip' might not be the right
d4c059d5 4232# tool to use in cross-compilation environments, therefore Automake
22e05272 4233# will honor the 'STRIP' environment variable to overrule this program.
d4c059d5
ILT
4234if test "$cross_compiling" != no; then
4235 if test -n "$ac_tool_prefix"; then
4236 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4237set dummy ${ac_tool_prefix}strip; ac_word=$2
4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4240if ${ac_cv_prog_STRIP+:} false; then :
d4c059d5
ILT
4241 $as_echo_n "(cached) " >&6
4242else
4243 if test -n "$STRIP"; then
4244 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4245else
4246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247for as_dir in $PATH
4248do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4253 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 break 2
4256 fi
4257done
4258 done
4259IFS=$as_save_IFS
4260
4261fi
4262fi
4263STRIP=$ac_cv_prog_STRIP
4264if test -n "$STRIP"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4266$as_echo "$STRIP" >&6; }
4267else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
4270fi
4271
4272
4273fi
4274if test -z "$ac_cv_prog_STRIP"; then
4275 ac_ct_STRIP=$STRIP
4276 # Extract the first word of "strip", so it can be a program name with args.
4277set dummy strip; ac_word=$2
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4280if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
d4c059d5
ILT
4281 $as_echo_n "(cached) " >&6
4282else
4283 if test -n "$ac_ct_STRIP"; then
4284 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4285else
4286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4293 ac_cv_prog_ac_ct_STRIP="strip"
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4296 fi
4297done
4298 done
4299IFS=$as_save_IFS
4300
4301fi
4302fi
4303ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4304if test -n "$ac_ct_STRIP"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4306$as_echo "$ac_ct_STRIP" >&6; }
4307else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309$as_echo "no" >&6; }
4310fi
4311
4312 if test "x$ac_ct_STRIP" = x; then
4313 STRIP=":"
4314 else
4315 case $cross_compiling:$ac_tool_warned in
4316yes:)
4317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4319ac_tool_warned=yes ;;
4320esac
4321 STRIP=$ac_ct_STRIP
4322 fi
4323else
4324 STRIP="$ac_cv_prog_STRIP"
4325fi
4326
4327fi
4328INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4329
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4331$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4332if test -z "$MKDIR_P"; then
22e05272 4333 if ${ac_cv_path_mkdir+:} false; then :
d4c059d5
ILT
4334 $as_echo_n "(cached) " >&6
4335else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4338do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_prog in mkdir gmkdir; do
4342 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4343 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
d4c059d5
ILT
4344 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4345 'mkdir (GNU coreutils) '* | \
4346 'mkdir (coreutils) '* | \
4347 'mkdir (fileutils) '4.1*)
4348 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4349 break 3;;
4350 esac
4351 done
4352 done
4353 done
4354IFS=$as_save_IFS
4355
4356fi
4357
22e05272 4358 test -d ./--version && rmdir ./--version
d4c059d5
ILT
4359 if test "${ac_cv_path_mkdir+set}" = set; then
4360 MKDIR_P="$ac_cv_path_mkdir -p"
4361 else
4362 # As a last resort, use the slow shell script. Don't cache a
4363 # value for MKDIR_P within a source directory, because that will
4364 # break other packages using the cache if that directory is
4365 # removed, or if the value is a relative name.
d4c059d5
ILT
4366 MKDIR_P="$ac_install_sh -d"
4367 fi
4368fi
4369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4370$as_echo "$MKDIR_P" >&6; }
4371
d4c059d5
ILT
4372for ac_prog in gawk mawk nawk awk
4373do
4374 # Extract the first word of "$ac_prog", so it can be a program name with args.
4375set dummy $ac_prog; ac_word=$2
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4377$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4378if ${ac_cv_prog_AWK+:} false; then :
d4c059d5
ILT
4379 $as_echo_n "(cached) " >&6
4380else
4381 if test -n "$AWK"; then
4382 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4383else
4384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385for as_dir in $PATH
4386do
4387 IFS=$as_save_IFS
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4391 ac_cv_prog_AWK="$ac_prog"
4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 break 2
4394 fi
4395done
4396 done
4397IFS=$as_save_IFS
4398
4399fi
4400fi
4401AWK=$ac_cv_prog_AWK
4402if test -n "$AWK"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4404$as_echo "$AWK" >&6; }
4405else
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
4408fi
4409
4410
4411 test -n "$AWK" && break
4412done
4413
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4415$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4416set x ${MAKE-make}
4417ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
22e05272 4418if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
d4c059d5
ILT
4419 $as_echo_n "(cached) " >&6
4420else
4421 cat >conftest.make <<\_ACEOF
4422SHELL = /bin/sh
4423all:
4424 @echo '@@@%%%=$(MAKE)=@@@%%%'
4425_ACEOF
22e05272 4426# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
d4c059d5
ILT
4427case `${MAKE-make} -f conftest.make 2>/dev/null` in
4428 *@@@%%%=?*=@@@%%%*)
4429 eval ac_cv_prog_make_${ac_make}_set=yes;;
4430 *)
4431 eval ac_cv_prog_make_${ac_make}_set=no;;
4432esac
4433rm -f conftest.make
4434fi
4435if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4437$as_echo "yes" >&6; }
4438 SET_MAKE=
4439else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442 SET_MAKE="MAKE=${MAKE-make}"
4443fi
4444
4445rm -rf .tst 2>/dev/null
4446mkdir .tst 2>/dev/null
4447if test -d .tst; then
4448 am__leading_dot=.
4449else
4450 am__leading_dot=_
4451fi
4452rmdir .tst 2>/dev/null
4453
22e05272
JM
4454# Check whether --enable-silent-rules was given.
4455if test "${enable_silent_rules+set}" = set; then :
4456 enableval=$enable_silent_rules;
4457fi
4458
4459case $enable_silent_rules in # (((
4460 yes) AM_DEFAULT_VERBOSITY=0;;
4461 no) AM_DEFAULT_VERBOSITY=1;;
4462 *) AM_DEFAULT_VERBOSITY=1;;
4463esac
4464am_make=${MAKE-make}
4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4466$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4467if ${am_cv_make_support_nested_variables+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469else
4470 if $as_echo 'TRUE=$(BAR$(V))
4471BAR0=false
4472BAR1=true
4473V=1
4474am__doit:
4475 @$(TRUE)
4476.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4477 am_cv_make_support_nested_variables=yes
4478else
4479 am_cv_make_support_nested_variables=no
4480fi
4481fi
4482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4483$as_echo "$am_cv_make_support_nested_variables" >&6; }
4484if test $am_cv_make_support_nested_variables = yes; then
4485 AM_V='$(V)'
4486 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4487else
4488 AM_V=$AM_DEFAULT_VERBOSITY
4489 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4490fi
4491AM_BACKSLASH='\'
4492
d4c059d5
ILT
4493if test "`cd $srcdir && pwd`" != "`pwd`"; then
4494 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4495 # is not polluted with repeated "-I."
4496 am__isrc=' -I$(srcdir)'
4497 # test to see if srcdir already configured
4498 if test -f $srcdir/config.status; then
22e05272 4499 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
d4c059d5
ILT
4500 fi
4501fi
4502
4503# test whether we have cygpath
4504if test -z "$CYGPATH_W"; then
4505 if (cygpath --version) >/dev/null 2>/dev/null; then
4506 CYGPATH_W='cygpath -w'
4507 else
4508 CYGPATH_W=echo
4509 fi
4510fi
4511
4512
4513# Define the identity of the package.
4514 PACKAGE='libbacktrace'
4515 VERSION='version-unused'
4516
4517
4518# Some tools Automake needs.
4519
4520ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4521
4522
4523AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4524
4525
4526AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4527
4528
4529AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4530
4531
4532MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4533
22e05272
JM
4534# For better backward compatibility. To be removed once Automake 1.9.x
4535# dies out for good. For more background, see:
4536# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4537# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4538mkdir_p='$(MKDIR_P)'
4539
4540# We need awk for the "check" target (and possibly the TAP driver). The
4541# system "awk" is bad on some platforms.
df96c0f7
MH
4542# Always define AMTAR for backward compatibility. Yes, it's still used
4543# in the wild :-( We should find a proper way to deprecate it ...
4544AMTAR='$${TAR-tar}'
d4c059d5 4545
22e05272
JM
4546
4547# We'll loop over all known methods to create a tar archive until one works.
4548_am_tools='gnutar pax cpio none'
4549
df96c0f7 4550am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
d4c059d5
ILT
4551
4552
4553
4554
d4c059d5
ILT
4555
4556
22e05272
JM
4557# POSIX will say in a future version that running "rm -f" with no argument
4558# is OK; and we want to be able to make that assumption in our Makefile
4559# recipes. So use an aggressive probe to check that the usage we want is
4560# actually supported "in the wild" to an acceptable degree.
4561# See automake bug#10828.
4562# To make any issue more visible, cause the running configure to be aborted
4563# by default if the 'rm' program in use doesn't match our expectations; the
4564# user can still override this though.
4565if rm -f && rm -fr && rm -rf; then : OK; else
4566 cat >&2 <<'END'
4567Oops!
4568
4569Your 'rm' program seems unable to run without file operands specified
4570on the command line, even when the '-f' option is present. This is contrary
4571to the behaviour of most rm programs out there, and not conforming with
4572the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4573
4574Please tell bug-automake@gnu.org about your system, including the value
4575of your $PATH and any error possibly output before this message. This
4576can help us improve future automake versions.
4577
4578END
4579 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4580 echo 'Configuration will proceed anyway, since you have set the' >&2
4581 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4582 echo >&2
4583 else
4584 cat >&2 <<'END'
4585Aborting the configuration process, to ensure you take notice of the issue.
4586
4587You can download and install GNU coreutils to get an 'rm' implementation
4588that behaves properly: <http://www.gnu.org/software/coreutils/>.
4589
4590If you want to complete the configuration process using your problematic
4591'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4592to "yes", and re-run configure.
4593
4594END
4595 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4596 fi
4597fi
4598
4599
d4c059d5
ILT
4600
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4602$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4603 # Check whether --enable-maintainer-mode was given.
4604if test "${enable_maintainer_mode+set}" = set; then :
4605 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4606else
4607 USE_MAINTAINER_MODE=no
4608fi
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4611$as_echo "$USE_MAINTAINER_MODE" >&6; }
4612 if test $USE_MAINTAINER_MODE = yes; then
4613 MAINTAINER_MODE_TRUE=
4614 MAINTAINER_MODE_FALSE='#'
4615else
4616 MAINTAINER_MODE_TRUE='#'
4617 MAINTAINER_MODE_FALSE=
4618fi
4619
4620 MAINT=$MAINTAINER_MODE_TRUE
4621
4622
4623
4624
4625# Check whether --with-target-subdir was given.
4626if test "${with_target_subdir+set}" = set; then :
4627 withval=$with_target_subdir;
eff02e4f 4628fi
eff02e4f 4629
eff02e4f 4630
d4c059d5
ILT
4631# We must force CC to /not/ be precious variables; otherwise
4632# the wrong, non-multilib-adjusted value will be used in multilibs.
4633# As a side effect, we have to subst CFLAGS ourselves.
eff02e4f 4634
d4c059d5
ILT
4635
4636ac_ext=c
4637ac_cpp='$CPP $CPPFLAGS'
4638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_c_compiler_gnu
4641if test -n "$ac_tool_prefix"; then
4642 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4643set dummy ${ac_tool_prefix}gcc; ac_word=$2
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4646if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4647 $as_echo_n "(cached) " >&6
eff02e4f 4648else
d4c059d5
ILT
4649 if test -n "$CC"; then
4650 ac_cv_prog_CC="$CC" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4659 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4662 fi
4663done
4664 done
4665IFS=$as_save_IFS
eff02e4f 4666
eff02e4f 4667fi
eff02e4f 4668fi
d4c059d5
ILT
4669CC=$ac_cv_prog_CC
4670if test -n "$CC"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4672$as_echo "$CC" >&6; }
eff02e4f 4673else
d4c059d5
ILT
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675$as_echo "no" >&6; }
4676fi
eff02e4f 4677
eff02e4f 4678
eff02e4f 4679fi
d4c059d5
ILT
4680if test -z "$ac_cv_prog_CC"; then
4681 ac_ct_CC=$CC
4682 # Extract the first word of "gcc", so it can be a program name with args.
4683set dummy gcc; ac_word=$2
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4686if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4687 $as_echo_n "(cached) " >&6
4688else
4689 if test -n "$ac_ct_CC"; then
4690 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4699 ac_cv_prog_ac_ct_CC="gcc"
4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 break 2
4702 fi
4703done
4704 done
4705IFS=$as_save_IFS
eff02e4f
ILT
4706
4707fi
eff02e4f 4708fi
d4c059d5
ILT
4709ac_ct_CC=$ac_cv_prog_ac_ct_CC
4710if test -n "$ac_ct_CC"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4712$as_echo "$ac_ct_CC" >&6; }
eff02e4f 4713else
d4c059d5
ILT
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
4716fi
eff02e4f 4717
d4c059d5
ILT
4718 if test "x$ac_ct_CC" = x; then
4719 CC=""
4720 else
4721 case $cross_compiling:$ac_tool_warned in
4722yes:)
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4725ac_tool_warned=yes ;;
4726esac
4727 CC=$ac_ct_CC
4728 fi
4729else
4730 CC="$ac_cv_prog_CC"
4731fi
eff02e4f 4732
d4c059d5
ILT
4733if test -z "$CC"; then
4734 if test -n "$ac_tool_prefix"; then
4735 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4736set dummy ${ac_tool_prefix}cc; ac_word=$2
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4739if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4740 $as_echo_n "(cached) " >&6
eff02e4f 4741else
d4c059d5
ILT
4742 if test -n "$CC"; then
4743 ac_cv_prog_CC="$CC" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4752 ac_cv_prog_CC="${ac_tool_prefix}cc"
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4755 fi
4756done
4757 done
4758IFS=$as_save_IFS
eff02e4f 4759
d4c059d5
ILT
4760fi
4761fi
4762CC=$ac_cv_prog_CC
4763if test -n "$CC"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4765$as_echo "$CC" >&6; }
4766else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
4769fi
eff02e4f 4770
eff02e4f 4771
d4c059d5
ILT
4772 fi
4773fi
4774if test -z "$CC"; then
4775 # Extract the first word of "cc", so it can be a program name with args.
4776set dummy cc; ac_word=$2
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4779if ${ac_cv_prog_CC+:} false; then :
d4c059d5 4780 $as_echo_n "(cached) " >&6
eff02e4f 4781else
d4c059d5
ILT
4782 if test -n "$CC"; then
4783 ac_cv_prog_CC="$CC" # Let the user override the test.
4784else
4785 ac_prog_rejected=no
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4793 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4794 ac_prog_rejected=yes
4795 continue
4796 fi
4797 ac_cv_prog_CC="cc"
4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4799 break 2
4800 fi
4801done
4802 done
4803IFS=$as_save_IFS
eff02e4f 4804
d4c059d5
ILT
4805if test $ac_prog_rejected = yes; then
4806 # We found a bogon in the path, so make sure we never use it.
4807 set dummy $ac_cv_prog_CC
4808 shift
4809 if test $# != 0; then
4810 # We chose a different compiler from the bogus one.
4811 # However, it has the same basename, so the bogon will be chosen
4812 # first if we set CC to just the basename; use the full file name.
4813 shift
4814 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4815 fi
eff02e4f 4816fi
eff02e4f 4817fi
eff02e4f 4818fi
d4c059d5
ILT
4819CC=$ac_cv_prog_CC
4820if test -n "$CC"; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4822$as_echo "$CC" >&6; }
eff02e4f 4823else
d4c059d5
ILT
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
eff02e4f 4826fi
d4c059d5
ILT
4827
4828
4829fi
4830if test -z "$CC"; then
4831 if test -n "$ac_tool_prefix"; then
4832 for ac_prog in cl.exe
4833 do
4834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4835set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4837$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4838if ${ac_cv_prog_CC+:} false; then :
eff02e4f
ILT
4839 $as_echo_n "(cached) " >&6
4840else
d4c059d5
ILT
4841 if test -n "$CC"; then
4842 ac_cv_prog_CC="$CC" # Let the user override the test.
4843else
4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845for as_dir in $PATH
4846do
4847 IFS=$as_save_IFS
4848 test -z "$as_dir" && as_dir=.
4849 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 break 2
4854 fi
4855done
4856 done
4857IFS=$as_save_IFS
eff02e4f 4858
d4c059d5
ILT
4859fi
4860fi
4861CC=$ac_cv_prog_CC
4862if test -n "$CC"; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4864$as_echo "$CC" >&6; }
4865else
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4867$as_echo "no" >&6; }
4868fi
eff02e4f 4869
eff02e4f 4870
d4c059d5
ILT
4871 test -n "$CC" && break
4872 done
eff02e4f 4873fi
d4c059d5
ILT
4874if test -z "$CC"; then
4875 ac_ct_CC=$CC
4876 for ac_prog in cl.exe
4877do
4878 # Extract the first word of "$ac_prog", so it can be a program name with args.
4879set dummy $ac_prog; ac_word=$2
4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881$as_echo_n "checking for $ac_word... " >&6; }
22e05272 4882if ${ac_cv_prog_ac_ct_CC+:} false; then :
d4c059d5
ILT
4883 $as_echo_n "(cached) " >&6
4884else
4885 if test -n "$ac_ct_CC"; then
4886 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887else
4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
4895 ac_cv_prog_ac_ct_CC="$ac_prog"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
eff02e4f 4899done
d4c059d5
ILT
4900 done
4901IFS=$as_save_IFS
eff02e4f
ILT
4902
4903fi
d4c059d5
ILT
4904fi
4905ac_ct_CC=$ac_cv_prog_ac_ct_CC
4906if test -n "$ac_ct_CC"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4908$as_echo "$ac_ct_CC" >&6; }
4909else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911$as_echo "no" >&6; }
eff02e4f
ILT
4912fi
4913
eff02e4f 4914
d4c059d5
ILT
4915 test -n "$ac_ct_CC" && break
4916done
eff02e4f 4917
d4c059d5
ILT
4918 if test "x$ac_ct_CC" = x; then
4919 CC=""
4920 else
4921 case $cross_compiling:$ac_tool_warned in
4922yes:)
4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4925ac_tool_warned=yes ;;
eff02e4f 4926esac
d4c059d5
ILT
4927 CC=$ac_ct_CC
4928 fi
eff02e4f
ILT
4929fi
4930
d4c059d5 4931fi
eff02e4f 4932
eff02e4f 4933
d4c059d5
ILT
4934test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
4936as_fn_error $? "no acceptable C compiler found in \$PATH
4937See \`config.log' for more details" "$LINENO" 5; }
d4c059d5
ILT
4938
4939# Provide some information about the compiler.
4940$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4941set X $ac_compile
4942ac_compiler=$2
4943for ac_option in --version -v -V -qversion; do
4944 { { ac_try="$ac_compiler $ac_option >&5"
4945case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
4949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
4951 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4952 ac_status=$?
4953 if test -s conftest.err; then
4954 sed '10a\
4955... rest of stderr output deleted ...
4956 10q' conftest.err >conftest.er1
4957 cat conftest.er1 >&5
d4c059d5 4958 fi
22e05272 4959 rm -f conftest.er1 conftest.err
d4c059d5
ILT
4960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4961 test $ac_status = 0; }
4962done
4963
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4965$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
22e05272 4966if ${ac_cv_c_compiler_gnu+:} false; then :
d4c059d5
ILT
4967 $as_echo_n "(cached) " >&6
4968else
4969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4970/* end confdefs.h. */
4971
4972int
4973main ()
4974{
4975#ifndef __GNUC__
4976 choke me
4977#endif
4978
4979 ;
4980 return 0;
4981}
4982_ACEOF
4983if ac_fn_c_try_compile "$LINENO"; then :
4984 ac_compiler_gnu=yes
4985else
4986 ac_compiler_gnu=no
eff02e4f 4987fi
d4c059d5
ILT
4988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4989ac_cv_c_compiler_gnu=$ac_compiler_gnu
eff02e4f 4990
eff02e4f 4991fi
d4c059d5
ILT
4992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4993$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4994if test $ac_compiler_gnu = yes; then
4995 GCC=yes
eff02e4f 4996else
d4c059d5 4997 GCC=
eff02e4f 4998fi
d4c059d5
ILT
4999ac_test_CFLAGS=${CFLAGS+set}
5000ac_save_CFLAGS=$CFLAGS
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5002$as_echo_n "checking whether $CC accepts -g... " >&6; }
22e05272 5003if ${ac_cv_prog_cc_g+:} false; then :
d4c059d5
ILT
5004 $as_echo_n "(cached) " >&6
5005else
5006 ac_save_c_werror_flag=$ac_c_werror_flag
5007 ac_c_werror_flag=yes
5008 ac_cv_prog_cc_g=no
5009 CFLAGS="-g"
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011/* end confdefs.h. */
eff02e4f 5012
d4c059d5
ILT
5013int
5014main ()
5015{
eff02e4f 5016
d4c059d5
ILT
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021if ac_fn_c_try_compile "$LINENO"; then :
5022 ac_cv_prog_cc_g=yes
eff02e4f 5023else
d4c059d5
ILT
5024 CFLAGS=""
5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026/* end confdefs.h. */
eff02e4f 5027
d4c059d5
ILT
5028int
5029main ()
5030{
eff02e4f 5031
d4c059d5
ILT
5032 ;
5033 return 0;
5034}
5035_ACEOF
5036if ac_fn_c_try_compile "$LINENO"; then :
eff02e4f 5037
d4c059d5
ILT
5038else
5039 ac_c_werror_flag=$ac_save_c_werror_flag
5040 CFLAGS="-g"
5041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042/* end confdefs.h. */
eff02e4f 5043
d4c059d5
ILT
5044int
5045main ()
5046{
5047
5048 ;
5049 return 0;
5050}
5051_ACEOF
5052if ac_fn_c_try_compile "$LINENO"; then :
5053 ac_cv_prog_cc_g=yes
5054fi
5055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5056fi
5057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058fi
5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5060 ac_c_werror_flag=$ac_save_c_werror_flag
5061fi
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5063$as_echo "$ac_cv_prog_cc_g" >&6; }
5064if test "$ac_test_CFLAGS" = set; then
5065 CFLAGS=$ac_save_CFLAGS
5066elif test $ac_cv_prog_cc_g = yes; then
5067 if test "$GCC" = yes; then
5068 CFLAGS="-g -O2"
5069 else
5070 CFLAGS="-g"
5071 fi
eff02e4f 5072else
d4c059d5
ILT
5073 if test "$GCC" = yes; then
5074 CFLAGS="-O2"
5075 else
5076 CFLAGS=
5077 fi
5078fi
5079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5080$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
22e05272 5081if ${ac_cv_prog_cc_c89+:} false; then :
d4c059d5
ILT
5082 $as_echo_n "(cached) " >&6
5083else
5084 ac_cv_prog_cc_c89=no
5085ac_save_CC=$CC
5086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087/* end confdefs.h. */
5088#include <stdarg.h>
5089#include <stdio.h>
22e05272 5090struct stat;
d4c059d5
ILT
5091/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5092struct buf { int x; };
5093FILE * (*rcsopen) (struct buf *, struct stat *, int);
5094static char *e (p, i)
5095 char **p;
5096 int i;
5097{
5098 return p[i];
5099}
5100static char *f (char * (*g) (char **, int), char **p, ...)
5101{
5102 char *s;
5103 va_list v;
5104 va_start (v,p);
5105 s = g (p, va_arg (v,int));
5106 va_end (v);
5107 return s;
5108}
5109
5110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5111 function prototypes and stuff, but not '\xHH' hex character constants.
5112 These don't provoke an error unfortunately, instead are silently treated
5113 as 'x'. The following induces an error, until -std is added to get
5114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5115 array size at least. It's necessary to write '\x00'==0 to get something
5116 that's true only with -std. */
5117int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5118
5119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5120 inside strings and character constants. */
5121#define FOO(x) 'x'
5122int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5123
5124int test (int i, double x);
5125struct s1 {int (*f) (int a);};
5126struct s2 {int (*f) (double a);};
5127int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5128int argc;
5129char **argv;
5130int
5131main ()
5132{
5133return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5134 ;
5135 return 0;
5136}
5137_ACEOF
5138for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5140do
5141 CC="$ac_save_CC $ac_arg"
5142 if ac_fn_c_try_compile "$LINENO"; then :
5143 ac_cv_prog_cc_c89=$ac_arg
eff02e4f 5144fi
d4c059d5
ILT
5145rm -f core conftest.err conftest.$ac_objext
5146 test "x$ac_cv_prog_cc_c89" != "xno" && break
5147done
5148rm -f conftest.$ac_ext
5149CC=$ac_save_CC
eff02e4f
ILT
5150
5151fi
d4c059d5
ILT
5152# AC_CACHE_VAL
5153case "x$ac_cv_prog_cc_c89" in
5154 x)
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5156$as_echo "none needed" >&6; } ;;
5157 xno)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5159$as_echo "unsupported" >&6; } ;;
5160 *)
5161 CC="$CC $ac_cv_prog_cc_c89"
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5163$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5164esac
5165if test "x$ac_cv_prog_cc_c89" != xno; then :
eff02e4f 5166
eff02e4f
ILT
5167fi
5168
d4c059d5
ILT
5169ac_ext=c
5170ac_cpp='$CPP $CPPFLAGS'
5171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5173ac_compiler_gnu=$ac_cv_c_compiler_gnu
eff02e4f 5174
22e05272
JM
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
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5181$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5182if ${am_cv_prog_cc_c_o+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184else
5185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h. */
5187
5188int
5189main ()
5190{
5191
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196 # Make sure it works both with $CC and with simple cc.
5197 # Following AC_PROG_CC_C_O, we do the test twice because some
5198 # compilers refuse to overwrite an existing .o file with -o,
5199 # though they will create one.
5200 am_cv_prog_cc_c_o=yes
5201 for am_i in 1 2; do
5202 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5203 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5204 ac_status=$?
5205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206 (exit $ac_status); } \
5207 && test -f conftest2.$ac_objext; then
5208 : OK
5209 else
5210 am_cv_prog_cc_c_o=no
5211 break
5212 fi
5213 done
5214 rm -f core conftest*
5215 unset am_i
5216fi
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5218$as_echo "$am_cv_prog_cc_c_o" >&6; }
5219if test "$am_cv_prog_cc_c_o" != yes; then
5220 # Losing compiler, so override with the script.
5221 # FIXME: It is wrong to rewrite CC.
5222 # But if we don't then we get into trouble of one sort or another.
5223 # A longer-term fix would be to have automake use am__CC in this case,
5224 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5225 CC="$am_aux_dir/compile $CC"
5226fi
5227ac_ext=c
5228ac_cpp='$CPP $CPPFLAGS'
5229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5231ac_compiler_gnu=$ac_cv_c_compiler_gnu
5232
5233
eff02e4f
ILT
5234
5235
5236
5237
5238if test -n "$ac_tool_prefix"; then
5239 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5240set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5243if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
5244 $as_echo_n "(cached) " >&6
5245else
5246 if test -n "$RANLIB"; then
5247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5248else
5249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5250for as_dir in $PATH
5251do
5252 IFS=$as_save_IFS
5253 test -z "$as_dir" && as_dir=.
5254 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5256 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 break 2
5259 fi
5260done
5261 done
5262IFS=$as_save_IFS
5263
5264fi
5265fi
5266RANLIB=$ac_cv_prog_RANLIB
5267if test -n "$RANLIB"; then
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5269$as_echo "$RANLIB" >&6; }
5270else
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272$as_echo "no" >&6; }
5273fi
5274
5275
5276fi
5277if test -z "$ac_cv_prog_RANLIB"; then
5278 ac_ct_RANLIB=$RANLIB
5279 # Extract the first word of "ranlib", so it can be a program name with args.
5280set dummy ranlib; ac_word=$2
5281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5283if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
5284 $as_echo_n "(cached) " >&6
5285else
5286 if test -n "$ac_ct_RANLIB"; then
5287 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5288else
5289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5290for as_dir in $PATH
5291do
5292 IFS=$as_save_IFS
5293 test -z "$as_dir" && as_dir=.
5294 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5296 ac_cv_prog_ac_ct_RANLIB="ranlib"
5297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 break 2
5299 fi
5300done
5301 done
5302IFS=$as_save_IFS
5303
5304fi
5305fi
5306ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5307if test -n "$ac_ct_RANLIB"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5309$as_echo "$ac_ct_RANLIB" >&6; }
5310else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312$as_echo "no" >&6; }
5313fi
5314
5315 if test "x$ac_ct_RANLIB" = x; then
5316 RANLIB=":"
5317 else
5318 case $cross_compiling:$ac_tool_warned in
5319yes:)
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5321$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5322ac_tool_warned=yes ;;
5323esac
5324 RANLIB=$ac_ct_RANLIB
5325 fi
5326else
5327 RANLIB="$ac_cv_prog_RANLIB"
5328fi
5329
5330
5331for ac_prog in gawk mawk nawk awk
5332do
5333 # Extract the first word of "$ac_prog", so it can be a program name with args.
5334set dummy $ac_prog; ac_word=$2
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5337if ${ac_cv_prog_AWK+:} false; then :
eff02e4f
ILT
5338 $as_echo_n "(cached) " >&6
5339else
5340 if test -n "$AWK"; then
5341 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5342else
5343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344for as_dir in $PATH
5345do
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5350 ac_cv_prog_AWK="$ac_prog"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5353 fi
5354done
5355 done
5356IFS=$as_save_IFS
5357
5358fi
5359fi
5360AWK=$ac_cv_prog_AWK
5361if test -n "$AWK"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5363$as_echo "$AWK" >&6; }
5364else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366$as_echo "no" >&6; }
5367fi
5368
5369
5370 test -n "$AWK" && break
5371done
5372
5373case "$AWK" in
22e05272 5374"") as_fn_error $? "can't build without awk" "$LINENO" 5 ;;
eff02e4f
ILT
5375esac
5376
10f48858
TV
5377# Extract the first word of "dwz", so it can be a program name with args.
5378set dummy dwz; ac_word=$2
5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380$as_echo_n "checking for $ac_word... " >&6; }
5381if ${ac_cv_prog_DWZ+:} false; then :
5382 $as_echo_n "(cached) " >&6
5383else
5384 if test -n "$DWZ"; then
5385 ac_cv_prog_DWZ="$DWZ" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390 IFS=$as_save_IFS
5391 test -z "$as_dir" && as_dir=.
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_DWZ="dwz"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398done
5399 done
5400IFS=$as_save_IFS
5401
5402fi
5403fi
5404DWZ=$ac_cv_prog_DWZ
5405if test -n "$DWZ"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DWZ" >&5
5407$as_echo "$DWZ" >&6; }
5408else
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410$as_echo "no" >&6; }
5411fi
5412
5413
5414 if test "$DWZ" != ""; then
5415 HAVE_DWZ_TRUE=
5416 HAVE_DWZ_FALSE='#'
5417else
5418 HAVE_DWZ_TRUE='#'
5419 HAVE_DWZ_FALSE=
5420fi
5421
5422
eff02e4f
ILT
5423case `pwd` in
5424 *\ * | *\ *)
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5426$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5427esac
5428
5429
5430
5431macro_version='2.2.7a'
5432macro_revision='1.3134'
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446ltmain="$ac_aux_dir/ltmain.sh"
5447
5448# Backslashify metacharacters that are still active within
5449# double-quoted strings.
5450sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5451
5452# Same as above, but do not quote variable references.
5453double_quote_subst='s/\(["`\\]\)/\\\1/g'
5454
5455# Sed substitution to delay expansion of an escaped shell variable in a
5456# double_quote_subst'ed string.
5457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5458
5459# Sed substitution to delay expansion of an escaped single quote.
5460delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5461
5462# Sed substitution to avoid accidental globbing in evaled expressions
5463no_glob_subst='s/\*/\\\*/g'
5464
5465ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5466ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5467ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5468
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5470$as_echo_n "checking how to print strings... " >&6; }
5471# Test print first, because it will be a builtin if present.
5472if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5473 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5474 ECHO='print -r --'
5475elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5476 ECHO='printf %s\n'
5477else
5478 # Use this function as a fallback that always works.
5479 func_fallback_echo ()
5480 {
5481 eval 'cat <<_LTECHO_EOF
5482$1
5483_LTECHO_EOF'
5484 }
5485 ECHO='func_fallback_echo'
5486fi
5487
5488# func_echo_all arg...
5489# Invoke $ECHO with all args, space-separated.
5490func_echo_all ()
5491{
5492 $ECHO ""
5493}
5494
5495case "$ECHO" in
5496 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5497$as_echo "printf" >&6; } ;;
5498 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5499$as_echo "print -r" >&6; } ;;
5500 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5501$as_echo "cat" >&6; } ;;
5502esac
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
d4c059d5 5518$as_echo_n "checking for a sed that does not truncate output... " >&6; }
22e05272 5519if ${ac_cv_path_SED+:} false; then :
eff02e4f
ILT
5520 $as_echo_n "(cached) " >&6
5521else
d4c059d5
ILT
5522 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5523 for ac_i in 1 2 3 4 5 6 7; do
5524 ac_script="$ac_script$as_nl$ac_script"
5525 done
5526 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5527 { ac_script=; unset ac_script;}
5528 if test -z "$SED"; then
5529 ac_path_SED_found=false
eff02e4f
ILT
5530 # Loop through the user's path and test for each of PROGNAME-LIST
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
d4c059d5 5532for as_dir in $PATH
eff02e4f
ILT
5533do
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
d4c059d5 5536 for ac_prog in sed gsed; do
eff02e4f 5537 for ac_exec_ext in '' $ac_executable_extensions; do
d4c059d5 5538 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5539 as_fn_executable_p "$ac_path_SED" || continue
d4c059d5
ILT
5540# Check for GNU ac_path_SED and select it if it is found.
5541 # Check for GNU $ac_path_SED
5542case `"$ac_path_SED" --version 2>&1` in
eff02e4f 5543*GNU*)
d4c059d5 5544 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
eff02e4f
ILT
5545*)
5546 ac_count=0
5547 $as_echo_n 0123456789 >"conftest.in"
5548 while :
5549 do
5550 cat "conftest.in" "conftest.in" >"conftest.tmp"
5551 mv "conftest.tmp" "conftest.in"
5552 cp "conftest.in" "conftest.nl"
d4c059d5
ILT
5553 $as_echo '' >> "conftest.nl"
5554 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
eff02e4f
ILT
5555 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5556 as_fn_arith $ac_count + 1 && ac_count=$as_val
d4c059d5 5557 if test $ac_count -gt ${ac_path_SED_max-0}; then
eff02e4f 5558 # Best one so far, save it but keep looking for a better one
d4c059d5
ILT
5559 ac_cv_path_SED="$ac_path_SED"
5560 ac_path_SED_max=$ac_count
eff02e4f
ILT
5561 fi
5562 # 10*(2^10) chars as input seems more than enough
5563 test $ac_count -gt 10 && break
5564 done
5565 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5566esac
5567
d4c059d5 5568 $ac_path_SED_found && break 3
eff02e4f
ILT
5569 done
5570 done
5571 done
5572IFS=$as_save_IFS
d4c059d5 5573 if test -z "$ac_cv_path_SED"; then
22e05272 5574 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5575 fi
5576else
d4c059d5 5577 ac_cv_path_SED=$SED
eff02e4f
ILT
5578fi
5579
eff02e4f 5580fi
d4c059d5
ILT
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5582$as_echo "$ac_cv_path_SED" >&6; }
5583 SED="$ac_cv_path_SED"
5584 rm -f conftest.sed
5585
5586test -z "$SED" && SED=sed
5587Xsed="$SED -e 1s/^X//"
5588
5589
5590
5591
5592
5593
5594
5595
5596
eff02e4f
ILT
5597
5598
5599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5600$as_echo_n "checking for fgrep... " >&6; }
22e05272 5601if ${ac_cv_path_FGREP+:} false; then :
eff02e4f
ILT
5602 $as_echo_n "(cached) " >&6
5603else
5604 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5605 then ac_cv_path_FGREP="$GREP -F"
5606 else
5607 if test -z "$FGREP"; then
5608 ac_path_FGREP_found=false
5609 # Loop through the user's path and test for each of PROGNAME-LIST
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5612do
5613 IFS=$as_save_IFS
5614 test -z "$as_dir" && as_dir=.
5615 for ac_prog in fgrep; do
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
22e05272 5618 as_fn_executable_p "$ac_path_FGREP" || continue
eff02e4f
ILT
5619# Check for GNU ac_path_FGREP and select it if it is found.
5620 # Check for GNU $ac_path_FGREP
5621case `"$ac_path_FGREP" --version 2>&1` in
5622*GNU*)
5623 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5624*)
5625 ac_count=0
5626 $as_echo_n 0123456789 >"conftest.in"
5627 while :
5628 do
5629 cat "conftest.in" "conftest.in" >"conftest.tmp"
5630 mv "conftest.tmp" "conftest.in"
5631 cp "conftest.in" "conftest.nl"
5632 $as_echo 'FGREP' >> "conftest.nl"
5633 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5634 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5635 as_fn_arith $ac_count + 1 && ac_count=$as_val
5636 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5637 # Best one so far, save it but keep looking for a better one
5638 ac_cv_path_FGREP="$ac_path_FGREP"
5639 ac_path_FGREP_max=$ac_count
5640 fi
5641 # 10*(2^10) chars as input seems more than enough
5642 test $ac_count -gt 10 && break
5643 done
5644 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5645esac
5646
5647 $ac_path_FGREP_found && break 3
5648 done
5649 done
5650 done
5651IFS=$as_save_IFS
5652 if test -z "$ac_cv_path_FGREP"; then
22e05272 5653 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
eff02e4f
ILT
5654 fi
5655else
5656 ac_cv_path_FGREP=$FGREP
5657fi
5658
5659 fi
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5662$as_echo "$ac_cv_path_FGREP" >&6; }
5663 FGREP="$ac_cv_path_FGREP"
5664
5665
5666test -z "$GREP" && GREP=grep
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686# Check whether --with-gnu-ld was given.
5687if test "${with_gnu_ld+set}" = set; then :
5688 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5689else
5690 with_gnu_ld=no
5691fi
5692
5693ac_prog=ld
5694if test "$GCC" = yes; then
5695 # Check if gcc -print-prog-name=ld gives a path.
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5697$as_echo_n "checking for ld used by $CC... " >&6; }
5698 case $host in
5699 *-*-mingw*)
5700 # gcc leaves a trailing carriage return which upsets mingw
5701 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5702 *)
5703 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5704 esac
5705 case $ac_prog in
5706 # Accept absolute paths.
5707 [\\/]* | ?:[\\/]*)
5708 re_direlt='/[^/][^/]*/\.\./'
5709 # Canonicalize the pathname of ld
5710 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5711 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5712 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5713 done
5714 test -z "$LD" && LD="$ac_prog"
5715 ;;
5716 "")
5717 # If it fails, then pretend we aren't using GCC.
5718 ac_prog=ld
5719 ;;
5720 *)
5721 # If it is relative, then search for the first ld in PATH.
5722 with_gnu_ld=unknown
5723 ;;
5724 esac
5725elif test "$with_gnu_ld" = yes; then
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5727$as_echo_n "checking for GNU ld... " >&6; }
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5730$as_echo_n "checking for non-GNU ld... " >&6; }
5731fi
22e05272 5732if ${lt_cv_path_LD+:} false; then :
eff02e4f
ILT
5733 $as_echo_n "(cached) " >&6
5734else
5735 if test -z "$LD"; then
5736 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5737 for ac_dir in $PATH; do
5738 IFS="$lt_save_ifs"
5739 test -z "$ac_dir" && ac_dir=.
5740 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5741 lt_cv_path_LD="$ac_dir/$ac_prog"
5742 # Check to see if the program is GNU ld. I'd rather use --version,
5743 # but apparently some variants of GNU ld only accept -v.
5744 # Break only if it was the GNU/non-GNU ld that we prefer.
5745 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5746 *GNU* | *'with BFD'*)
5747 test "$with_gnu_ld" != no && break
5748 ;;
5749 *)
5750 test "$with_gnu_ld" != yes && break
5751 ;;
5752 esac
5753 fi
5754 done
5755 IFS="$lt_save_ifs"
5756else
5757 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5758fi
5759fi
5760
5761LD="$lt_cv_path_LD"
5762if test -n "$LD"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5764$as_echo "$LD" >&6; }
5765else
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767$as_echo "no" >&6; }
5768fi
22e05272 5769test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
eff02e4f
ILT
5770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5771$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
22e05272 5772if ${lt_cv_prog_gnu_ld+:} false; then :
eff02e4f
ILT
5773 $as_echo_n "(cached) " >&6
5774else
5775 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5776case `$LD -v 2>&1 </dev/null` in
5777*GNU* | *'with BFD'*)
5778 lt_cv_prog_gnu_ld=yes
5779 ;;
5780*)
5781 lt_cv_prog_gnu_ld=no
5782 ;;
5783esac
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5786$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5787with_gnu_ld=$lt_cv_prog_gnu_ld
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5798$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
22e05272 5799if ${lt_cv_path_NM+:} false; then :
eff02e4f
ILT
5800 $as_echo_n "(cached) " >&6
5801else
5802 if test -n "$NM"; then
5803 # Let the user override the test.
5804 lt_cv_path_NM="$NM"
5805else
5806 lt_nm_to_check="${ac_tool_prefix}nm"
5807 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5808 lt_nm_to_check="$lt_nm_to_check nm"
5809 fi
5810 for lt_tmp_nm in $lt_nm_to_check; do
5811 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5812 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5813 IFS="$lt_save_ifs"
5814 test -z "$ac_dir" && ac_dir=.
5815 tmp_nm="$ac_dir/$lt_tmp_nm"
5816 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5817 # Check to see if the nm accepts a BSD-compat flag.
5818 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5819 # nm: unknown option "B" ignored
5820 # Tru64's nm complains that /dev/null is an invalid object file
5821 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5822 */dev/null* | *'Invalid file or object type'*)
5823 lt_cv_path_NM="$tmp_nm -B"
5824 break
5825 ;;
5826 *)
5827 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5828 */dev/null*)
5829 lt_cv_path_NM="$tmp_nm -p"
5830 break
5831 ;;
5832 *)
5833 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5834 continue # so that we can try to find one that supports BSD flags
5835 ;;
5836 esac
5837 ;;
5838 esac
5839 fi
5840 done
5841 IFS="$lt_save_ifs"
5842 done
5843 : ${lt_cv_path_NM=no}
5844fi
5845fi
5846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5847$as_echo "$lt_cv_path_NM" >&6; }
5848if test "$lt_cv_path_NM" != "no"; then
5849 NM="$lt_cv_path_NM"
5850else
5851 # Didn't find any BSD compatible name lister, look for dumpbin.
5852 if test -n "$DUMPBIN"; then :
5853 # Let the user override the test.
5854 else
5855 if test -n "$ac_tool_prefix"; then
5856 for ac_prog in dumpbin "link -dump"
5857 do
5858 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5859set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5862if ${ac_cv_prog_DUMPBIN+:} false; then :
eff02e4f
ILT
5863 $as_echo_n "(cached) " >&6
5864else
5865 if test -n "$DUMPBIN"; then
5866 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5867else
5868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869for as_dir in $PATH
5870do
5871 IFS=$as_save_IFS
5872 test -z "$as_dir" && as_dir=.
5873 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5875 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 break 2
5878 fi
5879done
5880 done
5881IFS=$as_save_IFS
5882
5883fi
5884fi
5885DUMPBIN=$ac_cv_prog_DUMPBIN
5886if test -n "$DUMPBIN"; then
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5888$as_echo "$DUMPBIN" >&6; }
5889else
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5891$as_echo "no" >&6; }
5892fi
5893
5894
5895 test -n "$DUMPBIN" && break
5896 done
5897fi
5898if test -z "$DUMPBIN"; then
5899 ac_ct_DUMPBIN=$DUMPBIN
5900 for ac_prog in dumpbin "link -dump"
5901do
5902 # Extract the first word of "$ac_prog", so it can be a program name with args.
5903set dummy $ac_prog; ac_word=$2
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5905$as_echo_n "checking for $ac_word... " >&6; }
22e05272 5906if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
eff02e4f
ILT
5907 $as_echo_n "(cached) " >&6
5908else
5909 if test -n "$ac_ct_DUMPBIN"; then
5910 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5911else
5912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913for as_dir in $PATH
5914do
5915 IFS=$as_save_IFS
5916 test -z "$as_dir" && as_dir=.
5917 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 5918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
5919 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5921 break 2
5922 fi
5923done
5924 done
5925IFS=$as_save_IFS
5926
5927fi
5928fi
5929ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5930if test -n "$ac_ct_DUMPBIN"; then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5932$as_echo "$ac_ct_DUMPBIN" >&6; }
5933else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5935$as_echo "no" >&6; }
5936fi
5937
5938
5939 test -n "$ac_ct_DUMPBIN" && break
5940done
5941
5942 if test "x$ac_ct_DUMPBIN" = x; then
5943 DUMPBIN=":"
5944 else
5945 case $cross_compiling:$ac_tool_warned in
5946yes:)
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5948$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5949ac_tool_warned=yes ;;
5950esac
5951 DUMPBIN=$ac_ct_DUMPBIN
5952 fi
5953fi
5954
5955 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5956 *COFF*)
5957 DUMPBIN="$DUMPBIN -symbols"
5958 ;;
5959 *)
5960 DUMPBIN=:
5961 ;;
5962 esac
5963 fi
5964
5965 if test "$DUMPBIN" != ":"; then
5966 NM="$DUMPBIN"
5967 fi
5968fi
5969test -z "$NM" && NM=nm
5970
5971
5972
5973
5974
5975
5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5977$as_echo_n "checking the name lister ($NM) interface... " >&6; }
22e05272 5978if ${lt_cv_nm_interface+:} false; then :
eff02e4f
ILT
5979 $as_echo_n "(cached) " >&6
5980else
5981 lt_cv_nm_interface="BSD nm"
5982 echo "int some_variable = 0;" > conftest.$ac_ext
5983 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5984 (eval "$ac_compile" 2>conftest.err)
5985 cat conftest.err >&5
5986 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5987 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5988 cat conftest.err >&5
5989 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5990 cat conftest.out >&5
5991 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5992 lt_cv_nm_interface="MS dumpbin"
5993 fi
5994 rm -f conftest*
5995fi
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5997$as_echo "$lt_cv_nm_interface" >&6; }
5998
5999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6000$as_echo_n "checking whether ln -s works... " >&6; }
6001LN_S=$as_ln_s
6002if test "$LN_S" = "ln -s"; then
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6004$as_echo "yes" >&6; }
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6007$as_echo "no, using $LN_S" >&6; }
6008fi
6009
6010# find the maximum length of command line arguments
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6012$as_echo_n "checking the maximum length of command line arguments... " >&6; }
22e05272 6013if ${lt_cv_sys_max_cmd_len+:} false; then :
eff02e4f
ILT
6014 $as_echo_n "(cached) " >&6
6015else
6016 i=0
6017 teststring="ABCD"
6018
6019 case $build_os in
6020 msdosdjgpp*)
6021 # On DJGPP, this test can blow up pretty badly due to problems in libc
6022 # (any single argument exceeding 2000 bytes causes a buffer overrun
6023 # during glob expansion). Even if it were fixed, the result of this
6024 # check would be larger than it should be.
6025 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6026 ;;
6027
6028 gnu*)
6029 # Under GNU Hurd, this test is not required because there is
6030 # no limit to the length of command line arguments.
6031 # Libtool will interpret -1 as no limit whatsoever
6032 lt_cv_sys_max_cmd_len=-1;
6033 ;;
6034
6035 cygwin* | mingw* | cegcc*)
6036 # On Win9x/ME, this test blows up -- it succeeds, but takes
6037 # about 5 minutes as the teststring grows exponentially.
6038 # Worse, since 9x/ME are not pre-emptively multitasking,
6039 # you end up with a "frozen" computer, even though with patience
6040 # the test eventually succeeds (with a max line length of 256k).
6041 # Instead, let's just punt: use the minimum linelength reported by
6042 # all of the supported platforms: 8192 (on NT/2K/XP).
6043 lt_cv_sys_max_cmd_len=8192;
6044 ;;
6045
6046 mint*)
6047 # On MiNT this can take a long time and run out of memory.
6048 lt_cv_sys_max_cmd_len=8192;
6049 ;;
6050
6051 amigaos*)
6052 # On AmigaOS with pdksh, this test takes hours, literally.
6053 # So we just punt and use a minimum line length of 8192.
6054 lt_cv_sys_max_cmd_len=8192;
6055 ;;
6056
6057 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6058 # This has been around since 386BSD, at least. Likely further.
6059 if test -x /sbin/sysctl; then
6060 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6061 elif test -x /usr/sbin/sysctl; then
6062 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6063 else
6064 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6065 fi
6066 # And add a safety zone
6067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6069 ;;
6070
6071 interix*)
6072 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6073 lt_cv_sys_max_cmd_len=196608
6074 ;;
6075
6076 osf*)
6077 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6078 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6079 # nice to cause kernel panics so lets avoid the loop below.
6080 # First set a reasonable default.
6081 lt_cv_sys_max_cmd_len=16384
6082 #
6083 if test -x /sbin/sysconfig; then
6084 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6085 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6086 esac
6087 fi
6088 ;;
6089 sco3.2v5*)
6090 lt_cv_sys_max_cmd_len=102400
6091 ;;
6092 sysv5* | sco5v6* | sysv4.2uw2*)
6093 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6094 if test -n "$kargmax"; then
6095 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6096 else
6097 lt_cv_sys_max_cmd_len=32768
6098 fi
6099 ;;
6100 *)
6101 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6102 if test -n "$lt_cv_sys_max_cmd_len"; then
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6105 else
6106 # Make teststring a little bigger before we do anything with it.
6107 # a 1K string should be a reasonable start.
6108 for i in 1 2 3 4 5 6 7 8 ; do
6109 teststring=$teststring$teststring
6110 done
6111 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6112 # If test is not a shell built-in, we'll probably end up computing a
6113 # maximum length that is only half of the actual maximum length, but
6114 # we can't tell.
6115 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6116 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6117 test $i != 17 # 1/2 MB should be enough
6118 do
6119 i=`expr $i + 1`
6120 teststring=$teststring$teststring
6121 done
6122 # Only check the string length outside the loop.
6123 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6124 teststring=
6125 # Add a significant safety factor because C++ compilers can tack on
6126 # massive amounts of additional arguments before passing them to the
6127 # linker. It appears as though 1/2 is a usable value.
6128 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6129 fi
6130 ;;
6131 esac
6132
6133fi
6134
6135if test -n $lt_cv_sys_max_cmd_len ; then
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6137$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6138else
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6140$as_echo "none" >&6; }
6141fi
6142max_cmd_len=$lt_cv_sys_max_cmd_len
6143
6144
6145
6146
6147
6148
6149: ${CP="cp -f"}
6150: ${MV="mv -f"}
6151: ${RM="rm -f"}
6152
6153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6154$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6155# Try some XSI features
6156xsi_shell=no
6157( _lt_dummy="a/b/c"
6158 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6159 = c,a/b,, \
6160 && eval 'test $(( 1 + 1 )) -eq 2 \
6161 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6162 && xsi_shell=yes
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6164$as_echo "$xsi_shell" >&6; }
6165
6166
6167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6168$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6169lt_shell_append=no
6170( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6171 >/dev/null 2>&1 \
6172 && lt_shell_append=yes
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6174$as_echo "$lt_shell_append" >&6; }
6175
6176
6177if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6178 lt_unset=unset
6179else
6180 lt_unset=false
6181fi
6182
6183
6184
6185
6186
6187# test EBCDIC or ASCII
6188case `echo X|tr X '\101'` in
6189 A) # ASCII based system
6190 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6191 lt_SP2NL='tr \040 \012'
6192 lt_NL2SP='tr \015\012 \040\040'
6193 ;;
6194 *) # EBCDIC based system
6195 lt_SP2NL='tr \100 \n'
6196 lt_NL2SP='tr \r\n \100\100'
6197 ;;
6198esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6209$as_echo_n "checking for $LD option to reload object files... " >&6; }
22e05272 6210if ${lt_cv_ld_reload_flag+:} false; then :
eff02e4f
ILT
6211 $as_echo_n "(cached) " >&6
6212else
6213 lt_cv_ld_reload_flag='-r'
6214fi
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6216$as_echo "$lt_cv_ld_reload_flag" >&6; }
6217reload_flag=$lt_cv_ld_reload_flag
6218case $reload_flag in
6219"" | " "*) ;;
6220*) reload_flag=" $reload_flag" ;;
6221esac
6222reload_cmds='$LD$reload_flag -o $output$reload_objs'
6223case $host_os in
6224 darwin*)
6225 if test "$GCC" = yes; then
6226 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6227 else
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6229 fi
6230 ;;
6231esac
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241if test -n "$ac_tool_prefix"; then
6242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6243set dummy ${ac_tool_prefix}objdump; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6246if ${ac_cv_prog_OBJDUMP+:} false; then :
eff02e4f
ILT
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$OBJDUMP"; then
6250 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6259 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
6266
6267fi
6268fi
6269OBJDUMP=$ac_cv_prog_OBJDUMP
6270if test -n "$OBJDUMP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6272$as_echo "$OBJDUMP" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276fi
6277
6278
6279fi
6280if test -z "$ac_cv_prog_OBJDUMP"; then
6281 ac_ct_OBJDUMP=$OBJDUMP
6282 # Extract the first word of "objdump", so it can be a program name with args.
6283set dummy objdump; ac_word=$2
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6286if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
eff02e4f
ILT
6287 $as_echo_n "(cached) " >&6
6288else
6289 if test -n "$ac_ct_OBJDUMP"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291else
6292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293for as_dir in $PATH
6294do
6295 IFS=$as_save_IFS
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6299 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303done
6304 done
6305IFS=$as_save_IFS
6306
6307fi
6308fi
6309ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6310if test -n "$ac_ct_OBJDUMP"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6312$as_echo "$ac_ct_OBJDUMP" >&6; }
6313else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315$as_echo "no" >&6; }
6316fi
6317
6318 if test "x$ac_ct_OBJDUMP" = x; then
6319 OBJDUMP="false"
6320 else
6321 case $cross_compiling:$ac_tool_warned in
6322yes:)
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6325ac_tool_warned=yes ;;
6326esac
6327 OBJDUMP=$ac_ct_OBJDUMP
6328 fi
6329else
6330 OBJDUMP="$ac_cv_prog_OBJDUMP"
6331fi
6332
6333test -z "$OBJDUMP" && OBJDUMP=objdump
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6344$as_echo_n "checking how to recognize dependent libraries... " >&6; }
22e05272 6345if ${lt_cv_deplibs_check_method+:} false; then :
eff02e4f
ILT
6346 $as_echo_n "(cached) " >&6
6347else
6348 lt_cv_file_magic_cmd='$MAGIC_CMD'
6349lt_cv_file_magic_test_file=
6350lt_cv_deplibs_check_method='unknown'
6351# Need to set the preceding variable on all platforms that support
6352# interlibrary dependencies.
6353# 'none' -- dependencies not supported.
6354# `unknown' -- same as none, but documents that we really don't know.
6355# 'pass_all' -- all dependencies passed with no checks.
6356# 'test_compile' -- check by making test program.
6357# 'file_magic [[regex]]' -- check by looking for files in library path
6358# which responds to the $file_magic_cmd with a given extended regex.
6359# If you have `file' or equivalent on your system and you're not sure
6360# whether `pass_all' will *always* work, you probably want this one.
6361
6362case $host_os in
6363aix[4-9]*)
6364 lt_cv_deplibs_check_method=pass_all
6365 ;;
6366
6367beos*)
6368 lt_cv_deplibs_check_method=pass_all
6369 ;;
6370
6371bsdi[45]*)
6372 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6373 lt_cv_file_magic_cmd='/usr/bin/file -L'
6374 lt_cv_file_magic_test_file=/shlib/libc.so
6375 ;;
6376
6377cygwin*)
6378 # func_win32_libid is a shell function defined in ltmain.sh
6379 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6380 lt_cv_file_magic_cmd='func_win32_libid'
6381 ;;
6382
6383mingw* | pw32*)
6384 # Base MSYS/MinGW do not provide the 'file' command needed by
6385 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6386 # unless we find 'file', for example because we are cross-compiling.
6387 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6388 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6391 else
6392 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6393 lt_cv_file_magic_cmd='$OBJDUMP -f'
6394 fi
6395 ;;
6396
6397cegcc*)
6398 # use the weaker test based on 'objdump'. See mingw*.
6399 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6400 lt_cv_file_magic_cmd='$OBJDUMP -f'
6401 ;;
6402
6403darwin* | rhapsody*)
6404 lt_cv_deplibs_check_method=pass_all
6405 ;;
6406
6407freebsd* | dragonfly*)
6408 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6409 case $host_cpu in
6410 i*86 )
6411 # Not sure whether the presence of OpenBSD here was a mistake.
6412 # Let's accept both of them until this is cleared up.
6413 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6414 lt_cv_file_magic_cmd=/usr/bin/file
6415 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6416 ;;
6417 esac
6418 else
6419 lt_cv_deplibs_check_method=pass_all
6420 fi
6421 ;;
6422
6423gnu*)
6424 lt_cv_deplibs_check_method=pass_all
6425 ;;
6426
6427haiku*)
6428 lt_cv_deplibs_check_method=pass_all
6429 ;;
6430
6431hpux10.20* | hpux11*)
6432 lt_cv_file_magic_cmd=/usr/bin/file
6433 case $host_cpu in
6434 ia64*)
6435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6437 ;;
6438 hppa*64*)
6439 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]'
6440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6441 ;;
6442 *)
6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6445 ;;
6446 esac
6447 ;;
6448
6449interix[3-9]*)
6450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6452 ;;
6453
6454irix5* | irix6* | nonstopux*)
6455 case $LD in
6456 *-32|*"-32 ") libmagic=32-bit;;
6457 *-n32|*"-n32 ") libmagic=N32;;
6458 *-64|*"-64 ") libmagic=64-bit;;
6459 *) libmagic=never-match;;
6460 esac
6461 lt_cv_deplibs_check_method=pass_all
6462 ;;
6463
6464# This must be Linux ELF.
e9085da5 6465linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468
6469netbsd*)
6470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6472 else
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6474 fi
6475 ;;
6476
6477newos6*)
6478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479 lt_cv_file_magic_cmd=/usr/bin/file
6480 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6481 ;;
6482
6483*nto* | *qnx*)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486
6487openbsd*)
6488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6490 else
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6492 fi
6493 ;;
6494
6495osf3* | osf4* | osf5*)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498
6499rdos*)
6500 lt_cv_deplibs_check_method=pass_all
6501 ;;
6502
6503solaris*)
6504 lt_cv_deplibs_check_method=pass_all
6505 ;;
6506
6507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508 lt_cv_deplibs_check_method=pass_all
6509 ;;
6510
6511sysv4 | sysv4.3*)
6512 case $host_vendor in
6513 motorola)
6514 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]'
6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6516 ;;
6517 ncr)
6518 lt_cv_deplibs_check_method=pass_all
6519 ;;
6520 sequent)
6521 lt_cv_file_magic_cmd='/bin/file'
6522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6523 ;;
6524 sni)
6525 lt_cv_file_magic_cmd='/bin/file'
6526 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527 lt_cv_file_magic_test_file=/lib/libc.so
6528 ;;
6529 siemens)
6530 lt_cv_deplibs_check_method=pass_all
6531 ;;
6532 pc)
6533 lt_cv_deplibs_check_method=pass_all
6534 ;;
6535 esac
6536 ;;
6537
6538tpf*)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541esac
6542
6543fi
6544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6545$as_echo "$lt_cv_deplibs_check_method" >&6; }
6546file_magic_cmd=$lt_cv_file_magic_cmd
6547deplibs_check_method=$lt_cv_deplibs_check_method
6548test -z "$deplibs_check_method" && deplibs_check_method=unknown
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563set dummy ${ac_tool_prefix}ar; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6566if ${ac_cv_prog_AR+:} false; then :
eff02e4f
ILT
6567 $as_echo_n "(cached) " >&6
6568else
6569 if test -n "$AR"; then
6570 ac_cv_prog_AR="$AR" # Let the user override the test.
6571else
6572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573for as_dir in $PATH
6574do
6575 IFS=$as_save_IFS
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6579 ac_cv_prog_AR="${ac_tool_prefix}ar"
6580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6581 break 2
6582 fi
6583done
6584 done
6585IFS=$as_save_IFS
6586
6587fi
6588fi
6589AR=$ac_cv_prog_AR
6590if test -n "$AR"; then
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6592$as_echo "$AR" >&6; }
6593else
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595$as_echo "no" >&6; }
6596fi
6597
6598
6599fi
6600if test -z "$ac_cv_prog_AR"; then
6601 ac_ct_AR=$AR
6602 # Extract the first word of "ar", so it can be a program name with args.
6603set dummy ar; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6606if ${ac_cv_prog_ac_ct_AR+:} false; then :
eff02e4f
ILT
6607 $as_echo_n "(cached) " >&6
6608else
6609 if test -n "$ac_ct_AR"; then
6610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615 IFS=$as_save_IFS
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6619 ac_cv_prog_ac_ct_AR="ar"
6620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621 break 2
6622 fi
6623done
6624 done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629ac_ct_AR=$ac_cv_prog_ac_ct_AR
6630if test -n "$ac_ct_AR"; then
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6632$as_echo "$ac_ct_AR" >&6; }
6633else
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638 if test "x$ac_ct_AR" = x; then
6639 AR="false"
6640 else
6641 case $cross_compiling:$ac_tool_warned in
6642yes:)
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6644$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6645ac_tool_warned=yes ;;
6646esac
6647 AR=$ac_ct_AR
6648 fi
6649else
6650 AR="$ac_cv_prog_AR"
6651fi
6652
6653test -z "$AR" && AR=ar
6654test -z "$AR_FLAGS" && AR_FLAGS=cru
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666if test -n "$ac_tool_prefix"; then
6667 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6668set dummy ${ac_tool_prefix}strip; ac_word=$2
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6671if ${ac_cv_prog_STRIP+:} false; then :
eff02e4f
ILT
6672 $as_echo_n "(cached) " >&6
6673else
6674 if test -n "$STRIP"; then
6675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6684 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6687 fi
6688done
6689 done
6690IFS=$as_save_IFS
6691
6692fi
6693fi
6694STRIP=$ac_cv_prog_STRIP
6695if test -n "$STRIP"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6697$as_echo "$STRIP" >&6; }
6698else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
6701fi
6702
6703
6704fi
6705if test -z "$ac_cv_prog_STRIP"; then
6706 ac_ct_STRIP=$STRIP
6707 # Extract the first word of "strip", so it can be a program name with args.
6708set dummy strip; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6711if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
eff02e4f
ILT
6712 $as_echo_n "(cached) " >&6
6713else
6714 if test -n "$ac_ct_STRIP"; then
6715 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720 IFS=$as_save_IFS
6721 test -z "$as_dir" && as_dir=.
6722 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6724 ac_cv_prog_ac_ct_STRIP="strip"
6725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726 break 2
6727 fi
6728done
6729 done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6735if test -n "$ac_ct_STRIP"; then
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6737$as_echo "$ac_ct_STRIP" >&6; }
6738else
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743 if test "x$ac_ct_STRIP" = x; then
6744 STRIP=":"
6745 else
6746 case $cross_compiling:$ac_tool_warned in
6747yes:)
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6750ac_tool_warned=yes ;;
6751esac
6752 STRIP=$ac_ct_STRIP
6753 fi
6754else
6755 STRIP="$ac_cv_prog_STRIP"
6756fi
6757
6758test -z "$STRIP" && STRIP=:
6759
6760
6761
6762
6763
6764
6765if test -n "$ac_tool_prefix"; then
6766 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6767set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6769$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6770if ${ac_cv_prog_RANLIB+:} false; then :
eff02e4f
ILT
6771 $as_echo_n "(cached) " >&6
6772else
6773 if test -n "$RANLIB"; then
6774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6775else
6776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6777for as_dir in $PATH
6778do
6779 IFS=$as_save_IFS
6780 test -z "$as_dir" && as_dir=.
6781 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6783 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 break 2
6786 fi
6787done
6788 done
6789IFS=$as_save_IFS
6790
6791fi
6792fi
6793RANLIB=$ac_cv_prog_RANLIB
6794if test -n "$RANLIB"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6796$as_echo "$RANLIB" >&6; }
6797else
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799$as_echo "no" >&6; }
6800fi
6801
6802
6803fi
6804if test -z "$ac_cv_prog_RANLIB"; then
6805 ac_ct_RANLIB=$RANLIB
6806 # Extract the first word of "ranlib", so it can be a program name with args.
6807set dummy ranlib; ac_word=$2
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
22e05272 6810if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
eff02e4f
ILT
6811 $as_echo_n "(cached) " >&6
6812else
6813 if test -n "$ac_ct_RANLIB"; then
6814 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819 IFS=$as_save_IFS
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
6823 ac_cv_prog_ac_ct_RANLIB="ranlib"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827done
6828 done
6829IFS=$as_save_IFS
6830
6831fi
6832fi
6833ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6834if test -n "$ac_ct_RANLIB"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6836$as_echo "$ac_ct_RANLIB" >&6; }
6837else
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
6840fi
6841
6842 if test "x$ac_ct_RANLIB" = x; then
6843 RANLIB=":"
6844 else
6845 case $cross_compiling:$ac_tool_warned in
6846yes:)
6847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6849ac_tool_warned=yes ;;
6850esac
6851 RANLIB=$ac_ct_RANLIB
6852 fi
6853else
6854 RANLIB="$ac_cv_prog_RANLIB"
6855fi
6856
6857test -z "$RANLIB" && RANLIB=:
6858
6859
6860
6861
6862
6863
6864# Determine commands to create old-style static archives.
6865old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6866old_postinstall_cmds='chmod 644 $oldlib'
6867old_postuninstall_cmds=
6868
6869if test -n "$RANLIB"; then
6870 case $host_os in
6871 openbsd*)
6872 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6873 ;;
6874 *)
6875 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6876 ;;
6877 esac
6878 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6879fi
6880
6881case $host_os in
6882 darwin*)
6883 lock_old_archive_extraction=yes ;;
6884 *)
6885 lock_old_archive_extraction=no ;;
6886esac
6887
6888
6889
6890
6891
6892
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# If no C compiler was specified, use CC.
6927LTCC=${LTCC-"$CC"}
6928
6929# If no C compiler flags were specified, use CFLAGS.
6930LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6931
6932# Allow CC to be a program name with arguments.
6933compiler=$CC
6934
6935
6936# Check for command to grab the raw symbol name followed by C symbol from nm.
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6938$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
22e05272 6939if ${lt_cv_sys_global_symbol_pipe+:} false; then :
eff02e4f
ILT
6940 $as_echo_n "(cached) " >&6
6941else
6942
6943# These are sane defaults that work on at least a few old systems.
6944# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6945
6946# Character class describing NM global symbol codes.
6947symcode='[BCDEGRST]'
6948
6949# Regexp to match symbols that can be accessed directly from C.
6950sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6951
6952# Define system-specific variables.
6953case $host_os in
6954aix*)
6955 symcode='[BCDT]'
6956 ;;
6957cygwin* | mingw* | pw32* | cegcc*)
6958 symcode='[ABCDGISTW]'
6959 ;;
6960hpux*)
6961 if test "$host_cpu" = ia64; then
6962 symcode='[ABCDEGRST]'
6963 fi
6964 ;;
6965irix* | nonstopux*)
6966 symcode='[BCDEGRST]'
6967 ;;
6968osf*)
6969 symcode='[BCDEGQRST]'
6970 ;;
6971solaris*)
6972 symcode='[BDRT]'
6973 ;;
6974sco3.2v5*)
6975 symcode='[DT]'
6976 ;;
6977sysv4.2uw2*)
6978 symcode='[DT]'
6979 ;;
6980sysv5* | sco5v6* | unixware* | OpenUNIX*)
6981 symcode='[ABDT]'
6982 ;;
6983sysv4)
6984 symcode='[DFNSTU]'
6985 ;;
6986esac
6987
6988# If we're using GNU nm, then use its standard symbol codes.
6989case `$NM -V 2>&1` in
6990*GNU* | *'with BFD'*)
6991 symcode='[ABCDGIRSTW]' ;;
6992esac
6993
6994# Transform an extracted symbol line into a proper C declaration.
6995# Some systems (esp. on ia64) link data and code symbols differently,
6996# so use this general approach.
6997lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6998
6999# Transform an extracted symbol line into symbol name and symbol address
7000lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7001lt_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'"
7002
7003# Handle CRLF in mingw tool chain
7004opt_cr=
7005case $build_os in
7006mingw*)
7007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7008 ;;
7009esac
7010
7011# Try without a prefix underscore, then with it.
7012for ac_symprfx in "" "_"; do
7013
7014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7015 symxfrm="\\1 $ac_symprfx\\2 \\2"
7016
7017 # Write the raw and C identifiers.
7018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7019 # Fake it for dumpbin and say T for any non-static function
7020 # and D for any global variable.
7021 # Also find C++ and __fastcall symbols from MSVC++,
7022 # which start with @ or ?.
7023 lt_cv_sys_global_symbol_pipe="$AWK '"\
7024" {last_section=section; section=\$ 3};"\
7025" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7026" \$ 0!~/External *\|/{next};"\
7027" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7028" {if(hide[section]) next};"\
7029" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7030" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7031" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7032" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7033" ' prfx=^$ac_symprfx"
7034 else
7035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7036 fi
7037
7038 # Check to see that the pipe works correctly.
7039 pipe_works=no
7040
7041 rm -f conftest*
7042 cat > conftest.$ac_ext <<_LT_EOF
7043#ifdef __cplusplus
7044extern "C" {
7045#endif
7046char nm_test_var;
7047void nm_test_func(void);
7048void nm_test_func(void){}
7049#ifdef __cplusplus
7050}
7051#endif
7052int main(){nm_test_var='a';nm_test_func();return(0);}
7053_LT_EOF
7054
7055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056 (eval $ac_compile) 2>&5
7057 ac_status=$?
7058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059 test $ac_status = 0; }; then
7060 # Now try to grab the symbols.
7061 nlist=conftest.nm
7062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7063 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7064 ac_status=$?
7065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7066 test $ac_status = 0; } && test -s "$nlist"; then
7067 # Try sorting and uniquifying the output.
7068 if sort "$nlist" | uniq > "$nlist"T; then
7069 mv -f "$nlist"T "$nlist"
7070 else
7071 rm -f "$nlist"T
7072 fi
7073
7074 # Make sure that we snagged all the symbols we need.
7075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7077 cat <<_LT_EOF > conftest.$ac_ext
7078#ifdef __cplusplus
7079extern "C" {
7080#endif
7081
7082_LT_EOF
7083 # Now generate the symbol file.
7084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7085
7086 cat <<_LT_EOF >> conftest.$ac_ext
7087
7088/* The mapping between symbol names and symbols. */
7089const struct {
7090 const char *name;
7091 void *address;
7092}
7093lt__PROGRAM__LTX_preloaded_symbols[] =
7094{
7095 { "@PROGRAM@", (void *) 0 },
7096_LT_EOF
7097 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7098 cat <<\_LT_EOF >> conftest.$ac_ext
7099 {0, (void *) 0}
7100};
7101
7102/* This works around a problem in FreeBSD linker */
7103#ifdef FREEBSD_WORKAROUND
7104static const void *lt_preloaded_setup() {
7105 return lt__PROGRAM__LTX_preloaded_symbols;
7106}
7107#endif
7108
7109#ifdef __cplusplus
7110}
7111#endif
7112_LT_EOF
7113 # Now try linking the two files.
7114 mv conftest.$ac_objext conftstm.$ac_objext
7115 lt_save_LIBS="$LIBS"
7116 lt_save_CFLAGS="$CFLAGS"
7117 LIBS="conftstm.$ac_objext"
7118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7120 (eval $ac_link) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7124 pipe_works=yes
7125 fi
7126 LIBS="$lt_save_LIBS"
7127 CFLAGS="$lt_save_CFLAGS"
7128 else
7129 echo "cannot find nm_test_func in $nlist" >&5
7130 fi
7131 else
7132 echo "cannot find nm_test_var in $nlist" >&5
7133 fi
7134 else
7135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7136 fi
7137 else
7138 echo "$progname: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7140 fi
7141 rm -rf conftest* conftst*
7142
7143 # Do not use the global_symbol_pipe unless it works.
7144 if test "$pipe_works" = yes; then
7145 break
7146 else
7147 lt_cv_sys_global_symbol_pipe=
7148 fi
7149done
7150
7151fi
7152
7153if test -z "$lt_cv_sys_global_symbol_pipe"; then
7154 lt_cv_sys_global_symbol_to_cdecl=
7155fi
7156if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7158$as_echo "failed" >&6; }
7159else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7161$as_echo "ok" >&6; }
7162fi
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
eff02e4f
ILT
7183
7184
7185# Check whether --enable-libtool-lock was given.
7186if test "${enable_libtool_lock+set}" = set; then :
7187 enableval=$enable_libtool_lock;
7188fi
7189
7190test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7191
7192# Some flags need to be propagated to the compiler or linker for good
7193# libtool support.
7194case $host in
7195ia64-*-hpux*)
7196 # Find out which ABI we are using.
7197 echo 'int i;' > conftest.$ac_ext
7198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7199 (eval $ac_compile) 2>&5
7200 ac_status=$?
7201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7202 test $ac_status = 0; }; then
7203 case `/usr/bin/file conftest.$ac_objext` in
7204 *ELF-32*)
7205 HPUX_IA64_MODE="32"
7206 ;;
7207 *ELF-64*)
7208 HPUX_IA64_MODE="64"
7209 ;;
7210 esac
7211 fi
7212 rm -rf conftest*
7213 ;;
7214*-*-irix6*)
7215 # Find out which ABI we are using.
7216 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7218 (eval $ac_compile) 2>&5
7219 ac_status=$?
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; }; then
7222 if test "$lt_cv_prog_gnu_ld" = yes; then
7223 case `/usr/bin/file conftest.$ac_objext` in
7224 *32-bit*)
7225 LD="${LD-ld} -melf32bsmip"
7226 ;;
7227 *N32*)
7228 LD="${LD-ld} -melf32bmipn32"
7229 ;;
7230 *64-bit*)
7231 LD="${LD-ld} -melf64bmip"
7232 ;;
7233 esac
7234 else
7235 case `/usr/bin/file conftest.$ac_objext` in
7236 *32-bit*)
7237 LD="${LD-ld} -32"
7238 ;;
7239 *N32*)
7240 LD="${LD-ld} -n32"
7241 ;;
7242 *64-bit*)
7243 LD="${LD-ld} -64"
7244 ;;
7245 esac
7246 fi
7247 fi
7248 rm -rf conftest*
7249 ;;
7250
3cbe17f7 7251x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
eff02e4f
ILT
7252s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7253 # Find out which ABI we are using.
7254 echo 'int i;' > conftest.$ac_ext
7255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7256 (eval $ac_compile) 2>&5
7257 ac_status=$?
7258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7259 test $ac_status = 0; }; then
7260 case `/usr/bin/file conftest.o` in
7261 *32-bit*)
7262 case $host in
7263 x86_64-*kfreebsd*-gnu)
7264 LD="${LD-ld} -m elf_i386_fbsd"
7265 ;;
7266 x86_64-*linux*)
7267 case `/usr/bin/file conftest.o` in
7268 *x86-64*)
7269 LD="${LD-ld} -m elf32_x86_64"
7270 ;;
7271 *)
7272 LD="${LD-ld} -m elf_i386"
7273 ;;
7274 esac
7275 ;;
3cbe17f7
AM
7276 powerpc64le-*linux*)
7277 LD="${LD-ld} -m elf32lppclinux"
7278 ;;
7279 powerpc64-*linux*)
eff02e4f
ILT
7280 LD="${LD-ld} -m elf32ppclinux"
7281 ;;
7282 s390x-*linux*)
7283 LD="${LD-ld} -m elf_s390"
7284 ;;
7285 sparc64-*linux*)
7286 LD="${LD-ld} -m elf32_sparc"
7287 ;;
7288 esac
7289 ;;
7290 *64-bit*)
7291 case $host in
7292 x86_64-*kfreebsd*-gnu)
7293 LD="${LD-ld} -m elf_x86_64_fbsd"
7294 ;;
7295 x86_64-*linux*)
7296 LD="${LD-ld} -m elf_x86_64"
7297 ;;
3cbe17f7
AM
7298 powerpcle-*linux*)
7299 LD="${LD-ld} -m elf64lppc"
7300 ;;
7301 powerpc-*linux*)
eff02e4f
ILT
7302 LD="${LD-ld} -m elf64ppc"
7303 ;;
7304 s390*-*linux*|s390*-*tpf*)
7305 LD="${LD-ld} -m elf64_s390"
7306 ;;
7307 sparc*-*linux*)
7308 LD="${LD-ld} -m elf64_sparc"
7309 ;;
7310 esac
7311 ;;
7312 esac
7313 fi
7314 rm -rf conftest*
7315 ;;
7316
7317*-*-sco3.2v5*)
7318 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7319 SAVE_CFLAGS="$CFLAGS"
7320 CFLAGS="$CFLAGS -belf"
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7322$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
22e05272 7323if ${lt_cv_cc_needs_belf+:} false; then :
eff02e4f
ILT
7324 $as_echo_n "(cached) " >&6
7325else
7326 ac_ext=c
7327ac_cpp='$CPP $CPPFLAGS'
7328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7330ac_compiler_gnu=$ac_cv_c_compiler_gnu
7331
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h. */
7334
7335int
7336main ()
7337{
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343if ac_fn_c_try_link "$LINENO"; then :
7344 lt_cv_cc_needs_belf=yes
7345else
7346 lt_cv_cc_needs_belf=no
7347fi
7348rm -f core conftest.err conftest.$ac_objext \
7349 conftest$ac_exeext conftest.$ac_ext
7350 ac_ext=c
7351ac_cpp='$CPP $CPPFLAGS'
7352ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356fi
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7358$as_echo "$lt_cv_cc_needs_belf" >&6; }
7359 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7360 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7361 CFLAGS="$SAVE_CFLAGS"
7362 fi
7363 ;;
7364sparc*-*solaris*)
7365 # Find out which ABI we are using.
7366 echo 'int i;' > conftest.$ac_ext
7367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7368 (eval $ac_compile) 2>&5
7369 ac_status=$?
7370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7371 test $ac_status = 0; }; then
7372 case `/usr/bin/file conftest.o` in
7373 *64-bit*)
7374 case $lt_cv_prog_gnu_ld in
7375 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7376 *)
7377 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7378 LD="${LD-ld} -64"
7379 fi
7380 ;;
7381 esac
7382 ;;
7383 esac
7384 fi
7385 rm -rf conftest*
7386 ;;
7387esac
7388
7389need_locks="$enable_libtool_lock"
7390
7391
7392 case $host_os in
7393 rhapsody* | darwin*)
7394 if test -n "$ac_tool_prefix"; then
7395 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7396set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7399if ${ac_cv_prog_DSYMUTIL+:} false; then :
eff02e4f
ILT
7400 $as_echo_n "(cached) " >&6
7401else
7402 if test -n "$DSYMUTIL"; then
7403 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
eff02e4f
ILT
7412 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414 break 2
7415 fi
7416done
7417 done
7418IFS=$as_save_IFS
7419
7420fi
7421fi
7422DSYMUTIL=$ac_cv_prog_DSYMUTIL
7423if test -n "$DSYMUTIL"; then
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7425$as_echo "$DSYMUTIL" >&6; }
7426else
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428$as_echo "no" >&6; }
7429fi
7430
7431
7432fi
7433if test -z "$ac_cv_prog_DSYMUTIL"; then
7434 ac_ct_DSYMUTIL=$DSYMUTIL
7435 # Extract the first word of "dsymutil", so it can be a program name with args.
7436set dummy dsymutil; ac_word=$2
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7439if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
eff02e4f
ILT
7440 $as_echo_n "(cached) " >&6
7441else
d4c059d5
ILT
7442 if test -n "$ac_ct_DSYMUTIL"; then
7443 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
eff02e4f
ILT
7444else
7445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446for as_dir in $PATH
7447do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7452 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
eff02e4f
ILT
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456done
7457 done
7458IFS=$as_save_IFS
7459
7460fi
7461fi
d4c059d5
ILT
7462ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7463if test -n "$ac_ct_DSYMUTIL"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7465$as_echo "$ac_ct_DSYMUTIL" >&6; }
eff02e4f
ILT
7466else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468$as_echo "no" >&6; }
7469fi
7470
d4c059d5
ILT
7471 if test "x$ac_ct_DSYMUTIL" = x; then
7472 DSYMUTIL=":"
eff02e4f
ILT
7473 else
7474 case $cross_compiling:$ac_tool_warned in
7475yes:)
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7478ac_tool_warned=yes ;;
7479esac
d4c059d5 7480 DSYMUTIL=$ac_ct_DSYMUTIL
eff02e4f
ILT
7481 fi
7482else
d4c059d5 7483 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
eff02e4f
ILT
7484fi
7485
7486 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7487 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7488set dummy ${ac_tool_prefix}nmedit; ac_word=$2
eff02e4f
ILT
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7491if ${ac_cv_prog_NMEDIT+:} false; then :
eff02e4f
ILT
7492 $as_echo_n "(cached) " >&6
7493else
d4c059d5
ILT
7494 if test -n "$NMEDIT"; then
7495 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
eff02e4f
ILT
7496else
7497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498for as_dir in $PATH
7499do
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7504 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
eff02e4f
ILT
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7507 fi
7508done
7509 done
7510IFS=$as_save_IFS
7511
7512fi
7513fi
d4c059d5
ILT
7514NMEDIT=$ac_cv_prog_NMEDIT
7515if test -n "$NMEDIT"; then
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7517$as_echo "$NMEDIT" >&6; }
eff02e4f
ILT
7518else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520$as_echo "no" >&6; }
7521fi
7522
7523
7524fi
d4c059d5
ILT
7525if test -z "$ac_cv_prog_NMEDIT"; then
7526 ac_ct_NMEDIT=$NMEDIT
7527 # Extract the first word of "nmedit", so it can be a program name with args.
7528set dummy nmedit; ac_word=$2
eff02e4f
ILT
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7531if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
eff02e4f
ILT
7532 $as_echo_n "(cached) " >&6
7533else
d4c059d5
ILT
7534 if test -n "$ac_ct_NMEDIT"; then
7535 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
eff02e4f
ILT
7536else
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7544 ac_cv_prog_ac_ct_NMEDIT="nmedit"
eff02e4f
ILT
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548done
7549 done
7550IFS=$as_save_IFS
7551
7552fi
7553fi
d4c059d5
ILT
7554ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7555if test -n "$ac_ct_NMEDIT"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7557$as_echo "$ac_ct_NMEDIT" >&6; }
eff02e4f
ILT
7558else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
7561fi
7562
d4c059d5
ILT
7563 if test "x$ac_ct_NMEDIT" = x; then
7564 NMEDIT=":"
eff02e4f
ILT
7565 else
7566 case $cross_compiling:$ac_tool_warned in
7567yes:)
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7569$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7570ac_tool_warned=yes ;;
7571esac
d4c059d5 7572 NMEDIT=$ac_ct_NMEDIT
eff02e4f
ILT
7573 fi
7574else
d4c059d5 7575 NMEDIT="$ac_cv_prog_NMEDIT"
eff02e4f
ILT
7576fi
7577
7578 if test -n "$ac_tool_prefix"; then
d4c059d5
ILT
7579 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7580set dummy ${ac_tool_prefix}lipo; ac_word=$2
eff02e4f
ILT
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7583if ${ac_cv_prog_LIPO+:} false; then :
eff02e4f
ILT
7584 $as_echo_n "(cached) " >&6
7585else
d4c059d5
ILT
7586 if test -n "$LIPO"; then
7587 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
eff02e4f
ILT
7588else
7589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590for as_dir in $PATH
7591do
7592 IFS=$as_save_IFS
7593 test -z "$as_dir" && as_dir=.
7594 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7596 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
eff02e4f
ILT
7597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598 break 2
7599 fi
7600done
7601 done
7602IFS=$as_save_IFS
7603
7604fi
7605fi
d4c059d5
ILT
7606LIPO=$ac_cv_prog_LIPO
7607if test -n "$LIPO"; then
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7609$as_echo "$LIPO" >&6; }
eff02e4f
ILT
7610else
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612$as_echo "no" >&6; }
7613fi
7614
7615
7616fi
d4c059d5
ILT
7617if test -z "$ac_cv_prog_LIPO"; then
7618 ac_ct_LIPO=$LIPO
7619 # Extract the first word of "lipo", so it can be a program name with args.
7620set dummy lipo; ac_word=$2
eff02e4f
ILT
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7623if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
eff02e4f
ILT
7624 $as_echo_n "(cached) " >&6
7625else
d4c059d5
ILT
7626 if test -n "$ac_ct_LIPO"; then
7627 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
eff02e4f
ILT
7628else
7629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630for as_dir in $PATH
7631do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5 7636 ac_cv_prog_ac_ct_LIPO="lipo"
eff02e4f
ILT
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640done
7641 done
7642IFS=$as_save_IFS
7643
7644fi
7645fi
d4c059d5
ILT
7646ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7647if test -n "$ac_ct_LIPO"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7649$as_echo "$ac_ct_LIPO" >&6; }
eff02e4f
ILT
7650else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
7654
d4c059d5
ILT
7655 if test "x$ac_ct_LIPO" = x; then
7656 LIPO=":"
eff02e4f
ILT
7657 else
7658 case $cross_compiling:$ac_tool_warned in
7659yes:)
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7662ac_tool_warned=yes ;;
7663esac
d4c059d5 7664 LIPO=$ac_ct_LIPO
eff02e4f
ILT
7665 fi
7666else
d4c059d5 7667 LIPO="$ac_cv_prog_LIPO"
eff02e4f
ILT
7668fi
7669
d4c059d5
ILT
7670 if test -n "$ac_tool_prefix"; then
7671 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7672set dummy ${ac_tool_prefix}otool; ac_word=$2
7673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7675if ${ac_cv_prog_OTOOL+:} false; then :
eff02e4f
ILT
7676 $as_echo_n "(cached) " >&6
7677else
d4c059d5
ILT
7678 if test -n "$OTOOL"; then
7679 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
eff02e4f 7680else
d4c059d5
ILT
7681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682for as_dir in $PATH
7683do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7688 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692done
7693 done
7694IFS=$as_save_IFS
eff02e4f 7695
eff02e4f 7696fi
eff02e4f 7697fi
d4c059d5
ILT
7698OTOOL=$ac_cv_prog_OTOOL
7699if test -n "$OTOOL"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7701$as_echo "$OTOOL" >&6; }
7702else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704$as_echo "no" >&6; }
eff02e4f 7705fi
eff02e4f 7706
d4c059d5 7707
eff02e4f 7708fi
d4c059d5
ILT
7709if test -z "$ac_cv_prog_OTOOL"; then
7710 ac_ct_OTOOL=$OTOOL
7711 # Extract the first word of "otool", so it can be a program name with args.
7712set dummy otool; ac_word=$2
7713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7715if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
eff02e4f
ILT
7716 $as_echo_n "(cached) " >&6
7717else
d4c059d5
ILT
7718 if test -n "$ac_ct_OTOOL"; then
7719 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7720else
7721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722for as_dir in $PATH
eff02e4f 7723do
d4c059d5
ILT
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7728 ac_cv_prog_ac_ct_OTOOL="otool"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732done
7733 done
7734IFS=$as_save_IFS
eff02e4f 7735
d4c059d5
ILT
7736fi
7737fi
7738ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7739if test -n "$ac_ct_OTOOL"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7741$as_echo "$ac_ct_OTOOL" >&6; }
eff02e4f 7742else
d4c059d5
ILT
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744$as_echo "no" >&6; }
eff02e4f 7745fi
eff02e4f 7746
d4c059d5
ILT
7747 if test "x$ac_ct_OTOOL" = x; then
7748 OTOOL=":"
7749 else
7750 case $cross_compiling:$ac_tool_warned in
7751yes:)
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754ac_tool_warned=yes ;;
7755esac
7756 OTOOL=$ac_ct_OTOOL
7757 fi
eff02e4f 7758else
d4c059d5 7759 OTOOL="$ac_cv_prog_OTOOL"
eff02e4f 7760fi
eff02e4f 7761
d4c059d5
ILT
7762 if test -n "$ac_tool_prefix"; then
7763 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7764set dummy ${ac_tool_prefix}otool64; ac_word=$2
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7767if ${ac_cv_prog_OTOOL64+:} false; then :
d4c059d5
ILT
7768 $as_echo_n "(cached) " >&6
7769else
7770 if test -n "$OTOOL64"; then
7771 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7772else
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7780 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
eff02e4f 7784done
d4c059d5
ILT
7785 done
7786IFS=$as_save_IFS
7787
7788fi
7789fi
7790OTOOL64=$ac_cv_prog_OTOOL64
7791if test -n "$OTOOL64"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7793$as_echo "$OTOOL64" >&6; }
7794else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
eff02e4f
ILT
7797fi
7798
eff02e4f
ILT
7799
7800fi
d4c059d5
ILT
7801if test -z "$ac_cv_prog_OTOOL64"; then
7802 ac_ct_OTOOL64=$OTOOL64
7803 # Extract the first word of "otool64", so it can be a program name with args.
7804set dummy otool64; ac_word=$2
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806$as_echo_n "checking for $ac_word... " >&6; }
22e05272 7807if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
d4c059d5 7808 $as_echo_n "(cached) " >&6
eff02e4f 7809else
d4c059d5
ILT
7810 if test -n "$ac_ct_OTOOL64"; then
7811 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7812else
7813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814for as_dir in $PATH
eff02e4f 7815do
d4c059d5
ILT
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d4c059d5
ILT
7820 ac_cv_prog_ac_ct_OTOOL64="otool64"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824done
7825 done
7826IFS=$as_save_IFS
eff02e4f 7827
d4c059d5
ILT
7828fi
7829fi
7830ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7831if test -n "$ac_ct_OTOOL64"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7833$as_echo "$ac_ct_OTOOL64" >&6; }
eff02e4f 7834else
d4c059d5
ILT
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836$as_echo "no" >&6; }
eff02e4f 7837fi
eff02e4f 7838
d4c059d5
ILT
7839 if test "x$ac_ct_OTOOL64" = x; then
7840 OTOOL64=":"
7841 else
7842 case $cross_compiling:$ac_tool_warned in
7843yes:)
7844{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846ac_tool_warned=yes ;;
7847esac
7848 OTOOL64=$ac_ct_OTOOL64
7849 fi
eff02e4f 7850else
d4c059d5 7851 OTOOL64="$ac_cv_prog_OTOOL64"
eff02e4f 7852fi
eff02e4f 7853
eff02e4f 7854
eff02e4f 7855
eff02e4f
ILT
7856
7857
eff02e4f 7858
eff02e4f 7859
eff02e4f 7860
eff02e4f 7861
eff02e4f 7862
eff02e4f 7863
eff02e4f 7864
eff02e4f 7865
eff02e4f 7866
eff02e4f 7867
eff02e4f 7868
d4c059d5
ILT
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7881$as_echo_n "checking for -single_module linker flag... " >&6; }
22e05272 7882if ${lt_cv_apple_cc_single_mod+:} false; then :
d4c059d5 7883 $as_echo_n "(cached) " >&6
eff02e4f 7884else
d4c059d5
ILT
7885 lt_cv_apple_cc_single_mod=no
7886 if test -z "${LT_MULTI_MODULE}"; then
7887 # By default we will add the -single_module flag. You can override
7888 # by either setting the environment variable LT_MULTI_MODULE
7889 # non-empty at configure time, or by adding -multi_module to the
7890 # link flags.
7891 rm -rf libconftest.dylib*
7892 echo "int foo(void){return 1;}" > conftest.c
7893 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7894-dynamiclib -Wl,-single_module conftest.c" >&5
7895 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7896 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7897 _lt_result=$?
7898 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7899 lt_cv_apple_cc_single_mod=yes
7900 else
7901 cat conftest.err >&5
7902 fi
7903 rm -rf libconftest.dylib*
7904 rm -f conftest.*
7905 fi
7906fi
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7908$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7910$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
22e05272 7911if ${lt_cv_ld_exported_symbols_list+:} false; then :
d4c059d5
ILT
7912 $as_echo_n "(cached) " >&6
7913else
7914 lt_cv_ld_exported_symbols_list=no
7915 save_LDFLAGS=$LDFLAGS
7916 echo "_main" > conftest.sym
7917 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
eff02e4f 7919/* end confdefs.h. */
eff02e4f 7920
eff02e4f
ILT
7921int
7922main ()
7923{
d4c059d5
ILT
7924
7925 ;
eff02e4f
ILT
7926 return 0;
7927}
7928_ACEOF
d4c059d5
ILT
7929if ac_fn_c_try_link "$LINENO"; then :
7930 lt_cv_ld_exported_symbols_list=yes
eff02e4f 7931else
d4c059d5 7932 lt_cv_ld_exported_symbols_list=no
eff02e4f 7933fi
d4c059d5
ILT
7934rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LDFLAGS="$save_LDFLAGS"
eff02e4f
ILT
7937
7938fi
d4c059d5
ILT
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7940$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7942$as_echo_n "checking for -force_load linker flag... " >&6; }
22e05272 7943if ${lt_cv_ld_force_load+:} false; then :
d4c059d5
ILT
7944 $as_echo_n "(cached) " >&6
7945else
7946 lt_cv_ld_force_load=no
7947 cat > conftest.c << _LT_EOF
7948int forced_loaded() { return 2;}
7949_LT_EOF
7950 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7951 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7952 echo "$AR cru libconftest.a conftest.o" >&5
7953 $AR cru libconftest.a conftest.o 2>&5
7954 cat > conftest.c << _LT_EOF
7955int main() { return 0;}
7956_LT_EOF
7957 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7958 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7959 _lt_result=$?
7960 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7961 lt_cv_ld_force_load=yes
7962 else
7963 cat conftest.err >&5
7964 fi
7965 rm -f conftest.err libconftest.a conftest conftest.c
7966 rm -rf conftest.dSYM
eff02e4f
ILT
7967
7968fi
d4c059d5
ILT
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7970$as_echo "$lt_cv_ld_force_load" >&6; }
7971 case $host_os in
7972 rhapsody* | darwin1.[012])
7973 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7974 darwin1.*)
7975 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7976 darwin*) # darwin 5.x on
7977 # if running on 10.5 or later, the deployment target defaults
7978 # to the OS version, if on x86, and 10.4, the deployment
7979 # target defaults to 10.4. Don't you love it?
7980 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7981 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7982 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
ebf6d33b 7983 10.[012][,.]*)
d4c059d5
ILT
7984 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7985 10.*)
7986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7987 esac
7988 ;;
7989 esac
7990 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7991 _lt_dar_single_mod='$single_module'
7992 fi
7993 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7994 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7995 else
7996 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7997 fi
7998 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7999 _lt_dsymutil='~$DSYMUTIL $lib || :'
8000 else
8001 _lt_dsymutil=
8002 fi
8003 ;;
8004 esac
eff02e4f
ILT
8005
8006for ac_header in dlfcn.h
8007do :
8008 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8009"
22e05272 8010if test "x$ac_cv_header_dlfcn_h" = xyes; then :
eff02e4f
ILT
8011 cat >>confdefs.h <<_ACEOF
8012#define HAVE_DLFCN_H 1
8013_ACEOF
8014
8015fi
8016
8017done
8018
8019
8020
8021
8022
8023# Set options
7e5c7547
UW
8024
8025
8026
8027 enable_dlopen=no
8028
8029
8030 enable_win32_dll=no
8031
8032
8033 # Check whether --enable-shared was given.
eff02e4f
ILT
8034if test "${enable_shared+set}" = set; then :
8035 enableval=$enable_shared; p=${PACKAGE-default}
8036 case $enableval in
8037 yes) enable_shared=yes ;;
8038 no) enable_shared=no ;;
8039 *)
8040 enable_shared=no
8041 # Look at the argument we got. We use all the common list separators.
8042 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8043 for pkg in $enableval; do
8044 IFS="$lt_save_ifs"
8045 if test "X$pkg" = "X$p"; then
8046 enable_shared=yes
8047 fi
8048 done
8049 IFS="$lt_save_ifs"
8050 ;;
8051 esac
8052else
7e5c7547 8053 enable_shared=yes
eff02e4f
ILT
8054fi
8055
8056
8057
8058
8059
8060
8061
8062
8063
eff02e4f
ILT
8064 # Check whether --enable-static was given.
8065if test "${enable_static+set}" = set; then :
8066 enableval=$enable_static; p=${PACKAGE-default}
8067 case $enableval in
8068 yes) enable_static=yes ;;
8069 no) enable_static=no ;;
8070 *)
8071 enable_static=no
8072 # Look at the argument we got. We use all the common list separators.
8073 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8074 for pkg in $enableval; do
8075 IFS="$lt_save_ifs"
8076 if test "X$pkg" = "X$p"; then
8077 enable_static=yes
8078 fi
8079 done
8080 IFS="$lt_save_ifs"
8081 ;;
8082 esac
8083else
8084 enable_static=yes
8085fi
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096# Check whether --with-pic was given.
8097if test "${with_pic+set}" = set; then :
8098 withval=$with_pic; pic_mode="$withval"
8099else
8100 pic_mode=default
8101fi
8102
8103
8104test -z "$pic_mode" && pic_mode=default
8105
8106
8107
8108
8109
8110
8111
8112 # Check whether --enable-fast-install was given.
8113if test "${enable_fast_install+set}" = set; then :
8114 enableval=$enable_fast_install; p=${PACKAGE-default}
8115 case $enableval in
8116 yes) enable_fast_install=yes ;;
8117 no) enable_fast_install=no ;;
8118 *)
8119 enable_fast_install=no
8120 # Look at the argument we got. We use all the common list separators.
8121 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8122 for pkg in $enableval; do
8123 IFS="$lt_save_ifs"
8124 if test "X$pkg" = "X$p"; then
8125 enable_fast_install=yes
8126 fi
8127 done
8128 IFS="$lt_save_ifs"
8129 ;;
8130 esac
8131else
8132 enable_fast_install=yes
8133fi
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145# This can be used to rebuild libtool when needed
8146LIBTOOL_DEPS="$ltmain"
8147
8148# Always use our own libtool.
8149LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176test -z "$LN_S" && LN_S="ln -s"
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191if test -n "${ZSH_VERSION+set}" ; then
8192 setopt NO_GLOB_SUBST
8193fi
8194
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8196$as_echo_n "checking for objdir... " >&6; }
22e05272 8197if ${lt_cv_objdir+:} false; then :
eff02e4f
ILT
8198 $as_echo_n "(cached) " >&6
8199else
8200 rm -f .libs 2>/dev/null
8201mkdir .libs 2>/dev/null
8202if test -d .libs; then
8203 lt_cv_objdir=.libs
8204else
8205 # MS-DOS does not allow filenames that begin with a dot.
8206 lt_cv_objdir=_libs
8207fi
8208rmdir .libs 2>/dev/null
8209fi
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8211$as_echo "$lt_cv_objdir" >&6; }
8212objdir=$lt_cv_objdir
8213
8214
8215
8216
8217
8218cat >>confdefs.h <<_ACEOF
8219#define LT_OBJDIR "$lt_cv_objdir/"
8220_ACEOF
8221
8222
8223
8224
8225case $host_os in
8226aix3*)
8227 # AIX sometimes has problems with the GCC collect2 program. For some
8228 # reason, if we set the COLLECT_NAMES environment variable, the problems
8229 # vanish in a puff of smoke.
8230 if test "X${COLLECT_NAMES+set}" != Xset; then
8231 COLLECT_NAMES=
8232 export COLLECT_NAMES
8233 fi
8234 ;;
8235esac
8236
8237# Global variables:
8238ofile=libtool
8239can_build_shared=yes
8240
8241# All known linkers require a `.a' archive for static linking (except MSVC,
8242# which needs '.lib').
8243libext=a
8244
8245with_gnu_ld="$lt_cv_prog_gnu_ld"
8246
8247old_CC="$CC"
8248old_CFLAGS="$CFLAGS"
8249
8250# Set sane defaults for various variables
8251test -z "$CC" && CC=cc
8252test -z "$LTCC" && LTCC=$CC
8253test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8254test -z "$LD" && LD=ld
8255test -z "$ac_objext" && ac_objext=o
8256
8257for cc_temp in $compiler""; do
8258 case $cc_temp in
8259 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8260 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8261 \-*) ;;
8262 *) break;;
8263 esac
8264done
8265cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8266
8267
8268# Only perform the check for file, if the check method requires it
8269test -z "$MAGIC_CMD" && MAGIC_CMD=file
8270case $deplibs_check_method in
8271file_magic*)
8272 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8274$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
22e05272 8275if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8276 $as_echo_n "(cached) " >&6
8277else
8278 case $MAGIC_CMD in
8279[\\/*] | ?:[\\/]*)
8280 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8281 ;;
8282*)
8283 lt_save_MAGIC_CMD="$MAGIC_CMD"
8284 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8285 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8286 for ac_dir in $ac_dummy; do
8287 IFS="$lt_save_ifs"
8288 test -z "$ac_dir" && ac_dir=.
8289 if test -f $ac_dir/${ac_tool_prefix}file; then
8290 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8291 if test -n "$file_magic_test_file"; then
8292 case $deplibs_check_method in
8293 "file_magic "*)
8294 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8296 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8297 $EGREP "$file_magic_regex" > /dev/null; then
8298 :
8299 else
8300 cat <<_LT_EOF 1>&2
8301
8302*** Warning: the command libtool uses to detect shared libraries,
8303*** $file_magic_cmd, produces output that libtool cannot recognize.
8304*** The result is that libtool may fail to recognize shared libraries
8305*** as such. This will affect the creation of libtool libraries that
8306*** depend on shared libraries, but programs linked with such libtool
8307*** libraries will work regardless of this problem. Nevertheless, you
8308*** may want to report the problem to your system manager and/or to
8309*** bug-libtool@gnu.org
8310
8311_LT_EOF
8312 fi ;;
8313 esac
8314 fi
8315 break
8316 fi
8317 done
8318 IFS="$lt_save_ifs"
8319 MAGIC_CMD="$lt_save_MAGIC_CMD"
8320 ;;
8321esac
8322fi
8323
8324MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8325if test -n "$MAGIC_CMD"; then
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8327$as_echo "$MAGIC_CMD" >&6; }
8328else
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
8331fi
8332
8333
8334
8335
8336
8337if test -z "$lt_cv_path_MAGIC_CMD"; then
8338 if test -n "$ac_tool_prefix"; then
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8340$as_echo_n "checking for file... " >&6; }
22e05272 8341if ${lt_cv_path_MAGIC_CMD+:} false; then :
eff02e4f
ILT
8342 $as_echo_n "(cached) " >&6
8343else
8344 case $MAGIC_CMD in
8345[\\/*] | ?:[\\/]*)
8346 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8347 ;;
8348*)
8349 lt_save_MAGIC_CMD="$MAGIC_CMD"
8350 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8351 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8352 for ac_dir in $ac_dummy; do
8353 IFS="$lt_save_ifs"
8354 test -z "$ac_dir" && ac_dir=.
8355 if test -f $ac_dir/file; then
8356 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8357 if test -n "$file_magic_test_file"; then
8358 case $deplibs_check_method in
8359 "file_magic "*)
8360 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8363 $EGREP "$file_magic_regex" > /dev/null; then
8364 :
8365 else
8366 cat <<_LT_EOF 1>&2
8367
8368*** Warning: the command libtool uses to detect shared libraries,
8369*** $file_magic_cmd, produces output that libtool cannot recognize.
8370*** The result is that libtool may fail to recognize shared libraries
8371*** as such. This will affect the creation of libtool libraries that
8372*** depend on shared libraries, but programs linked with such libtool
8373*** libraries will work regardless of this problem. Nevertheless, you
8374*** may want to report the problem to your system manager and/or to
8375*** bug-libtool@gnu.org
8376
8377_LT_EOF
8378 fi ;;
8379 esac
8380 fi
8381 break
8382 fi
8383 done
8384 IFS="$lt_save_ifs"
8385 MAGIC_CMD="$lt_save_MAGIC_CMD"
8386 ;;
8387esac
8388fi
8389
8390MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8391if test -n "$MAGIC_CMD"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8393$as_echo "$MAGIC_CMD" >&6; }
8394else
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8396$as_echo "no" >&6; }
8397fi
8398
8399
8400 else
8401 MAGIC_CMD=:
8402 fi
8403fi
8404
8405 fi
8406 ;;
8407esac
8408
8409# Use C for the default configuration in the libtool script
8410
8411lt_save_CC="$CC"
8412ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418
8419# Source file extension for C test sources.
8420ac_ext=c
8421
8422# Object file extension for compiled C test sources.
8423objext=o
8424objext=$objext
8425
8426# Code to be used in simple compile tests
8427lt_simple_compile_test_code="int some_variable = 0;"
8428
8429# Code to be used in simple link tests
8430lt_simple_link_test_code='int main(){return(0);}'
8431
8432
8433
8434
8435
8436
8437
8438# If no C compiler was specified, use CC.
8439LTCC=${LTCC-"$CC"}
8440
8441# If no C compiler flags were specified, use CFLAGS.
8442LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8443
8444# Allow CC to be a program name with arguments.
8445compiler=$CC
8446
8447# Save the default compiler, since it gets overwritten when the other
8448# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8449compiler_DEFAULT=$CC
8450
8451# save warnings/boilerplate of simple test code
8452ac_outfile=conftest.$ac_objext
8453echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8454eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8455_lt_compiler_boilerplate=`cat conftest.err`
8456$RM conftest*
8457
8458ac_outfile=conftest.$ac_objext
8459echo "$lt_simple_link_test_code" >conftest.$ac_ext
8460eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8461_lt_linker_boilerplate=`cat conftest.err`
8462$RM -r conftest*
8463
8464
8465## CAVEAT EMPTOR:
8466## There is no encapsulation within the following macros, do not change
8467## the running order or otherwise move them around unless you know exactly
8468## what you are doing...
8469if test -n "$compiler"; then
8470
8471lt_prog_compiler_no_builtin_flag=
8472
8473if test "$GCC" = yes; then
8474 case $cc_basename in
8475 nvcc*)
8476 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8477 *)
8478 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8479 esac
8480
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8482$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
22e05272 8483if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
eff02e4f
ILT
8484 $as_echo_n "(cached) " >&6
8485else
8486 lt_cv_prog_compiler_rtti_exceptions=no
8487 ac_outfile=conftest.$ac_objext
8488 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489 lt_compiler_flag="-fno-rtti -fno-exceptions"
8490 # Insert the option either (1) after the last *FLAGS variable, or
8491 # (2) before a word containing "conftest.", or (3) at the end.
8492 # Note that $ac_compile itself does not contain backslashes and begins
8493 # with a dollar sign (not a hyphen), so the echo should work correctly.
8494 # The option is referenced via a variable to avoid confusing sed.
8495 lt_compile=`echo "$ac_compile" | $SED \
8496 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498 -e 's:$: $lt_compiler_flag:'`
8499 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8500 (eval "$lt_compile" 2>conftest.err)
8501 ac_status=$?
8502 cat conftest.err >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 if (exit $ac_status) && test -s "$ac_outfile"; then
8505 # The compiler can only warn and ignore the option if not recognized
8506 # So say no if there are warnings other than the usual output.
8507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8508 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510 lt_cv_prog_compiler_rtti_exceptions=yes
8511 fi
8512 fi
8513 $RM conftest*
8514
8515fi
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8517$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8518
8519if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8520 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8521else
8522 :
8523fi
8524
8525fi
8526
8527
8528
8529
8530
8531
8532 lt_prog_compiler_wl=
8533lt_prog_compiler_pic=
8534lt_prog_compiler_static=
8535
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8537$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8538
8539 if test "$GCC" = yes; then
8540 lt_prog_compiler_wl='-Wl,'
8541 lt_prog_compiler_static='-static'
8542
8543 case $host_os in
8544 aix*)
8545 # All AIX code is PIC.
8546 if test "$host_cpu" = ia64; then
8547 # AIX 5 now supports IA64 processor
8548 lt_prog_compiler_static='-Bstatic'
8549 fi
772a71a9 8550 lt_prog_compiler_pic='-fPIC'
eff02e4f
ILT
8551 ;;
8552
8553 amigaos*)
8554 case $host_cpu in
8555 powerpc)
8556 # see comment about AmigaOS4 .so support
8557 lt_prog_compiler_pic='-fPIC'
8558 ;;
8559 m68k)
8560 # FIXME: we need at least 68020 code to build shared libraries, but
8561 # adding the `-m68020' flag to GCC prevents building anything better,
8562 # like `-m68040'.
8563 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8564 ;;
8565 esac
8566 ;;
8567
8568 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8569 # PIC is the default for these OSes.
8570 ;;
8571
8572 mingw* | cygwin* | pw32* | os2* | cegcc*)
8573 # This hack is so that the source file can tell whether it is being
8574 # built for inclusion in a dll (and should export symbols for example).
8575 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8576 # (--disable-auto-import) libraries
8577 lt_prog_compiler_pic='-DDLL_EXPORT'
8578 ;;
8579
8580 darwin* | rhapsody*)
8581 # PIC is the default on this platform
8582 # Common symbols not allowed in MH_DYLIB files
8583 lt_prog_compiler_pic='-fno-common'
8584 ;;
8585
8586 haiku*)
8587 # PIC is the default for Haiku.
8588 # The "-static" flag exists, but is broken.
8589 lt_prog_compiler_static=
8590 ;;
8591
8592 hpux*)
8593 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8594 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8595 # sets the default TLS model and affects inlining.
8596 case $host_cpu in
8597 hppa*64*)
8598 # +Z the default
8599 ;;
8600 *)
8601 lt_prog_compiler_pic='-fPIC'
8602 ;;
8603 esac
8604 ;;
8605
8606 interix[3-9]*)
8607 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8608 # Instead, we relocate shared libraries at runtime.
8609 ;;
8610
8611 msdosdjgpp*)
8612 # Just because we use GCC doesn't mean we suddenly get shared libraries
8613 # on systems that don't support them.
8614 lt_prog_compiler_can_build_shared=no
8615 enable_shared=no
8616 ;;
8617
8618 *nto* | *qnx*)
8619 # QNX uses GNU C++, but need to define -shared option too, otherwise
8620 # it will coredump.
8621 lt_prog_compiler_pic='-fPIC -shared'
8622 ;;
8623
8624 sysv4*MP*)
8625 if test -d /usr/nec; then
8626 lt_prog_compiler_pic=-Kconform_pic
8627 fi
8628 ;;
8629
8630 *)
8631 lt_prog_compiler_pic='-fPIC'
8632 ;;
8633 esac
8634
8635 case $cc_basename in
8636 nvcc*) # Cuda Compiler Driver 2.2
8637 lt_prog_compiler_wl='-Xlinker '
8638 lt_prog_compiler_pic='-Xcompiler -fPIC'
8639 ;;
8640 esac
8641 else
8642 # PORTME Check for flag to pass linker flags through the system compiler.
8643 case $host_os in
8644 aix*)
8645 lt_prog_compiler_wl='-Wl,'
8646 if test "$host_cpu" = ia64; then
8647 # AIX 5 now supports IA64 processor
8648 lt_prog_compiler_static='-Bstatic'
8649 else
8650 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8651 fi
8652 ;;
8653
8654 mingw* | cygwin* | pw32* | os2* | cegcc*)
8655 # This hack is so that the source file can tell whether it is being
8656 # built for inclusion in a dll (and should export symbols for example).
8657 lt_prog_compiler_pic='-DDLL_EXPORT'
8658 ;;
8659
8660 hpux9* | hpux10* | hpux11*)
8661 lt_prog_compiler_wl='-Wl,'
8662 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8663 # not for PA HP-UX.
8664 case $host_cpu in
8665 hppa*64*|ia64*)
8666 # +Z the default
8667 ;;
8668 *)
8669 lt_prog_compiler_pic='+Z'
8670 ;;
8671 esac
8672 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8673 lt_prog_compiler_static='${wl}-a ${wl}archive'
8674 ;;
8675
8676 irix5* | irix6* | nonstopux*)
8677 lt_prog_compiler_wl='-Wl,'
8678 # PIC (with -KPIC) is the default.
8679 lt_prog_compiler_static='-non_shared'
8680 ;;
8681
8682 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8683 case $cc_basename in
8684 # old Intel for x86_64 which still supported -KPIC.
8685 ecc*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-KPIC'
8688 lt_prog_compiler_static='-static'
8689 ;;
8690 # icc used to be incompatible with GCC.
8691 # ICC 10 doesn't accept -KPIC any more.
8692 icc* | ifort*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-fPIC'
8695 lt_prog_compiler_static='-static'
8696 ;;
8697 # Lahey Fortran 8.1.
8698 lf95*)
8699 lt_prog_compiler_wl='-Wl,'
8700 lt_prog_compiler_pic='--shared'
8701 lt_prog_compiler_static='--static'
8702 ;;
8703 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8704 # Portland Group compilers (*not* the Pentium gcc compiler,
8705 # which looks to be a dead project)
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_pic='-fpic'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710 ccc*)
8711 lt_prog_compiler_wl='-Wl,'
8712 # All Alpha code is PIC.
8713 lt_prog_compiler_static='-non_shared'
8714 ;;
8715 xl* | bgxl* | bgf* | mpixl*)
8716 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8717 lt_prog_compiler_wl='-Wl,'
8718 lt_prog_compiler_pic='-qpic'
8719 lt_prog_compiler_static='-qstaticlink'
8720 ;;
8721 *)
8722 case `$CC -V 2>&1 | sed 5q` in
8723 *Sun\ F* | *Sun*Fortran*)
8724 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8725 lt_prog_compiler_pic='-KPIC'
8726 lt_prog_compiler_static='-Bstatic'
8727 lt_prog_compiler_wl=''
8728 ;;
8729 *Sun\ C*)
8730 # Sun C 5.9
8731 lt_prog_compiler_pic='-KPIC'
8732 lt_prog_compiler_static='-Bstatic'
8733 lt_prog_compiler_wl='-Wl,'
8734 ;;
8735 esac
8736 ;;
8737 esac
8738 ;;
8739
8740 newsos6)
8741 lt_prog_compiler_pic='-KPIC'
8742 lt_prog_compiler_static='-Bstatic'
8743 ;;
8744
8745 *nto* | *qnx*)
8746 # QNX uses GNU C++, but need to define -shared option too, otherwise
8747 # it will coredump.
8748 lt_prog_compiler_pic='-fPIC -shared'
8749 ;;
8750
8751 osf3* | osf4* | osf5*)
8752 lt_prog_compiler_wl='-Wl,'
8753 # All OSF/1 code is PIC.
8754 lt_prog_compiler_static='-non_shared'
8755 ;;
8756
8757 rdos*)
8758 lt_prog_compiler_static='-non_shared'
8759 ;;
8760
8761 solaris*)
8762 lt_prog_compiler_pic='-KPIC'
8763 lt_prog_compiler_static='-Bstatic'
8764 case $cc_basename in
8765 f77* | f90* | f95*)
8766 lt_prog_compiler_wl='-Qoption ld ';;
8767 *)
8768 lt_prog_compiler_wl='-Wl,';;
8769 esac
8770 ;;
8771
8772 sunos4*)
8773 lt_prog_compiler_wl='-Qoption ld '
8774 lt_prog_compiler_pic='-PIC'
8775 lt_prog_compiler_static='-Bstatic'
8776 ;;
8777
8778 sysv4 | sysv4.2uw2* | sysv4.3*)
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-KPIC'
8781 lt_prog_compiler_static='-Bstatic'
8782 ;;
8783
8784 sysv4*MP*)
8785 if test -d /usr/nec ;then
8786 lt_prog_compiler_pic='-Kconform_pic'
8787 lt_prog_compiler_static='-Bstatic'
8788 fi
8789 ;;
8790
8791 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8792 lt_prog_compiler_wl='-Wl,'
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 ;;
8796
8797 unicos*)
8798 lt_prog_compiler_wl='-Wl,'
8799 lt_prog_compiler_can_build_shared=no
8800 ;;
8801
8802 uts4*)
8803 lt_prog_compiler_pic='-pic'
8804 lt_prog_compiler_static='-Bstatic'
8805 ;;
8806
8807 *)
8808 lt_prog_compiler_can_build_shared=no
8809 ;;
8810 esac
8811 fi
8812
8813case $host_os in
8814 # For platforms which do not support PIC, -DPIC is meaningless:
8815 *djgpp*)
8816 lt_prog_compiler_pic=
8817 ;;
8818 *)
8819 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8820 ;;
8821esac
8822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8823$as_echo "$lt_prog_compiler_pic" >&6; }
8824
8825
8826
8827
8828
8829
8830#
8831# Check to make sure the PIC flag actually works.
8832#
8833if test -n "$lt_prog_compiler_pic"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8835$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
22e05272 8836if ${lt_cv_prog_compiler_pic_works+:} false; then :
eff02e4f
ILT
8837 $as_echo_n "(cached) " >&6
8838else
8839 lt_cv_prog_compiler_pic_works=no
8840 ac_outfile=conftest.$ac_objext
8841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8842 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8843 # Insert the option either (1) after the last *FLAGS variable, or
8844 # (2) before a word containing "conftest.", or (3) at the end.
8845 # Note that $ac_compile itself does not contain backslashes and begins
8846 # with a dollar sign (not a hyphen), so the echo should work correctly.
8847 # The option is referenced via a variable to avoid confusing sed.
8848 lt_compile=`echo "$ac_compile" | $SED \
8849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8851 -e 's:$: $lt_compiler_flag:'`
8852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8853 (eval "$lt_compile" 2>conftest.err)
8854 ac_status=$?
8855 cat conftest.err >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 if (exit $ac_status) && test -s "$ac_outfile"; then
8858 # The compiler can only warn and ignore the option if not recognized
8859 # So say no if there are warnings other than the usual output.
8860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8863 lt_cv_prog_compiler_pic_works=yes
8864 fi
8865 fi
8866 $RM conftest*
8867
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8870$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8871
8872if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8873 case $lt_prog_compiler_pic in
8874 "" | " "*) ;;
8875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8876 esac
8877else
8878 lt_prog_compiler_pic=
8879 lt_prog_compiler_can_build_shared=no
8880fi
8881
8882fi
8883
8884
8885
8886
8887
8888
8889#
8890# Check to make sure the static flag actually works.
8891#
8892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22e05272 8895if ${lt_cv_prog_compiler_static_works+:} false; then :
eff02e4f
ILT
8896 $as_echo_n "(cached) " >&6
8897else
8898 lt_cv_prog_compiler_static_works=no
8899 save_LDFLAGS="$LDFLAGS"
8900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8901 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8903 # The linker can only warn and ignore the option if not recognized
8904 # So say no if there are warnings
8905 if test -s conftest.err; then
8906 # Append any errors to the config.log.
8907 cat conftest.err 1>&5
8908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8910 if diff conftest.exp conftest.er2 >/dev/null; then
8911 lt_cv_prog_compiler_static_works=yes
8912 fi
8913 else
8914 lt_cv_prog_compiler_static_works=yes
8915 fi
8916 fi
8917 $RM -r conftest*
8918 LDFLAGS="$save_LDFLAGS"
8919
8920fi
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8922$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8923
8924if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8925 :
8926else
8927 lt_prog_compiler_static=
8928fi
8929
8930
8931
8932
8933
8934
8935
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8938if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8939 $as_echo_n "(cached) " >&6
8940else
8941 lt_cv_prog_compiler_c_o=no
8942 $RM -r conftest 2>/dev/null
8943 mkdir conftest
8944 cd conftest
8945 mkdir out
8946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8947
8948 lt_compiler_flag="-o out/conftest2.$ac_objext"
8949 # Insert the option either (1) after the last *FLAGS variable, or
8950 # (2) before a word containing "conftest.", or (3) at the end.
8951 # Note that $ac_compile itself does not contain backslashes and begins
8952 # with a dollar sign (not a hyphen), so the echo should work correctly.
8953 lt_compile=`echo "$ac_compile" | $SED \
8954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8956 -e 's:$: $lt_compiler_flag:'`
8957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8958 (eval "$lt_compile" 2>out/conftest.err)
8959 ac_status=$?
8960 cat out/conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8963 then
8964 # The compiler can only warn and ignore the option if not recognized
8965 # So say no if there are warnings
8966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8969 lt_cv_prog_compiler_c_o=yes
8970 fi
8971 fi
8972 chmod u+w . 2>&5
8973 $RM conftest*
8974 # SGI C++ compiler will create directory out/ii_files/ for
8975 # template instantiation
8976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8977 $RM out/* && rmdir out
8978 cd ..
8979 $RM -r conftest
8980 $RM conftest*
8981
8982fi
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8984$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8985
8986
8987
8988
8989
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22e05272 8993if ${lt_cv_prog_compiler_c_o+:} false; then :
eff02e4f
ILT
8994 $as_echo_n "(cached) " >&6
8995else
8996 lt_cv_prog_compiler_c_o=no
8997 $RM -r conftest 2>/dev/null
8998 mkdir conftest
8999 cd conftest
9000 mkdir out
9001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002
9003 lt_compiler_flag="-o out/conftest2.$ac_objext"
9004 # Insert the option either (1) after the last *FLAGS variable, or
9005 # (2) before a word containing "conftest.", or (3) at the end.
9006 # Note that $ac_compile itself does not contain backslashes and begins
9007 # with a dollar sign (not a hyphen), so the echo should work correctly.
9008 lt_compile=`echo "$ac_compile" | $SED \
9009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011 -e 's:$: $lt_compiler_flag:'`
9012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013 (eval "$lt_compile" 2>out/conftest.err)
9014 ac_status=$?
9015 cat out/conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9018 then
9019 # The compiler can only warn and ignore the option if not recognized
9020 # So say no if there are warnings
9021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9024 lt_cv_prog_compiler_c_o=yes
9025 fi
9026 fi
9027 chmod u+w . 2>&5
9028 $RM conftest*
9029 # SGI C++ compiler will create directory out/ii_files/ for
9030 # template instantiation
9031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9032 $RM out/* && rmdir out
9033 cd ..
9034 $RM -r conftest
9035 $RM conftest*
9036
9037fi
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9039$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9040
9041
9042
9043
9044hard_links="nottested"
9045if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9046 # do not overwrite the value of need_locks provided by the user
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9048$as_echo_n "checking if we can lock with hard links... " >&6; }
9049 hard_links=yes
9050 $RM conftest*
9051 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9052 touch conftest.a
9053 ln conftest.a conftest.b 2>&5 || hard_links=no
9054 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9056$as_echo "$hard_links" >&6; }
9057 if test "$hard_links" = no; then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9060 need_locks=warn
9061 fi
9062else
9063 need_locks=no
9064fi
9065
9066
9067
9068
9069
9070
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9072$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9073
9074 runpath_var=
9075 allow_undefined_flag=
9076 always_export_symbols=no
9077 archive_cmds=
9078 archive_expsym_cmds=
9079 compiler_needs_object=no
9080 enable_shared_with_static_runtimes=no
9081 export_dynamic_flag_spec=
9082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9083 hardcode_automatic=no
9084 hardcode_direct=no
9085 hardcode_direct_absolute=no
9086 hardcode_libdir_flag_spec=
9087 hardcode_libdir_flag_spec_ld=
9088 hardcode_libdir_separator=
9089 hardcode_minus_L=no
9090 hardcode_shlibpath_var=unsupported
9091 inherit_rpath=no
9092 link_all_deplibs=unknown
9093 module_cmds=
9094 module_expsym_cmds=
9095 old_archive_from_new_cmds=
9096 old_archive_from_expsyms_cmds=
9097 thread_safe_flag_spec=
9098 whole_archive_flag_spec=
9099 # include_expsyms should be a list of space-separated symbols to be *always*
9100 # included in the symbol list
9101 include_expsyms=
9102 # exclude_expsyms can be an extended regexp of symbols to exclude
9103 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9104 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9105 # as well as any symbol that contains `d'.
9106 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9107 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9108 # platforms (ab)use it in PIC code, but their linkers get confused if
9109 # the symbol is explicitly referenced. Since portable code cannot
9110 # rely on this symbol name, it's probably fine to never include it in
9111 # preloaded symbol tables.
9112 # Exclude shared library initialization/finalization symbols.
9113 extract_expsyms_cmds=
9114
9115 case $host_os in
9116 cygwin* | mingw* | pw32* | cegcc*)
9117 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9118 # When not using gcc, we currently assume that we are using
9119 # Microsoft Visual C++.
9120 if test "$GCC" != yes; then
9121 with_gnu_ld=no
9122 fi
9123 ;;
9124 interix*)
9125 # we just hope/assume this is gcc and not c89 (= MSVC++)
9126 with_gnu_ld=yes
9127 ;;
9128 openbsd*)
9129 with_gnu_ld=no
9130 ;;
9131 esac
9132
9133 ld_shlibs=yes
9134
9135 # On some targets, GNU ld is compatible enough with the native linker
9136 # that we're better off using the native interface for both.
9137 lt_use_gnu_ld_interface=no
9138 if test "$with_gnu_ld" = yes; then
9139 case $host_os in
9140 aix*)
9141 # The AIX port of GNU ld has always aspired to compatibility
9142 # with the native linker. However, as the warning in the GNU ld
9143 # block says, versions before 2.19.5* couldn't really create working
9144 # shared libraries, regardless of the interface used.
9145 case `$LD -v 2>&1` in
9146 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9147 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9148 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9149 *)
9150 lt_use_gnu_ld_interface=yes
9151 ;;
9152 esac
9153 ;;
9154 *)
9155 lt_use_gnu_ld_interface=yes
9156 ;;
9157 esac
9158 fi
9159
9160 if test "$lt_use_gnu_ld_interface" = yes; then
9161 # If archive_cmds runs LD, not CC, wlarc should be empty
9162 wlarc='${wl}'
9163
9164 # Set some defaults for GNU ld with shared library support. These
9165 # are reset later if shared libraries are not supported. Putting them
9166 # here allows them to be overridden if necessary.
9167 runpath_var=LD_RUN_PATH
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 export_dynamic_flag_spec='${wl}--export-dynamic'
9170 # ancient GNU ld didn't support --whole-archive et. al.
9171 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9172 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9173 else
9174 whole_archive_flag_spec=
9175 fi
9176 supports_anon_versioning=no
9177 case `$LD -v 2>&1` in
9178 *GNU\ gold*) supports_anon_versioning=yes ;;
9179 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9180 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9181 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9182 *\ 2.11.*) ;; # other 2.11 versions
9183 *) supports_anon_versioning=yes ;;
9184 esac
9185
9186 # See if GNU ld supports shared libraries.
9187 case $host_os in
9188 aix[3-9]*)
9189 # On AIX/PPC, the GNU linker is very broken
9190 if test "$host_cpu" != ia64; then
9191 ld_shlibs=no
9192 cat <<_LT_EOF 1>&2
9193
9194*** Warning: the GNU linker, at least up to release 2.19, is reported
9195*** to be unable to reliably create shared libraries on AIX.
9196*** Therefore, libtool is disabling shared libraries support. If you
9197*** really care for shared libraries, you may want to install binutils
9198*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9199*** You will then need to restart the configuration process.
9200
9201_LT_EOF
9202 fi
9203 ;;
9204
9205 amigaos*)
9206 case $host_cpu in
9207 powerpc)
9208 # see comment about AmigaOS4 .so support
9209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9210 archive_expsym_cmds=''
9211 ;;
9212 m68k)
9213 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)'
9214 hardcode_libdir_flag_spec='-L$libdir'
9215 hardcode_minus_L=yes
9216 ;;
9217 esac
9218 ;;
9219
9220 beos*)
9221 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9222 allow_undefined_flag=unsupported
9223 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9224 # support --undefined. This deserves some investigation. FIXME
9225 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 else
9227 ld_shlibs=no
9228 fi
9229 ;;
9230
9231 cygwin* | mingw* | pw32* | cegcc*)
9232 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9233 # as there is no search path for DLLs.
9234 hardcode_libdir_flag_spec='-L$libdir'
9235 export_dynamic_flag_spec='${wl}--export-all-symbols'
9236 allow_undefined_flag=unsupported
9237 always_export_symbols=no
9238 enable_shared_with_static_runtimes=yes
9239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9240
9241 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9243 # If the export-symbols file already is a .def file (1st line
9244 # is EXPORTS), use it as is; otherwise, prepend...
9245 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9246 cp $export_symbols $output_objdir/$soname.def;
9247 else
9248 echo EXPORTS > $output_objdir/$soname.def;
9249 cat $export_symbols >> $output_objdir/$soname.def;
9250 fi~
9251 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9252 else
9253 ld_shlibs=no
9254 fi
9255 ;;
9256
9257 haiku*)
9258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259 link_all_deplibs=yes
9260 ;;
9261
9262 interix[3-9]*)
9263 hardcode_direct=no
9264 hardcode_shlibpath_var=no
9265 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9266 export_dynamic_flag_spec='${wl}-E'
9267 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9268 # Instead, shared libraries are loaded at an image base (0x10000000 by
9269 # default) and relocated if they conflict, which is a slow very memory
9270 # consuming and fragmenting process. To avoid this, we pick a random,
9271 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9272 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9273 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9274 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'
9275 ;;
9276
e9085da5 9277 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
9278 tmp_diet=no
9279 if test "$host_os" = linux-dietlibc; then
9280 case $cc_basename in
9281 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9282 esac
9283 fi
9284 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9285 && test "$tmp_diet" = no
9286 then
a699d672 9287 tmp_addflag=' $pic_flag'
eff02e4f
ILT
9288 tmp_sharedflag='-shared'
9289 case $cc_basename,$host_cpu in
9290 pgcc*) # Portland Group C compiler
9291 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'
9292 tmp_addflag=' $pic_flag'
9293 ;;
9294 pgf77* | pgf90* | pgf95* | pgfortran*)
9295 # Portland Group f77 and f90 compilers
9296 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'
9297 tmp_addflag=' $pic_flag -Mnomain' ;;
9298 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9299 tmp_addflag=' -i_dynamic' ;;
9300 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9301 tmp_addflag=' -i_dynamic -nofor_main' ;;
9302 ifc* | ifort*) # Intel Fortran compiler
9303 tmp_addflag=' -nofor_main' ;;
9304 lf95*) # Lahey Fortran 8.1
9305 whole_archive_flag_spec=
9306 tmp_sharedflag='--shared' ;;
9307 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9308 tmp_sharedflag='-qmkshrobj'
9309 tmp_addflag= ;;
9310 nvcc*) # Cuda Compiler Driver 2.2
9311 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9312 compiler_needs_object=yes
9313 ;;
9314 esac
9315 case `$CC -V 2>&1 | sed 5q` in
9316 *Sun\ C*) # Sun C 5.9
9317 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'
9318 compiler_needs_object=yes
9319 tmp_sharedflag='-G' ;;
9320 *Sun\ F*) # Sun Fortran 8.3
9321 tmp_sharedflag='-G' ;;
9322 esac
9323 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324
9325 if test "x$supports_anon_versioning" = xyes; then
9326 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9327 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9328 echo "local: *; };" >> $output_objdir/$libname.ver~
9329 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9330 fi
9331
9332 case $cc_basename in
9333 xlf* | bgf* | bgxlf* | mpixlf*)
9334 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9335 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9336 hardcode_libdir_flag_spec=
9337 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9338 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9339 if test "x$supports_anon_versioning" = xyes; then
9340 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9341 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9342 echo "local: *; };" >> $output_objdir/$libname.ver~
9343 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9344 fi
9345 ;;
9346 esac
9347 else
9348 ld_shlibs=no
9349 fi
9350 ;;
9351
9352 netbsd*)
9353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9354 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9355 wlarc=
9356 else
9357 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9358 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9359 fi
9360 ;;
9361
9362 solaris*)
9363 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9364 ld_shlibs=no
9365 cat <<_LT_EOF 1>&2
9366
9367*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9368*** create shared libraries on Solaris systems. Therefore, libtool
9369*** is disabling shared libraries support. We urge you to upgrade GNU
9370*** binutils to release 2.9.1 or newer. Another option is to modify
9371*** your PATH or compiler configuration so that the native linker is
9372*** used, and then restart.
9373
9374_LT_EOF
9375 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9377 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9378 else
9379 ld_shlibs=no
9380 fi
9381 ;;
9382
9383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9384 case `$LD -v 2>&1` in
9385 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386 ld_shlibs=no
9387 cat <<_LT_EOF 1>&2
9388
9389*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9390*** reliably create shared libraries on SCO systems. Therefore, libtool
9391*** is disabling shared libraries support. We urge you to upgrade GNU
9392*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9393*** your PATH or compiler configuration so that the native linker is
9394*** used, and then restart.
9395
9396_LT_EOF
9397 ;;
9398 *)
9399 # For security reasons, it is highly recommended that you always
9400 # use absolute paths for naming shared libraries, and exclude the
9401 # DT_RUNPATH tag from executables and libraries. But doing so
9402 # requires that you compile everything twice, which is a pain.
9403 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9404 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9405 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9406 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9407 else
9408 ld_shlibs=no
9409 fi
9410 ;;
9411 esac
9412 ;;
9413
9414 sunos4*)
9415 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9416 wlarc=
9417 hardcode_direct=yes
9418 hardcode_shlibpath_var=no
9419 ;;
9420
9421 *)
9422 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9423 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9424 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9425 else
9426 ld_shlibs=no
9427 fi
9428 ;;
9429 esac
9430
9431 if test "$ld_shlibs" = no; then
9432 runpath_var=
9433 hardcode_libdir_flag_spec=
9434 export_dynamic_flag_spec=
9435 whole_archive_flag_spec=
9436 fi
9437 else
9438 # PORTME fill in a description of your system's linker (not GNU ld)
9439 case $host_os in
9440 aix3*)
9441 allow_undefined_flag=unsupported
9442 always_export_symbols=yes
9443 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'
9444 # Note: this linker hardcodes the directories in LIBPATH if there
9445 # are no directories specified by -L.
9446 hardcode_minus_L=yes
9447 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9448 # Neither direct hardcoding nor static linking is supported with a
9449 # broken collect2.
9450 hardcode_direct=unsupported
9451 fi
9452 ;;
9453
9454 aix[4-9]*)
9455 if test "$host_cpu" = ia64; then
9456 # On IA64, the linker does run time linking by default, so we don't
9457 # have to do anything special.
9458 aix_use_runtimelinking=no
9459 exp_sym_flag='-Bexport'
9460 no_entry_flag=""
9461 else
9462 # If we're using GNU nm, then we don't want the "-C" option.
9463 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9464 # Also, AIX nm treats weak defined symbols like other global
9465 # defined symbols, whereas GNU nm marks them as "W".
9466 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9467 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'
9468 else
2f401a8f 9469 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
9470 fi
9471 aix_use_runtimelinking=no
9472
9473 # Test if we are trying to use run time linking or normal
9474 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9475 # need to do runtime linking.
9476 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9477 for ld_flag in $LDFLAGS; do
9478 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9479 aix_use_runtimelinking=yes
9480 break
9481 fi
9482 done
9483 ;;
9484 esac
9485
9486 exp_sym_flag='-bexport'
9487 no_entry_flag='-bnoentry'
9488 fi
9489
9490 # When large executables or shared objects are built, AIX ld can
9491 # have problems creating the table of contents. If linking a library
9492 # or program results in "error TOC overflow" add -mminimal-toc to
9493 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9494 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9495
9496 archive_cmds=''
9497 hardcode_direct=yes
9498 hardcode_direct_absolute=yes
9499 hardcode_libdir_separator=':'
9500 link_all_deplibs=yes
9501 file_list_spec='${wl}-f,'
9502
9503 if test "$GCC" = yes; then
9504 case $host_os in aix4.[012]|aix4.[012].*)
9505 # We only want to do this on AIX 4.2 and lower, the check
9506 # below for broken collect2 doesn't work under 4.3+
9507 collect2name=`${CC} -print-prog-name=collect2`
9508 if test -f "$collect2name" &&
9509 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9510 then
9511 # We have reworked collect2
9512 :
9513 else
9514 # We have old collect2
9515 hardcode_direct=unsupported
9516 # It fails to find uninstalled libraries when the uninstalled
9517 # path is not listed in the libpath. Setting hardcode_minus_L
9518 # to unsupported forces relinking
9519 hardcode_minus_L=yes
9520 hardcode_libdir_flag_spec='-L$libdir'
9521 hardcode_libdir_separator=
9522 fi
9523 ;;
9524 esac
9525 shared_flag='-shared'
9526 if test "$aix_use_runtimelinking" = yes; then
9527 shared_flag="$shared_flag "'${wl}-G'
9528 fi
9529 else
9530 # not using gcc
9531 if test "$host_cpu" = ia64; then
9532 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9533 # chokes on -Wl,-G. The following line is correct:
9534 shared_flag='-G'
9535 else
9536 if test "$aix_use_runtimelinking" = yes; then
9537 shared_flag='${wl}-G'
9538 else
9539 shared_flag='${wl}-bM:SRE'
9540 fi
9541 fi
9542 fi
9543
9544 export_dynamic_flag_spec='${wl}-bexpall'
9545 # It seems that -bexpall does not export symbols beginning with
9546 # underscore (_), so it is better to generate a list of symbols to export.
9547 always_export_symbols=yes
9548 if test "$aix_use_runtimelinking" = yes; then
9549 # Warning - without using the other runtime loading flags (-brtl),
9550 # -berok will link without error, but may produce a broken library.
9551 allow_undefined_flag='-berok'
9552 # Determine the default libpath from the value encoded in an
9553 # empty executable.
9554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9555/* end confdefs.h. */
9556
9557int
9558main ()
9559{
9560
9561 ;
9562 return 0;
9563}
9564_ACEOF
9565if ac_fn_c_try_link "$LINENO"; then :
9566
9567lt_aix_libpath_sed='
9568 /Import File Strings/,/^$/ {
9569 /^0/ {
9570 s/^0 *\(.*\)$/\1/
9571 p
9572 }
9573 }'
9574aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9575# Check for a 64-bit object if we didn't find anything.
9576if test -z "$aix_libpath"; then
9577 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9578fi
9579fi
9580rm -f core conftest.err conftest.$ac_objext \
9581 conftest$ac_exeext conftest.$ac_ext
9582if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9583
9584 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9585 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"
9586 else
9587 if test "$host_cpu" = ia64; then
9588 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9589 allow_undefined_flag="-z nodefs"
9590 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"
9591 else
9592 # Determine the default libpath from the value encoded in an
9593 # empty executable.
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595/* end confdefs.h. */
9596
9597int
9598main ()
9599{
9600
9601 ;
9602 return 0;
9603}
9604_ACEOF
9605if ac_fn_c_try_link "$LINENO"; then :
9606
9607lt_aix_libpath_sed='
9608 /Import File Strings/,/^$/ {
9609 /^0/ {
9610 s/^0 *\(.*\)$/\1/
9611 p
9612 }
9613 }'
9614aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615# Check for a 64-bit object if we didn't find anything.
9616if test -z "$aix_libpath"; then
9617 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618fi
9619fi
9620rm -f core conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9623
9624 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9625 # Warning - without using the other run time loading flags,
9626 # -berok will link without error, but may produce a broken library.
9627 no_undefined_flag=' ${wl}-bernotok'
9628 allow_undefined_flag=' ${wl}-berok'
9629 if test "$with_gnu_ld" = yes; then
9630 # We only use this code for GNU lds that support --whole-archive.
9631 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9632 else
9633 # Exported symbols can be pulled into shared objects from archives
9634 whole_archive_flag_spec='$convenience'
9635 fi
9636 archive_cmds_need_lc=yes
9637 # This is similar to how AIX traditionally builds its shared libraries.
9638 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'
9639 fi
9640 fi
9641 ;;
9642
9643 amigaos*)
9644 case $host_cpu in
9645 powerpc)
9646 # see comment about AmigaOS4 .so support
9647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9648 archive_expsym_cmds=''
9649 ;;
9650 m68k)
9651 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)'
9652 hardcode_libdir_flag_spec='-L$libdir'
9653 hardcode_minus_L=yes
9654 ;;
9655 esac
9656 ;;
9657
9658 bsdi[45]*)
9659 export_dynamic_flag_spec=-rdynamic
9660 ;;
9661
9662 cygwin* | mingw* | pw32* | cegcc*)
9663 # When not using gcc, we currently assume that we are using
9664 # Microsoft Visual C++.
9665 # hardcode_libdir_flag_spec is actually meaningless, as there is
9666 # no search path for DLLs.
9667 hardcode_libdir_flag_spec=' '
9668 allow_undefined_flag=unsupported
9669 # Tell ltmain to make .lib files, not .a files.
9670 libext=lib
9671 # Tell ltmain to make .dll files, not .so files.
9672 shrext_cmds=".dll"
9673 # FIXME: Setting linknames here is a bad hack.
9674 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9675 # The linker will automatically build a .lib file if we build a DLL.
9676 old_archive_from_new_cmds='true'
9677 # FIXME: Should let the user specify the lib program.
9678 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9679 fix_srcfile_path='`cygpath -w "$srcfile"`'
9680 enable_shared_with_static_runtimes=yes
9681 ;;
9682
9683 darwin* | rhapsody*)
9684
9685
9686 archive_cmds_need_lc=no
9687 hardcode_direct=no
9688 hardcode_automatic=yes
9689 hardcode_shlibpath_var=unsupported
9690 if test "$lt_cv_ld_force_load" = "yes"; then
9691 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\"`'
9692 else
9693 whole_archive_flag_spec=''
9694 fi
9695 link_all_deplibs=yes
9696 allow_undefined_flag="$_lt_dar_allow_undefined"
9697 case $cc_basename in
9698 ifort*) _lt_dar_can_shared=yes ;;
9699 *) _lt_dar_can_shared=$GCC ;;
9700 esac
9701 if test "$_lt_dar_can_shared" = "yes"; then
9702 output_verbose_link_cmd=func_echo_all
9703 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9704 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9705 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}"
9706 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}"
9707
9708 else
9709 ld_shlibs=no
9710 fi
9711
9712 ;;
9713
9714 dgux*)
9715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9716 hardcode_libdir_flag_spec='-L$libdir'
9717 hardcode_shlibpath_var=no
9718 ;;
9719
9720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9721 # support. Future versions do this automatically, but an explicit c++rt0.o
9722 # does not break anything, and helps significantly (at the cost of a little
9723 # extra space).
9724 freebsd2.2*)
9725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9726 hardcode_libdir_flag_spec='-R$libdir'
9727 hardcode_direct=yes
9728 hardcode_shlibpath_var=no
9729 ;;
9730
9731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9732 freebsd2.*)
9733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9734 hardcode_direct=yes
9735 hardcode_minus_L=yes
9736 hardcode_shlibpath_var=no
9737 ;;
9738
9739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9740 freebsd* | dragonfly*)
9741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9742 hardcode_libdir_flag_spec='-R$libdir'
9743 hardcode_direct=yes
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 hpux9*)
9748 if test "$GCC" = yes; then
9749 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'
9750 else
9751 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'
9752 fi
9753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9754 hardcode_libdir_separator=:
9755 hardcode_direct=yes
9756
9757 # hardcode_minus_L: Not really in the search PATH,
9758 # but as the default location of the library.
9759 hardcode_minus_L=yes
9760 export_dynamic_flag_spec='${wl}-E'
9761 ;;
9762
9763 hpux10*)
9764 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9765 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9766 else
9767 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9768 fi
9769 if test "$with_gnu_ld" = no; then
9770 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9771 hardcode_libdir_flag_spec_ld='+b $libdir'
9772 hardcode_libdir_separator=:
9773 hardcode_direct=yes
9774 hardcode_direct_absolute=yes
9775 export_dynamic_flag_spec='${wl}-E'
9776 # hardcode_minus_L: Not really in the search PATH,
9777 # but as the default location of the library.
9778 hardcode_minus_L=yes
9779 fi
9780 ;;
9781
9782 hpux11*)
9783 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9784 case $host_cpu in
9785 hppa*64*)
9786 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9787 ;;
9788 ia64*)
9789 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9790 ;;
9791 *)
9792 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9793 ;;
9794 esac
9795 else
9796 case $host_cpu in
9797 hppa*64*)
9798 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 ia64*)
9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 *)
9804
9805 # Older versions of the 11.00 compiler do not understand -b yet
9806 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9808$as_echo_n "checking if $CC understands -b... " >&6; }
22e05272 9809if ${lt_cv_prog_compiler__b+:} false; then :
eff02e4f
ILT
9810 $as_echo_n "(cached) " >&6
9811else
9812 lt_cv_prog_compiler__b=no
9813 save_LDFLAGS="$LDFLAGS"
9814 LDFLAGS="$LDFLAGS -b"
9815 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9817 # The linker can only warn and ignore the option if not recognized
9818 # So say no if there are warnings
9819 if test -s conftest.err; then
9820 # Append any errors to the config.log.
9821 cat conftest.err 1>&5
9822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9824 if diff conftest.exp conftest.er2 >/dev/null; then
9825 lt_cv_prog_compiler__b=yes
9826 fi
9827 else
9828 lt_cv_prog_compiler__b=yes
9829 fi
9830 fi
9831 $RM -r conftest*
9832 LDFLAGS="$save_LDFLAGS"
9833
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9836$as_echo "$lt_cv_prog_compiler__b" >&6; }
9837
9838if test x"$lt_cv_prog_compiler__b" = xyes; then
9839 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840else
9841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9842fi
9843
9844 ;;
9845 esac
9846 fi
9847 if test "$with_gnu_ld" = no; then
9848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9849 hardcode_libdir_separator=:
9850
9851 case $host_cpu in
9852 hppa*64*|ia64*)
9853 hardcode_direct=no
9854 hardcode_shlibpath_var=no
9855 ;;
9856 *)
9857 hardcode_direct=yes
9858 hardcode_direct_absolute=yes
9859 export_dynamic_flag_spec='${wl}-E'
9860
9861 # hardcode_minus_L: Not really in the search PATH,
9862 # but as the default location of the library.
9863 hardcode_minus_L=yes
9864 ;;
9865 esac
9866 fi
9867 ;;
9868
9869 irix5* | irix6* | nonstopux*)
9870 if test "$GCC" = yes; then
9871 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'
9872 # Try to use the -exported_symbol ld option, if it does not
9873 # work, assume that -exports_file does not work either and
9874 # implicitly export all symbols.
9875 save_LDFLAGS="$LDFLAGS"
9876 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878/* end confdefs.h. */
9879int foo(void) {}
9880_ACEOF
9881if ac_fn_c_try_link "$LINENO"; then :
9882 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'
9883
9884fi
9885rm -f core conftest.err conftest.$ac_objext \
9886 conftest$ac_exeext conftest.$ac_ext
9887 LDFLAGS="$save_LDFLAGS"
9888 else
9889 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'
9890 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'
9891 fi
9892 archive_cmds_need_lc='no'
9893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9894 hardcode_libdir_separator=:
9895 inherit_rpath=yes
9896 link_all_deplibs=yes
9897 ;;
9898
9899 netbsd*)
9900 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9901 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9902 else
9903 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9904 fi
9905 hardcode_libdir_flag_spec='-R$libdir'
9906 hardcode_direct=yes
9907 hardcode_shlibpath_var=no
9908 ;;
9909
9910 newsos6)
9911 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9912 hardcode_direct=yes
9913 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9914 hardcode_libdir_separator=:
9915 hardcode_shlibpath_var=no
9916 ;;
9917
9918 *nto* | *qnx*)
9919 ;;
9920
9921 openbsd*)
9922 if test -f /usr/libexec/ld.so; then
9923 hardcode_direct=yes
9924 hardcode_shlibpath_var=no
9925 hardcode_direct_absolute=yes
9926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9929 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9930 export_dynamic_flag_spec='${wl}-E'
9931 else
9932 case $host_os in
9933 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_libdir_flag_spec='-R$libdir'
9936 ;;
9937 *)
9938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9939 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9940 ;;
9941 esac
9942 fi
9943 else
9944 ld_shlibs=no
9945 fi
9946 ;;
9947
9948 os2*)
9949 hardcode_libdir_flag_spec='-L$libdir'
9950 hardcode_minus_L=yes
9951 allow_undefined_flag=unsupported
9952 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'
9953 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9954 ;;
9955
9956 osf3*)
9957 if test "$GCC" = yes; then
9958 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9959 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'
9960 else
9961 allow_undefined_flag=' -expect_unresolved \*'
9962 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'
9963 fi
9964 archive_cmds_need_lc='no'
9965 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9966 hardcode_libdir_separator=:
9967 ;;
9968
9969 osf4* | osf5*) # as osf3* with the addition of -msym flag
9970 if test "$GCC" = yes; then
9971 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9972 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'
9973 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 else
9975 allow_undefined_flag=' -expect_unresolved \*'
9976 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'
9977 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~
9978 $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'
9979
9980 # Both c and cxx compiler support -rpath directly
9981 hardcode_libdir_flag_spec='-rpath $libdir'
9982 fi
9983 archive_cmds_need_lc='no'
9984 hardcode_libdir_separator=:
9985 ;;
9986
9987 solaris*)
9988 no_undefined_flag=' -z defs'
9989 if test "$GCC" = yes; then
9990 wlarc='${wl}'
9991 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9993 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9994 else
9995 case `$CC -V 2>&1` in
9996 *"Compilers 5.0"*)
9997 wlarc=''
9998 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10000 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10001 ;;
10002 *)
10003 wlarc='${wl}'
10004 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10005 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10006 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10007 ;;
10008 esac
10009 fi
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_shlibpath_var=no
10012 case $host_os in
10013 solaris2.[0-5] | solaris2.[0-5].*) ;;
10014 *)
10015 # The compiler driver will combine and reorder linker options,
10016 # but understands `-z linker_flag'. GCC discards it without `$wl',
10017 # but is careful enough not to reorder.
10018 # Supported since Solaris 2.6 (maybe 2.5.1?)
10019 if test "$GCC" = yes; then
10020 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10021 else
10022 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10023 fi
10024 ;;
10025 esac
10026 link_all_deplibs=yes
10027 ;;
10028
10029 sunos4*)
10030 if test "x$host_vendor" = xsequent; then
10031 # Use $CC to link under sequent, because it throws in some extra .o
10032 # files that make .init and .fini sections work.
10033 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10034 else
10035 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10036 fi
10037 hardcode_libdir_flag_spec='-L$libdir'
10038 hardcode_direct=yes
10039 hardcode_minus_L=yes
10040 hardcode_shlibpath_var=no
10041 ;;
10042
10043 sysv4)
10044 case $host_vendor in
10045 sni)
10046 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047 hardcode_direct=yes # is this really true???
10048 ;;
10049 siemens)
10050 ## LD is ld it makes a PLAMLIB
10051 ## CC just makes a GrossModule.
10052 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10053 reload_cmds='$CC -r -o $output$reload_objs'
10054 hardcode_direct=no
10055 ;;
10056 motorola)
10057 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10058 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10059 ;;
10060 esac
10061 runpath_var='LD_RUN_PATH'
10062 hardcode_shlibpath_var=no
10063 ;;
10064
10065 sysv4.3*)
10066 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10067 hardcode_shlibpath_var=no
10068 export_dynamic_flag_spec='-Bexport'
10069 ;;
10070
10071 sysv4*MP*)
10072 if test -d /usr/nec; then
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_shlibpath_var=no
10075 runpath_var=LD_RUN_PATH
10076 hardcode_runpath_var=yes
10077 ld_shlibs=yes
10078 fi
10079 ;;
10080
10081 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10082 no_undefined_flag='${wl}-z,text'
10083 archive_cmds_need_lc=no
10084 hardcode_shlibpath_var=no
10085 runpath_var='LD_RUN_PATH'
10086
10087 if test "$GCC" = yes; then
10088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 else
10091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 fi
10094 ;;
10095
10096 sysv5* | sco3.2v5* | sco5v6*)
10097 # Note: We can NOT use -z defs as we might desire, because we do not
10098 # link with -lc, and that would cause any symbols used from libc to
10099 # always be unresolved, which means just about no library would
10100 # ever link correctly. If we're not using GNU ld we use -z text
10101 # though, which does catch some bad symbols but isn't as heavy-handed
10102 # as -z defs.
10103 no_undefined_flag='${wl}-z,text'
10104 allow_undefined_flag='${wl}-z,nodefs'
10105 archive_cmds_need_lc=no
10106 hardcode_shlibpath_var=no
10107 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10108 hardcode_libdir_separator=':'
10109 link_all_deplibs=yes
10110 export_dynamic_flag_spec='${wl}-Bexport'
10111 runpath_var='LD_RUN_PATH'
10112
10113 if test "$GCC" = yes; then
10114 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10116 else
10117 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10119 fi
10120 ;;
10121
10122 uts4*)
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 hardcode_shlibpath_var=no
10126 ;;
10127
10128 *)
10129 ld_shlibs=no
10130 ;;
10131 esac
10132
10133 if test x$host_vendor = xsni; then
10134 case $host in
10135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10136 export_dynamic_flag_spec='${wl}-Blargedynsym'
10137 ;;
10138 esac
10139 fi
10140 fi
10141
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10143$as_echo "$ld_shlibs" >&6; }
10144test "$ld_shlibs" = no && can_build_shared=no
10145
10146with_gnu_ld=$with_gnu_ld
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162#
10163# Do we need to explicitly link libc?
10164#
10165case "x$archive_cmds_need_lc" in
10166x|xyes)
10167 # Assume -lc should be added
10168 archive_cmds_need_lc=yes
10169
10170 if test "$enable_shared" = yes && test "$GCC" = yes; then
10171 case $archive_cmds in
10172 *'~'*)
10173 # FIXME: we may have to deal with multi-command sequences.
10174 ;;
10175 '$CC '*)
10176 # Test whether the compiler implicitly links with -lc since on some
10177 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10178 # to ld, don't add -lc before -lgcc.
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10180$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22e05272 10181if ${lt_cv_archive_cmds_need_lc+:} false; then :
eff02e4f
ILT
10182 $as_echo_n "(cached) " >&6
10183else
10184 $RM conftest*
10185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10186
10187 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10188 (eval $ac_compile) 2>&5
10189 ac_status=$?
10190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10191 test $ac_status = 0; } 2>conftest.err; then
10192 soname=conftest
10193 lib=conftest
10194 libobjs=conftest.$ac_objext
10195 deplibs=
10196 wl=$lt_prog_compiler_wl
10197 pic_flag=$lt_prog_compiler_pic
10198 compiler_flags=-v
10199 linker_flags=-v
10200 verstring=
10201 output_objdir=.
10202 libname=conftest
10203 lt_save_allow_undefined_flag=$allow_undefined_flag
10204 allow_undefined_flag=
10205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10206 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10207 ac_status=$?
10208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10209 test $ac_status = 0; }
10210 then
10211 lt_cv_archive_cmds_need_lc=no
10212 else
10213 lt_cv_archive_cmds_need_lc=yes
10214 fi
10215 allow_undefined_flag=$lt_save_allow_undefined_flag
10216 else
10217 cat conftest.err 1>&5
10218 fi
10219 $RM conftest*
10220
10221fi
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10223$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10224 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10225 ;;
10226 esac
10227 fi
10228 ;;
10229esac
10230
10231
10232
10233
10234
10235
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10388$as_echo_n "checking dynamic linker characteristics... " >&6; }
10389
10390if test "$GCC" = yes; then
10391 case $host_os in
10392 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10393 *) lt_awk_arg="/^libraries:/" ;;
10394 esac
10395 case $host_os in
10396 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10397 *) lt_sed_strip_eq="s,=/,/,g" ;;
10398 esac
10399 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10400 case $lt_search_path_spec in
10401 *\;*)
10402 # if the path contains ";" then we assume it to be the separator
10403 # otherwise default to the standard path separator (i.e. ":") - it is
10404 # assumed that no part of a normal pathname contains ";" but that should
10405 # okay in the real world where ";" in dirpaths is itself problematic.
10406 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10407 ;;
10408 *)
10409 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10410 ;;
10411 esac
10412 # Ok, now we have the path, separated by spaces, we can step through it
10413 # and add multilib dir if necessary.
10414 lt_tmp_lt_search_path_spec=
10415 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10416 for lt_sys_path in $lt_search_path_spec; do
10417 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10418 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10419 else
10420 test -d "$lt_sys_path" && \
10421 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10422 fi
10423 done
10424 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10425BEGIN {RS=" "; FS="/|\n";} {
10426 lt_foo="";
10427 lt_count=0;
10428 for (lt_i = NF; lt_i > 0; lt_i--) {
10429 if ($lt_i != "" && $lt_i != ".") {
10430 if ($lt_i == "..") {
10431 lt_count++;
10432 } else {
10433 if (lt_count == 0) {
10434 lt_foo="/" $lt_i lt_foo;
10435 } else {
10436 lt_count--;
10437 }
10438 }
10439 }
10440 }
10441 if (lt_foo != "") { lt_freq[lt_foo]++; }
10442 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10443}'`
10444 # AWK program above erroneously prepends '/' to C:/dos/paths
10445 # for these hosts.
10446 case $host_os in
10447 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10448 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10449 esac
10450 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10451else
10452 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10453fi
10454library_names_spec=
10455libname_spec='lib$name'
10456soname_spec=
10457shrext_cmds=".so"
10458postinstall_cmds=
10459postuninstall_cmds=
10460finish_cmds=
10461finish_eval=
10462shlibpath_var=
10463shlibpath_overrides_runpath=unknown
10464version_type=none
10465dynamic_linker="$host_os ld.so"
10466sys_lib_dlsearch_path_spec="/lib /usr/lib"
10467need_lib_prefix=unknown
10468hardcode_into_libs=no
10469
10470# when you set need_version to no, make sure it does not cause -set_version
10471# flags to be left without arguments
10472need_version=unknown
10473
10474case $host_os in
10475aix3*)
10476 version_type=linux
10477 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10478 shlibpath_var=LIBPATH
10479
10480 # AIX 3 has no versioning support, so we append a major version to the name.
10481 soname_spec='${libname}${release}${shared_ext}$major'
10482 ;;
10483
10484aix[4-9]*)
10485 version_type=linux
10486 need_lib_prefix=no
10487 need_version=no
10488 hardcode_into_libs=yes
10489 if test "$host_cpu" = ia64; then
10490 # AIX 5 supports IA64
10491 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 else
10494 # With GCC up to 2.95.x, collect2 would create an import file
10495 # for dependence libraries. The import file would start with
10496 # the line `#! .'. This would cause the generated library to
10497 # depend on `.', always an invalid library. This was fixed in
10498 # development snapshots of GCC prior to 3.0.
10499 case $host_os in
10500 aix4 | aix4.[01] | aix4.[01].*)
10501 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10502 echo ' yes '
10503 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10504 :
10505 else
10506 can_build_shared=no
10507 fi
10508 ;;
10509 esac
10510 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10511 # soname into executable. Probably we can add versioning support to
10512 # collect2, so additional links can be useful in future.
10513 if test "$aix_use_runtimelinking" = yes; then
10514 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10515 # instead of lib<name>.a to let people know that these are not
10516 # typical AIX shared libraries.
10517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10518 else
10519 # We preserve .a as extension for shared libraries through AIX4.2
10520 # and later when we are not doing run time linking.
10521 library_names_spec='${libname}${release}.a $libname.a'
10522 soname_spec='${libname}${release}${shared_ext}$major'
10523 fi
10524 shlibpath_var=LIBPATH
10525 fi
10526 ;;
10527
10528amigaos*)
10529 case $host_cpu in
10530 powerpc)
10531 # Since July 2007 AmigaOS4 officially supports .so libraries.
10532 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10534 ;;
10535 m68k)
10536 library_names_spec='$libname.ixlibrary $libname.a'
10537 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10538 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'
10539 ;;
10540 esac
10541 ;;
10542
10543beos*)
10544 library_names_spec='${libname}${shared_ext}'
10545 dynamic_linker="$host_os ld.so"
10546 shlibpath_var=LIBRARY_PATH
10547 ;;
10548
10549bsdi[45]*)
10550 version_type=linux
10551 need_version=no
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 soname_spec='${libname}${release}${shared_ext}$major'
10554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10555 shlibpath_var=LD_LIBRARY_PATH
10556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10558 # the default ld.so.conf also contains /usr/contrib/lib and
10559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10560 # libtool to hard-code these into programs
10561 ;;
10562
10563cygwin* | mingw* | pw32* | cegcc*)
10564 version_type=windows
10565 shrext_cmds=".dll"
10566 need_version=no
10567 need_lib_prefix=no
10568
10569 case $GCC,$host_os in
10570 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10571 library_names_spec='$libname.dll.a'
10572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10573 postinstall_cmds='base_file=`basename \${file}`~
10574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10575 dldir=$destdir/`dirname \$dlpath`~
10576 test -d \$dldir || mkdir -p \$dldir~
10577 $install_prog $dir/$dlname \$dldir/$dlname~
10578 chmod a+x \$dldir/$dlname~
10579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10581 fi'
10582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10583 dlpath=$dir/\$dldll~
10584 $RM \$dlpath'
10585 shlibpath_overrides_runpath=yes
10586
10587 case $host_os in
10588 cygwin*)
10589 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10590 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10591
10592 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10593 ;;
10594 mingw* | cegcc*)
10595 # MinGW DLLs use traditional 'lib' prefix
10596 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10597 ;;
10598 pw32*)
10599 # pw32 DLLs use 'pw' prefix rather than 'lib'
10600 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10601 ;;
10602 esac
10603 ;;
10604
10605 *)
10606 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10607 ;;
10608 esac
10609 dynamic_linker='Win32 ld.exe'
10610 # FIXME: first we should search . and the directory the executable is in
10611 shlibpath_var=PATH
10612 ;;
10613
10614darwin* | rhapsody*)
10615 dynamic_linker="$host_os dyld"
10616 version_type=darwin
10617 need_lib_prefix=no
10618 need_version=no
10619 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10620 soname_spec='${libname}${release}${major}$shared_ext'
10621 shlibpath_overrides_runpath=yes
10622 shlibpath_var=DYLD_LIBRARY_PATH
10623 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10624
10625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10627 ;;
10628
10629dgux*)
10630 version_type=linux
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 ;;
10637
10638freebsd* | dragonfly*)
10639 # DragonFly does not have aout. When/if they implement a new
10640 # versioning mechanism, adjust this.
10641 if test -x /usr/bin/objformat; then
10642 objformat=`/usr/bin/objformat`
10643 else
10644 case $host_os in
10645 freebsd[23].*) objformat=aout ;;
10646 *) objformat=elf ;;
10647 esac
10648 fi
10649 version_type=freebsd-$objformat
10650 case $version_type in
10651 freebsd-elf*)
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10653 need_version=no
10654 need_lib_prefix=no
10655 ;;
10656 freebsd-*)
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10658 need_version=yes
10659 ;;
10660 esac
10661 shlibpath_var=LD_LIBRARY_PATH
10662 case $host_os in
10663 freebsd2.*)
10664 shlibpath_overrides_runpath=yes
10665 ;;
10666 freebsd3.[01]* | freebsdelf3.[01]*)
10667 shlibpath_overrides_runpath=yes
10668 hardcode_into_libs=yes
10669 ;;
10670 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10671 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10672 shlibpath_overrides_runpath=no
10673 hardcode_into_libs=yes
10674 ;;
10675 *) # from 4.6 on, and DragonFly
10676 shlibpath_overrides_runpath=yes
10677 hardcode_into_libs=yes
10678 ;;
10679 esac
10680 ;;
10681
10682gnu*)
10683 version_type=linux
10684 need_lib_prefix=no
10685 need_version=no
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10687 soname_spec='${libname}${release}${shared_ext}$major'
10688 shlibpath_var=LD_LIBRARY_PATH
10689 hardcode_into_libs=yes
10690 ;;
10691
10692haiku*)
10693 version_type=linux
10694 need_lib_prefix=no
10695 need_version=no
10696 dynamic_linker="$host_os runtime_loader"
10697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10698 soname_spec='${libname}${release}${shared_ext}$major'
10699 shlibpath_var=LIBRARY_PATH
10700 shlibpath_overrides_runpath=yes
10701 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10702 hardcode_into_libs=yes
10703 ;;
10704
10705hpux9* | hpux10* | hpux11*)
10706 # Give a soname corresponding to the major version so that dld.sl refuses to
10707 # link against other versions.
10708 version_type=sunos
10709 need_lib_prefix=no
10710 need_version=no
10711 case $host_cpu in
10712 ia64*)
10713 shrext_cmds='.so'
10714 hardcode_into_libs=yes
10715 dynamic_linker="$host_os dld.so"
10716 shlibpath_var=LD_LIBRARY_PATH
10717 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 if test "X$HPUX_IA64_MODE" = X32; then
10721 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10722 else
10723 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10724 fi
10725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10726 ;;
10727 hppa*64*)
10728 shrext_cmds='.sl'
10729 hardcode_into_libs=yes
10730 dynamic_linker="$host_os dld.sl"
10731 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10732 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10734 soname_spec='${libname}${release}${shared_ext}$major'
10735 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10737 ;;
10738 *)
10739 shrext_cmds='.sl'
10740 dynamic_linker="$host_os dld.sl"
10741 shlibpath_var=SHLIB_PATH
10742 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 ;;
10746 esac
10747 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10748 postinstall_cmds='chmod 555 $lib'
10749 # or fails outright, so override atomically:
10750 install_override_mode=555
10751 ;;
10752
10753interix[3-9]*)
10754 version_type=linux
10755 need_lib_prefix=no
10756 need_version=no
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10758 soname_spec='${libname}${release}${shared_ext}$major'
10759 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10760 shlibpath_var=LD_LIBRARY_PATH
10761 shlibpath_overrides_runpath=no
10762 hardcode_into_libs=yes
10763 ;;
10764
10765irix5* | irix6* | nonstopux*)
10766 case $host_os in
10767 nonstopux*) version_type=nonstopux ;;
10768 *)
10769 if test "$lt_cv_prog_gnu_ld" = yes; then
10770 version_type=linux
10771 else
10772 version_type=irix
10773 fi ;;
10774 esac
10775 need_lib_prefix=no
10776 need_version=no
10777 soname_spec='${libname}${release}${shared_ext}$major'
10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10779 case $host_os in
10780 irix5* | nonstopux*)
10781 libsuff= shlibsuff=
10782 ;;
10783 *)
10784 case $LD in # libtool.m4 will add one of these switches to LD
10785 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10786 libsuff= shlibsuff= libmagic=32-bit;;
10787 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10788 libsuff=32 shlibsuff=N32 libmagic=N32;;
10789 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10790 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10791 *) libsuff= shlibsuff= libmagic=never-match;;
10792 esac
10793 ;;
10794 esac
10795 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10796 shlibpath_overrides_runpath=no
10797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10799 hardcode_into_libs=yes
10800 ;;
10801
10802# No shared lib support for Linux oldld, aout, or coff.
10803linux*oldld* | linux*aout* | linux*coff*)
10804 dynamic_linker=no
10805 ;;
10806
10807# This must be Linux ELF.
e9085da5
MR
10808
10809# uclinux* changes (here and below) have been submitted to the libtool
10810# project, but have not yet been accepted: they are GCC-local changes
10811# for the time being. (See
10812# https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10813linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
eff02e4f
ILT
10814 version_type=linux
10815 need_lib_prefix=no
10816 need_version=no
10817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10818 soname_spec='${libname}${release}${shared_ext}$major'
10819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=no
10822
10823 # Some binutils ld are patched to set DT_RUNPATH
22e05272 10824 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
eff02e4f
ILT
10825 $as_echo_n "(cached) " >&6
10826else
10827 lt_cv_shlibpath_overrides_runpath=no
10828 save_LDFLAGS=$LDFLAGS
10829 save_libdir=$libdir
10830 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10831 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h. */
10834
10835int
10836main ()
10837{
10838
10839 ;
10840 return 0;
10841}
10842_ACEOF
10843if ac_fn_c_try_link "$LINENO"; then :
10844 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10845 lt_cv_shlibpath_overrides_runpath=yes
10846fi
10847fi
10848rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LDFLAGS=$save_LDFLAGS
10851 libdir=$save_libdir
10852
10853fi
10854
10855 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10856
10857 # This implies no fast_install, which is unacceptable.
10858 # Some rework will be needed to allow for fast_install
10859 # before this can be enabled.
10860 hardcode_into_libs=yes
10861
10862 # Append ld.so.conf contents to the search path
10863 if test -f /etc/ld.so.conf; then
10864 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' ' '`
10865 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10866 fi
10867
10868 # We used to test for /lib/ld.so.1 and disable shared libraries on
10869 # powerpc, because MkLinux only supported shared libraries with the
10870 # GNU dynamic linker. Since this was broken with cross compilers,
10871 # most powerpc-linux boxes support dynamic linking these days and
10872 # people can always --disable-shared, the test was removed, and we
10873 # assume the GNU/Linux dynamic linker is in use.
10874 dynamic_linker='GNU/Linux ld.so'
10875 ;;
10876
10877netbsd*)
10878 version_type=sunos
10879 need_lib_prefix=no
10880 need_version=no
10881 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10884 dynamic_linker='NetBSD (a.out) ld.so'
10885 else
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10887 soname_spec='${libname}${release}${shared_ext}$major'
10888 dynamic_linker='NetBSD ld.elf_so'
10889 fi
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes
10892 hardcode_into_libs=yes
10893 ;;
10894
10895newsos6)
10896 version_type=linux
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 shlibpath_overrides_runpath=yes
10900 ;;
10901
10902*nto* | *qnx*)
10903 version_type=qnx
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 dynamic_linker='ldqnx.so'
10912 ;;
10913
10914openbsd*)
10915 version_type=sunos
10916 sys_lib_dlsearch_path_spec="/usr/lib"
10917 need_lib_prefix=no
10918 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10919 case $host_os in
10920 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10921 *) need_version=no ;;
10922 esac
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10927 case $host_os in
10928 openbsd2.[89] | openbsd2.[89].*)
10929 shlibpath_overrides_runpath=no
10930 ;;
10931 *)
10932 shlibpath_overrides_runpath=yes
10933 ;;
10934 esac
10935 else
10936 shlibpath_overrides_runpath=yes
10937 fi
10938 ;;
10939
10940os2*)
10941 libname_spec='$name'
10942 shrext_cmds=".dll"
10943 need_lib_prefix=no
10944 library_names_spec='$libname${shared_ext} $libname.a'
10945 dynamic_linker='OS/2 ld.exe'
10946 shlibpath_var=LIBPATH
10947 ;;
10948
10949osf3* | osf4* | osf5*)
10950 version_type=osf
10951 need_lib_prefix=no
10952 need_version=no
10953 soname_spec='${libname}${release}${shared_ext}$major'
10954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10957 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10958 ;;
10959
10960rdos*)
10961 dynamic_linker=no
10962 ;;
10963
10964solaris*)
10965 version_type=linux
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972 hardcode_into_libs=yes
10973 # ldd complains unless libraries are executable
10974 postinstall_cmds='chmod +x $lib'
10975 ;;
10976
10977sunos4*)
10978 version_type=sunos
10979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10980 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=yes
10983 if test "$with_gnu_ld" = yes; then
10984 need_lib_prefix=no
10985 fi
10986 need_version=yes
10987 ;;
10988
10989sysv4 | sysv4.3*)
10990 version_type=linux
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 soname_spec='${libname}${release}${shared_ext}$major'
10993 shlibpath_var=LD_LIBRARY_PATH
10994 case $host_vendor in
10995 sni)
10996 shlibpath_overrides_runpath=no
10997 need_lib_prefix=no
10998 runpath_var=LD_RUN_PATH
10999 ;;
11000 siemens)
11001 need_lib_prefix=no
11002 ;;
11003 motorola)
11004 need_lib_prefix=no
11005 need_version=no
11006 shlibpath_overrides_runpath=no
11007 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11008 ;;
11009 esac
11010 ;;
11011
11012sysv4*MP*)
11013 if test -d /usr/nec ;then
11014 version_type=linux
11015 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11016 soname_spec='$libname${shared_ext}.$major'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 fi
11019 ;;
11020
11021sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11022 version_type=freebsd-elf
11023 need_lib_prefix=no
11024 need_version=no
11025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11026 soname_spec='${libname}${release}${shared_ext}$major'
11027 shlibpath_var=LD_LIBRARY_PATH
11028 shlibpath_overrides_runpath=yes
11029 hardcode_into_libs=yes
11030 if test "$with_gnu_ld" = yes; then
11031 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11032 else
11033 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11034 case $host_os in
11035 sco3.2v5*)
11036 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11037 ;;
11038 esac
11039 fi
11040 sys_lib_dlsearch_path_spec='/usr/lib'
11041 ;;
11042
11043tpf*)
11044 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11045 version_type=linux
11046 need_lib_prefix=no
11047 need_version=no
11048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11049 shlibpath_var=LD_LIBRARY_PATH
11050 shlibpath_overrides_runpath=no
11051 hardcode_into_libs=yes
11052 ;;
11053
11054uts4*)
11055 version_type=linux
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 ;;
11060
11061*)
11062 dynamic_linker=no
11063 ;;
11064esac
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11066$as_echo "$dynamic_linker" >&6; }
11067test "$dynamic_linker" = no && can_build_shared=no
11068
11069variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11070if test "$GCC" = yes; then
11071 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11072fi
11073
11074if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11075 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11076fi
11077if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11078 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11079fi
11080
11081
11082
11083
11084
11085
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11173$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11174hardcode_action=
11175if test -n "$hardcode_libdir_flag_spec" ||
11176 test -n "$runpath_var" ||
11177 test "X$hardcode_automatic" = "Xyes" ; then
11178
11179 # We can hardcode non-existent directories.
11180 if test "$hardcode_direct" != no &&
11181 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11182 # have to relink, otherwise we might link with an installed library
11183 # when we should be linking with a yet-to-be-installed one
11184 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11185 test "$hardcode_minus_L" != no; then
11186 # Linking always hardcodes the temporary library directory.
11187 hardcode_action=relink
11188 else
11189 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11190 hardcode_action=immediate
11191 fi
11192else
11193 # We cannot hardcode anything, or else we can only hardcode existing
11194 # directories.
11195 hardcode_action=unsupported
11196fi
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11198$as_echo "$hardcode_action" >&6; }
11199
11200if test "$hardcode_action" = relink ||
11201 test "$inherit_rpath" = yes; then
11202 # Fast installation is not supported
11203 enable_fast_install=no
11204elif test "$shlibpath_overrides_runpath" = yes ||
11205 test "$enable_shared" = no; then
11206 # Fast installation is not necessary
11207 enable_fast_install=needless
11208fi
11209
11210
11211
11212
11213
11214
11215 if test "x$enable_dlopen" != xyes; then
11216 enable_dlopen=unknown
11217 enable_dlopen_self=unknown
11218 enable_dlopen_self_static=unknown
11219else
11220 lt_cv_dlopen=no
11221 lt_cv_dlopen_libs=
11222
11223 case $host_os in
11224 beos*)
11225 lt_cv_dlopen="load_add_on"
11226 lt_cv_dlopen_libs=
11227 lt_cv_dlopen_self=yes
11228 ;;
11229
11230 mingw* | pw32* | cegcc*)
11231 lt_cv_dlopen="LoadLibrary"
11232 lt_cv_dlopen_libs=
11233 ;;
11234
11235 cygwin*)
11236 lt_cv_dlopen="dlopen"
11237 lt_cv_dlopen_libs=
11238 ;;
11239
11240 darwin*)
11241 # if libdl is installed we need to link against it
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11244if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11245 $as_echo_n "(cached) " >&6
11246else
11247 ac_check_lib_save_LIBS=$LIBS
11248LIBS="-ldl $LIBS"
11249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250/* end confdefs.h. */
11251
11252/* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255#ifdef __cplusplus
11256extern "C"
11257#endif
11258char dlopen ();
11259int
11260main ()
11261{
11262return dlopen ();
11263 ;
11264 return 0;
11265}
11266_ACEOF
11267if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_dl_dlopen=yes
11269else
11270 ac_cv_lib_dl_dlopen=no
11271fi
11272rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274LIBS=$ac_check_lib_save_LIBS
11275fi
11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11278if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280else
11281
11282 lt_cv_dlopen="dyld"
11283 lt_cv_dlopen_libs=
11284 lt_cv_dlopen_self=yes
11285
11286fi
11287
11288 ;;
11289
11290 *)
11291 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
22e05272 11292if test "x$ac_cv_func_shl_load" = xyes; then :
eff02e4f
ILT
11293 lt_cv_dlopen="shl_load"
11294else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11296$as_echo_n "checking for shl_load in -ldld... " >&6; }
22e05272 11297if ${ac_cv_lib_dld_shl_load+:} false; then :
eff02e4f
ILT
11298 $as_echo_n "(cached) " >&6
11299else
11300 ac_check_lib_save_LIBS=$LIBS
11301LIBS="-ldld $LIBS"
11302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h. */
11304
11305/* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308#ifdef __cplusplus
11309extern "C"
11310#endif
11311char shl_load ();
11312int
11313main ()
11314{
11315return shl_load ();
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dld_shl_load=yes
11322else
11323 ac_cv_lib_dld_shl_load=no
11324fi
11325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327LIBS=$ac_check_lib_save_LIBS
11328fi
11329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11330$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
22e05272 11331if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
eff02e4f
ILT
11332 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11333else
11334 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
22e05272 11335if test "x$ac_cv_func_dlopen" = xyes; then :
eff02e4f
ILT
11336 lt_cv_dlopen="dlopen"
11337else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11339$as_echo_n "checking for dlopen in -ldl... " >&6; }
22e05272 11340if ${ac_cv_lib_dl_dlopen+:} false; then :
eff02e4f
ILT
11341 $as_echo_n "(cached) " >&6
11342else
11343 ac_check_lib_save_LIBS=$LIBS
11344LIBS="-ldl $LIBS"
11345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346/* end confdefs.h. */
11347
11348/* Override any GCC internal prototype to avoid an error.
11349 Use char because int might match the return type of a GCC
11350 builtin and then its argument prototype would still apply. */
11351#ifdef __cplusplus
11352extern "C"
11353#endif
11354char dlopen ();
11355int
11356main ()
11357{
11358return dlopen ();
11359 ;
11360 return 0;
11361}
11362_ACEOF
11363if ac_fn_c_try_link "$LINENO"; then :
11364 ac_cv_lib_dl_dlopen=yes
11365else
11366 ac_cv_lib_dl_dlopen=no
11367fi
11368rm -f core conftest.err conftest.$ac_objext \
11369 conftest$ac_exeext conftest.$ac_ext
11370LIBS=$ac_check_lib_save_LIBS
11371fi
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11373$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22e05272 11374if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
eff02e4f
ILT
11375 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11376else
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11378$as_echo_n "checking for dlopen in -lsvld... " >&6; }
22e05272 11379if ${ac_cv_lib_svld_dlopen+:} false; then :
eff02e4f
ILT
11380 $as_echo_n "(cached) " >&6
11381else
11382 ac_check_lib_save_LIBS=$LIBS
11383LIBS="-lsvld $LIBS"
11384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11385/* end confdefs.h. */
11386
11387/* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390#ifdef __cplusplus
11391extern "C"
11392#endif
11393char dlopen ();
11394int
11395main ()
11396{
11397return dlopen ();
11398 ;
11399 return 0;
11400}
11401_ACEOF
11402if ac_fn_c_try_link "$LINENO"; then :
11403 ac_cv_lib_svld_dlopen=yes
11404else
11405 ac_cv_lib_svld_dlopen=no
11406fi
11407rm -f core conftest.err conftest.$ac_objext \
11408 conftest$ac_exeext conftest.$ac_ext
11409LIBS=$ac_check_lib_save_LIBS
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11412$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
22e05272 11413if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
eff02e4f
ILT
11414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11415else
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11417$as_echo_n "checking for dld_link in -ldld... " >&6; }
22e05272 11418if ${ac_cv_lib_dld_dld_link+:} false; then :
eff02e4f
ILT
11419 $as_echo_n "(cached) " >&6
11420else
11421 ac_check_lib_save_LIBS=$LIBS
11422LIBS="-ldld $LIBS"
11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11424/* end confdefs.h. */
11425
11426/* Override any GCC internal prototype to avoid an error.
11427 Use char because int might match the return type of a GCC
11428 builtin and then its argument prototype would still apply. */
11429#ifdef __cplusplus
11430extern "C"
11431#endif
11432char dld_link ();
11433int
11434main ()
11435{
11436return dld_link ();
11437 ;
11438 return 0;
11439}
11440_ACEOF
11441if ac_fn_c_try_link "$LINENO"; then :
11442 ac_cv_lib_dld_dld_link=yes
11443else
11444 ac_cv_lib_dld_dld_link=no
11445fi
11446rm -f core conftest.err conftest.$ac_objext \
11447 conftest$ac_exeext conftest.$ac_ext
11448LIBS=$ac_check_lib_save_LIBS
11449fi
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11451$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
22e05272 11452if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
eff02e4f
ILT
11453 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11454fi
11455
11456
11457fi
11458
11459
11460fi
11461
11462
11463fi
11464
11465
11466fi
11467
11468
11469fi
11470
11471 ;;
11472 esac
11473
11474 if test "x$lt_cv_dlopen" != xno; then
11475 enable_dlopen=yes
11476 else
11477 enable_dlopen=no
11478 fi
11479
11480 case $lt_cv_dlopen in
11481 dlopen)
11482 save_CPPFLAGS="$CPPFLAGS"
11483 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11484
11485 save_LDFLAGS="$LDFLAGS"
11486 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11487
11488 save_LIBS="$LIBS"
11489 LIBS="$lt_cv_dlopen_libs $LIBS"
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11492$as_echo_n "checking whether a program can dlopen itself... " >&6; }
22e05272 11493if ${lt_cv_dlopen_self+:} false; then :
eff02e4f
ILT
11494 $as_echo_n "(cached) " >&6
11495else
11496 if test "$cross_compiling" = yes; then :
11497 lt_cv_dlopen_self=cross
11498else
11499 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11500 lt_status=$lt_dlunknown
11501 cat > conftest.$ac_ext <<_LT_EOF
c926fd82 11502#line 11502 "configure"
eff02e4f
ILT
11503#include "confdefs.h"
11504
11505#if HAVE_DLFCN_H
11506#include <dlfcn.h>
11507#endif
11508
11509#include <stdio.h>
11510
11511#ifdef RTLD_GLOBAL
11512# define LT_DLGLOBAL RTLD_GLOBAL
11513#else
11514# ifdef DL_GLOBAL
11515# define LT_DLGLOBAL DL_GLOBAL
11516# else
11517# define LT_DLGLOBAL 0
11518# endif
11519#endif
11520
11521/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11522 find out it does not work in some platform. */
11523#ifndef LT_DLLAZY_OR_NOW
11524# ifdef RTLD_LAZY
11525# define LT_DLLAZY_OR_NOW RTLD_LAZY
11526# else
11527# ifdef DL_LAZY
11528# define LT_DLLAZY_OR_NOW DL_LAZY
11529# else
11530# ifdef RTLD_NOW
11531# define LT_DLLAZY_OR_NOW RTLD_NOW
11532# else
11533# ifdef DL_NOW
11534# define LT_DLLAZY_OR_NOW DL_NOW
11535# else
11536# define LT_DLLAZY_OR_NOW 0
11537# endif
11538# endif
11539# endif
11540# endif
11541#endif
11542
11543/* When -fvisbility=hidden is used, assume the code has been annotated
11544 correspondingly for the symbols needed. */
11545#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11546void fnord () __attribute__((visibility("default")));
11547#endif
11548
11549void fnord () { int i=42; }
11550int main ()
11551{
11552 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11553 int status = $lt_dlunknown;
11554
11555 if (self)
11556 {
11557 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11558 else
11559 {
11560 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11561 else puts (dlerror ());
11562 }
11563 /* dlclose (self); */
11564 }
11565 else
11566 puts (dlerror ());
11567
11568 return status;
11569}
11570_LT_EOF
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11572 (eval $ac_link) 2>&5
11573 ac_status=$?
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11576 (./conftest; exit; ) >&5 2>/dev/null
11577 lt_status=$?
11578 case x$lt_status in
11579 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11580 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11581 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11582 esac
11583 else :
11584 # compilation failed
11585 lt_cv_dlopen_self=no
11586 fi
11587fi
11588rm -fr conftest*
11589
11590
11591fi
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11593$as_echo "$lt_cv_dlopen_self" >&6; }
11594
11595 if test "x$lt_cv_dlopen_self" = xyes; then
11596 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11598$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
22e05272 11599if ${lt_cv_dlopen_self_static+:} false; then :
eff02e4f
ILT
11600 $as_echo_n "(cached) " >&6
11601else
11602 if test "$cross_compiling" = yes; then :
11603 lt_cv_dlopen_self_static=cross
11604else
11605 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606 lt_status=$lt_dlunknown
11607 cat > conftest.$ac_ext <<_LT_EOF
c926fd82 11608#line 11608 "configure"
eff02e4f
ILT
11609#include "confdefs.h"
11610
11611#if HAVE_DLFCN_H
11612#include <dlfcn.h>
11613#endif
11614
11615#include <stdio.h>
11616
11617#ifdef RTLD_GLOBAL
11618# define LT_DLGLOBAL RTLD_GLOBAL
11619#else
11620# ifdef DL_GLOBAL
11621# define LT_DLGLOBAL DL_GLOBAL
11622# else
11623# define LT_DLGLOBAL 0
11624# endif
11625#endif
11626
11627/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628 find out it does not work in some platform. */
11629#ifndef LT_DLLAZY_OR_NOW
11630# ifdef RTLD_LAZY
11631# define LT_DLLAZY_OR_NOW RTLD_LAZY
11632# else
11633# ifdef DL_LAZY
11634# define LT_DLLAZY_OR_NOW DL_LAZY
11635# else
11636# ifdef RTLD_NOW
11637# define LT_DLLAZY_OR_NOW RTLD_NOW
11638# else
11639# ifdef DL_NOW
11640# define LT_DLLAZY_OR_NOW DL_NOW
11641# else
11642# define LT_DLLAZY_OR_NOW 0
11643# endif
11644# endif
11645# endif
11646# endif
11647#endif
11648
11649/* When -fvisbility=hidden is used, assume the code has been annotated
11650 correspondingly for the symbols needed. */
11651#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652void fnord () __attribute__((visibility("default")));
11653#endif
11654
11655void fnord () { int i=42; }
11656int main ()
11657{
11658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659 int status = $lt_dlunknown;
11660
11661 if (self)
11662 {
11663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11664 else
11665 {
11666 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11667 else puts (dlerror ());
11668 }
11669 /* dlclose (self); */
11670 }
11671 else
11672 puts (dlerror ());
11673
11674 return status;
11675}
11676_LT_EOF
11677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678 (eval $ac_link) 2>&5
11679 ac_status=$?
11680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11682 (./conftest; exit; ) >&5 2>/dev/null
11683 lt_status=$?
11684 case x$lt_status in
11685 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11686 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11687 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11688 esac
11689 else :
11690 # compilation failed
11691 lt_cv_dlopen_self_static=no
11692 fi
11693fi
11694rm -fr conftest*
11695
11696
11697fi
11698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11699$as_echo "$lt_cv_dlopen_self_static" >&6; }
11700 fi
11701
11702 CPPFLAGS="$save_CPPFLAGS"
11703 LDFLAGS="$save_LDFLAGS"
11704 LIBS="$save_LIBS"
11705 ;;
11706 esac
11707
11708 case $lt_cv_dlopen_self in
11709 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11710 *) enable_dlopen_self=unknown ;;
11711 esac
11712
11713 case $lt_cv_dlopen_self_static in
11714 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11715 *) enable_dlopen_self_static=unknown ;;
11716 esac
11717fi
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735striplib=
11736old_striplib=
11737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11738$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11739if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11740 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11741 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743$as_echo "yes" >&6; }
11744else
11745# FIXME - insert some real tests, host_os isn't really good enough
11746 case $host_os in
11747 darwin*)
11748 if test -n "$STRIP" ; then
11749 striplib="$STRIP -x"
11750 old_striplib="$STRIP -S"
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11752$as_echo "yes" >&6; }
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
11756 fi
11757 ;;
11758 *)
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11760$as_echo "no" >&6; }
11761 ;;
11762 esac
11763fi
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776 # Report which library types will actually be built
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11778$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11780$as_echo "$can_build_shared" >&6; }
11781
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11783$as_echo_n "checking whether to build shared libraries... " >&6; }
11784 test "$can_build_shared" = "no" && enable_shared=no
11785
11786 # On AIX, shared libraries and static libraries use the same namespace, and
11787 # are all built from PIC.
11788 case $host_os in
11789 aix3*)
11790 test "$enable_shared" = yes && enable_static=no
11791 if test -n "$RANLIB"; then
11792 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11793 postinstall_cmds='$RANLIB $lib'
11794 fi
11795 ;;
11796
11797 aix[4-9]*)
11798 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11799 test "$enable_shared" = yes && enable_static=no
11800 fi
11801 ;;
11802 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11804$as_echo "$enable_shared" >&6; }
11805
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11807$as_echo_n "checking whether to build static libraries... " >&6; }
11808 # Make sure either enable_shared or enable_static is yes.
11809 test "$enable_shared" = yes || enable_static=yes
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11811$as_echo "$enable_static" >&6; }
11812
11813
11814
11815
11816fi
11817ac_ext=c
11818ac_cpp='$CPP $CPPFLAGS'
11819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11821ac_compiler_gnu=$ac_cv_c_compiler_gnu
11822
11823CC="$lt_save_CC"
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837 ac_config_commands="$ac_config_commands libtool"
11838
11839
11840
11841
11842# Only expand once:
11843
11844
11845
11846
e91a2ddc
RB
11847# Check whether --enable-largefile was given.
11848if test "${enable_largefile+set}" = set; then :
11849 enableval=$enable_largefile;
11850fi
11851
11852if test "$enable_largefile" != no; then
11853
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11855$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
22e05272 11856if ${ac_cv_sys_largefile_CC+:} false; then :
e91a2ddc
RB
11857 $as_echo_n "(cached) " >&6
11858else
11859 ac_cv_sys_largefile_CC=no
11860 if test "$GCC" != yes; then
11861 ac_save_CC=$CC
11862 while :; do
11863 # IRIX 6.2 and later do not support large files by default,
11864 # so use the C compiler's -n32 option if that helps.
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h. */
11867#include <sys/types.h>
11868 /* Check that off_t can represent 2**63 - 1 correctly.
11869 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11870 since some C++ compilers masquerading as C compilers
11871 incorrectly reject 9223372036854775807. */
11872#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11873 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11874 && LARGE_OFF_T % 2147483647 == 1)
11875 ? 1 : -1];
11876int
11877main ()
11878{
11879
11880 ;
11881 return 0;
11882}
11883_ACEOF
11884 if ac_fn_c_try_compile "$LINENO"; then :
11885 break
11886fi
11887rm -f core conftest.err conftest.$ac_objext
11888 CC="$CC -n32"
11889 if ac_fn_c_try_compile "$LINENO"; then :
11890 ac_cv_sys_largefile_CC=' -n32'; break
11891fi
11892rm -f core conftest.err conftest.$ac_objext
11893 break
11894 done
11895 CC=$ac_save_CC
11896 rm -f conftest.$ac_ext
11897 fi
11898fi
11899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11900$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11901 if test "$ac_cv_sys_largefile_CC" != no; then
11902 CC=$CC$ac_cv_sys_largefile_CC
11903 fi
11904
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11906$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
22e05272 11907if ${ac_cv_sys_file_offset_bits+:} false; then :
e91a2ddc
RB
11908 $as_echo_n "(cached) " >&6
11909else
11910 while :; do
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912/* end confdefs.h. */
11913#include <sys/types.h>
11914 /* Check that off_t can represent 2**63 - 1 correctly.
11915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11916 since some C++ compilers masquerading as C compilers
11917 incorrectly reject 9223372036854775807. */
11918#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11920 && LARGE_OFF_T % 2147483647 == 1)
11921 ? 1 : -1];
11922int
11923main ()
11924{
11925
11926 ;
11927 return 0;
11928}
11929_ACEOF
11930if ac_fn_c_try_compile "$LINENO"; then :
11931 ac_cv_sys_file_offset_bits=no; break
11932fi
11933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936#define _FILE_OFFSET_BITS 64
11937#include <sys/types.h>
11938 /* Check that off_t can represent 2**63 - 1 correctly.
11939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11940 since some C++ compilers masquerading as C compilers
11941 incorrectly reject 9223372036854775807. */
11942#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11944 && LARGE_OFF_T % 2147483647 == 1)
11945 ? 1 : -1];
11946int
11947main ()
11948{
11949
11950 ;
11951 return 0;
11952}
11953_ACEOF
11954if ac_fn_c_try_compile "$LINENO"; then :
11955 ac_cv_sys_file_offset_bits=64; break
11956fi
11957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 ac_cv_sys_file_offset_bits=unknown
11959 break
11960done
11961fi
11962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11963$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11964case $ac_cv_sys_file_offset_bits in #(
11965 no | unknown) ;;
11966 *)
11967cat >>confdefs.h <<_ACEOF
11968#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11969_ACEOF
11970;;
11971esac
11972rm -rf conftest*
11973 if test $ac_cv_sys_file_offset_bits = unknown; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11975$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
22e05272 11976if ${ac_cv_sys_large_files+:} false; then :
e91a2ddc
RB
11977 $as_echo_n "(cached) " >&6
11978else
11979 while :; do
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981/* end confdefs.h. */
11982#include <sys/types.h>
11983 /* Check that off_t can represent 2**63 - 1 correctly.
11984 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11985 since some C++ compilers masquerading as C compilers
11986 incorrectly reject 9223372036854775807. */
11987#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11988 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11989 && LARGE_OFF_T % 2147483647 == 1)
11990 ? 1 : -1];
11991int
11992main ()
11993{
11994
11995 ;
11996 return 0;
11997}
11998_ACEOF
11999if ac_fn_c_try_compile "$LINENO"; then :
12000 ac_cv_sys_large_files=no; break
12001fi
12002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004/* end confdefs.h. */
12005#define _LARGE_FILES 1
12006#include <sys/types.h>
12007 /* Check that off_t can represent 2**63 - 1 correctly.
12008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12009 since some C++ compilers masquerading as C compilers
12010 incorrectly reject 9223372036854775807. */
12011#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12013 && LARGE_OFF_T % 2147483647 == 1)
12014 ? 1 : -1];
12015int
12016main ()
12017{
12018
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023if ac_fn_c_try_compile "$LINENO"; then :
12024 ac_cv_sys_large_files=1; break
12025fi
12026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 ac_cv_sys_large_files=unknown
12028 break
12029done
12030fi
12031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12032$as_echo "$ac_cv_sys_large_files" >&6; }
12033case $ac_cv_sys_large_files in #(
12034 no | unknown) ;;
12035 *)
12036cat >>confdefs.h <<_ACEOF
12037#define _LARGE_FILES $ac_cv_sys_large_files
12038_ACEOF
12039;;
12040esac
12041rm -rf conftest*
12042 fi
22e05272
JM
12043
12044
e91a2ddc
RB
12045fi
12046
12047
eff02e4f
ILT
12048backtrace_supported=yes
12049
12050if test -n "${with_target_subdir}"; then
12051 # We are compiling a GCC library. We can assume that the unwind
12052 # library exists.
eff02e4f
ILT
12053 BACKTRACE_FILE="backtrace.lo simple.lo"
12054else
12055 ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
22e05272 12056if test "x$ac_cv_header_unwind_h" = xyes; then :
eff02e4f 12057 ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace"
22e05272 12058if test "x$ac_cv_func__Unwind_Backtrace" = xyes; then :
eff02e4f
ILT
12059 BACKTRACE_FILE="backtrace.lo simple.lo"
12060else
12061 BACKTRACE_FILE="nounwind.lo"
12062 backtrace_supported=no
12063fi
12064
12065else
12066 BACKTRACE_FILE="nounwind.lo"
12067 backtrace_supported=no
12068fi
12069
12070
12071fi
12072
12073
56195009 12074EXTRA_FLAGS=
32061319 12075if test -n "${with_target_subdir}"; then
36a58fb3 12076 EXTRA_FLAGS="-funwind-tables -frandom-seed=\$@"
32061319
ILT
12077else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -funwind-tables option" >&5
12079$as_echo_n "checking for -funwind-tables option... " >&6; }
22e05272 12080if ${libbacktrace_cv_c_unwind_tables+:} false; then :
32061319
ILT
12081 $as_echo_n "(cached) " >&6
12082else
12083 CFLAGS_hold="$CFLAGS"
12084 CFLAGS="$CFLAGS -funwind-tables"
12085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12086/* end confdefs.h. */
12087static int f() { return 0; }
12088int
12089main ()
12090{
12091return f();
12092 ;
12093 return 0;
12094}
12095_ACEOF
12096if ac_fn_c_try_compile "$LINENO"; then :
12097 libbacktrace_cv_c_unwind_tables=yes
12098else
12099 libbacktrace_cv_c_unwind_tables=no
12100fi
12101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12102 CFLAGS="$CFLAGS_hold"
12103fi
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_unwind_tables" >&5
12105$as_echo "$libbacktrace_cv_c_unwind_tables" >&6; }
36a58fb3
JJ
12106 if test "$libbacktrace_cv_c_unwind_tables" = "yes"; then
12107 EXTRA_FLAGS=-funwind-tables
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -frandom-seed=string option" >&5
12110$as_echo_n "checking for -frandom-seed=string option... " >&6; }
22e05272 12111if ${libbacktrace_cv_c_random_seed_string+:} false; then :
36a58fb3
JJ
12112 $as_echo_n "(cached) " >&6
12113else
12114 CFLAGS_hold="$CFLAGS"
12115 CFLAGS="$CFLAGS -frandom-seed=conftest.lo"
12116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12117/* end confdefs.h. */
12118
12119int
12120main ()
12121{
12122return 0;
12123 ;
12124 return 0;
12125}
12126_ACEOF
12127if ac_fn_c_try_compile "$LINENO"; then :
12128 libbacktrace_cv_c_random_seed_string=yes
12129else
12130 libbacktrace_cv_c_random_seed_string=no
12131fi
12132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 CFLAGS="$CFLAGS_hold"
12134fi
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_c_random_seed_string" >&5
12136$as_echo "$libbacktrace_cv_c_random_seed_string" >&6; }
12137 if test "$libbacktrace_cv_c_random_seed_string" = "yes"; then
12138 EXTRA_FLAGS="$EXTRA_FLAGS -frandom-seed=\$@"
12139 fi
56195009
UB
12140fi
12141
44685d37
IT
12142if test -n "${with_target_subdir}"; then
12143 # Add CET specific flags is Intel CET is enabled.
12144 # Check whether --enable-cet was given.
12145if test "${enable_cet+set}" = set; then :
12146 enableval=$enable_cet;
12147 case "$enableval" in
a0e1df88 12148 yes|no|auto) ;;
22e05272 12149 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
44685d37
IT
12150 esac
12151
12152else
a0e1df88 12153 enable_cet=no
44685d37
IT
12154fi
12155
12156
14e335ed
IT
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
12158$as_echo_n "checking for CET support... " >&6; }
12159
44685d37
IT
12160case "$host" in
12161 i[34567]86-*-linux* | x86_64-*-linux*)
12162 case "$enable_cet" in
a0e1df88 12163 auto)
14e335ed
IT
12164 # Check if target supports multi-byte NOPs
12165 # and if assembler supports CET insn.
44685d37
IT
12166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12167/* end confdefs.h. */
12168
12169int
12170main ()
12171{
14e335ed
IT
12172
12173#if !defined(__SSE2__)
12174#error target does not support multi-byte NOPs
12175#else
44685d37 12176asm ("setssbsy");
14e335ed
IT
12177#endif
12178
44685d37
IT
12179 ;
12180 return 0;
12181}
12182_ACEOF
12183if ac_fn_c_try_compile "$LINENO"; then :
12184 enable_cet=yes
12185else
12186 enable_cet=no
12187fi
12188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 ;;
12190 yes)
12191 # Check if assembler supports CET.
12192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12193/* end confdefs.h. */
12194
12195int
12196main ()
12197{
12198asm ("setssbsy");
12199 ;
12200 return 0;
12201}
12202_ACEOF
12203if ac_fn_c_try_compile "$LINENO"; then :
12204
12205else
22e05272 12206 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
44685d37
IT
12207fi
12208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 ;;
12210 esac
12211 ;;
12212 *)
12213 enable_cet=no
12214 ;;
12215esac
12216if test x$enable_cet = xyes; then
7b47ecf2 12217 CET_FLAGS="-fcf-protection -mshstk"
14e335ed
IT
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219$as_echo "yes" >&6; }
12220else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222$as_echo "no" >&6; }
44685d37
IT
12223fi
12224
12225 EXTRA_FLAGS="$EXTRA_FLAGS $CET_FLAGS"
12226fi
12227
56195009 12228
1b533361
UW
12229ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
eff02e4f
ILT
12235WARN_FLAGS=
12236save_CFLAGS="$CFLAGS"
12237for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \
12238 -Wmissing-prototypes -Wold-style-definition \
12239 -Wmissing-format-attribute -Wcast-qual; do
12240 # Do the check with the no- prefix removed since gcc silently
12241 # accepts any -Wno-* option on purpose
12242 case $real_option in
12243 -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
12244 *) option=$real_option ;;
12245 esac
12246 as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
12247
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
12249$as_echo_n "checking whether $CC supports $option... " >&6; }
22e05272 12250if eval \${$as_acx_Woption+:} false; then :
eff02e4f
ILT
12251 $as_echo_n "(cached) " >&6
12252else
12253 CFLAGS="$option"
12254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12255/* end confdefs.h. */
12256
12257int
12258main ()
12259{
12260
12261 ;
12262 return 0;
12263}
12264_ACEOF
12265if ac_fn_c_try_compile "$LINENO"; then :
12266 eval "$as_acx_Woption=yes"
12267else
12268 eval "$as_acx_Woption=no"
12269fi
12270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271
12272fi
12273eval ac_res=\$$as_acx_Woption
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12275$as_echo "$ac_res" >&6; }
12276 if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
12277 WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option"
12278fi
12279 done
12280CFLAGS="$save_CFLAGS"
1b533361
UW
12281ac_ext=c
12282ac_cpp='$CPP $CPPFLAGS'
12283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12285ac_compiler_gnu=$ac_cv_c_compiler_gnu
12286
eff02e4f
ILT
12287
12288
73c3ed27 12289if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12290 WARN_FLAGS="$WARN_FLAGS -Werror"
12291fi
12292
12293
12294
64b89453 12295if test -n "${with_target_subdir}"; then
eff02e4f
ILT
12296
12297
12298# Check whether --with-system-libunwind was given.
12299if test "${with_system_libunwind+set}" = set; then :
12300 withval=$with_system_libunwind;
12301fi
12302
12303 # If system-libunwind was not specifically set, pick a default setting.
12304 if test x$with_system_libunwind = x; then
12305 case ${target} in
12306 ia64-*-hpux*) with_system_libunwind=yes ;;
12307 *) with_system_libunwind=no ;;
12308 esac
12309 fi
12310 # Based on system-libunwind and target, do we have ipinfo?
12311 if test x$with_system_libunwind = xyes; then
12312 case ${target} in
12313 ia64-*-*) have_unwind_getipinfo=no ;;
12314 *) have_unwind_getipinfo=yes ;;
12315 esac
12316 else
12317 # Darwin before version 9 does not have _Unwind_GetIPInfo.
12318
12319 case ${target} in
12320 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
12321 *) have_unwind_getipinfo=yes ;;
12322 esac
12323
12324 fi
12325
12326 if test x$have_unwind_getipinfo = xyes; then
12327
12328$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12329
12330 fi
12331
64b89453 12332else
385710cf
JH
12333 ac_save_CFFLAGS="$CFLAGS"
12334 CFLAGS="$CFLAGS -Werror-implicit-function-declaration"
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Unwind_GetIPInfo" >&5
12336$as_echo_n "checking for _Unwind_GetIPInfo... " >&6; }
12337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12338/* end confdefs.h. */
12339#include "unwind.h"
12340 struct _Unwind_Context *context;
12341 int ip_before_insn = 0;
12342int
12343main ()
12344{
12345return _Unwind_GetIPInfo (context, &ip_before_insn);
12346 ;
12347 return 0;
12348}
12349_ACEOF
63fefb4b 12350if ac_fn_c_try_link "$LINENO"; then :
64b89453
ILT
12351 have_unwind_getipinfo=yes
12352else
12353 have_unwind_getipinfo=no
12354fi
63fefb4b
MDM
12355rm -f core conftest.err conftest.$ac_objext \
12356 conftest$ac_exeext conftest.$ac_ext
385710cf
JH
12357 CFLAGS="$ac_save_CFLAGS"
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_unwind_getipinfo" >&5
12359$as_echo "$have_unwind_getipinfo" >&6; }
64b89453
ILT
12360 if test "$have_unwind_getipinfo" = "yes"; then
12361
12362$as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
12363
12364 fi
12365fi
eff02e4f 12366
7e5c7547 12367# Enable --enable-host-shared.
459260ec
DM
12368# Check whether --enable-host-shared was given.
12369if test "${enable_host_shared+set}" = set; then :
12370 enableval=$enable_host_shared; PIC_FLAG=-fPIC
7e5c7547
UW
12371else
12372 PIC_FLAG=
459260ec
DM
12373fi
12374
eff02e4f
ILT
12375
12376
12377# Test for __sync support.
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5
12379$as_echo_n "checking __sync extensions... " >&6; }
22e05272 12380if ${libbacktrace_cv_sys_sync+:} false; then :
eff02e4f
ILT
12381 $as_echo_n "(cached) " >&6
12382else
12383 if test -n "${with_target_subdir}"; then
2f401a8f
JDA
12384 case "${host}" in
12385 hppa*-*-hpux*) libbacktrace_cv_sys_sync=no ;;
12386 *) libbacktrace_cv_sys_sync=yes ;;
12387 esac
eff02e4f
ILT
12388 else
12389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390/* end confdefs.h. */
12391int i;
12392int
12393main ()
12394{
12395__sync_bool_compare_and_swap (&i, i, i);
12396 __sync_lock_test_and_set (&i, 1);
12397 __sync_lock_release (&i);
12398 ;
12399 return 0;
12400}
12401_ACEOF
12402if ac_fn_c_try_link "$LINENO"; then :
12403 libbacktrace_cv_sys_sync=yes
12404else
12405 libbacktrace_cv_sys_sync=no
12406fi
12407rm -f core conftest.err conftest.$ac_objext \
12408 conftest$ac_exeext conftest.$ac_ext
12409 fi
12410fi
12411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5
12412$as_echo "$libbacktrace_cv_sys_sync" >&6; }
12413BACKTRACE_SUPPORTS_THREADS=0
12414if test "$libbacktrace_cv_sys_sync" = "yes"; then
12415 BACKTRACE_SUPPORTS_THREADS=1
12416
12417$as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h
12418
12419fi
12420
12421
49579c7e
ILT
12422# Test for __atomic support.
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking __atomic extensions" >&5
12424$as_echo_n "checking __atomic extensions... " >&6; }
22e05272 12425if ${libbacktrace_cv_sys_atomic+:} false; then :
49579c7e
ILT
12426 $as_echo_n "(cached) " >&6
12427else
12428 if test -n "${with_target_subdir}"; then
12429 libbacktrace_cv_sys_atomic=yes
12430 else
12431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432/* end confdefs.h. */
12433int i;
12434int
12435main ()
12436{
12437__atomic_load_n (&i, __ATOMIC_ACQUIRE);
12438 __atomic_store_n (&i, 1, __ATOMIC_RELEASE);
12439 ;
12440 return 0;
12441}
12442_ACEOF
12443if ac_fn_c_try_link "$LINENO"; then :
12444 libbacktrace_cv_sys_atomic=yes
12445else
12446 libbacktrace_cv_sys_atomic=no
12447fi
12448rm -f core conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 fi
12451fi
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_atomic" >&5
12453$as_echo "$libbacktrace_cv_sys_atomic" >&6; }
12454if test "$libbacktrace_cv_sys_atomic" = "yes"; then
12455
12456$as_echo "#define HAVE_ATOMIC_FUNCTIONS 1" >>confdefs.h
12457
12458fi
12459
eff02e4f
ILT
12460# The library needs to be able to read the executable itself. Compile
12461# a file to determine the executable format. The awk script
12462# filetype.awk prints out the file type.
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5
12464$as_echo_n "checking output filetype... " >&6; }
22e05272 12465if ${libbacktrace_cv_sys_filetype+:} false; then :
eff02e4f
ILT
12466 $as_echo_n "(cached) " >&6
12467else
12468 filetype=
12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h. */
12471int i;
12472int
12473main ()
12474{
12475int j;
12476 ;
12477 return 0;
12478}
12479_ACEOF
12480if ac_fn_c_try_compile "$LINENO"; then :
12481 filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext`
12482else
12483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12485as_fn_error $? "compiler failed
12486See \`config.log' for more details" "$LINENO" 5; }
eff02e4f
ILT
12487fi
12488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12489libbacktrace_cv_sys_filetype=$filetype
12490fi
12491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5
12492$as_echo "$libbacktrace_cv_sys_filetype" >&6; }
12493
12494# Match the file type to decide what files to compile.
12495FORMAT_FILE=
e24afc10 12496backtrace_supports_data=yes
eff02e4f
ILT
12497case "$libbacktrace_cv_sys_filetype" in
12498elf*) FORMAT_FILE="elf.lo" ;;
e24afc10
TG
12499pecoff) FORMAT_FILE="pecoff.lo"
12500 backtrace_supports_data=no
12501 ;;
7e2a8417
TR
12502xcoff*) FORMAT_FILE="xcoff.lo"
12503 backtrace_supports_data=no
12504 ;;
eff02e4f
ILT
12505*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5
12506$as_echo "$as_me: WARNING: could not determine output file type" >&2;}
12507 FORMAT_FILE="unknown.lo"
12508 backtrace_supported=no
12509 ;;
12510esac
12511
12512
12513# ELF defines.
12514elfsize=
12515case "$libbacktrace_cv_sys_filetype" in
12516elf32) elfsize=32 ;;
12517elf64) elfsize=64 ;;
e24afc10 12518*) elfsize=unused
eff02e4f
ILT
12519esac
12520
12521cat >>confdefs.h <<_ACEOF
12522#define BACKTRACE_ELF_SIZE $elfsize
12523_ACEOF
12524
fddbc193
TV
12525 if test "$FORMAT_FILE" = "elf.lo"; then
12526 HAVE_ELF_TRUE=
12527 HAVE_ELF_FALSE='#'
12528else
12529 HAVE_ELF_TRUE='#'
12530 HAVE_ELF_FALSE=
12531fi
12532
eff02e4f 12533
7e2a8417
TR
12534# XCOFF defines.
12535xcoffsize=
12536case "$libbacktrace_cv_sys_filetype" in
12537xcoff32) xcoffsize=32 ;;
12538xcoff64) xcoffsize=64 ;;
12539*) xcoffsize=unused
12540esac
12541
12542cat >>confdefs.h <<_ACEOF
12543#define BACKTRACE_XCOFF_SIZE $xcoffsize
12544_ACEOF
12545
12546
eff02e4f
ILT
12547BACKTRACE_SUPPORTED=0
12548if test "$backtrace_supported" = "yes"; then
12549 BACKTRACE_SUPPORTED=1
12550fi
12551
12552
e24afc10
TG
12553BACKTRACE_SUPPORTS_DATA=0
12554if test "$backtrace_supports_data" = "yes"; then
12555 BACKTRACE_SUPPORTS_DATA=1
12556fi
12557
12558
76850556
RO
12559
12560
12561inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
12562
12563acx_cv_header_stdint=stddef.h
12564acx_cv_header_stdint_kind="(already complete)"
12565for i in stdint.h $inttype_headers; do
12566 unset ac_cv_type_uintptr_t
12567 unset ac_cv_type_uintmax_t
12568 unset ac_cv_type_int_least32_t
12569 unset ac_cv_type_int_fast32_t
12570 unset ac_cv_type_uint64_t
12571 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12572 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12573#include <$i>
12574"
22e05272 12575if test "x$ac_cv_type_uintmax_t" = xyes; then :
76850556
RO
12576 acx_cv_header_stdint=$i
12577else
12578 continue
12579fi
12580
12581 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12582#include <$i>
12583"
22e05272 12584if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12585
12586else
12587 acx_cv_header_stdint_kind="(mostly complete)"
12588fi
12589
12590 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12591#include <$i>
12592"
22e05272 12593if test "x$ac_cv_type_int_least32_t" = xyes; then :
76850556
RO
12594
12595else
12596 acx_cv_header_stdint_kind="(mostly complete)"
12597fi
12598
12599 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12600#include <$i>
12601"
22e05272 12602if test "x$ac_cv_type_int_fast32_t" = xyes; then :
76850556
RO
12603
12604else
12605 acx_cv_header_stdint_kind="(mostly complete)"
12606fi
12607
12608 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12609#include <$i>
12610"
22e05272 12611if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12612
12613else
12614 acx_cv_header_stdint_kind="(lacks uint64_t)"
12615fi
12616
12617 break
12618done
12619if test "$acx_cv_header_stdint" = stddef.h; then
12620 acx_cv_header_stdint_kind="(lacks uintmax_t)"
12621 for i in stdint.h $inttype_headers; do
12622 unset ac_cv_type_uintptr_t
12623 unset ac_cv_type_uint32_t
12624 unset ac_cv_type_uint64_t
12625 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12626 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12627#include <$i>
12628"
22e05272 12629if test "x$ac_cv_type_uint32_t" = xyes; then :
76850556
RO
12630 acx_cv_header_stdint=$i
12631else
12632 continue
12633fi
12634
12635 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12636#include <$i>
12637"
22e05272 12638if test "x$ac_cv_type_uint64_t" = xyes; then :
76850556
RO
12639
12640fi
12641
12642 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12643#include <$i>
12644"
22e05272 12645if test "x$ac_cv_type_uintptr_t" = xyes; then :
76850556
RO
12646
12647fi
12648
12649 break
12650 done
12651fi
12652if test "$acx_cv_header_stdint" = stddef.h; then
12653 acx_cv_header_stdint_kind="(u_intXX_t style)"
12654 for i in sys/types.h $inttype_headers; do
12655 unset ac_cv_type_u_int32_t
12656 unset ac_cv_type_u_int64_t
12657 $as_echo_n "looking for u_intXX_t types in $i, " >&6
12658 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
12659#include <$i>
12660"
22e05272 12661if test "x$ac_cv_type_u_int32_t" = xyes; then :
76850556
RO
12662 acx_cv_header_stdint=$i
12663else
12664 continue
12665fi
12666
12667 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
12668#include <$i>
12669"
22e05272 12670if test "x$ac_cv_type_u_int64_t" = xyes; then :
76850556
RO
12671
12672fi
12673
12674 break
12675 done
12676fi
12677if test "$acx_cv_header_stdint" = stddef.h; then
12678 acx_cv_header_stdint_kind="(using manual detection)"
12679fi
12680
12681test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12682test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12683test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12684test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12685test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12686
12687# ----------------- Summarize what we found so far
12688
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
12690$as_echo_n "checking what to include in gstdint.h... " >&6; }
12691
12692case `$as_basename -- gstdint.h ||
12693$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
12694 Xgstdint.h : 'X\(//\)$' \| \
12695 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
12696$as_echo X/gstdint.h |
12697 sed '/^.*\/\([^/][^/]*\)\/*$/{
12698 s//\1/
12699 q
12700 }
12701 /^X\/\(\/\/\)$/{
12702 s//\1/
12703 q
12704 }
12705 /^X\/\(\/\).*/{
12706 s//\1/
12707 q
12708 }
12709 s/.*/./; q'` in
12710 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12711$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12712 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
12713$as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12714 *) ;;
12715esac
12716
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12718$as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
12719
12720# ----------------- done included file, check C basic types --------
12721
12722# Lacking an uintptr_t? Test size of void *
12723case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
12724 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
12725# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12726# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12727# This bug is HP SR number 8606223364.
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12729$as_echo_n "checking size of void *... " >&6; }
22e05272 12730if ${ac_cv_sizeof_void_p+:} false; then :
76850556
RO
12731 $as_echo_n "(cached) " >&6
12732else
12733 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12734
12735else
12736 if test "$ac_cv_type_void_p" = yes; then
12737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12739as_fn_error 77 "cannot compute sizeof (void *)
12740See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12741 else
12742 ac_cv_sizeof_void_p=0
12743 fi
12744fi
12745
12746fi
12747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12748$as_echo "$ac_cv_sizeof_void_p" >&6; }
12749
12750
12751
12752cat >>confdefs.h <<_ACEOF
12753#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12754_ACEOF
12755
12756 ;;
12757esac
12758
12759# Lacking an uint64_t? Test size of long
12760case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
12761 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
12762# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12763# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12764# This bug is HP SR number 8606223364.
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12766$as_echo_n "checking size of long... " >&6; }
22e05272 12767if ${ac_cv_sizeof_long+:} false; then :
76850556
RO
12768 $as_echo_n "(cached) " >&6
12769else
12770 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12771
12772else
12773 if test "$ac_cv_type_long" = yes; then
12774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12775$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12776as_fn_error 77 "cannot compute sizeof (long)
12777See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12778 else
12779 ac_cv_sizeof_long=0
12780 fi
12781fi
12782
12783fi
12784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12785$as_echo "$ac_cv_sizeof_long" >&6; }
12786
12787
12788
12789cat >>confdefs.h <<_ACEOF
12790#define SIZEOF_LONG $ac_cv_sizeof_long
12791_ACEOF
12792
12793 ;;
12794esac
12795
12796if test $acx_cv_header_stdint = stddef.h; then
12797 # Lacking a good header? Test size of everything and deduce all types.
12798 # The cast to long int works around a bug in the HP C Compiler
12799# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12800# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12801# This bug is HP SR number 8606223364.
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12803$as_echo_n "checking size of int... " >&6; }
22e05272 12804if ${ac_cv_sizeof_int+:} false; then :
76850556
RO
12805 $as_echo_n "(cached) " >&6
12806else
12807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12808
12809else
12810 if test "$ac_cv_type_int" = yes; then
12811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12813as_fn_error 77 "cannot compute sizeof (int)
12814See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12815 else
12816 ac_cv_sizeof_int=0
12817 fi
12818fi
12819
12820fi
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12822$as_echo "$ac_cv_sizeof_int" >&6; }
12823
12824
12825
12826cat >>confdefs.h <<_ACEOF
12827#define SIZEOF_INT $ac_cv_sizeof_int
12828_ACEOF
12829
12830
12831 # The cast to long int works around a bug in the HP C Compiler
12832# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12833# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12834# This bug is HP SR number 8606223364.
12835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12836$as_echo_n "checking size of short... " >&6; }
22e05272 12837if ${ac_cv_sizeof_short+:} false; then :
76850556
RO
12838 $as_echo_n "(cached) " >&6
12839else
12840 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
12841
12842else
12843 if test "$ac_cv_type_short" = yes; then
12844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12846as_fn_error 77 "cannot compute sizeof (short)
12847See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12848 else
12849 ac_cv_sizeof_short=0
12850 fi
12851fi
12852
12853fi
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12855$as_echo "$ac_cv_sizeof_short" >&6; }
12856
12857
12858
12859cat >>confdefs.h <<_ACEOF
12860#define SIZEOF_SHORT $ac_cv_sizeof_short
12861_ACEOF
12862
12863
12864 # The cast to long int works around a bug in the HP C Compiler
12865# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12866# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12867# This bug is HP SR number 8606223364.
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
12869$as_echo_n "checking size of char... " >&6; }
22e05272 12870if ${ac_cv_sizeof_char+:} false; then :
76850556
RO
12871 $as_echo_n "(cached) " >&6
12872else
12873 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
12874
12875else
12876 if test "$ac_cv_type_char" = yes; then
12877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22e05272
JM
12879as_fn_error 77 "cannot compute sizeof (char)
12880See \`config.log' for more details" "$LINENO" 5; }
76850556
RO
12881 else
12882 ac_cv_sizeof_char=0
12883 fi
12884fi
12885
12886fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
12888$as_echo "$ac_cv_sizeof_char" >&6; }
12889
12890
12891
12892cat >>confdefs.h <<_ACEOF
12893#define SIZEOF_CHAR $ac_cv_sizeof_char
12894_ACEOF
12895
12896
12897
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
12899$as_echo_n "checking for type equivalent to int8_t... " >&6; }
12900 case "$ac_cv_sizeof_char" in
12901 1) acx_cv_type_int8_t=char ;;
22e05272 12902 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
76850556
RO
12903 esac
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
12905$as_echo "$acx_cv_type_int8_t" >&6; }
12906
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
12908$as_echo_n "checking for type equivalent to int16_t... " >&6; }
12909 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
12910 2:*) acx_cv_type_int16_t=int ;;
12911 *:2) acx_cv_type_int16_t=short ;;
22e05272 12912 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
76850556
RO
12913 esac
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
12915$as_echo "$acx_cv_type_int16_t" >&6; }
12916
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
12918$as_echo_n "checking for type equivalent to int32_t... " >&6; }
12919 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
12920 4:*) acx_cv_type_int32_t=int ;;
12921 *:4) acx_cv_type_int32_t=long ;;
22e05272 12922 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
76850556
RO
12923 esac
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
12925$as_echo "$acx_cv_type_int32_t" >&6; }
12926fi
12927
12928# These tests are here to make the output prettier
12929
12930if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
12931 case "$ac_cv_sizeof_long" in
12932 8) acx_cv_type_int64_t=long ;;
12933 esac
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
12935$as_echo_n "checking for type equivalent to int64_t... " >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
12937$as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
12938fi
12939
12940# Now we can use the above types
12941
12942if test "$ac_cv_type_uintptr_t" != yes; then
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
12944$as_echo_n "checking for type equivalent to intptr_t... " >&6; }
12945 case $ac_cv_sizeof_void_p in
12946 2) acx_cv_type_intptr_t=int16_t ;;
12947 4) acx_cv_type_intptr_t=int32_t ;;
12948 8) acx_cv_type_intptr_t=int64_t ;;
22e05272 12949 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
76850556
RO
12950 esac
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
12952$as_echo "$acx_cv_type_intptr_t" >&6; }
12953fi
12954
12955# ----------------- done all checks, emit header -------------
12956ac_config_commands="$ac_config_commands gstdint.h"
12957
12958
12959
12960
eff02e4f
ILT
12961for ac_header in sys/mman.h
12962do :
12963 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
22e05272 12964if test "x$ac_cv_header_sys_mman_h" = xyes; then :
eff02e4f
ILT
12965 cat >>confdefs.h <<_ACEOF
12966#define HAVE_SYS_MMAN_H 1
12967_ACEOF
12968
12969fi
12970
12971done
12972
12973if test "$ac_cv_header_sys_mman_h" = "no"; then
12974 have_mmap=no
12975else
12976 if test -n "${with_target_subdir}"; then
12977 # When built as a GCC target library, we can't do a link test. We
12978 # simply assume that if we have mman.h, we have mmap.
12979 have_mmap=yes
1b533361 12980 case "${host}" in
2f2aeda9
UW
12981 *-*-msdosdjgpp)
12982 # DJGPP has sys/man.h, but no mmap
1b533361
UW
12983 have_mmap=no ;;
12984 esac
eff02e4f
ILT
12985 else
12986 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
22e05272 12987if test "x$ac_cv_func_mmap" = xyes; then :
eff02e4f
ILT
12988 have_mmap=yes
12989else
12990 have_mmap=no
12991fi
12992
12993 fi
12994fi
12995if test "$have_mmap" = "no"; then
12996 VIEW_FILE=read.lo
12997 ALLOC_FILE=alloc.lo
12998else
12999 VIEW_FILE=mmapio.lo
13000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13001/* end confdefs.h. */
13002
13003#include <sys/mman.h>
13004#if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON)
13005 #error no MAP_ANONYMOUS
13006#endif
13007
13008_ACEOF
13009if ac_fn_c_try_cpp "$LINENO"; then :
13010 ALLOC_FILE=mmap.lo
13011else
13012 ALLOC_FILE=alloc.lo
13013fi
22e05272 13014rm -f conftest.err conftest.i conftest.$ac_ext
eff02e4f
ILT
13015fi
13016
13017
13018
13019BACKTRACE_USES_MALLOC=0
13020if test "$ALLOC_FILE" = "alloc.lo"; then
13021 BACKTRACE_USES_MALLOC=1
13022fi
13023
13024
e561a992
ILT
13025# Check for dl_iterate_phdr.
13026for ac_header in link.h
13027do :
13028 ac_fn_c_check_header_mongrel "$LINENO" "link.h" "ac_cv_header_link_h" "$ac_includes_default"
22e05272 13029if test "x$ac_cv_header_link_h" = xyes; then :
e561a992
ILT
13030 cat >>confdefs.h <<_ACEOF
13031#define HAVE_LINK_H 1
13032_ACEOF
13033
13034fi
13035
13036done
13037
13038if test "$ac_cv_header_link_h" = "no"; then
13039 have_dl_iterate_phdr=no
13040else
13041 if test -n "${with_target_subdir}"; then
13042 # When built as a GCC target library, we can't do a link test.
13043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044/* end confdefs.h. */
13045#include <link.h>
13046
13047_ACEOF
13048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13049 $EGREP "dl_iterate_phdr" >/dev/null 2>&1; then :
13050 have_dl_iterate_phdr=yes
13051else
13052 have_dl_iterate_phdr=no
13053fi
13054rm -f conftest*
13055
13056 else
13057 ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr"
22e05272 13058if test "x$ac_cv_func_dl_iterate_phdr" = xyes; then :
e561a992
ILT
13059 have_dl_iterate_phdr=yes
13060else
13061 have_dl_iterate_phdr=no
13062fi
13063
13064 fi
13065fi
13066if test "$have_dl_iterate_phdr" = "yes"; then
13067
13068$as_echo "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h
13069
13070fi
13071
7e2a8417
TR
13072# Check for loadquery.
13073for ac_header in sys/ldr.h
13074do :
13075 ac_fn_c_check_header_mongrel "$LINENO" "sys/ldr.h" "ac_cv_header_sys_ldr_h" "$ac_includes_default"
22e05272 13076if test "x$ac_cv_header_sys_ldr_h" = xyes; then :
7e2a8417
TR
13077 cat >>confdefs.h <<_ACEOF
13078#define HAVE_SYS_LDR_H 1
13079_ACEOF
13080
13081fi
13082
13083done
13084
13085if test "$ac_cv_header_sys_ldr_h" = "no"; then
13086 have_loadquery=no
13087else
13088 if test -n "${with_target_subdir}"; then
13089 # When built as a GCC target library, we can't do a link test.
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091/* end confdefs.h. */
13092#include <sys/ldr.h>
13093
13094_ACEOF
13095if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13096 $EGREP "loadquery" >/dev/null 2>&1; then :
13097 have_loadquery=yes
13098else
13099 have_loadquery=no
13100fi
13101rm -f conftest*
13102
13103 else
13104 ac_fn_c_check_func "$LINENO" "loadquery" "ac_cv_func_loadquery"
22e05272 13105if test "x$ac_cv_func_loadquery" = xyes; then :
7e2a8417
TR
13106 have_loadquery=yes
13107else
13108 have_loadquery=no
13109fi
13110
13111 fi
13112fi
13113if test "$have_loadquery" = "yes"; then
13114
13115$as_echo "#define HAVE_LOADQUERY 1" >>confdefs.h
13116
13117fi
13118
3319ef17
ILT
13119# Check for the fcntl function.
13120if test -n "${with_target_subdir}"; then
13121 case "${host}" in
13122 *-*-mingw*) have_fcntl=no ;;
13123 *) have_fcntl=yes ;;
13124 esac
13125else
13126 ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
22e05272 13127if test "x$ac_cv_func_fcntl" = xyes; then :
3319ef17
ILT
13128 have_fcntl=yes
13129else
13130 have_fcntl=no
13131fi
13132
13133fi
13134if test "$have_fcntl" = "yes"; then
13135
13136$as_echo "#define HAVE_FCNTL 1" >>confdefs.h
13137
13138fi
13139
772a71a9 13140ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
22e05272 13141if test "x$ac_cv_have_decl_strnlen" = xyes; then :
772a71a9
ILT
13142 ac_have_decl=1
13143else
13144 ac_have_decl=0
13145fi
13146
13147cat >>confdefs.h <<_ACEOF
13148#define HAVE_DECL_STRNLEN $ac_have_decl
13149_ACEOF
13150
8c2ea6b2
ILT
13151for ac_func in lstat readlink
13152do :
13153 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13154ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22e05272 13155if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
8c2ea6b2
ILT
13156 cat >>confdefs.h <<_ACEOF
13157#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13158_ACEOF
13159
13160fi
13161done
13162
772a71a9 13163
33521509
ILT
13164# Check for getexecname function.
13165if test -n "${with_target_subdir}"; then
13166 case "${host}" in
13167 *-*-solaris2*) have_getexecname=yes ;;
13168 *) have_getexecname=no ;;
13169 esac
13170else
13171 ac_fn_c_check_func "$LINENO" "getexecname" "ac_cv_func_getexecname"
22e05272 13172if test "x$ac_cv_func_getexecname" = xyes; then :
33521509
ILT
13173 have_getexecname=yes
13174else
13175 have_getexecname=no
13176fi
13177
13178fi
13179if test "$have_getexecname" = "yes"; then
13180
13181$as_echo "#define HAVE_GETEXECNAME 1" >>confdefs.h
13182
13183fi
13184
dbc31f20
TS
13185# Check for the clock_gettime function.
13186for ac_func in clock_gettime
13187do :
13188 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22e05272 13189if test "x$ac_cv_func_clock_gettime" = xyes; then :
dbc31f20
TS
13190 cat >>confdefs.h <<_ACEOF
13191#define HAVE_CLOCK_GETTIME 1
13192_ACEOF
13193
13194fi
13195done
13196
dd954c67
TS
13197clock_gettime_link=
13198# At least for glibc, clock_gettime is in librt. But don't
13199# pull that in if it still doesn't give us the function we want. This
13200# test is copied from libgomp, and modified to not link in -lrt as
13201# we're using this for test timing only.
13202if test "$ac_cv_func_clock_gettime" = no; then
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13204$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22e05272 13205if ${ac_cv_lib_rt_clock_gettime+:} false; then :
dd954c67
TS
13206 $as_echo_n "(cached) " >&6
13207else
13208 ac_check_lib_save_LIBS=$LIBS
13209LIBS="-lrt $LIBS"
13210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211/* end confdefs.h. */
13212
13213/* Override any GCC internal prototype to avoid an error.
13214 Use char because int might match the return type of a GCC
13215 builtin and then its argument prototype would still apply. */
13216#ifdef __cplusplus
13217extern "C"
13218#endif
13219char clock_gettime ();
13220int
13221main ()
13222{
13223return clock_gettime ();
13224 ;
13225 return 0;
13226}
13227_ACEOF
13228if ac_fn_c_try_link "$LINENO"; then :
13229 ac_cv_lib_rt_clock_gettime=yes
13230else
13231 ac_cv_lib_rt_clock_gettime=no
13232fi
13233rm -f core conftest.err conftest.$ac_objext \
13234 conftest$ac_exeext conftest.$ac_ext
13235LIBS=$ac_check_lib_save_LIBS
13236fi
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13238$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22e05272 13239if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
8398c1df 13240 CLOCK_GETTIME_LINK=-lrt
dd954c67
TS
13241
13242$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
13243
13244fi
13245
13246fi
13247
dbc31f20 13248
d1609a23
ILT
13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13250$as_echo_n "checking whether -pthread is supported... " >&6; }
22e05272 13251if ${libgo_cv_lib_pthread+:} false; then :
d1609a23
ILT
13252 $as_echo_n "(cached) " >&6
13253else
13254 CFLAGS_hold=$CFLAGS
13255CFLAGS="$CFLAGS -pthread"
13256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257/* end confdefs.h. */
13258int i;
13259_ACEOF
13260if ac_fn_c_try_compile "$LINENO"; then :
13261 libgo_cv_lib_pthread=yes
13262else
13263 libgo_cv_lib_pthread=no
13264fi
13265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266CFLAGS=$CFLAGS_hold
13267fi
13268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13269$as_echo "$libgo_cv_lib_pthread" >&6; }
13270PTHREAD_CFLAGS=
13271if test "$libgo_cv_lib_pthread" = yes; then
13272 PTHREAD_CFLAGS=-pthread
13273fi
13274
13275
13276 if test "$libgo_cv_lib_pthread" = yes; then
13277 HAVE_PTHREAD_TRUE=
13278 HAVE_PTHREAD_FALSE='#'
13279else
13280 HAVE_PTHREAD_TRUE='#'
13281 HAVE_PTHREAD_FALSE=
13282fi
13283
13284
c926fd82
ILT
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -gdwarf-5 is supported" >&5
13286$as_echo_n "checking whether -gdwarf-5 is supported... " >&6; }
13287if ${libbacktrace_cv_lib_dwarf5+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 CFLAGS_hold=$CFLAGS
13291CFLAGS="$CFLAGS -gdwarf-5"
13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h. */
13294int i;
13295_ACEOF
13296if ac_fn_c_try_compile "$LINENO"; then :
13297 libbacktrace_cv_lib_dwarf5=yes
13298else
13299 libbacktrace_cv_lib_dwarf5=no
13300fi
13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13302CFLAGS=$CFLAGS_hold
13303fi
13304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_lib_dwarf5" >&5
13305$as_echo "$libbacktrace_cv_lib_dwarf5" >&6; }
13306 if test "$libbacktrace_cv_lib_dwarf5" = yes; then
13307 HAVE_DWARF5_TRUE=
13308 HAVE_DWARF5_FALSE='#'
13309else
13310 HAVE_DWARF5_TRUE='#'
13311 HAVE_DWARF5_FALSE=
13312fi
13313
13314
8da872d9
ILT
13315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
13316$as_echo_n "checking for compress in -lz... " >&6; }
22e05272 13317if ${ac_cv_lib_z_compress+:} false; then :
8da872d9
ILT
13318 $as_echo_n "(cached) " >&6
13319else
13320 ac_check_lib_save_LIBS=$LIBS
13321LIBS="-lz $LIBS"
13322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323/* end confdefs.h. */
13324
13325/* Override any GCC internal prototype to avoid an error.
13326 Use char because int might match the return type of a GCC
13327 builtin and then its argument prototype would still apply. */
13328#ifdef __cplusplus
13329extern "C"
13330#endif
13331char compress ();
13332int
13333main ()
13334{
13335return compress ();
13336 ;
13337 return 0;
13338}
13339_ACEOF
13340if ac_fn_c_try_link "$LINENO"; then :
13341 ac_cv_lib_z_compress=yes
13342else
13343 ac_cv_lib_z_compress=no
13344fi
13345rm -f core conftest.err conftest.$ac_objext \
13346 conftest$ac_exeext conftest.$ac_ext
13347LIBS=$ac_check_lib_save_LIBS
13348fi
13349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
13350$as_echo "$ac_cv_lib_z_compress" >&6; }
22e05272 13351if test "x$ac_cv_lib_z_compress" = xyes; then :
8da872d9
ILT
13352
13353$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13354
13355fi
2206fb89 13356
8da872d9
ILT
13357 if test "$ac_cv_lib_z_compress" = yes; then
13358 HAVE_ZLIB_TRUE=
13359 HAVE_ZLIB_FALSE='#'
13360else
13361 HAVE_ZLIB_TRUE='#'
13362 HAVE_ZLIB_FALSE=
13363fi
13364
13365
13366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --compress-debug-sections is supported" >&5
13367$as_echo_n "checking whether --compress-debug-sections is supported... " >&6; }
22e05272 13368if ${libgo_cv_ld_compress+:} false; then :
8da872d9
ILT
13369 $as_echo_n "(cached) " >&6
13370else
13371 LDFLAGS_hold=$LDFLAGS
13372LDFLAGS="$LDFLAGS -Wl,--compress-debug-sections=zlib-gnu"
13373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374/* end confdefs.h. */
13375
13376int
13377main ()
13378{
13379
13380 ;
13381 return 0;
13382}
13383_ACEOF
13384if ac_fn_c_try_link "$LINENO"; then :
13385 libgo_cv_ld_compress=yes
13386else
13387 libgo_cv_ld_compress=no
13388fi
13389rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391LDFLAGS=$LDFLAGS_hold
13392fi
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_ld_compress" >&5
13394$as_echo "$libgo_cv_ld_compress" >&6; }
13395 if test "$libgo_cv_ld_compress" = yes; then
13396 HAVE_COMPRESSED_DEBUG_TRUE=
13397 HAVE_COMPRESSED_DEBUG_FALSE='#'
13398else
13399 HAVE_COMPRESSED_DEBUG_TRUE='#'
13400 HAVE_COMPRESSED_DEBUG_FALSE=
13401fi
13402
13403
9283471b
ILT
13404
13405# Extract the first word of "objcopy", so it can be a program name with args.
13406set dummy objcopy; ac_word=$2
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13408$as_echo_n "checking for $ac_word... " >&6; }
22e05272 13409if ${ac_cv_prog_OBJCOPY+:} false; then :
9283471b
ILT
13410 $as_echo_n "(cached) " >&6
13411else
13412 if test -n "$OBJCOPY"; then
13413 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13414else
13415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13416for as_dir in $PATH
13417do
13418 IFS=$as_save_IFS
13419 test -z "$as_dir" && as_dir=.
13420 for ac_exec_ext in '' $ac_executable_extensions; do
22e05272 13421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9283471b
ILT
13422 ac_cv_prog_OBJCOPY="objcopy"
13423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13424 break 2
13425 fi
13426done
13427 done
13428IFS=$as_save_IFS
13429
13430fi
13431fi
13432OBJCOPY=$ac_cv_prog_OBJCOPY
13433if test -n "$OBJCOPY"; then
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
13435$as_echo "$OBJCOPY" >&6; }
13436else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13438$as_echo "no" >&6; }
13439fi
13440
13441
fddbc193
TV
13442# Extract the first word of "readelf", so it can be a program name with args.
13443set dummy readelf; ac_word=$2
13444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13445$as_echo_n "checking for $ac_word... " >&6; }
13446if ${ac_cv_prog_READELF+:} false; then :
13447 $as_echo_n "(cached) " >&6
13448else
13449 if test -n "$READELF"; then
13450 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13451else
13452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13453for as_dir in $PATH
13454do
13455 IFS=$as_save_IFS
13456 test -z "$as_dir" && as_dir=.
13457 for ac_exec_ext in '' $ac_executable_extensions; do
13458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13459 ac_cv_prog_READELF="readelf"
13460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 break 2
13462 fi
13463done
13464 done
13465IFS=$as_save_IFS
13466
13467fi
13468fi
13469READELF=$ac_cv_prog_READELF
13470if test -n "$READELF"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
13472$as_echo "$READELF" >&6; }
13473else
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13475$as_echo "no" >&6; }
13476fi
13477
13478
9283471b
ILT
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether objcopy supports debuglink" >&5
13480$as_echo_n "checking whether objcopy supports debuglink... " >&6; }
22e05272 13481if ${libbacktrace_cv_objcopy_debuglink+:} false; then :
9283471b
ILT
13482 $as_echo_n "(cached) " >&6
13483else
13484 if test -n "${with_target_subdir}"; then
13485 libbacktrace_cv_objcopy_debuglink=no
13486elif ${OBJCOPY} --add-gnu-debuglink=x /bin/ls /tmp/ls$$; then
13487 rm -f /tmp/ls$$
13488 libbacktrace_cv_objcopy_debuglink=yes
13489else
13490 libbacktrace_cv_objcopy_debuglink=no
13491fi
13492fi
13493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_objcopy_debuglink" >&5
13494$as_echo "$libbacktrace_cv_objcopy_debuglink" >&6; }
13495 if test "$libbacktrace_cv_objcopy_debuglink" = yes; then
13496 HAVE_OBJCOPY_DEBUGLINK_TRUE=
13497 HAVE_OBJCOPY_DEBUGLINK_FALSE='#'
13498else
13499 HAVE_OBJCOPY_DEBUGLINK_TRUE='#'
13500 HAVE_OBJCOPY_DEBUGLINK_FALSE=
13501fi
13502
13503
eff02e4f
ILT
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5
13505$as_echo_n "checking whether tests can run... " >&6; }
22e05272 13506if ${libbacktrace_cv_sys_native+:} false; then :
eff02e4f
ILT
13507 $as_echo_n "(cached) " >&6
13508else
13509 if test "$cross_compiling" = yes; then :
13510 libbacktrace_cv_sys_native=no
13511else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h. */
13514
13515int
13516main ()
13517{
13518return 0;
13519 ;
13520 return 0;
13521}
13522_ACEOF
13523if ac_fn_c_try_run "$LINENO"; then :
13524 libbacktrace_cv_sys_native=yes
13525else
13526 libbacktrace_cv_sys_native=no
13527fi
13528rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529 conftest.$ac_objext conftest.beam conftest.$ac_ext
13530fi
13531
13532fi
13533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5
13534$as_echo "$libbacktrace_cv_sys_native" >&6; }
13535 if test "$libbacktrace_cv_sys_native" = "yes"; then
13536 NATIVE_TRUE=
13537 NATIVE_FALSE='#'
13538else
13539 NATIVE_TRUE='#'
13540 NATIVE_FALSE=
13541fi
13542
13543
13544if test "${multilib}" = "yes"; then
13545 multilib_arg="--enable-multilib"
13546else
13547 multilib_arg=
13548fi
13549
13550ac_config_files="$ac_config_files Makefile backtrace-supported.h"
13551
fddbc193
TV
13552ac_config_files="$ac_config_files install-debuginfo-for-buildid.sh"
13553
eff02e4f
ILT
13554
13555# We need multilib support, but only if configuring for the target.
13556ac_config_commands="$ac_config_commands default"
13557
13558
13559cat >confcache <<\_ACEOF
13560# This file is a shell script that caches the results of configure
13561# tests run on this system so they can be shared between configure
13562# scripts and configure runs, see configure's option --config-cache.
13563# It is not useful on other systems. If it contains results you don't
13564# want to keep, you may remove or edit it.
13565#
13566# config.status only pays attention to the cache file if you give it
13567# the --recheck option to rerun configure.
13568#
13569# `ac_cv_env_foo' variables (set or unset) will be overridden when
13570# loading this file, other *unset* `ac_cv_foo' will be assigned the
13571# following values.
13572
13573_ACEOF
13574
13575# The following way of writing the cache mishandles newlines in values,
13576# but we know of no workaround that is simple, portable, and efficient.
13577# So, we kill variables containing newlines.
13578# Ultrix sh set writes to stderr and can't be redirected directly,
13579# and sets the high bit in the cache file unless we assign to the vars.
13580(
13581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13582 eval ac_val=\$$ac_var
13583 case $ac_val in #(
13584 *${as_nl}*)
13585 case $ac_var in #(
13586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13587$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13588 esac
13589 case $ac_var in #(
13590 _ | IFS | as_nl) ;; #(
13591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13592 *) { eval $ac_var=; unset $ac_var;} ;;
13593 esac ;;
13594 esac
13595 done
13596
13597 (set) 2>&1 |
13598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13599 *${as_nl}ac_space=\ *)
13600 # `set' does not quote correctly, so add quotes: double-quote
13601 # substitution turns \\\\ into \\, and sed turns \\ into \.
13602 sed -n \
13603 "s/'/'\\\\''/g;
13604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13605 ;; #(
13606 *)
13607 # `set' quotes correctly as required by POSIX, so do not add quotes.
13608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13609 ;;
13610 esac |
13611 sort
13612) |
13613 sed '
13614 /^ac_cv_env_/b end
13615 t clear
13616 :clear
13617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13618 t end
13619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13620 :end' >>confcache
13621if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13622 if test -w "$cache_file"; then
22e05272 13623 if test "x$cache_file" != "x/dev/null"; then
eff02e4f
ILT
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13625$as_echo "$as_me: updating cache $cache_file" >&6;}
22e05272
JM
13626 if test ! -f "$cache_file" || test -h "$cache_file"; then
13627 cat confcache >"$cache_file"
13628 else
13629 case $cache_file in #(
13630 */* | ?:*)
13631 mv -f confcache "$cache_file"$$ &&
13632 mv -f "$cache_file"$$ "$cache_file" ;; #(
13633 *)
13634 mv -f confcache "$cache_file" ;;
13635 esac
13636 fi
13637 fi
eff02e4f
ILT
13638 else
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13640$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13641 fi
13642fi
13643rm -f confcache
13644
13645test "x$prefix" = xNONE && prefix=$ac_default_prefix
13646# Let make expand exec_prefix.
13647test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13648
13649DEFS=-DHAVE_CONFIG_H
13650
13651ac_libobjs=
13652ac_ltlibobjs=
22e05272 13653U=
eff02e4f
ILT
13654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13655 # 1. Remove the extension, and $U if already installed.
13656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13659 # will be set to the directory where LIBOBJS objects are built.
13660 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13661 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13662done
13663LIBOBJS=$ac_libobjs
13664
13665LTLIBOBJS=$ac_ltlibobjs
13666
13667
22e05272
JM
13668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13669$as_echo_n "checking that generated files are newer than configure... " >&6; }
13670 if test -n "$am_sleep_pid"; then
13671 # Hide warnings about reused PIDs.
13672 wait $am_sleep_pid 2>/dev/null
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13675$as_echo "done" >&6; }
eff02e4f
ILT
13676 if test -n "$EXEEXT"; then
13677 am__EXEEXT_TRUE=
13678 am__EXEEXT_FALSE='#'
13679else
13680 am__EXEEXT_TRUE='#'
13681 am__EXEEXT_FALSE=
13682fi
13683
13684if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22e05272 13685 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
eff02e4f
ILT
13686Usually this means the macro was only invoked conditionally." "$LINENO" 5
13687fi
10f48858
TV
13688if test -z "${HAVE_DWZ_TRUE}" && test -z "${HAVE_DWZ_FALSE}"; then
13689 as_fn_error $? "conditional \"HAVE_DWZ\" was never defined.
13690Usually this means the macro was only invoked conditionally." "$LINENO" 5
13691fi
fddbc193
TV
13692if test -z "${HAVE_ELF_TRUE}" && test -z "${HAVE_ELF_FALSE}"; then
13693 as_fn_error $? "conditional \"HAVE_ELF\" was never defined.
13694Usually this means the macro was only invoked conditionally." "$LINENO" 5
13695fi
d1609a23 13696if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
22e05272 13697 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
d1609a23
ILT
13698Usually this means the macro was only invoked conditionally." "$LINENO" 5
13699fi
c926fd82
ILT
13700if test -z "${HAVE_DWARF5_TRUE}" && test -z "${HAVE_DWARF5_FALSE}"; then
13701 as_fn_error $? "conditional \"HAVE_DWARF5\" was never defined.
13702Usually this means the macro was only invoked conditionally." "$LINENO" 5
13703fi
8da872d9 13704if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
22e05272 13705 as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
8da872d9
ILT
13706Usually this means the macro was only invoked conditionally." "$LINENO" 5
13707fi
13708if test -z "${HAVE_COMPRESSED_DEBUG_TRUE}" && test -z "${HAVE_COMPRESSED_DEBUG_FALSE}"; then
22e05272 13709 as_fn_error $? "conditional \"HAVE_COMPRESSED_DEBUG\" was never defined.
8da872d9
ILT
13710Usually this means the macro was only invoked conditionally." "$LINENO" 5
13711fi
9283471b 13712if test -z "${HAVE_OBJCOPY_DEBUGLINK_TRUE}" && test -z "${HAVE_OBJCOPY_DEBUGLINK_FALSE}"; then
22e05272 13713 as_fn_error $? "conditional \"HAVE_OBJCOPY_DEBUGLINK\" was never defined.
9283471b
ILT
13714Usually this means the macro was only invoked conditionally." "$LINENO" 5
13715fi
eff02e4f 13716if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
22e05272 13717 as_fn_error $? "conditional \"NATIVE\" was never defined.
eff02e4f
ILT
13718Usually this means the macro was only invoked conditionally." "$LINENO" 5
13719fi
13720
22e05272 13721: "${CONFIG_STATUS=./config.status}"
eff02e4f
ILT
13722ac_write_fail=0
13723ac_clean_files_save=$ac_clean_files
13724ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13726$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13727as_write_fail=0
13728cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13729#! $SHELL
13730# Generated by $as_me.
13731# Run this file to recreate the current configuration.
13732# Compiler output produced by configure, useful for debugging
13733# configure, is in config.log if it exists.
13734
13735debug=false
13736ac_cs_recheck=false
13737ac_cs_silent=false
13738
13739SHELL=\${CONFIG_SHELL-$SHELL}
13740export SHELL
13741_ASEOF
13742cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13743## -------------------- ##
13744## M4sh Initialization. ##
13745## -------------------- ##
13746
13747# Be more Bourne compatible
13748DUALCASE=1; export DUALCASE # for MKS sh
13749if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13750 emulate sh
13751 NULLCMD=:
13752 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13753 # is contrary to our usage. Disable this feature.
13754 alias -g '${1+"$@"}'='"$@"'
13755 setopt NO_GLOB_SUBST
13756else
13757 case `(set -o) 2>/dev/null` in #(
13758 *posix*) :
13759 set -o posix ;; #(
13760 *) :
13761 ;;
13762esac
13763fi
13764
13765
13766as_nl='
13767'
13768export as_nl
13769# Printing a long string crashes Solaris 7 /usr/bin/printf.
13770as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13771as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13772as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13773# Prefer a ksh shell builtin over an external printf program on Solaris,
13774# but without wasting forks for bash or zsh.
13775if test -z "$BASH_VERSION$ZSH_VERSION" \
13776 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13777 as_echo='print -r --'
13778 as_echo_n='print -rn --'
13779elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13780 as_echo='printf %s\n'
13781 as_echo_n='printf %s'
13782else
13783 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13784 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13785 as_echo_n='/usr/ucb/echo -n'
13786 else
13787 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13788 as_echo_n_body='eval
13789 arg=$1;
13790 case $arg in #(
13791 *"$as_nl"*)
13792 expr "X$arg" : "X\\(.*\\)$as_nl";
13793 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13794 esac;
13795 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13796 '
13797 export as_echo_n_body
13798 as_echo_n='sh -c $as_echo_n_body as_echo'
13799 fi
13800 export as_echo_body
13801 as_echo='sh -c $as_echo_body as_echo'
13802fi
13803
13804# The user is always right.
13805if test "${PATH_SEPARATOR+set}" != set; then
13806 PATH_SEPARATOR=:
13807 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13808 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13809 PATH_SEPARATOR=';'
13810 }
13811fi
13812
13813
13814# IFS
13815# We need space, tab and new line, in precisely that order. Quoting is
13816# there to prevent editors from complaining about space-tab.
13817# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13818# splitting by setting IFS to empty value.)
13819IFS=" "" $as_nl"
13820
13821# Find who we are. Look in the path if we contain no directory separator.
22e05272 13822as_myself=
eff02e4f
ILT
13823case $0 in #((
13824 *[\\/]* ) as_myself=$0 ;;
13825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826for as_dir in $PATH
13827do
13828 IFS=$as_save_IFS
13829 test -z "$as_dir" && as_dir=.
13830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13831 done
13832IFS=$as_save_IFS
13833
13834 ;;
13835esac
13836# We did not find ourselves, most probably we were run as `sh COMMAND'
13837# in which case we are not to be found in the path.
13838if test "x$as_myself" = x; then
13839 as_myself=$0
13840fi
13841if test ! -f "$as_myself"; then
13842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13843 exit 1
13844fi
13845
13846# Unset variables that we do not need and which cause bugs (e.g. in
13847# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13848# suppresses any "Segmentation fault" message there. '((' could
13849# trigger a bug in pdksh 5.2.14.
13850for as_var in BASH_ENV ENV MAIL MAILPATH
13851do eval test x\${$as_var+set} = xset \
13852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13853done
13854PS1='$ '
13855PS2='> '
13856PS4='+ '
13857
13858# NLS nuisances.
13859LC_ALL=C
13860export LC_ALL
13861LANGUAGE=C
13862export LANGUAGE
13863
13864# CDPATH.
13865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13866
13867
22e05272
JM
13868# as_fn_error STATUS ERROR [LINENO LOG_FD]
13869# ----------------------------------------
eff02e4f
ILT
13870# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13871# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22e05272 13872# script with STATUS, using 1 if that was 0.
eff02e4f
ILT
13873as_fn_error ()
13874{
22e05272
JM
13875 as_status=$1; test $as_status -eq 0 && as_status=1
13876 if test "$4"; then
13877 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
eff02e4f 13879 fi
22e05272 13880 $as_echo "$as_me: error: $2" >&2
eff02e4f
ILT
13881 as_fn_exit $as_status
13882} # as_fn_error
13883
13884
13885# as_fn_set_status STATUS
13886# -----------------------
13887# Set $? to STATUS, without forking.
13888as_fn_set_status ()
13889{
13890 return $1
13891} # as_fn_set_status
13892
13893# as_fn_exit STATUS
13894# -----------------
13895# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13896as_fn_exit ()
13897{
13898 set +e
13899 as_fn_set_status $1
13900 exit $1
13901} # as_fn_exit
13902
13903# as_fn_unset VAR
13904# ---------------
13905# Portably unset VAR.
13906as_fn_unset ()
13907{
13908 { eval $1=; unset $1;}
13909}
13910as_unset=as_fn_unset
13911# as_fn_append VAR VALUE
13912# ----------------------
13913# Append the text in VALUE to the end of the definition contained in VAR. Take
13914# advantage of any shell optimizations that allow amortized linear growth over
13915# repeated appends, instead of the typical quadratic growth present in naive
13916# implementations.
13917if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13918 eval 'as_fn_append ()
13919 {
13920 eval $1+=\$2
13921 }'
13922else
13923 as_fn_append ()
13924 {
13925 eval $1=\$$1\$2
13926 }
13927fi # as_fn_append
13928
13929# as_fn_arith ARG...
13930# ------------------
13931# Perform arithmetic evaluation on the ARGs, and store the result in the
13932# global $as_val. Take advantage of shells that can avoid forks. The arguments
13933# must be portable across $(()) and expr.
13934if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13935 eval 'as_fn_arith ()
13936 {
13937 as_val=$(( $* ))
13938 }'
13939else
13940 as_fn_arith ()
13941 {
13942 as_val=`expr "$@" || test $? -eq 1`
13943 }
13944fi # as_fn_arith
13945
13946
13947if expr a : '\(a\)' >/dev/null 2>&1 &&
13948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13949 as_expr=expr
13950else
13951 as_expr=false
13952fi
13953
13954if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13955 as_basename=basename
13956else
13957 as_basename=false
13958fi
13959
13960if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13961 as_dirname=dirname
13962else
13963 as_dirname=false
13964fi
13965
13966as_me=`$as_basename -- "$0" ||
13967$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13968 X"$0" : 'X\(//\)$' \| \
13969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13970$as_echo X/"$0" |
13971 sed '/^.*\/\([^/][^/]*\)\/*$/{
13972 s//\1/
13973 q
13974 }
13975 /^X\/\(\/\/\)$/{
13976 s//\1/
13977 q
13978 }
13979 /^X\/\(\/\).*/{
13980 s//\1/
13981 q
13982 }
13983 s/.*/./; q'`
13984
13985# Avoid depending upon Character Ranges.
13986as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13987as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13988as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13989as_cr_digits='0123456789'
13990as_cr_alnum=$as_cr_Letters$as_cr_digits
13991
13992ECHO_C= ECHO_N= ECHO_T=
13993case `echo -n x` in #(((((
13994-n*)
13995 case `echo 'xy\c'` in
13996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13997 xy) ECHO_C='\c';;
13998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13999 ECHO_T=' ';;
14000 esac;;
14001*)
14002 ECHO_N='-n';;
14003esac
14004
14005rm -f conf$$ conf$$.exe conf$$.file
14006if test -d conf$$.dir; then
14007 rm -f conf$$.dir/conf$$.file
14008else
14009 rm -f conf$$.dir
14010 mkdir conf$$.dir 2>/dev/null
14011fi
14012if (echo >conf$$.file) 2>/dev/null; then
14013 if ln -s conf$$.file conf$$ 2>/dev/null; then
14014 as_ln_s='ln -s'
14015 # ... but there are two gotchas:
14016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22e05272 14018 # In both cases, we have to default to `cp -pR'.
eff02e4f 14019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22e05272 14020 as_ln_s='cp -pR'
eff02e4f
ILT
14021 elif ln conf$$.file conf$$ 2>/dev/null; then
14022 as_ln_s=ln
14023 else
22e05272 14024 as_ln_s='cp -pR'
eff02e4f
ILT
14025 fi
14026else
22e05272 14027 as_ln_s='cp -pR'
eff02e4f
ILT
14028fi
14029rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14030rmdir conf$$.dir 2>/dev/null
14031
14032
14033# as_fn_mkdir_p
14034# -------------
14035# Create "$as_dir" as a directory, including parents if necessary.
14036as_fn_mkdir_p ()
14037{
14038
14039 case $as_dir in #(
14040 -*) as_dir=./$as_dir;;
14041 esac
14042 test -d "$as_dir" || eval $as_mkdir_p || {
14043 as_dirs=
14044 while :; do
14045 case $as_dir in #(
14046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14047 *) as_qdir=$as_dir;;
14048 esac
14049 as_dirs="'$as_qdir' $as_dirs"
14050 as_dir=`$as_dirname -- "$as_dir" ||
14051$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14052 X"$as_dir" : 'X\(//\)[^/]' \| \
14053 X"$as_dir" : 'X\(//\)$' \| \
14054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14055$as_echo X"$as_dir" |
14056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14057 s//\1/
14058 q
14059 }
14060 /^X\(\/\/\)[^/].*/{
14061 s//\1/
14062 q
14063 }
14064 /^X\(\/\/\)$/{
14065 s//\1/
14066 q
14067 }
14068 /^X\(\/\).*/{
14069 s//\1/
14070 q
14071 }
14072 s/.*/./; q'`
14073 test -d "$as_dir" && break
14074 done
14075 test -z "$as_dirs" || eval "mkdir $as_dirs"
22e05272 14076 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
eff02e4f
ILT
14077
14078
14079} # as_fn_mkdir_p
14080if mkdir -p . 2>/dev/null; then
14081 as_mkdir_p='mkdir -p "$as_dir"'
14082else
14083 test -d ./-p && rmdir ./-p
14084 as_mkdir_p=false
14085fi
14086
22e05272
JM
14087
14088# as_fn_executable_p FILE
14089# -----------------------
14090# Test if FILE is an executable regular file.
14091as_fn_executable_p ()
14092{
14093 test -f "$1" && test -x "$1"
14094} # as_fn_executable_p
14095as_test_x='test -x'
14096as_executable_p=as_fn_executable_p
eff02e4f
ILT
14097
14098# Sed expression to map a string onto a valid CPP name.
14099as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14100
14101# Sed expression to map a string onto a valid variable name.
14102as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14103
14104
14105exec 6>&1
14106## ----------------------------------- ##
14107## Main body of $CONFIG_STATUS script. ##
14108## ----------------------------------- ##
14109_ASEOF
14110test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14111
14112cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14113# Save the log message, to keep $0 and so on meaningful, and to
14114# report actual input values of CONFIG_FILES etc. instead of their
14115# values after options handling.
14116ac_log="
14117This file was extended by package-unused $as_me version-unused, which was
22e05272 14118generated by GNU Autoconf 2.69. Invocation command line was
eff02e4f
ILT
14119
14120 CONFIG_FILES = $CONFIG_FILES
14121 CONFIG_HEADERS = $CONFIG_HEADERS
14122 CONFIG_LINKS = $CONFIG_LINKS
14123 CONFIG_COMMANDS = $CONFIG_COMMANDS
14124 $ $0 $@
14125
14126on `(hostname || uname -n) 2>/dev/null | sed 1q`
14127"
14128
14129_ACEOF
14130
14131case $ac_config_files in *"
14132"*) set x $ac_config_files; shift; ac_config_files=$*;;
14133esac
14134
14135case $ac_config_headers in *"
14136"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14137esac
14138
14139
14140cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14141# Files that config.status was made for.
14142config_files="$ac_config_files"
14143config_headers="$ac_config_headers"
14144config_commands="$ac_config_commands"
14145
14146_ACEOF
14147
14148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14149ac_cs_usage="\
14150\`$as_me' instantiates files and other configuration actions
14151from templates according to the current configuration. Unless the files
14152and actions are specified as TAGs, all are instantiated by default.
14153
14154Usage: $0 [OPTION]... [TAG]...
14155
14156 -h, --help print this help, then exit
14157 -V, --version print version number and configuration settings, then exit
22e05272 14158 --config print configuration, then exit
eff02e4f
ILT
14159 -q, --quiet, --silent
14160 do not print progress messages
14161 -d, --debug don't remove temporary files
14162 --recheck update $as_me by reconfiguring in the same conditions
14163 --file=FILE[:TEMPLATE]
14164 instantiate the configuration file FILE
14165 --header=FILE[:TEMPLATE]
14166 instantiate the configuration header FILE
14167
14168Configuration files:
14169$config_files
14170
14171Configuration headers:
14172$config_headers
14173
14174Configuration commands:
14175$config_commands
14176
14177Report bugs to the package provider."
14178
14179_ACEOF
14180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14181ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
eff02e4f
ILT
14182ac_cs_version="\\
14183package-unused config.status version-unused
22e05272
JM
14184configured by $0, generated by GNU Autoconf 2.69,
14185 with options \\"\$ac_cs_config\\"
eff02e4f 14186
22e05272 14187Copyright (C) 2012 Free Software Foundation, Inc.
eff02e4f
ILT
14188This config.status script is free software; the Free Software Foundation
14189gives unlimited permission to copy, distribute and modify it."
14190
14191ac_pwd='$ac_pwd'
14192srcdir='$srcdir'
14193INSTALL='$INSTALL'
14194MKDIR_P='$MKDIR_P'
14195AWK='$AWK'
14196test -n "\$AWK" || AWK=awk
14197_ACEOF
14198
14199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14200# The default lists apply if the user does not specify any file.
14201ac_need_defaults=:
14202while test $# != 0
14203do
14204 case $1 in
22e05272 14205 --*=?*)
eff02e4f
ILT
14206 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14207 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14208 ac_shift=:
14209 ;;
22e05272
JM
14210 --*=)
14211 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14212 ac_optarg=
14213 ac_shift=:
14214 ;;
eff02e4f
ILT
14215 *)
14216 ac_option=$1
14217 ac_optarg=$2
14218 ac_shift=shift
14219 ;;
14220 esac
14221
14222 case $ac_option in
14223 # Handling of the options.
14224 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14225 ac_cs_recheck=: ;;
14226 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14227 $as_echo "$ac_cs_version"; exit ;;
22e05272
JM
14228 --config | --confi | --conf | --con | --co | --c )
14229 $as_echo "$ac_cs_config"; exit ;;
eff02e4f
ILT
14230 --debug | --debu | --deb | --de | --d | -d )
14231 debug=: ;;
14232 --file | --fil | --fi | --f )
14233 $ac_shift
14234 case $ac_optarg in
14235 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22e05272 14236 '') as_fn_error $? "missing file argument" ;;
eff02e4f
ILT
14237 esac
14238 as_fn_append CONFIG_FILES " '$ac_optarg'"
14239 ac_need_defaults=false;;
14240 --header | --heade | --head | --hea )
14241 $ac_shift
14242 case $ac_optarg in
14243 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14244 esac
14245 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14246 ac_need_defaults=false;;
14247 --he | --h)
14248 # Conflict between --help and --header
22e05272 14249 as_fn_error $? "ambiguous option: \`$1'
eff02e4f
ILT
14250Try \`$0 --help' for more information.";;
14251 --help | --hel | -h )
14252 $as_echo "$ac_cs_usage"; exit ;;
14253 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14254 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14255 ac_cs_silent=: ;;
14256
14257 # This is an error.
22e05272 14258 -*) as_fn_error $? "unrecognized option: \`$1'
eff02e4f
ILT
14259Try \`$0 --help' for more information." ;;
14260
14261 *) as_fn_append ac_config_targets " $1"
14262 ac_need_defaults=false ;;
14263
14264 esac
14265 shift
14266done
14267
14268ac_configure_extra_args=
14269
14270if $ac_cs_silent; then
14271 exec 6>/dev/null
14272 ac_configure_extra_args="$ac_configure_extra_args --silent"
14273fi
14274
14275_ACEOF
14276cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277if \$ac_cs_recheck; then
22e05272 14278 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
eff02e4f
ILT
14279 shift
14280 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14281 CONFIG_SHELL='$SHELL'
14282 export CONFIG_SHELL
14283 exec "\$@"
14284fi
14285
14286_ACEOF
14287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14288exec 5>>config.log
14289{
14290 echo
14291 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14292## Running $as_me. ##
14293_ASBOX
14294 $as_echo "$ac_log"
14295} >&5
14296
14297_ACEOF
14298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14299#
14300# INIT-COMMANDS
14301#
eff02e4f 14302
405a6b1c
MK
14303srcdir="$srcdir"
14304host="$host"
14305target="$target"
14306with_multisubdir="$with_multisubdir"
14307with_multisrctop="$with_multisrctop"
14308with_target_subdir="$with_target_subdir"
14309ac_configure_args="${multilib_arg} ${ac_configure_args}"
14310multi_basedir="$multi_basedir"
14311CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14312CC="$CC"
14313CXX="$CXX"
14314GFORTRAN="$GFORTRAN"
22e05272 14315GDC="$GDC"
405a6b1c 14316
eff02e4f
ILT
14317
14318# The HP-UX ksh and POSIX shell print the target directory to stdout
14319# if CDPATH is set.
14320(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14321
14322sed_quote_subst='$sed_quote_subst'
14323double_quote_subst='$double_quote_subst'
14324delay_variable_subst='$delay_variable_subst'
14325macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14326macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14327enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14328enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14329pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14330enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14331SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14332ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14333host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14334host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14335host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14336build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14337build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14338build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14339SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14340Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14341GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14342EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14343FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14344LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14345NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14346LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14347max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14348ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14349exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14350lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14351lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14352lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14353reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14354reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14355OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14356deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14357file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14358AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14359AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14360STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14361RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14362old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14363old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14364old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14365lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14366CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14367CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14368compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14369GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14370lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14371lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14372lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14373lt_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"`'
14374objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14375MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14376lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14377lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14378lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14379lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14380lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14381need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14382DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14383NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14384LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14385OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14386OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14387libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14388shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14389extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14390archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14391enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14392export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14393whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14394compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14395old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14396old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14397archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14398archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14399module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14400module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14401with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14402allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14403no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14404hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14405hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14406hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14407hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14408hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14409hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14410hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14411hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14412inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14413link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14414fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
14415always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14416export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14417exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14418include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14419prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14420file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14421variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14422need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14423need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14424version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14425runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14426shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14427shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14428libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14429library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14430soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14431install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14432postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14433postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14434finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14435finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14436hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14437sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14438sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14439hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14440enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14441enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14442enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14443old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14444striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14445
14446LTCC='$LTCC'
14447LTCFLAGS='$LTCFLAGS'
14448compiler='$compiler_DEFAULT'
14449
14450# A function that is used when there is no print builtin or printf.
14451func_fallback_echo ()
14452{
14453 eval 'cat <<_LTECHO_EOF
14454\$1
14455_LTECHO_EOF'
14456}
14457
14458# Quote evaled strings.
14459for var in SHELL \
14460ECHO \
14461SED \
14462GREP \
14463EGREP \
14464FGREP \
14465LD \
14466NM \
14467LN_S \
14468lt_SP2NL \
14469lt_NL2SP \
14470reload_flag \
14471OBJDUMP \
14472deplibs_check_method \
14473file_magic_cmd \
14474AR \
14475AR_FLAGS \
14476STRIP \
14477RANLIB \
14478CC \
14479CFLAGS \
14480compiler \
14481lt_cv_sys_global_symbol_pipe \
14482lt_cv_sys_global_symbol_to_cdecl \
14483lt_cv_sys_global_symbol_to_c_name_address \
14484lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14485lt_prog_compiler_no_builtin_flag \
14486lt_prog_compiler_wl \
14487lt_prog_compiler_pic \
14488lt_prog_compiler_static \
14489lt_cv_prog_compiler_c_o \
14490need_locks \
14491DSYMUTIL \
14492NMEDIT \
14493LIPO \
14494OTOOL \
14495OTOOL64 \
14496shrext_cmds \
14497export_dynamic_flag_spec \
14498whole_archive_flag_spec \
14499compiler_needs_object \
14500with_gnu_ld \
14501allow_undefined_flag \
14502no_undefined_flag \
14503hardcode_libdir_flag_spec \
14504hardcode_libdir_flag_spec_ld \
14505hardcode_libdir_separator \
14506fix_srcfile_path \
14507exclude_expsyms \
14508include_expsyms \
14509file_list_spec \
14510variables_saved_for_relink \
14511libname_spec \
14512library_names_spec \
14513soname_spec \
14514install_override_mode \
14515finish_eval \
14516old_striplib \
14517striplib; do
14518 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14519 *[\\\\\\\`\\"\\\$]*)
14520 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14521 ;;
14522 *)
14523 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14524 ;;
14525 esac
14526done
14527
14528# Double-quote double-evaled strings.
14529for var in reload_cmds \
14530old_postinstall_cmds \
14531old_postuninstall_cmds \
14532old_archive_cmds \
14533extract_expsyms_cmds \
14534old_archive_from_new_cmds \
14535old_archive_from_expsyms_cmds \
14536archive_cmds \
14537archive_expsym_cmds \
14538module_cmds \
14539module_expsym_cmds \
14540export_symbols_cmds \
14541prelink_cmds \
14542postinstall_cmds \
14543postuninstall_cmds \
14544finish_cmds \
14545sys_lib_search_path_spec \
14546sys_lib_dlsearch_path_spec; do
14547 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14548 *[\\\\\\\`\\"\\\$]*)
14549 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14550 ;;
14551 *)
14552 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14553 ;;
14554 esac
14555done
14556
14557ac_aux_dir='$ac_aux_dir'
14558xsi_shell='$xsi_shell'
14559lt_shell_append='$lt_shell_append'
14560
14561# See if we are running on zsh, and set the options which allow our
14562# commands through without removal of \ escapes INIT.
14563if test -n "\${ZSH_VERSION+set}" ; then
14564 setopt NO_GLOB_SUBST
14565fi
14566
14567
14568 PACKAGE='$PACKAGE'
14569 VERSION='$VERSION'
14570 TIMESTAMP='$TIMESTAMP'
14571 RM='$RM'
14572 ofile='$ofile'
14573
14574
14575
14576
76850556
RO
14577GCC="$GCC"
14578CC="$CC"
14579acx_cv_header_stdint="$acx_cv_header_stdint"
14580acx_cv_type_int8_t="$acx_cv_type_int8_t"
14581acx_cv_type_int16_t="$acx_cv_type_int16_t"
14582acx_cv_type_int32_t="$acx_cv_type_int32_t"
14583acx_cv_type_int64_t="$acx_cv_type_int64_t"
14584acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
14585ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
14586ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
14587ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
14588ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
14589ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
14590ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
14591ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
14592ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
14593
14594
eff02e4f
ILT
14595# Variables needed in config.status (file generation) which aren't already
14596# passed by autoconf.
14597SUBDIRS="$SUBDIRS"
14598
14599
14600_ACEOF
14601
14602cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14603
14604# Handling of arguments.
14605for ac_config_target in $ac_config_targets
14606do
14607 case $ac_config_target in
14608 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
eff02e4f 14609 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
405a6b1c 14610 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
76850556 14611 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
eff02e4f
ILT
14612 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14613 "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;;
fddbc193 14614 "install-debuginfo-for-buildid.sh") CONFIG_FILES="$CONFIG_FILES install-debuginfo-for-buildid.sh" ;;
eff02e4f
ILT
14615 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14616
22e05272 14617 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
eff02e4f
ILT
14618 esac
14619done
14620
14621
14622# If the user did not use the arguments to specify the items to instantiate,
14623# then the envvar interface is used. Set only those that are not.
14624# We use the long form for the default assignment because of an extremely
14625# bizarre bug on SunOS 4.1.3.
14626if $ac_need_defaults; then
14627 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14628 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14629 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14630fi
14631
14632# Have a temporary directory for convenience. Make it in the build tree
14633# simply because there is no reason against having it here, and in addition,
14634# creating and moving files from /tmp can sometimes cause problems.
14635# Hook for its removal unless debugging.
14636# Note that there is a small window in which the directory will not be cleaned:
14637# after its creation but before its name has been assigned to `$tmp'.
14638$debug ||
14639{
22e05272 14640 tmp= ac_tmp=
eff02e4f 14641 trap 'exit_status=$?
22e05272
JM
14642 : "${ac_tmp:=$tmp}"
14643 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
eff02e4f
ILT
14644' 0
14645 trap 'as_fn_exit 1' 1 2 13 15
14646}
14647# Create a (secure) tmp directory for tmp files.
14648
14649{
14650 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22e05272 14651 test -d "$tmp"
eff02e4f
ILT
14652} ||
14653{
14654 tmp=./conf$$-$RANDOM
14655 (umask 077 && mkdir "$tmp")
22e05272
JM
14656} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14657ac_tmp=$tmp
eff02e4f
ILT
14658
14659# Set up the scripts for CONFIG_FILES section.
14660# No need to generate them if there are no CONFIG_FILES.
14661# This happens for instance with `./config.status config.h'.
14662if test -n "$CONFIG_FILES"; then
14663
14664
14665ac_cr=`echo X | tr X '\015'`
14666# On cygwin, bash can eat \r inside `` if the user requested igncr.
14667# But we know of no other shell where ac_cr would be empty at this
14668# point, so we can use a bashism as a fallback.
14669if test "x$ac_cr" = x; then
14670 eval ac_cr=\$\'\\r\'
14671fi
14672ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14673if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22e05272 14674 ac_cs_awk_cr='\\r'
eff02e4f
ILT
14675else
14676 ac_cs_awk_cr=$ac_cr
14677fi
14678
22e05272 14679echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
eff02e4f
ILT
14680_ACEOF
14681
14682
14683{
14684 echo "cat >conf$$subs.awk <<_ACEOF" &&
14685 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14686 echo "_ACEOF"
14687} >conf$$subs.sh ||
22e05272
JM
14688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14689ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
eff02e4f
ILT
14690ac_delim='%!_!# '
14691for ac_last_try in false false false false false :; do
14692 . ./conf$$subs.sh ||
22e05272 14693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14694
14695 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14696 if test $ac_delim_n = $ac_delim_num; then
14697 break
14698 elif $ac_last_try; then
22e05272 14699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
14700 else
14701 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14702 fi
14703done
14704rm -f conf$$subs.sh
14705
14706cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22e05272 14707cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
eff02e4f
ILT
14708_ACEOF
14709sed -n '
14710h
14711s/^/S["/; s/!.*/"]=/
14712p
14713g
14714s/^[^!]*!//
14715:repl
14716t repl
14717s/'"$ac_delim"'$//
14718t delim
14719:nl
14720h
22e05272 14721s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14722t more1
14723s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14724p
14725n
14726b repl
14727:more1
14728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14729p
14730g
14731s/.\{148\}//
14732t nl
14733:delim
14734h
22e05272 14735s/\(.\{148\}\)..*/\1/
eff02e4f
ILT
14736t more2
14737s/["\\]/\\&/g; s/^/"/; s/$/"/
14738p
14739b
14740:more2
14741s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14742p
14743g
14744s/.\{148\}//
14745t delim
14746' <conf$$subs.awk | sed '
14747/^[^""]/{
14748 N
14749 s/\n//
14750}
14751' >>$CONFIG_STATUS || ac_write_fail=1
14752rm -f conf$$subs.awk
14753cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14754_ACAWK
22e05272 14755cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
eff02e4f
ILT
14756 for (key in S) S_is_set[key] = 1
14757 FS = "\a"
14758
14759}
14760{
14761 line = $ 0
14762 nfields = split(line, field, "@")
14763 substed = 0
14764 len = length(field[1])
14765 for (i = 2; i < nfields; i++) {
14766 key = field[i]
14767 keylen = length(key)
14768 if (S_is_set[key]) {
14769 value = S[key]
14770 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14771 len += length(value) + length(field[++i])
14772 substed = 1
14773 } else
14774 len += 1 + keylen
14775 }
14776
14777 print line
14778}
14779
14780_ACAWK
14781_ACEOF
14782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14783if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14784 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14785else
14786 cat
22e05272
JM
14787fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14788 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
eff02e4f
ILT
14789_ACEOF
14790
22e05272
JM
14791# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14792# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
eff02e4f
ILT
14793# trailing colons and then remove the whole line if VPATH becomes empty
14794# (actually we leave an empty line to preserve line numbers).
14795if test "x$srcdir" = x.; then
22e05272
JM
14796 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14797h
14798s///
14799s/^/:/
14800s/[ ]*$/:/
14801s/:\$(srcdir):/:/g
14802s/:\${srcdir}:/:/g
14803s/:@srcdir@:/:/g
14804s/^:*//
eff02e4f 14805s/:*$//
22e05272
JM
14806x
14807s/\(=[ ]*\).*/\1/
14808G
14809s/\n//
eff02e4f
ILT
14810s/^[^=]*=[ ]*$//
14811}'
14812fi
14813
14814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14815fi # test -n "$CONFIG_FILES"
14816
14817# Set up the scripts for CONFIG_HEADERS section.
14818# No need to generate them if there are no CONFIG_HEADERS.
14819# This happens for instance with `./config.status Makefile'.
14820if test -n "$CONFIG_HEADERS"; then
22e05272 14821cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
eff02e4f
ILT
14822BEGIN {
14823_ACEOF
14824
14825# Transform confdefs.h into an awk script `defines.awk', embedded as
14826# here-document in config.status, that substitutes the proper values into
14827# config.h.in to produce config.h.
14828
14829# Create a delimiter string that does not exist in confdefs.h, to ease
14830# handling of long lines.
14831ac_delim='%!_!# '
14832for ac_last_try in false false :; do
22e05272
JM
14833 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14834 if test -z "$ac_tt"; then
eff02e4f
ILT
14835 break
14836 elif $ac_last_try; then
22e05272 14837 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
eff02e4f
ILT
14838 else
14839 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14840 fi
14841done
14842
14843# For the awk script, D is an array of macro values keyed by name,
14844# likewise P contains macro parameters if any. Preserve backslash
14845# newline sequences.
14846
14847ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14848sed -n '
14849s/.\{148\}/&'"$ac_delim"'/g
14850t rset
14851:rset
14852s/^[ ]*#[ ]*define[ ][ ]*/ /
14853t def
14854d
14855:def
14856s/\\$//
14857t bsnl
14858s/["\\]/\\&/g
14859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14860D["\1"]=" \3"/p
14861s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14862d
14863:bsnl
14864s/["\\]/\\&/g
14865s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14866D["\1"]=" \3\\\\\\n"\\/p
14867t cont
14868s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14869t cont
14870d
14871:cont
14872n
14873s/.\{148\}/&'"$ac_delim"'/g
14874t clear
14875:clear
14876s/\\$//
14877t bsnlc
14878s/["\\]/\\&/g; s/^/"/; s/$/"/p
14879d
14880:bsnlc
14881s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14882b cont
14883' <confdefs.h | sed '
14884s/'"$ac_delim"'/"\\\
14885"/g' >>$CONFIG_STATUS || ac_write_fail=1
14886
14887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14888 for (key in D) D_is_set[key] = 1
14889 FS = "\a"
14890}
14891/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14892 line = \$ 0
14893 split(line, arg, " ")
14894 if (arg[1] == "#") {
14895 defundef = arg[2]
14896 mac1 = arg[3]
14897 } else {
14898 defundef = substr(arg[1], 2)
14899 mac1 = arg[2]
14900 }
14901 split(mac1, mac2, "(") #)
14902 macro = mac2[1]
14903 prefix = substr(line, 1, index(line, defundef) - 1)
14904 if (D_is_set[macro]) {
14905 # Preserve the white space surrounding the "#".
14906 print prefix "define", macro P[macro] D[macro]
14907 next
14908 } else {
14909 # Replace #undef with comments. This is necessary, for example,
14910 # in the case of _POSIX_SOURCE, which is predefined and required
14911 # on some systems where configure will not decide to define it.
14912 if (defundef == "undef") {
14913 print "/*", prefix defundef, macro, "*/"
14914 next
14915 }
14916 }
14917}
14918{ print }
14919_ACAWK
14920_ACEOF
14921cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22e05272 14922 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
eff02e4f
ILT
14923fi # test -n "$CONFIG_HEADERS"
14924
14925
14926eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14927shift
14928for ac_tag
14929do
14930 case $ac_tag in
14931 :[FHLC]) ac_mode=$ac_tag; continue;;
14932 esac
14933 case $ac_mode$ac_tag in
14934 :[FHL]*:*);;
22e05272 14935 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
eff02e4f
ILT
14936 :[FH]-) ac_tag=-:-;;
14937 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14938 esac
14939 ac_save_IFS=$IFS
14940 IFS=:
14941 set x $ac_tag
14942 IFS=$ac_save_IFS
14943 shift
14944 ac_file=$1
14945 shift
14946
14947 case $ac_mode in
14948 :L) ac_source=$1;;
14949 :[FH])
14950 ac_file_inputs=
14951 for ac_f
14952 do
14953 case $ac_f in
22e05272 14954 -) ac_f="$ac_tmp/stdin";;
eff02e4f
ILT
14955 *) # Look for the file first in the build tree, then in the source tree
14956 # (if the path is not absolute). The absolute path cannot be DOS-style,
14957 # because $ac_f cannot contain `:'.
14958 test -f "$ac_f" ||
14959 case $ac_f in
14960 [\\/$]*) false;;
14961 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14962 esac ||
22e05272 14963 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
eff02e4f
ILT
14964 esac
14965 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14966 as_fn_append ac_file_inputs " '$ac_f'"
14967 done
14968
14969 # Let's still pretend it is `configure' which instantiates (i.e., don't
14970 # use $as_me), people would be surprised to read:
14971 # /* config.h. Generated by config.status. */
14972 configure_input='Generated from '`
14973 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14974 `' by configure.'
14975 if test x"$ac_file" != x-; then
14976 configure_input="$ac_file. $configure_input"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14978$as_echo "$as_me: creating $ac_file" >&6;}
14979 fi
14980 # Neutralize special characters interpreted by sed in replacement strings.
14981 case $configure_input in #(
14982 *\&* | *\|* | *\\* )
14983 ac_sed_conf_input=`$as_echo "$configure_input" |
14984 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14985 *) ac_sed_conf_input=$configure_input;;
14986 esac
14987
14988 case $ac_tag in
22e05272
JM
14989 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14990 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
eff02e4f
ILT
14991 esac
14992 ;;
14993 esac
14994
14995 ac_dir=`$as_dirname -- "$ac_file" ||
14996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14997 X"$ac_file" : 'X\(//\)[^/]' \| \
14998 X"$ac_file" : 'X\(//\)$' \| \
14999 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15000$as_echo X"$ac_file" |
15001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15002 s//\1/
15003 q
15004 }
15005 /^X\(\/\/\)[^/].*/{
15006 s//\1/
15007 q
15008 }
15009 /^X\(\/\/\)$/{
15010 s//\1/
15011 q
15012 }
15013 /^X\(\/\).*/{
15014 s//\1/
15015 q
15016 }
15017 s/.*/./; q'`
15018 as_dir="$ac_dir"; as_fn_mkdir_p
15019 ac_builddir=.
15020
15021case "$ac_dir" in
15022.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15023*)
15024 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15025 # A ".." for each directory in $ac_dir_suffix.
15026 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15027 case $ac_top_builddir_sub in
15028 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15029 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15030 esac ;;
15031esac
15032ac_abs_top_builddir=$ac_pwd
15033ac_abs_builddir=$ac_pwd$ac_dir_suffix
15034# for backward compatibility:
15035ac_top_builddir=$ac_top_build_prefix
15036
15037case $srcdir in
15038 .) # We are building in place.
15039 ac_srcdir=.
15040 ac_top_srcdir=$ac_top_builddir_sub
15041 ac_abs_top_srcdir=$ac_pwd ;;
15042 [\\/]* | ?:[\\/]* ) # Absolute name.
15043 ac_srcdir=$srcdir$ac_dir_suffix;
15044 ac_top_srcdir=$srcdir
15045 ac_abs_top_srcdir=$srcdir ;;
15046 *) # Relative name.
15047 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15048 ac_top_srcdir=$ac_top_build_prefix$srcdir
15049 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15050esac
15051ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15052
15053
15054 case $ac_mode in
15055 :F)
15056 #
15057 # CONFIG_FILE
15058 #
15059
15060 case $INSTALL in
15061 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15062 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15063 esac
15064 ac_MKDIR_P=$MKDIR_P
15065 case $MKDIR_P in
15066 [\\/$]* | ?:[\\/]* ) ;;
15067 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15068 esac
15069_ACEOF
15070
15071cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15072# If the template does not know about datarootdir, expand it.
15073# FIXME: This hack should be removed a few years after 2.60.
15074ac_datarootdir_hack=; ac_datarootdir_seen=
15075ac_sed_dataroot='
15076/datarootdir/ {
15077 p
15078 q
15079}
15080/@datadir@/p
15081/@docdir@/p
15082/@infodir@/p
15083/@localedir@/p
15084/@mandir@/p'
15085case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15086*datarootdir*) ac_datarootdir_seen=yes;;
15087*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15089$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15090_ACEOF
15091cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15092 ac_datarootdir_hack='
15093 s&@datadir@&$datadir&g
15094 s&@docdir@&$docdir&g
15095 s&@infodir@&$infodir&g
15096 s&@localedir@&$localedir&g
15097 s&@mandir@&$mandir&g
15098 s&\\\${datarootdir}&$datarootdir&g' ;;
15099esac
15100_ACEOF
15101
15102# Neutralize VPATH when `$srcdir' = `.'.
15103# Shell code in configure.ac might set extrasub.
15104# FIXME: do we really want to maintain this feature?
15105cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15106ac_sed_extra="$ac_vpsub
15107$extrasub
15108_ACEOF
15109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15110:t
15111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15112s|@configure_input@|$ac_sed_conf_input|;t t
15113s&@top_builddir@&$ac_top_builddir_sub&;t t
15114s&@top_build_prefix@&$ac_top_build_prefix&;t t
15115s&@srcdir@&$ac_srcdir&;t t
15116s&@abs_srcdir@&$ac_abs_srcdir&;t t
15117s&@top_srcdir@&$ac_top_srcdir&;t t
15118s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15119s&@builddir@&$ac_builddir&;t t
15120s&@abs_builddir@&$ac_abs_builddir&;t t
15121s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15122s&@INSTALL@&$ac_INSTALL&;t t
15123s&@MKDIR_P@&$ac_MKDIR_P&;t t
15124$ac_datarootdir_hack
15125"
22e05272
JM
15126eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15127 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15128
15129test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22e05272
JM
15130 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15131 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15132 "$ac_tmp/out"`; test -z "$ac_out"; } &&
eff02e4f 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15134which seems to be undefined. Please make sure it is defined" >&5
eff02e4f 15135$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22e05272 15136which seems to be undefined. Please make sure it is defined" >&2;}
eff02e4f 15137
22e05272 15138 rm -f "$ac_tmp/stdin"
eff02e4f 15139 case $ac_file in
22e05272
JM
15140 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15141 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
eff02e4f 15142 esac \
22e05272 15143 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15144 ;;
15145 :H)
15146 #
15147 # CONFIG_HEADER
15148 #
15149 if test x"$ac_file" != x-; then
15150 {
15151 $as_echo "/* $configure_input */" \
22e05272
JM
15152 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15153 } >"$ac_tmp/config.h" \
15154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15155 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
eff02e4f
ILT
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15157$as_echo "$as_me: $ac_file is unchanged" >&6;}
15158 else
15159 rm -f "$ac_file"
22e05272
JM
15160 mv "$ac_tmp/config.h" "$ac_file" \
15161 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
eff02e4f
ILT
15162 fi
15163 else
15164 $as_echo "/* $configure_input */" \
22e05272
JM
15165 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15166 || as_fn_error $? "could not create -" "$LINENO" 5
eff02e4f
ILT
15167 fi
15168# Compute "$ac_file"'s index in $config_headers.
15169_am_arg="$ac_file"
15170_am_stamp_count=1
15171for _am_header in $config_headers :; do
15172 case $_am_header in
15173 $_am_arg | $_am_arg:* )
15174 break ;;
15175 * )
15176 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15177 esac
15178done
15179echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15180$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15181 X"$_am_arg" : 'X\(//\)[^/]' \| \
15182 X"$_am_arg" : 'X\(//\)$' \| \
15183 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15184$as_echo X"$_am_arg" |
15185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15186 s//\1/
15187 q
15188 }
15189 /^X\(\/\/\)[^/].*/{
15190 s//\1/
15191 q
15192 }
15193 /^X\(\/\/\)$/{
15194 s//\1/
15195 q
15196 }
15197 /^X\(\/\).*/{
15198 s//\1/
15199 q
15200 }
15201 s/.*/./; q'`/stamp-h$_am_stamp_count
15202 ;;
15203
15204 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15205$as_echo "$as_me: executing $ac_file commands" >&6;}
15206 ;;
15207 esac
15208
15209
15210 case $ac_file$ac_mode in
405a6b1c
MK
15211 "default-1":C)
15212# Only add multilib support code if we just rebuilt the top-level
15213# Makefile.
15214case " $CONFIG_FILES " in
15215 *" Makefile "*)
15216 ac_file=Makefile . ${multi_basedir}/config-ml.in
15217 ;;
15218esac ;;
eff02e4f
ILT
15219 "libtool":C)
15220
15221 # See if we are running on zsh, and set the options which allow our
15222 # commands through without removal of \ escapes.
15223 if test -n "${ZSH_VERSION+set}" ; then
15224 setopt NO_GLOB_SUBST
15225 fi
15226
15227 cfgfile="${ofile}T"
15228 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15229 $RM "$cfgfile"
15230
15231 cat <<_LT_EOF >> "$cfgfile"
15232#! $SHELL
15233
15234# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15235# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15236# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15237# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15238#
15239# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15240# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15241# Written by Gordon Matzigkeit, 1996
15242#
15243# This file is part of GNU Libtool.
15244#
15245# GNU Libtool is free software; you can redistribute it and/or
15246# modify it under the terms of the GNU General Public License as
15247# published by the Free Software Foundation; either version 2 of
15248# the License, or (at your option) any later version.
15249#
15250# As a special exception to the GNU General Public License,
15251# if you distribute this file as part of a program or library that
15252# is built using GNU Libtool, you may include this file under the
15253# same distribution terms that you use for the rest of that program.
15254#
15255# GNU Libtool is distributed in the hope that it will be useful,
15256# but WITHOUT ANY WARRANTY; without even the implied warranty of
15257# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15258# GNU General Public License for more details.
15259#
15260# You should have received a copy of the GNU General Public License
15261# along with GNU Libtool; see the file COPYING. If not, a copy
15262# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15263# obtained by writing to the Free Software Foundation, Inc.,
15264# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15265
15266
15267# The names of the tagged configurations supported by this script.
15268available_tags=""
15269
15270# ### BEGIN LIBTOOL CONFIG
15271
15272# Which release of libtool.m4 was used?
15273macro_version=$macro_version
15274macro_revision=$macro_revision
15275
15276# Whether or not to build shared libraries.
15277build_libtool_libs=$enable_shared
15278
15279# Whether or not to build static libraries.
15280build_old_libs=$enable_static
15281
15282# What type of objects to build.
15283pic_mode=$pic_mode
15284
15285# Whether or not to optimize for fast installation.
15286fast_install=$enable_fast_install
15287
15288# Shell to use when invoking shell scripts.
15289SHELL=$lt_SHELL
15290
15291# An echo program that protects backslashes.
15292ECHO=$lt_ECHO
15293
15294# The host system.
15295host_alias=$host_alias
15296host=$host
15297host_os=$host_os
15298
15299# The build system.
15300build_alias=$build_alias
15301build=$build
15302build_os=$build_os
15303
15304# A sed program that does not truncate output.
15305SED=$lt_SED
15306
15307# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15308Xsed="\$SED -e 1s/^X//"
15309
15310# A grep program that handles long lines.
15311GREP=$lt_GREP
15312
15313# An ERE matcher.
15314EGREP=$lt_EGREP
15315
15316# A literal string matcher.
15317FGREP=$lt_FGREP
15318
15319# A BSD- or MS-compatible name lister.
15320NM=$lt_NM
15321
15322# Whether we need soft or hard links.
15323LN_S=$lt_LN_S
15324
15325# What is the maximum length of a command?
15326max_cmd_len=$max_cmd_len
15327
15328# Object file suffix (normally "o").
15329objext=$ac_objext
15330
15331# Executable file suffix (normally "").
15332exeext=$exeext
15333
15334# whether the shell understands "unset".
15335lt_unset=$lt_unset
15336
15337# turn spaces into newlines.
15338SP2NL=$lt_lt_SP2NL
15339
15340# turn newlines into spaces.
15341NL2SP=$lt_lt_NL2SP
15342
15343# An object symbol dumper.
15344OBJDUMP=$lt_OBJDUMP
15345
15346# Method to check whether dependent libraries are shared objects.
15347deplibs_check_method=$lt_deplibs_check_method
15348
15349# Command to use when deplibs_check_method == "file_magic".
15350file_magic_cmd=$lt_file_magic_cmd
15351
15352# The archiver.
15353AR=$lt_AR
15354AR_FLAGS=$lt_AR_FLAGS
15355
15356# A symbol stripping program.
15357STRIP=$lt_STRIP
15358
15359# Commands used to install an old-style archive.
15360RANLIB=$lt_RANLIB
15361old_postinstall_cmds=$lt_old_postinstall_cmds
15362old_postuninstall_cmds=$lt_old_postuninstall_cmds
15363
15364# Whether to use a lock for old archive extraction.
15365lock_old_archive_extraction=$lock_old_archive_extraction
15366
15367# A C compiler.
15368LTCC=$lt_CC
15369
15370# LTCC compiler flags.
15371LTCFLAGS=$lt_CFLAGS
15372
15373# Take the output of nm and produce a listing of raw symbols and C names.
15374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15375
15376# Transform the output of nm in a proper C declaration.
15377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15378
15379# Transform the output of nm in a C name address pair.
15380global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15381
15382# Transform the output of nm in a C name address pair when lib prefix is needed.
15383global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15384
15385# The name of the directory that contains temporary libtool files.
15386objdir=$objdir
15387
15388# Used to examine libraries when file_magic_cmd begins with "file".
15389MAGIC_CMD=$MAGIC_CMD
15390
15391# Must we lock files when doing compilation?
15392need_locks=$lt_need_locks
15393
15394# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15395DSYMUTIL=$lt_DSYMUTIL
15396
15397# Tool to change global to local symbols on Mac OS X.
15398NMEDIT=$lt_NMEDIT
15399
15400# Tool to manipulate fat objects and archives on Mac OS X.
15401LIPO=$lt_LIPO
15402
15403# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15404OTOOL=$lt_OTOOL
15405
15406# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15407OTOOL64=$lt_OTOOL64
15408
15409# Old archive suffix (normally "a").
15410libext=$libext
15411
15412# Shared library suffix (normally ".so").
15413shrext_cmds=$lt_shrext_cmds
15414
15415# The commands to extract the exported symbol list from a shared archive.
15416extract_expsyms_cmds=$lt_extract_expsyms_cmds
15417
15418# Variables whose values should be saved in libtool wrapper scripts and
15419# restored at link time.
15420variables_saved_for_relink=$lt_variables_saved_for_relink
15421
15422# Do we need the "lib" prefix for modules?
15423need_lib_prefix=$need_lib_prefix
15424
15425# Do we need a version for libraries?
15426need_version=$need_version
15427
15428# Library versioning type.
15429version_type=$version_type
15430
15431# Shared library runtime path variable.
15432runpath_var=$runpath_var
15433
15434# Shared library path variable.
15435shlibpath_var=$shlibpath_var
15436
15437# Is shlibpath searched before the hard-coded library search path?
15438shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15439
15440# Format of library name prefix.
15441libname_spec=$lt_libname_spec
15442
15443# List of archive names. First name is the real one, the rest are links.
15444# The last name is the one that the linker finds with -lNAME
15445library_names_spec=$lt_library_names_spec
15446
15447# The coded name of the library, if different from the real name.
15448soname_spec=$lt_soname_spec
15449
15450# Permission mode override for installation of shared libraries.
15451install_override_mode=$lt_install_override_mode
15452
15453# Command to use after installation of a shared archive.
15454postinstall_cmds=$lt_postinstall_cmds
15455
15456# Command to use after uninstallation of a shared archive.
15457postuninstall_cmds=$lt_postuninstall_cmds
15458
15459# Commands used to finish a libtool library installation in a directory.
15460finish_cmds=$lt_finish_cmds
15461
15462# As "finish_cmds", except a single script fragment to be evaled but
15463# not shown.
15464finish_eval=$lt_finish_eval
15465
15466# Whether we should hardcode library paths into libraries.
15467hardcode_into_libs=$hardcode_into_libs
15468
15469# Compile-time system search path for libraries.
15470sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15471
15472# Run-time system search path for libraries.
15473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15474
15475# Whether dlopen is supported.
15476dlopen_support=$enable_dlopen
15477
15478# Whether dlopen of programs is supported.
15479dlopen_self=$enable_dlopen_self
15480
15481# Whether dlopen of statically linked programs is supported.
15482dlopen_self_static=$enable_dlopen_self_static
15483
15484# Commands to strip libraries.
15485old_striplib=$lt_old_striplib
15486striplib=$lt_striplib
15487
15488
15489# The linker used to build libraries.
15490LD=$lt_LD
15491
15492# How to create reloadable object files.
15493reload_flag=$lt_reload_flag
15494reload_cmds=$lt_reload_cmds
15495
15496# Commands used to build an old-style archive.
15497old_archive_cmds=$lt_old_archive_cmds
15498
15499# A language specific compiler.
15500CC=$lt_compiler
15501
15502# Is the compiler the GNU compiler?
15503with_gcc=$GCC
15504
15505# Compiler flag to turn off builtin functions.
15506no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15507
15508# How to pass a linker flag through the compiler.
15509wl=$lt_lt_prog_compiler_wl
15510
15511# Additional compiler flags for building library objects.
15512pic_flag=$lt_lt_prog_compiler_pic
15513
15514# Compiler flag to prevent dynamic linking.
15515link_static_flag=$lt_lt_prog_compiler_static
15516
15517# Does compiler simultaneously support -c and -o options?
15518compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15519
15520# Whether or not to add -lc for building shared libraries.
15521build_libtool_need_lc=$archive_cmds_need_lc
15522
15523# Whether or not to disallow shared libs when runtime libs are static.
15524allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15525
15526# Compiler flag to allow reflexive dlopens.
15527export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15528
15529# Compiler flag to generate shared objects directly from archives.
15530whole_archive_flag_spec=$lt_whole_archive_flag_spec
15531
15532# Whether the compiler copes with passing no objects directly.
15533compiler_needs_object=$lt_compiler_needs_object
15534
15535# Create an old-style archive from a shared archive.
15536old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15537
15538# Create a temporary old-style archive to link instead of a shared archive.
15539old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15540
15541# Commands used to build a shared archive.
15542archive_cmds=$lt_archive_cmds
15543archive_expsym_cmds=$lt_archive_expsym_cmds
15544
15545# Commands used to build a loadable module if different from building
15546# a shared archive.
15547module_cmds=$lt_module_cmds
15548module_expsym_cmds=$lt_module_expsym_cmds
15549
15550# Whether we are building with GNU ld or not.
15551with_gnu_ld=$lt_with_gnu_ld
15552
15553# Flag that allows shared libraries with undefined symbols to be built.
15554allow_undefined_flag=$lt_allow_undefined_flag
15555
15556# Flag that enforces no undefined symbols.
15557no_undefined_flag=$lt_no_undefined_flag
15558
15559# Flag to hardcode \$libdir into a binary during linking.
15560# This must work even if \$libdir does not exist
15561hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15562
15563# If ld is used when linking, flag to hardcode \$libdir into a binary
15564# during linking. This must work even if \$libdir does not exist.
15565hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15566
15567# Whether we need a single "-rpath" flag with a separated argument.
15568hardcode_libdir_separator=$lt_hardcode_libdir_separator
15569
15570# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15571# DIR into the resulting binary.
15572hardcode_direct=$hardcode_direct
15573
15574# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15575# DIR into the resulting binary and the resulting library dependency is
15576# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15577# library is relocated.
15578hardcode_direct_absolute=$hardcode_direct_absolute
15579
15580# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15581# into the resulting binary.
15582hardcode_minus_L=$hardcode_minus_L
15583
15584# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15585# into the resulting binary.
15586hardcode_shlibpath_var=$hardcode_shlibpath_var
15587
15588# Set to "yes" if building a shared library automatically hardcodes DIR
15589# into the library and all subsequent libraries and executables linked
15590# against it.
15591hardcode_automatic=$hardcode_automatic
15592
15593# Set to yes if linker adds runtime paths of dependent libraries
15594# to runtime path list.
15595inherit_rpath=$inherit_rpath
15596
15597# Whether libtool must link a program against all its dependency libraries.
15598link_all_deplibs=$link_all_deplibs
15599
15600# Fix the shell variable \$srcfile for the compiler.
15601fix_srcfile_path=$lt_fix_srcfile_path
15602
15603# Set to "yes" if exported symbols are required.
15604always_export_symbols=$always_export_symbols
15605
15606# The commands to list exported symbols.
15607export_symbols_cmds=$lt_export_symbols_cmds
15608
15609# Symbols that should not be listed in the preloaded symbols.
15610exclude_expsyms=$lt_exclude_expsyms
15611
15612# Symbols that must always be exported.
15613include_expsyms=$lt_include_expsyms
15614
15615# Commands necessary for linking programs (against libraries) with templates.
15616prelink_cmds=$lt_prelink_cmds
15617
15618# Specify filename containing input files.
15619file_list_spec=$lt_file_list_spec
15620
15621# How to hardcode a shared library path into an executable.
15622hardcode_action=$hardcode_action
15623
15624# ### END LIBTOOL CONFIG
15625
15626_LT_EOF
15627
15628 case $host_os in
15629 aix3*)
15630 cat <<\_LT_EOF >> "$cfgfile"
15631# AIX sometimes has problems with the GCC collect2 program. For some
15632# reason, if we set the COLLECT_NAMES environment variable, the problems
15633# vanish in a puff of smoke.
15634if test "X${COLLECT_NAMES+set}" != Xset; then
15635 COLLECT_NAMES=
15636 export COLLECT_NAMES
15637fi
15638_LT_EOF
15639 ;;
15640 esac
15641
15642
15643ltmain="$ac_aux_dir/ltmain.sh"
15644
15645
15646 # We use sed instead of cat because bash on DJGPP gets confused if
15647 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15648 # text mode, it properly converts lines to CR/LF. This bash problem
15649 # is reportedly fixed, but why not run on old versions too?
15650 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15651 || (rm -f "$cfgfile"; exit 1)
15652
15653 case $xsi_shell in
15654 yes)
15655 cat << \_LT_EOF >> "$cfgfile"
15656
15657# func_dirname file append nondir_replacement
15658# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15659# otherwise set result to NONDIR_REPLACEMENT.
15660func_dirname ()
15661{
15662 case ${1} in
15663 */*) func_dirname_result="${1%/*}${2}" ;;
15664 * ) func_dirname_result="${3}" ;;
15665 esac
15666}
15667
15668# func_basename file
15669func_basename ()
15670{
15671 func_basename_result="${1##*/}"
15672}
15673
15674# func_dirname_and_basename file append nondir_replacement
15675# perform func_basename and func_dirname in a single function
15676# call:
15677# dirname: Compute the dirname of FILE. If nonempty,
15678# add APPEND to the result, otherwise set result
15679# to NONDIR_REPLACEMENT.
15680# value returned in "$func_dirname_result"
15681# basename: Compute filename of FILE.
15682# value retuned in "$func_basename_result"
15683# Implementation must be kept synchronized with func_dirname
15684# and func_basename. For efficiency, we do not delegate to
15685# those functions but instead duplicate the functionality here.
15686func_dirname_and_basename ()
15687{
15688 case ${1} in
15689 */*) func_dirname_result="${1%/*}${2}" ;;
15690 * ) func_dirname_result="${3}" ;;
15691 esac
15692 func_basename_result="${1##*/}"
15693}
15694
15695# func_stripname prefix suffix name
15696# strip PREFIX and SUFFIX off of NAME.
15697# PREFIX and SUFFIX must not contain globbing or regex special
15698# characters, hashes, percent signs, but SUFFIX may contain a leading
15699# dot (in which case that matches only a dot).
15700func_stripname ()
15701{
15702 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15703 # positional parameters, so assign one to ordinary parameter first.
15704 func_stripname_result=${3}
15705 func_stripname_result=${func_stripname_result#"${1}"}
15706 func_stripname_result=${func_stripname_result%"${2}"}
15707}
15708
15709# func_opt_split
15710func_opt_split ()
15711{
15712 func_opt_split_opt=${1%%=*}
15713 func_opt_split_arg=${1#*=}
15714}
15715
15716# func_lo2o object
15717func_lo2o ()
15718{
15719 case ${1} in
15720 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15721 *) func_lo2o_result=${1} ;;
15722 esac
15723}
15724
15725# func_xform libobj-or-source
15726func_xform ()
15727{
15728 func_xform_result=${1%.*}.lo
15729}
15730
15731# func_arith arithmetic-term...
15732func_arith ()
15733{
15734 func_arith_result=$(( $* ))
15735}
15736
15737# func_len string
15738# STRING may not start with a hyphen.
15739func_len ()
15740{
15741 func_len_result=${#1}
15742}
15743
15744_LT_EOF
15745 ;;
15746 *) # Bourne compatible functions.
15747 cat << \_LT_EOF >> "$cfgfile"
15748
15749# func_dirname file append nondir_replacement
15750# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15751# otherwise set result to NONDIR_REPLACEMENT.
15752func_dirname ()
15753{
15754 # Extract subdirectory from the argument.
15755 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
15756 if test "X$func_dirname_result" = "X${1}"; then
15757 func_dirname_result="${3}"
15758 else
15759 func_dirname_result="$func_dirname_result${2}"
15760 fi
15761}
15762
15763# func_basename file
15764func_basename ()
15765{
15766 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
15767}
15768
15769
15770# func_stripname prefix suffix name
15771# strip PREFIX and SUFFIX off of NAME.
15772# PREFIX and SUFFIX must not contain globbing or regex special
15773# characters, hashes, percent signs, but SUFFIX may contain a leading
15774# dot (in which case that matches only a dot).
15775# func_strip_suffix prefix name
15776func_stripname ()
15777{
15778 case ${2} in
15779 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15780 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15781 esac
15782}
15783
15784# sed scripts:
15785my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15786my_sed_long_arg='1s/^-[^=]*=//'
15787
15788# func_opt_split
15789func_opt_split ()
15790{
15791 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
15792 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
15793}
15794
15795# func_lo2o object
15796func_lo2o ()
15797{
15798 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
15799}
15800
15801# func_xform libobj-or-source
15802func_xform ()
15803{
15804 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
15805}
15806
15807# func_arith arithmetic-term...
15808func_arith ()
15809{
15810 func_arith_result=`expr "$@"`
15811}
15812
15813# func_len string
15814# STRING may not start with a hyphen.
15815func_len ()
15816{
15817 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15818}
15819
15820_LT_EOF
15821esac
15822
15823case $lt_shell_append in
15824 yes)
15825 cat << \_LT_EOF >> "$cfgfile"
15826
15827# func_append var value
15828# Append VALUE to the end of shell variable VAR.
15829func_append ()
15830{
15831 eval "$1+=\$2"
15832}
15833_LT_EOF
15834 ;;
15835 *)
15836 cat << \_LT_EOF >> "$cfgfile"
15837
15838# func_append var value
15839# Append VALUE to the end of shell variable VAR.
15840func_append ()
15841{
15842 eval "$1=\$$1\$2"
15843}
15844
15845_LT_EOF
15846 ;;
15847 esac
15848
15849
15850 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15851 || (rm -f "$cfgfile"; exit 1)
15852
15853 mv -f "$cfgfile" "$ofile" ||
15854 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15855 chmod +x "$ofile"
15856
15857 ;;
76850556
RO
15858 "gstdint.h":C)
15859if test "$GCC" = yes; then
15860 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
15861else
15862 echo "/* generated for $CC */" > tmp-stdint.h
15863fi
15864
15865sed 's/^ *//' >> tmp-stdint.h <<EOF
15866
15867 #ifndef GCC_GENERATED_STDINT_H
15868 #define GCC_GENERATED_STDINT_H 1
15869
15870 #include <sys/types.h>
15871EOF
15872
15873if test "$acx_cv_header_stdint" != stdint.h; then
15874 echo "#include <stddef.h>" >> tmp-stdint.h
15875fi
15876if test "$acx_cv_header_stdint" != stddef.h; then
15877 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
15878fi
15879
15880sed 's/^ *//' >> tmp-stdint.h <<EOF
15881 /* glibc uses these symbols as guards to prevent redefinitions. */
15882 #ifdef __int8_t_defined
15883 #define _INT8_T
15884 #define _INT16_T
15885 #define _INT32_T
15886 #endif
15887 #ifdef __uint32_t_defined
15888 #define _UINT32_T
15889 #endif
15890
15891EOF
15892
15893# ----------------- done header, emit basic int types -------------
15894if test "$acx_cv_header_stdint" = stddef.h; then
15895 sed 's/^ *//' >> tmp-stdint.h <<EOF
15896
15897 #ifndef _UINT8_T
15898 #define _UINT8_T
15899 #ifndef __uint8_t_defined
15900 #define __uint8_t_defined
15901 #ifndef uint8_t
15902 typedef unsigned $acx_cv_type_int8_t uint8_t;
15903 #endif
15904 #endif
15905 #endif
15906
15907 #ifndef _UINT16_T
15908 #define _UINT16_T
15909 #ifndef __uint16_t_defined
15910 #define __uint16_t_defined
15911 #ifndef uint16_t
15912 typedef unsigned $acx_cv_type_int16_t uint16_t;
15913 #endif
15914 #endif
15915 #endif
15916
15917 #ifndef _UINT32_T
15918 #define _UINT32_T
15919 #ifndef __uint32_t_defined
15920 #define __uint32_t_defined
15921 #ifndef uint32_t
15922 typedef unsigned $acx_cv_type_int32_t uint32_t;
15923 #endif
15924 #endif
15925 #endif
15926
15927 #ifndef _INT8_T
15928 #define _INT8_T
15929 #ifndef __int8_t_defined
15930 #define __int8_t_defined
15931 #ifndef int8_t
15932 typedef $acx_cv_type_int8_t int8_t;
15933 #endif
15934 #endif
15935 #endif
15936
15937 #ifndef _INT16_T
15938 #define _INT16_T
15939 #ifndef __int16_t_defined
15940 #define __int16_t_defined
15941 #ifndef int16_t
15942 typedef $acx_cv_type_int16_t int16_t;
15943 #endif
15944 #endif
15945 #endif
15946
15947 #ifndef _INT32_T
15948 #define _INT32_T
15949 #ifndef __int32_t_defined
15950 #define __int32_t_defined
15951 #ifndef int32_t
15952 typedef $acx_cv_type_int32_t int32_t;
15953 #endif
15954 #endif
15955 #endif
15956EOF
15957elif test "$ac_cv_type_u_int32_t" = yes; then
15958 sed 's/^ *//' >> tmp-stdint.h <<EOF
15959
15960 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
15961 #ifndef _INT8_T
15962 #define _INT8_T
15963 #endif
15964 #ifndef _INT16_T
15965 #define _INT16_T
15966 #endif
15967 #ifndef _INT32_T
15968 #define _INT32_T
15969 #endif
15970
15971 #ifndef _UINT8_T
15972 #define _UINT8_T
15973 #ifndef __uint8_t_defined
15974 #define __uint8_t_defined
15975 #ifndef uint8_t
15976 typedef u_int8_t uint8_t;
15977 #endif
15978 #endif
15979 #endif
15980
15981 #ifndef _UINT16_T
15982 #define _UINT16_T
15983 #ifndef __uint16_t_defined
15984 #define __uint16_t_defined
15985 #ifndef uint16_t
15986 typedef u_int16_t uint16_t;
15987 #endif
15988 #endif
15989 #endif
15990
15991 #ifndef _UINT32_T
15992 #define _UINT32_T
15993 #ifndef __uint32_t_defined
15994 #define __uint32_t_defined
15995 #ifndef uint32_t
15996 typedef u_int32_t uint32_t;
15997 #endif
15998 #endif
15999 #endif
16000EOF
16001else
16002 sed 's/^ *//' >> tmp-stdint.h <<EOF
16003
16004 /* Some systems have guard macros to prevent redefinitions, define them. */
16005 #ifndef _INT8_T
16006 #define _INT8_T
16007 #endif
16008 #ifndef _INT16_T
16009 #define _INT16_T
16010 #endif
16011 #ifndef _INT32_T
16012 #define _INT32_T
16013 #endif
16014 #ifndef _UINT8_T
16015 #define _UINT8_T
16016 #endif
16017 #ifndef _UINT16_T
16018 #define _UINT16_T
16019 #endif
16020 #ifndef _UINT32_T
16021 #define _UINT32_T
16022 #endif
16023EOF
16024fi
16025
16026# ------------- done basic int types, emit int64_t types ------------
16027if test "$ac_cv_type_uint64_t" = yes; then
16028 sed 's/^ *//' >> tmp-stdint.h <<EOF
16029
16030 /* system headers have good uint64_t and int64_t */
16031 #ifndef _INT64_T
16032 #define _INT64_T
16033 #endif
16034 #ifndef _UINT64_T
16035 #define _UINT64_T
16036 #endif
16037EOF
16038elif test "$ac_cv_type_u_int64_t" = yes; then
16039 sed 's/^ *//' >> tmp-stdint.h <<EOF
16040
16041 /* system headers have an u_int64_t (and int64_t) */
16042 #ifndef _INT64_T
16043 #define _INT64_T
16044 #endif
16045 #ifndef _UINT64_T
16046 #define _UINT64_T
16047 #ifndef __uint64_t_defined
16048 #define __uint64_t_defined
16049 #ifndef uint64_t
16050 typedef u_int64_t uint64_t;
16051 #endif
16052 #endif
16053 #endif
16054EOF
16055elif test -n "$acx_cv_type_int64_t"; then
16056 sed 's/^ *//' >> tmp-stdint.h <<EOF
16057
16058 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
16059 #ifndef _INT64_T
16060 #define _INT64_T
16061 #ifndef int64_t
16062 typedef $acx_cv_type_int64_t int64_t;
16063 #endif
16064 #endif
16065 #ifndef _UINT64_T
16066 #define _UINT64_T
16067 #ifndef __uint64_t_defined
16068 #define __uint64_t_defined
16069 #ifndef uint64_t
16070 typedef unsigned $acx_cv_type_int64_t uint64_t;
16071 #endif
16072 #endif
16073 #endif
16074EOF
16075else
16076 sed 's/^ *//' >> tmp-stdint.h <<EOF
16077
16078 /* some common heuristics for int64_t, using compiler-specific tests */
16079 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
16080 #ifndef _INT64_T
16081 #define _INT64_T
16082 #ifndef __int64_t_defined
16083 #ifndef int64_t
16084 typedef long long int64_t;
16085 #endif
16086 #endif
16087 #endif
16088 #ifndef _UINT64_T
16089 #define _UINT64_T
16090 #ifndef uint64_t
16091 typedef unsigned long long uint64_t;
16092 #endif
16093 #endif
16094
16095 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
16096 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
16097 does not implement __extension__. But that compiler doesn't define
16098 __GNUC_MINOR__. */
16099 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
16100 # define __extension__
16101 # endif
16102
16103 # ifndef _INT64_T
16104 # define _INT64_T
16105 # ifndef int64_t
16106 __extension__ typedef long long int64_t;
16107 # endif
16108 # endif
16109 # ifndef _UINT64_T
16110 # define _UINT64_T
16111 # ifndef uint64_t
16112 __extension__ typedef unsigned long long uint64_t;
16113 # endif
16114 # endif
16115
16116 #elif !defined __STRICT_ANSI__
16117 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
16118
16119 # ifndef _INT64_T
16120 # define _INT64_T
16121 # ifndef int64_t
16122 typedef __int64 int64_t;
16123 # endif
16124 # endif
16125 # ifndef _UINT64_T
16126 # define _UINT64_T
16127 # ifndef uint64_t
16128 typedef unsigned __int64 uint64_t;
16129 # endif
16130 # endif
16131 # endif /* compiler */
16132
16133 #endif /* ANSI version */
16134EOF
16135fi
16136
16137# ------------- done int64_t types, emit intptr types ------------
16138if test "$ac_cv_type_uintptr_t" != yes; then
16139 sed 's/^ *//' >> tmp-stdint.h <<EOF
16140
16141 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
16142 #ifndef __uintptr_t_defined
16143 #ifndef uintptr_t
16144 typedef u$acx_cv_type_intptr_t uintptr_t;
16145 #endif
16146 #endif
16147 #ifndef __intptr_t_defined
16148 #ifndef intptr_t
16149 typedef $acx_cv_type_intptr_t intptr_t;
16150 #endif
16151 #endif
16152EOF
16153fi
16154
16155# ------------- done intptr types, emit int_least types ------------
16156if test "$ac_cv_type_int_least32_t" != yes; then
16157 sed 's/^ *//' >> tmp-stdint.h <<EOF
16158
16159 /* Define int_least types */
16160 typedef int8_t int_least8_t;
16161 typedef int16_t int_least16_t;
16162 typedef int32_t int_least32_t;
16163 #ifdef _INT64_T
16164 typedef int64_t int_least64_t;
16165 #endif
16166
16167 typedef uint8_t uint_least8_t;
16168 typedef uint16_t uint_least16_t;
16169 typedef uint32_t uint_least32_t;
16170 #ifdef _UINT64_T
16171 typedef uint64_t uint_least64_t;
16172 #endif
16173EOF
16174fi
16175
16176# ------------- done intptr types, emit int_fast types ------------
16177if test "$ac_cv_type_int_fast32_t" != yes; then
16178 sed 's/^ *//' >> tmp-stdint.h <<EOF
16179
16180 /* Define int_fast types. short is often slow */
16181 typedef int8_t int_fast8_t;
16182 typedef int int_fast16_t;
16183 typedef int32_t int_fast32_t;
16184 #ifdef _INT64_T
16185 typedef int64_t int_fast64_t;
16186 #endif
16187
16188 typedef uint8_t uint_fast8_t;
16189 typedef unsigned int uint_fast16_t;
16190 typedef uint32_t uint_fast32_t;
16191 #ifdef _UINT64_T
16192 typedef uint64_t uint_fast64_t;
16193 #endif
16194EOF
16195fi
16196
16197if test "$ac_cv_type_uintmax_t" != yes; then
16198 sed 's/^ *//' >> tmp-stdint.h <<EOF
16199
16200 /* Define intmax based on what we found */
16201 #ifndef intmax_t
16202 #ifdef _INT64_T
16203 typedef int64_t intmax_t;
16204 #else
16205 typedef long intmax_t;
16206 #endif
16207 #endif
16208 #ifndef uintmax_t
16209 #ifdef _UINT64_T
16210 typedef uint64_t uintmax_t;
16211 #else
16212 typedef unsigned long uintmax_t;
16213 #endif
16214 #endif
16215EOF
16216fi
16217
16218sed 's/^ *//' >> tmp-stdint.h <<EOF
16219
16220 #endif /* GCC_GENERATED_STDINT_H */
16221EOF
16222
16223if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
16224 rm -f tmp-stdint.h
16225else
16226 mv -f tmp-stdint.h gstdint.h
16227fi
16228
16229 ;;
fddbc193 16230 "install-debuginfo-for-buildid.sh":F) chmod +x install-debuginfo-for-buildid.sh ;;
eff02e4f
ILT
16231 "default":C) if test -n "$CONFIG_FILES"; then
16232 if test -n "${with_target_subdir}"; then
16233 # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16234 # that multilib installs will end up installed in the correct place.
16235 # The testsuite needs it for multilib-aware ABI baseline files.
16236 # To work around this not being passed down from config-ml.in ->
16237 # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16238 # append it here. Only modify Makefiles that have just been created.
16239 #
16240 # Also, get rid of this simulated-VPATH thing that automake does.
16241 cat > vpsed << \_EOF
16242 s!`test -f '$<' || echo '$(srcdir)/'`!!
16243_EOF
16244 for i in $SUBDIRS; do
16245 case $CONFIG_FILES in
16246 *${i}/Makefile*)
16247 #echo "Adding MULTISUBDIR to $i/Makefile"
16248 sed -f vpsed $i/Makefile > tmp
16249 grep '^MULTISUBDIR =' Makefile >> tmp
16250 mv tmp $i/Makefile
16251 ;;
16252 esac
16253 done
16254 rm vpsed
16255 fi
16256 fi
16257 ;;
16258
16259 esac
16260done # for ac_tag
16261
16262
16263as_fn_exit 0
16264_ACEOF
16265ac_clean_files=$ac_clean_files_save
16266
16267test $ac_write_fail = 0 ||
22e05272 16268 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
eff02e4f
ILT
16269
16270
16271# configure is writing to config.log, and then calls config.status.
16272# config.status does its own redirection, appending to config.log.
16273# Unfortunately, on DOS this fails, as config.log is still kept open
16274# by configure, so config.status won't be able to write to it; its
16275# output is simply discarded. So we exec the FD to /dev/null,
16276# effectively closing config.log, so it can be properly (re)opened and
16277# appended to by config.status. When coming back to configure, we
16278# need to make the FD available again.
16279if test "$no_create" != yes; then
16280 ac_cs_success=:
16281 ac_config_status_args=
16282 test "$silent" = yes &&
16283 ac_config_status_args="$ac_config_status_args --quiet"
16284 exec 5>/dev/null
16285 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16286 exec 5>>config.log
16287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16288 # would make configure fail if this is the last instruction.
22e05272 16289 $ac_cs_success || as_fn_exit 1
eff02e4f
ILT
16290fi
16291if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16293$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16294fi
16295