configure revision 1.17 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bfd 2.39.50.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf (at] 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
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 s/[$]LINENO.*/&-/
485 t lineno
486 b
487 :lineno
488 N
489 :loop
490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
491 t loop
492 s/-\n.*//
493 ' >$as_me.lineno &&
494 chmod +x "$as_me.lineno" ||
495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
498 # already done that, so ensure we don't try to do so again and fall
499 # in an infinite loop. This has already happened in practice.
500 _as_can_reexec=no; export _as_can_reexec
501 # Don't try to exec as it changes $[0], causing all sort of problems
502 # (the dirname of $[0] is not the place where we might find the
503 # original and so on. Autoconf is especially sensitive to this).
504 . "./$as_me.lineno"
505 # Exit status is that of the last command.
506 exit
507 }
508
509 ECHO_C= ECHO_N= ECHO_T=
510 case `echo -n x` in #(((((
511 -n*)
512 case `echo 'xy\c'` in
513 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
514 xy) ECHO_C='\c';;
515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
516 ECHO_T=' ';;
517 esac;;
518 *)
519 ECHO_N='-n';;
520 esac
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
535 # In both cases, we have to default to `cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
562 # Sed expression to map a string onto a valid variable name.
563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
565 SHELL=${CONFIG_SHELL-/bin/sh}
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_files=
581 ac_config_libobj_dir=.
582 LIBOBJS=
583 cross_compiling=no
584 subdirs=
585 MFLAGS=
586 MAKEFLAGS=
587
588 # Identity of this package.
589 PACKAGE_NAME='bfd'
590 PACKAGE_TARNAME='bfd'
591 PACKAGE_VERSION='2.39.50'
592 PACKAGE_STRING='bfd 2.39.50'
593 PACKAGE_BUGREPORT=''
594 PACKAGE_URL=''
595
596 ac_unique_file="libbfd.c"
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 # include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 # include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_header_list=
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 bfd_ufile_ptr
639 bfd_file_ptr
640 lt_cv_dlopen_libs
641 supports_plugins
642 COREFLAG
643 COREFILE
644 havevecs
645 tdefaults
646 bfd_default_target_size
647 bfd_machines
648 bfd_backends
649 all_backends
650 bfd64_libs
651 wordsize
652 TDEFINES
653 SHARED_LIBADD
654 SHARED_LDFLAGS
655 LIBM
656 ZSTD_LIBS
657 ZSTD_CFLAGS
658 PKG_CONFIG_LIBDIR
659 PKG_CONFIG_PATH
660 PKG_CONFIG
661 zlibinc
662 zlibdir
663 EXEEXT_FOR_BUILD
664 CC_FOR_BUILD
665 HDEFINES
666 MSGMERGE
667 MSGFMT
668 MKINSTALLDIRS
669 CATOBJEXT
670 GENCAT
671 INSTOBJEXT
672 DATADIRNAME
673 CATALOGS
674 POSUB
675 GMSGFMT
676 XGETTEXT
677 INCINTL
678 LIBINTL_DEP
679 LIBINTL
680 USE_NLS
681 bfdincludedir
682 bfdlibdir
683 target_noncanonical
684 host_noncanonical
685 INSTALL_LIBBFD_FALSE
686 INSTALL_LIBBFD_TRUE
687 GENINSRC_NEVER_FALSE
688 GENINSRC_NEVER_TRUE
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 WARN_WRITE_STRINGS
693 NO_WERROR
694 WARN_CFLAGS_FOR_BUILD
695 WARN_CFLAGS
696 REPORT_BUGS_TEXI
697 REPORT_BUGS_TO
698 PKGVERSION
699 DEBUGDIR
700 ENABLE_BFD_64_BIT_FALSE
701 ENABLE_BFD_64_BIT_TRUE
702 PLUGINS_FALSE
703 PLUGINS_TRUE
704 LARGEFILE_CPPFLAGS
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 OBJDUMP
711 LN_S
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 SED
718 LIBTOOL
719 EGREP
720 GREP
721 CPP
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__quote
730 am__include
731 DEPDIR
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 CPPFLAGS
736 LDFLAGS
737 CFLAGS
738 CC
739 RANLIB
740 AR
741 AM_BACKSLASH
742 AM_DEFAULT_VERBOSITY
743 AM_DEFAULT_V
744 AM_V
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 target_os
769 target_vendor
770 target_cpu
771 target
772 host_os
773 host_vendor
774 host_cpu
775 host
776 build_os
777 build_vendor
778 build_cpu
779 build
780 target_alias
781 host_alias
782 build_alias
783 LIBS
784 ECHO_T
785 ECHO_N
786 ECHO_C
787 DEFS
788 mandir
789 localedir
790 libdir
791 psdir
792 pdfdir
793 dvidir
794 htmldir
795 infodir
796 docdir
797 oldincludedir
798 includedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL'
818 ac_subst_files=''
819 ac_user_opts='
820 enable_option_checking
821 enable_silent_rules
822 enable_shared
823 enable_dependency_tracking
824 enable_static
825 with_pic
826 enable_fast_install
827 with_gnu_ld
828 enable_libtool_lock
829 enable_plugins
830 enable_largefile
831 enable_checking
832 enable_64_bit_bfd
833 enable_targets
834 enable_64_bit_archive
835 with_mmap
836 enable_secureplt
837 enable_separate_code
838 enable_leading_mingw64_underscores
839 with_separate_debug_dir
840 with_pkgversion
841 with_bugurl
842 enable_werror
843 enable_build_warnings
844 enable_maintainer_mode
845 enable_install_libbfd
846 enable_nls
847 with_system_zlib
848 with_zstd
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CC
854 CFLAGS
855 LDFLAGS
856 LIBS
857 CPPFLAGS
858 CPP
859 PKG_CONFIG
860 PKG_CONFIG_PATH
861 PKG_CONFIG_LIBDIR
862 ZSTD_CFLAGS
863 ZSTD_LIBS'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
921 ac_prev=
922 continue
923 fi
924
925 case $ac_option in
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 *=) ac_optarg= ;;
928 *) ac_optarg=yes ;;
929 esac
930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
936
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
941
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
956
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
961
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
977 *"
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
984
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
989
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
994
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1003 *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1019
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1023
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1030
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1035
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1041
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1048
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1053
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1058
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1065
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1070
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1077
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1082
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1086
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1090
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1094
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1103
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1108
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1115
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1122
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1139
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1144
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1149
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1153
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1159
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1170
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1175
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1180
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1187
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1192
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1195
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1198
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1214
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error $? "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1223 *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1230
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1234
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1241
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1248
1249 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1251 ;;
1252
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1262
1263 *)
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269 ;;
1270
1271 esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error $? "missing argument to $ac_option"
1277 fi
1278
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1285 fi
1286
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1292 do
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 elif test "x$build_alias" != "x$host_alias"; then
1320 cross_compiling=yes
1321 fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340 ac_srcdir_defaulted=yes
1341 # Try the directory containing this script, then the parent directory.
1342 ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344 X"$as_myself" : 'X\(//\)[^/]' \| \
1345 X"$as_myself" : 'X\(//\)$' \| \
1346 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)[^/].*/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\).*/{
1361 s//\1/
1362 q
1363 }
1364 s/.*/./; q'`
1365 srcdir=$ac_confdir
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 srcdir=..
1368 fi
1369 else
1370 ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379 pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_env_${ac_var}_value=\$${ac_var}
1393 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401 # Omit some internal or obsolete options to make the list less imposing.
1402 # This message is too long to be a string in the A/UX 3.1 sh.
1403 cat <<_ACEOF
1404 \`configure' configures bfd 2.39.50 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE. See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414 -h, --help display this help and exit
1415 --help=short display options specific to this package
1416 --help=recursive display the short help of all the included packages
1417 -V, --version display version information and exit
1418 -q, --quiet, --silent do not print \`checking ...' messages
1419 --cache-file=FILE cache test results in FILE [disabled]
1420 -C, --config-cache alias for \`--cache-file=config.cache'
1421 -n, --no-create do not create output files
1422 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425 --prefix=PREFIX install architecture-independent files in PREFIX
1426 [$ac_default_prefix]
1427 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438 --bindir=DIR user executables [EPREFIX/bin]
1439 --sbindir=DIR system admin executables [EPREFIX/sbin]
1440 --libexecdir=DIR program executables [EPREFIX/libexec]
1441 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1442 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1443 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1444 --libdir=DIR object code libraries [EPREFIX/lib]
1445 --includedir=DIR C header files [PREFIX/include]
1446 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1447 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1448 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1449 --infodir=DIR info documentation [DATAROOTDIR/info]
1450 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1451 --mandir=DIR man documentation [DATAROOTDIR/man]
1452 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
1453 --htmldir=DIR html documentation [DOCDIR]
1454 --dvidir=DIR dvi documentation [DOCDIR]
1455 --pdfdir=DIR pdf documentation [DOCDIR]
1456 --psdir=DIR ps documentation [DOCDIR]
1457 _ACEOF
1458
1459 cat <<\_ACEOF
1460
1461 Program names:
1462 --program-prefix=PREFIX prepend PREFIX to installed program names
1463 --program-suffix=SUFFIX append SUFFIX to installed program names
1464 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 --target=TARGET configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474 case $ac_init_help in
1475 short | recursive ) echo "Configuration of bfd 2.39.50:";;
1476 esac
1477 cat <<\_ACEOF
1478
1479 Optional Features:
1480 --disable-option-checking ignore unrecognized --enable/--with options
1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-shared[=PKGS] build shared libraries [default=no]
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --enable-static[=PKGS] build static libraries [default=yes]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --disable-libtool-lock avoid locking (might break parallel builds)
1494 --enable-plugins Enable support for plugins
1495 --disable-largefile omit support for large files
1496 --enable-checking enable run-time checks
1497 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1498 --enable-targets alternative target configurations
1499 --enable-64-bit-archive force 64-bit archives
1500 --enable-secureplt Default to creating read-only plt entries
1501 --enable-separate-code enable -z separate-code in ELF linker by default
1502 --enable-leading-mingw64-underscores
1503 Enable leading underscores on 64 bit mingw targets
1504 --enable-werror treat compile warnings as errors
1505 --enable-build-warnings enable build-time compiler warnings
1506 --enable-maintainer-mode
1507 enable make rules and dependencies not useful (and
1508 sometimes confusing) to the casual installer
1509 --enable-install-libbfd controls installation of libbfd and related headers
1510 --disable-nls do not use Native Language Support
1511
1512 Optional Packages:
1513 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1514 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1515 --with-pic try to use only PIC/non-PIC objects [default=use
1516 both]
1517 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1518 --with-mmap try using mmap for BFD input files if available
1519 --with-separate-debug-dir=DIR
1520 Look for global separate debug info in DIR
1521 [[default=LIBDIR/debug]]
1522 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1523 Binutils"
1524 --with-bugurl=URL Direct users to URL to report a bug
1525 --with-system-zlib use installed libz
1526 --with-zstd support zstd compressed debug sections
1527 (default=auto)
1528
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 PKG_CONFIG path to pkg-config utility
1539 PKG_CONFIG_PATH
1540 directories to add to pkg-config's search path
1541 PKG_CONFIG_LIBDIR
1542 path overriding pkg-config's built-in search path
1543 ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config
1544 ZSTD_LIBS linker flags for ZSTD, overriding pkg-config
1545
1546 Use these variables to override the choices made by `configure' or to help
1547 it to find libraries and programs with nonstandard names/locations.
1548
1549 Report bugs to the package provider.
1550 _ACEOF
1551 ac_status=$?
1552 fi
1553
1554 if test "$ac_init_help" = "recursive"; then
1555 # If there are subdirs, report their specific --help.
1556 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1557 test -d "$ac_dir" ||
1558 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1559 continue
1560 ac_builddir=.
1561
1562 case "$ac_dir" in
1563 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *)
1565 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1566 # A ".." for each directory in $ac_dir_suffix.
1567 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1568 case $ac_top_builddir_sub in
1569 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1571 esac ;;
1572 esac
1573 ac_abs_top_builddir=$ac_pwd
1574 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1575 # for backward compatibility:
1576 ac_top_builddir=$ac_top_build_prefix
1577
1578 case $srcdir in
1579 .) # We are building in place.
1580 ac_srcdir=.
1581 ac_top_srcdir=$ac_top_builddir_sub
1582 ac_abs_top_srcdir=$ac_pwd ;;
1583 [\\/]* | ?:[\\/]* ) # Absolute name.
1584 ac_srcdir=$srcdir$ac_dir_suffix;
1585 ac_top_srcdir=$srcdir
1586 ac_abs_top_srcdir=$srcdir ;;
1587 *) # Relative name.
1588 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1589 ac_top_srcdir=$ac_top_build_prefix$srcdir
1590 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1591 esac
1592 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593
1594 cd "$ac_dir" || { ac_status=$?; continue; }
1595 # Check for guested configure.
1596 if test -f "$ac_srcdir/configure.gnu"; then
1597 echo &&
1598 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1599 elif test -f "$ac_srcdir/configure"; then
1600 echo &&
1601 $SHELL "$ac_srcdir/configure" --help=recursive
1602 else
1603 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1604 fi || ac_status=$?
1605 cd "$ac_pwd" || { ac_status=$?; break; }
1606 done
1607 fi
1608
1609 test -n "$ac_init_help" && exit $ac_status
1610 if $ac_init_version; then
1611 cat <<\_ACEOF
1612 bfd configure 2.39.50
1613 generated by GNU Autoconf 2.69
1614
1615 Copyright (C) 2012 Free Software Foundation, Inc.
1616 This configure script is free software; the Free Software Foundation
1617 gives unlimited permission to copy, distribute and modify it.
1618 _ACEOF
1619 exit
1620 fi
1621
1622 ## ------------------------ ##
1623 ## Autoconf initialization. ##
1624 ## ------------------------ ##
1625
1626 # ac_fn_c_try_compile LINENO
1627 # --------------------------
1628 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext
1633 if { { ac_try="$ac_compile"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_compile") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest.$ac_objext; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1661
1662 } # ac_fn_c_try_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1704 # the include files in INCLUDES and setting the cache variable VAR
1705 # accordingly.
1706 ac_fn_c_check_header_mongrel ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if eval \${$3+:} false; then :
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 fi
1715 eval ac_res=\$$3
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1717 $as_echo "$ac_res" >&6; }
1718 else
1719 # Is the header compilable?
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1721 $as_echo_n "checking $2 usability... " >&6; }
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1724 $4
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_compile "$LINENO"; then :
1728 ac_header_compiler=yes
1729 else
1730 ac_header_compiler=no
1731 fi
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1734 $as_echo "$ac_header_compiler" >&6; }
1735
1736 # Is the header present?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1738 $as_echo_n "checking $2 presence... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_cpp "$LINENO"; then :
1744 ac_header_preproc=yes
1745 else
1746 ac_header_preproc=no
1747 fi
1748 rm -f conftest.err conftest.i conftest.$ac_ext
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1750 $as_echo "$ac_header_preproc" >&6; }
1751
1752 # So? What about this header?
1753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1754 yes:no: )
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1756 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1758 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 ;;
1760 no:yes:* )
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1762 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1764 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1766 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1768 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1770 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 ;;
1772 esac
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if eval \${$3+:} false; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 eval "$3=\$ac_header_compiler"
1779 fi
1780 eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782 $as_echo "$ac_res" >&6; }
1783 fi
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_header_mongrel
1787
1788 # ac_fn_c_try_run LINENO
1789 # ----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1791 # that executables *can* be run.
1792 ac_fn_c_try_run ()
1793 {
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>&5
1803 ac_status=$?
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1806 { { case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_try") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; }; }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: program exited with status $ac_status" >&5
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=$ac_status
1823 fi
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1827
1828 } # ac_fn_c_try_run
1829
1830 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1831 # -------------------------------------------------------
1832 # Tests whether HEADER exists and can be compiled using the include files in
1833 # INCLUDES, setting the cache variable VAR accordingly.
1834 ac_fn_c_check_header_compile ()
1835 {
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1838 $as_echo_n "checking for $2... " >&6; }
1839 if eval \${$3+:} false; then :
1840 $as_echo_n "(cached) " >&6
1841 else
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1844 $4
1845 #include <$2>
1846 _ACEOF
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 eval "$3=yes"
1849 else
1850 eval "$3=no"
1851 fi
1852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 fi
1854 eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1858
1859 } # ac_fn_c_check_header_compile
1860
1861 # ac_fn_c_try_link LINENO
1862 # -----------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_c_try_link ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 rm -f conftest.$ac_objext conftest$ac_exeext
1868 if { { ac_try="$ac_link"
1869 case "(($ac_try" in
1870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1872 esac
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1876 ac_status=$?
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1881 fi
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_c_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1889 }; then :
1890 ac_retval=0
1891 else
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1894
1895 ac_retval=1
1896 fi
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1904
1905 } # ac_fn_c_try_link
1906
1907 # ac_fn_c_check_func LINENO FUNC VAR
1908 # ----------------------------------
1909 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1910 ac_fn_c_check_func ()
1911 {
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914 $as_echo_n "checking for $2... " >&6; }
1915 if eval \${$3+:} false; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1922 #define $2 innocuous_$2
1923
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $2 (); below.
1926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1927 <limits.h> exists even on freestanding compilers. */
1928
1929 #ifdef __STDC__
1930 # include <limits.h>
1931 #else
1932 # include <assert.h>
1933 #endif
1934
1935 #undef $2
1936
1937 /* Override any GCC internal prototype to avoid an error.
1938 Use char because int might match the return type of a GCC
1939 builtin and then its argument prototype would still apply. */
1940 #ifdef __cplusplus
1941 extern "C"
1942 #endif
1943 char $2 ();
1944 /* The GNU C library defines this for functions which it implements
1945 to always fail with ENOSYS. Some functions are actually named
1946 something starting with __ and the normal name is an alias. */
1947 #if defined __stub_$2 || defined __stub___$2
1948 choke me
1949 #endif
1950
1951 int
1952 main ()
1953 {
1954 return $2 ();
1955 ;
1956 return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_link "$LINENO"; then :
1960 eval "$3=yes"
1961 else
1962 eval "$3=no"
1963 fi
1964 rm -f core conftest.err conftest.$ac_objext \
1965 conftest$ac_exeext conftest.$ac_ext
1966 fi
1967 eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_func
1973
1974 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1975 # --------------------------------------------
1976 # Tries to find the compile-time value of EXPR in a program that includes
1977 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1978 # computed
1979 ac_fn_c_compute_int ()
1980 {
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 if test "$cross_compiling" = yes; then
1983 # Depending upon the size, compute the lo and hi bounds.
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) >= 0)];
1991 test_array [0] = 0;
1992 return test_array [0];
1993
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_lo=0 ac_mid=0
2000 while :; do
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2003 $4
2004 int
2005 main ()
2006 {
2007 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008 test_array [0] = 0;
2009 return test_array [0];
2010
2011 ;
2012 return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_hi=$ac_mid; break
2017 else
2018 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019 if test $ac_lo -le $ac_mid; then
2020 ac_lo= ac_hi=
2021 break
2022 fi
2023 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 done
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) < 0)];
2035 test_array [0] = 0;
2036 return test_array [0];
2037
2038 ;
2039 return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_compile "$LINENO"; then :
2043 ac_hi=-1 ac_mid=-1
2044 while :; do
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 int
2049 main ()
2050 {
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2052 test_array [0] = 0;
2053 return test_array [0];
2054
2055 ;
2056 return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_lo=$ac_mid; break
2061 else
2062 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2063 if test $ac_mid -le $ac_hi; then
2064 ac_lo= ac_hi=
2065 break
2066 fi
2067 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2070 done
2071 else
2072 ac_lo= ac_hi=
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077 # Binary search between lo and hi bounds.
2078 while test "x$ac_lo" != "x$ac_hi"; do
2079 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2087 test_array [0] = 0;
2088 return test_array [0];
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 ac_hi=$ac_mid
2096 else
2097 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 done
2101 case $ac_lo in #((
2102 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2103 '') ac_retval=1 ;;
2104 esac
2105 else
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 static long int longval () { return $2; }
2110 static unsigned long int ulongval () { return $2; }
2111 #include <stdio.h>
2112 #include <stdlib.h>
2113 int
2114 main ()
2115 {
2116
2117 FILE *f = fopen ("conftest.val", "w");
2118 if (! f)
2119 return 1;
2120 if (($2) < 0)
2121 {
2122 long int i = longval ();
2123 if (i != ($2))
2124 return 1;
2125 fprintf (f, "%ld", i);
2126 }
2127 else
2128 {
2129 unsigned long int i = ulongval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%lu", i);
2133 }
2134 /* Do not output a trailing newline, as this causes \r\n confusion
2135 on some platforms. */
2136 return ferror (f) || fclose (f) != 0;
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_run "$LINENO"; then :
2143 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2144 else
2145 ac_retval=1
2146 fi
2147 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2148 conftest.$ac_objext conftest.beam conftest.$ac_ext
2149 rm -f conftest.val
2150
2151 fi
2152 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2153 as_fn_set_status $ac_retval
2154
2155 } # ac_fn_c_compute_int
2156
2157 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2158 # ---------------------------------------------
2159 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2160 # accordingly.
2161 ac_fn_c_check_decl ()
2162 {
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 as_decl_name=`echo $2|sed 's/ *(.*//'`
2165 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2167 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2168 if eval \${$3+:} false; then :
2169 $as_echo_n "(cached) " >&6
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main ()
2176 {
2177 #ifndef $as_decl_name
2178 #ifdef __cplusplus
2179 (void) $as_decl_use;
2180 #else
2181 (void) $as_decl_name;
2182 #endif
2183 #endif
2184
2185 ;
2186 return 0;
2187 }
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 eval "$3=yes"
2191 else
2192 eval "$3=no"
2193 fi
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 fi
2196 eval ac_res=\$$3
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198 $as_echo "$ac_res" >&6; }
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200
2201 } # ac_fn_c_check_decl
2202 cat >config.log <<_ACEOF
2203 This file contains any messages produced by compilers while
2204 running configure, to aid debugging if configure makes a mistake.
2205
2206 It was created by bfd $as_me 2.39.50, which was
2207 generated by GNU Autoconf 2.69. Invocation command line was
2208
2209 $ $0 $@
2210
2211 _ACEOF
2212 exec 5>>config.log
2213 {
2214 cat <<_ASUNAME
2215 ## --------- ##
2216 ## Platform. ##
2217 ## --------- ##
2218
2219 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2220 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2221 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2222 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2223 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2224
2225 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2226 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2227
2228 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2229 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2230 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2231 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2232 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2233 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2234 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2235
2236 _ASUNAME
2237
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 $as_echo "PATH: $as_dir"
2244 done
2245 IFS=$as_save_IFS
2246
2247 } >&5
2248
2249 cat >&5 <<_ACEOF
2250
2251
2252 ## ----------- ##
2253 ## Core tests. ##
2254 ## ----------- ##
2255
2256 _ACEOF
2257
2258
2259 # Keep a trace of the command line.
2260 # Strip out --no-create and --no-recursion so they do not pile up.
2261 # Strip out --silent because we don't want to record it for future runs.
2262 # Also quote any args containing shell meta-characters.
2263 # Make two passes to allow for proper duplicate-argument suppression.
2264 ac_configure_args=
2265 ac_configure_args0=
2266 ac_configure_args1=
2267 ac_must_keep_next=false
2268 for ac_pass in 1 2
2269 do
2270 for ac_arg
2271 do
2272 case $ac_arg in
2273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2275 | -silent | --silent | --silen | --sile | --sil)
2276 continue ;;
2277 *\'*)
2278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2279 esac
2280 case $ac_pass in
2281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2282 2)
2283 as_fn_append ac_configure_args1 " '$ac_arg'"
2284 if test $ac_must_keep_next = true; then
2285 ac_must_keep_next=false # Got value, back to normal.
2286 else
2287 case $ac_arg in
2288 *=* | --config-cache | -C | -disable-* | --disable-* \
2289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2291 | -with-* | --with-* | -without-* | --without-* | --x)
2292 case "$ac_configure_args0 " in
2293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2294 esac
2295 ;;
2296 -* ) ac_must_keep_next=true ;;
2297 esac
2298 fi
2299 as_fn_append ac_configure_args " '$ac_arg'"
2300 ;;
2301 esac
2302 done
2303 done
2304 { ac_configure_args0=; unset ac_configure_args0;}
2305 { ac_configure_args1=; unset ac_configure_args1;}
2306
2307 # When interrupted or exit'd, cleanup temporary files, and complete
2308 # config.log. We remove comments because anyway the quotes in there
2309 # would cause problems or look ugly.
2310 # WARNING: Use '\'' to represent an apostrophe within the trap.
2311 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2312 trap 'exit_status=$?
2313 # Save into config.log some information that might help in debugging.
2314 {
2315 echo
2316
2317 $as_echo "## ---------------- ##
2318 ## Cache variables. ##
2319 ## ---------------- ##"
2320 echo
2321 # The following way of writing the cache mishandles newlines in values,
2322 (
2323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2324 eval ac_val=\$$ac_var
2325 case $ac_val in #(
2326 *${as_nl}*)
2327 case $ac_var in #(
2328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2329 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2330 esac
2331 case $ac_var in #(
2332 _ | IFS | as_nl) ;; #(
2333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2334 *) { eval $ac_var=; unset $ac_var;} ;;
2335 esac ;;
2336 esac
2337 done
2338 (set) 2>&1 |
2339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2340 *${as_nl}ac_space=\ *)
2341 sed -n \
2342 "s/'\''/'\''\\\\'\'''\''/g;
2343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2344 ;; #(
2345 *)
2346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2347 ;;
2348 esac |
2349 sort
2350 )
2351 echo
2352
2353 $as_echo "## ----------------- ##
2354 ## Output variables. ##
2355 ## ----------------- ##"
2356 echo
2357 for ac_var in $ac_subst_vars
2358 do
2359 eval ac_val=\$$ac_var
2360 case $ac_val in
2361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2362 esac
2363 $as_echo "$ac_var='\''$ac_val'\''"
2364 done | sort
2365 echo
2366
2367 if test -n "$ac_subst_files"; then
2368 $as_echo "## ------------------- ##
2369 ## File substitutions. ##
2370 ## ------------------- ##"
2371 echo
2372 for ac_var in $ac_subst_files
2373 do
2374 eval ac_val=\$$ac_var
2375 case $ac_val in
2376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2377 esac
2378 $as_echo "$ac_var='\''$ac_val'\''"
2379 done | sort
2380 echo
2381 fi
2382
2383 if test -s confdefs.h; then
2384 $as_echo "## ----------- ##
2385 ## confdefs.h. ##
2386 ## ----------- ##"
2387 echo
2388 cat confdefs.h
2389 echo
2390 fi
2391 test "$ac_signal" != 0 &&
2392 $as_echo "$as_me: caught signal $ac_signal"
2393 $as_echo "$as_me: exit $exit_status"
2394 } >&5
2395 rm -f core *.core core.conftest.* &&
2396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2397 exit $exit_status
2398 ' 0
2399 for ac_signal in 1 2 13 15; do
2400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2401 done
2402 ac_signal=0
2403
2404 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2405 rm -f -r conftest* confdefs.h
2406
2407 $as_echo "/* confdefs.h */" > confdefs.h
2408
2409 # Predefined preprocessor variables.
2410
2411 cat >>confdefs.h <<_ACEOF
2412 #define PACKAGE_NAME "$PACKAGE_NAME"
2413 _ACEOF
2414
2415 cat >>confdefs.h <<_ACEOF
2416 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2417 _ACEOF
2418
2419 cat >>confdefs.h <<_ACEOF
2420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2421 _ACEOF
2422
2423 cat >>confdefs.h <<_ACEOF
2424 #define PACKAGE_STRING "$PACKAGE_STRING"
2425 _ACEOF
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_URL "$PACKAGE_URL"
2433 _ACEOF
2434
2435
2436 # Let the site file select an alternate cache file if it wants to.
2437 # Prefer an explicitly selected file to automatically selected ones.
2438 ac_site_file1=NONE
2439 ac_site_file2=NONE
2440 if test -n "$CONFIG_SITE"; then
2441 # We do not want a PATH search for config.site.
2442 case $CONFIG_SITE in #((
2443 -*) ac_site_file1=./$CONFIG_SITE;;
2444 */*) ac_site_file1=$CONFIG_SITE;;
2445 *) ac_site_file1=./$CONFIG_SITE;;
2446 esac
2447 elif test "x$prefix" != xNONE; then
2448 ac_site_file1=$prefix/share/config.site
2449 ac_site_file2=$prefix/etc/config.site
2450 else
2451 ac_site_file1=$ac_default_prefix/share/config.site
2452 ac_site_file2=$ac_default_prefix/etc/config.site
2453 fi
2454 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2455 do
2456 test "x$ac_site_file" = xNONE && continue
2457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2459 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2460 sed 's/^/| /' "$ac_site_file" >&5
2461 . "$ac_site_file" \
2462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464 as_fn_error $? "failed to load site script $ac_site_file
2465 See \`config.log' for more details" "$LINENO" 5; }
2466 fi
2467 done
2468
2469 if test -r "$cache_file"; then
2470 # Some versions of bash will fail to source /dev/null (special files
2471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2474 $as_echo "$as_me: loading cache $cache_file" >&6;}
2475 case $cache_file in
2476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2477 *) . "./$cache_file";;
2478 esac
2479 fi
2480 else
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2482 $as_echo "$as_me: creating cache $cache_file" >&6;}
2483 >$cache_file
2484 fi
2485
2486 as_fn_append ac_header_list " stdlib.h"
2487 as_fn_append ac_header_list " unistd.h"
2488 as_fn_append ac_header_list " sys/param.h"
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494 eval ac_new_set=\$ac_env_${ac_var}_set
2495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496 eval ac_new_val=\$ac_env_${ac_var}_value
2497 case $ac_old_set,$ac_new_set in
2498 set,)
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2502 ,set)
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505 ac_cache_corrupted=: ;;
2506 ,);;
2507 *)
2508 if test "x$ac_old_val" != "x$ac_new_val"; then
2509 # differences in whitespace do not lead to failure.
2510 ac_old_val_w=`echo x $ac_old_val`
2511 ac_new_val_w=`echo x $ac_new_val`
2512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515 ac_cache_corrupted=:
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519 eval $ac_var=\$ac_old_val
2520 fi
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2522 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2525 fi;;
2526 esac
2527 # Pass precious variables to config.status.
2528 if test "$ac_new_set" = set; then
2529 case $ac_new_val in
2530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531 *) ac_arg=$ac_var=$ac_new_val ;;
2532 esac
2533 case " $ac_configure_args " in
2534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536 esac
2537 fi
2538 done
2539 if $ac_cache_corrupted; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557
2558
2559
2560
2561
2562 ac_aux_dir=
2563 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2564 if test -f "$ac_dir/install-sh"; then
2565 ac_aux_dir=$ac_dir
2566 ac_install_sh="$ac_aux_dir/install-sh -c"
2567 break
2568 elif test -f "$ac_dir/install.sh"; then
2569 ac_aux_dir=$ac_dir
2570 ac_install_sh="$ac_aux_dir/install.sh -c"
2571 break
2572 elif test -f "$ac_dir/shtool"; then
2573 ac_aux_dir=$ac_dir
2574 ac_install_sh="$ac_aux_dir/shtool install -c"
2575 break
2576 fi
2577 done
2578 if test -z "$ac_aux_dir"; then
2579 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2580 fi
2581
2582 # These three variables are undocumented and unsupported,
2583 # and are intended to be withdrawn in a future Autoconf release.
2584 # They can cause serious problems if a builder's source tree is in a directory
2585 # whose full name contains unusual characters.
2586 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2587 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2588 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2589
2590
2591 # Make sure we can run config.sub.
2592 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2593 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2596 $as_echo_n "checking build system type... " >&6; }
2597 if ${ac_cv_build+:} false; then :
2598 $as_echo_n "(cached) " >&6
2599 else
2600 ac_build_alias=$build_alias
2601 test "x$ac_build_alias" = x &&
2602 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2603 test "x$ac_build_alias" = x &&
2604 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2605 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2606 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2607
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2610 $as_echo "$ac_cv_build" >&6; }
2611 case $ac_cv_build in
2612 *-*-*) ;;
2613 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2614 esac
2615 build=$ac_cv_build
2616 ac_save_IFS=$IFS; IFS='-'
2617 set x $ac_cv_build
2618 shift
2619 build_cpu=$1
2620 build_vendor=$2
2621 shift; shift
2622 # Remember, the first character of IFS is used to create $*,
2623 # except with old shells:
2624 build_os=$*
2625 IFS=$ac_save_IFS
2626 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2627
2628
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2630 $as_echo_n "checking host system type... " >&6; }
2631 if ${ac_cv_host+:} false; then :
2632 $as_echo_n "(cached) " >&6
2633 else
2634 if test "x$host_alias" = x; then
2635 ac_cv_host=$ac_cv_build
2636 else
2637 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2638 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2639 fi
2640
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2643 $as_echo "$ac_cv_host" >&6; }
2644 case $ac_cv_host in
2645 *-*-*) ;;
2646 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2647 esac
2648 host=$ac_cv_host
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_host
2651 shift
2652 host_cpu=$1
2653 host_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 host_os=$*
2658 IFS=$ac_save_IFS
2659 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2660
2661
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2663 $as_echo_n "checking target system type... " >&6; }
2664 if ${ac_cv_target+:} false; then :
2665 $as_echo_n "(cached) " >&6
2666 else
2667 if test "x$target_alias" = x; then
2668 ac_cv_target=$ac_cv_host
2669 else
2670 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2671 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2672 fi
2673
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2676 $as_echo "$ac_cv_target" >&6; }
2677 case $ac_cv_target in
2678 *-*-*) ;;
2679 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2680 esac
2681 target=$ac_cv_target
2682 ac_save_IFS=$IFS; IFS='-'
2683 set x $ac_cv_target
2684 shift
2685 target_cpu=$1
2686 target_vendor=$2
2687 shift; shift
2688 # Remember, the first character of IFS is used to create $*,
2689 # except with old shells:
2690 target_os=$*
2691 IFS=$ac_save_IFS
2692 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2693
2694
2695 # The aliases save the names the user supplied, while $host etc.
2696 # will get canonicalized.
2697 test -n "$target_alias" &&
2698 test "$program_prefix$program_suffix$program_transform_name" = \
2699 NONENONEs,x,x, &&
2700 program_prefix=${target_alias}-
2701
2702 am__api_version='1.15'
2703
2704 # Find a good install program. We prefer a C program (faster),
2705 # so one script is as good as another. But avoid the broken or
2706 # incompatible versions:
2707 # SysV /etc/install, /usr/sbin/install
2708 # SunOS /usr/etc/install
2709 # IRIX /sbin/install
2710 # AIX /bin/install
2711 # AmigaOS /C/install, which installs bootblocks on floppy discs
2712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2715 # OS/2's system install, which has a completely different semantic
2716 # ./install, which can be erroneously created by make from ./install.sh.
2717 # Reject install programs that cannot install multiple files.
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2719 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2720 if test -z "$INSTALL"; then
2721 if ${ac_cv_path_install+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 for as_dir in $PATH
2726 do
2727 IFS=$as_save_IFS
2728 test -z "$as_dir" && as_dir=.
2729 # Account for people who put trailing slashes in PATH elements.
2730 case $as_dir/ in #((
2731 ./ | .// | /[cC]/* | \
2732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2733 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2734 /usr/ucb/* ) ;;
2735 *)
2736 # OSF1 and SCO ODT 3.0 have their own names for install.
2737 # Don't use installbsd from OSF since it installs stuff as root
2738 # by default.
2739 for ac_prog in ginstall scoinst install; do
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2742 if test $ac_prog = install &&
2743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2744 # AIX install. It has an incompatible calling convention.
2745 :
2746 elif test $ac_prog = install &&
2747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2748 # program-specific install script used by HP pwplus--don't use.
2749 :
2750 else
2751 rm -rf conftest.one conftest.two conftest.dir
2752 echo one > conftest.one
2753 echo two > conftest.two
2754 mkdir conftest.dir
2755 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2756 test -s conftest.one && test -s conftest.two &&
2757 test -s conftest.dir/conftest.one &&
2758 test -s conftest.dir/conftest.two
2759 then
2760 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2761 break 3
2762 fi
2763 fi
2764 fi
2765 done
2766 done
2767 ;;
2768 esac
2769
2770 done
2771 IFS=$as_save_IFS
2772
2773 rm -rf conftest.one conftest.two conftest.dir
2774
2775 fi
2776 if test "${ac_cv_path_install+set}" = set; then
2777 INSTALL=$ac_cv_path_install
2778 else
2779 # As a last resort, use the slow shell script. Don't cache a
2780 # value for INSTALL within a source directory, because that will
2781 # break other packages using the cache if that directory is
2782 # removed, or if the value is a relative name.
2783 INSTALL=$ac_install_sh
2784 fi
2785 fi
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2787 $as_echo "$INSTALL" >&6; }
2788
2789 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2790 # It thinks the first close brace ends the variable substitution.
2791 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2792
2793 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2794
2795 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2796
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2798 $as_echo_n "checking whether build environment is sane... " >&6; }
2799 # Reject unsafe characters in $srcdir or the absolute working directory
2800 # name. Accept space and tab only in the latter.
2801 am_lf='
2802 '
2803 case `pwd` in
2804 *[\\\"\#\$\&\'\`$am_lf]*)
2805 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2806 esac
2807 case $srcdir in
2808 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2809 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2810 esac
2811
2812 # Do 'set' in a subshell so we don't clobber the current shell's
2813 # arguments. Must try -L first in case configure is actually a
2814 # symlink; some systems play weird games with the mod time of symlinks
2815 # (eg FreeBSD returns the mod time of the symlink's containing
2816 # directory).
2817 if (
2818 am_has_slept=no
2819 for am_try in 1 2; do
2820 echo "timestamp, slept: $am_has_slept" > conftest.file
2821 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2822 if test "$*" = "X"; then
2823 # -L didn't work.
2824 set X `ls -t "$srcdir/configure" conftest.file`
2825 fi
2826 if test "$*" != "X $srcdir/configure conftest.file" \
2827 && test "$*" != "X conftest.file $srcdir/configure"; then
2828
2829 # If neither matched, then we have a broken ls. This can happen
2830 # if, for instance, CONFIG_SHELL is bash and it inherits a
2831 # broken ls alias from the environment. This has actually
2832 # happened. Such a system could not be considered "sane".
2833 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2834 alias in your environment" "$LINENO" 5
2835 fi
2836 if test "$2" = conftest.file || test $am_try -eq 2; then
2837 break
2838 fi
2839 # Just in case.
2840 sleep 1
2841 am_has_slept=yes
2842 done
2843 test "$2" = conftest.file
2844 )
2845 then
2846 # Ok.
2847 :
2848 else
2849 as_fn_error $? "newly created file is older than distributed files!
2850 Check your system clock" "$LINENO" 5
2851 fi
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 # If we didn't sleep, we still need to ensure time stamps of config.status and
2855 # generated files are strictly newer.
2856 am_sleep_pid=
2857 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2858 ( sleep 1 ) &
2859 am_sleep_pid=$!
2860 fi
2861
2862 rm -f conftest.file
2863
2864 test "$program_prefix" != NONE &&
2865 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2866 # Use a double $ so make ignores it.
2867 test "$program_suffix" != NONE &&
2868 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2869 # Double any \ or $.
2870 # By default was `s,x,x', remove it if useless.
2871 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2872 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2873
2874 # Expand $ac_aux_dir to an absolute path.
2875 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2876
2877 if test x"${MISSING+set}" != xset; then
2878 case $am_aux_dir in
2879 *\ * | *\ *)
2880 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2881 *)
2882 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2883 esac
2884 fi
2885 # Use eval to expand $SHELL
2886 if eval "$MISSING --is-lightweight"; then
2887 am_missing_run="$MISSING "
2888 else
2889 am_missing_run=
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2891 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2892 fi
2893
2894 if test x"${install_sh+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2898 *)
2899 install_sh="\${SHELL} $am_aux_dir/install-sh"
2900 esac
2901 fi
2902
2903 # Installed binaries are usually stripped using 'strip' when the user
2904 # run "make install-strip". However 'strip' might not be the right
2905 # tool to use in cross-compilation environments, therefore Automake
2906 # will honor the 'STRIP' environment variable to overrule this program.
2907 if test "$cross_compiling" != no; then
2908 if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2910 set dummy ${ac_tool_prefix}strip; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_STRIP+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$STRIP"; then
2917 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 STRIP=$ac_cv_prog_STRIP
2937 if test -n "$STRIP"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2939 $as_echo "$STRIP" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$ac_cv_prog_STRIP"; then
2948 ac_ct_STRIP=$STRIP
2949 # Extract the first word of "strip", so it can be a program name with args.
2950 set dummy strip; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$ac_ct_STRIP"; then
2957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_STRIP="strip"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2977 if test -n "$ac_ct_STRIP"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2979 $as_echo "$ac_ct_STRIP" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985 if test "x$ac_ct_STRIP" = x; then
2986 STRIP=":"
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989 yes:)
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2992 ac_tool_warned=yes ;;
2993 esac
2994 STRIP=$ac_ct_STRIP
2995 fi
2996 else
2997 STRIP="$ac_cv_prog_STRIP"
2998 fi
2999
3000 fi
3001 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3002
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3004 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3005 if test -z "$MKDIR_P"; then
3006 if ${ac_cv_path_mkdir+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3011 do
3012 IFS=$as_save_IFS
3013 test -z "$as_dir" && as_dir=.
3014 for ac_prog in mkdir gmkdir; do
3015 for ac_exec_ext in '' $ac_executable_extensions; do
3016 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3017 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3018 'mkdir (GNU coreutils) '* | \
3019 'mkdir (coreutils) '* | \
3020 'mkdir (fileutils) '4.1*)
3021 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3022 break 3;;
3023 esac
3024 done
3025 done
3026 done
3027 IFS=$as_save_IFS
3028
3029 fi
3030
3031 test -d ./--version && rmdir ./--version
3032 if test "${ac_cv_path_mkdir+set}" = set; then
3033 MKDIR_P="$ac_cv_path_mkdir -p"
3034 else
3035 # As a last resort, use the slow shell script. Don't cache a
3036 # value for MKDIR_P within a source directory, because that will
3037 # break other packages using the cache if that directory is
3038 # removed, or if the value is a relative name.
3039 MKDIR_P="$ac_install_sh -d"
3040 fi
3041 fi
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3043 $as_echo "$MKDIR_P" >&6; }
3044
3045 for ac_prog in gawk mawk nawk awk
3046 do
3047 # Extract the first word of "$ac_prog", so it can be a program name with args.
3048 set dummy $ac_prog; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if ${ac_cv_prog_AWK+:} false; then :
3052 $as_echo_n "(cached) " >&6
3053 else
3054 if test -n "$AWK"; then
3055 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3056 else
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3064 ac_cv_prog_AWK="$ac_prog"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3066 break 2
3067 fi
3068 done
3069 done
3070 IFS=$as_save_IFS
3071
3072 fi
3073 fi
3074 AWK=$ac_cv_prog_AWK
3075 if test -n "$AWK"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3077 $as_echo "$AWK" >&6; }
3078 else
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 fi
3082
3083
3084 test -n "$AWK" && break
3085 done
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3088 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3089 set x ${MAKE-make}
3090 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3091 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3092 $as_echo_n "(cached) " >&6
3093 else
3094 cat >conftest.make <<\_ACEOF
3095 SHELL = /bin/sh
3096 all:
3097 @echo '@@@%%%=$(MAKE)=@@@%%%'
3098 _ACEOF
3099 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3100 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3101 *@@@%%%=?*=@@@%%%*)
3102 eval ac_cv_prog_make_${ac_make}_set=yes;;
3103 *)
3104 eval ac_cv_prog_make_${ac_make}_set=no;;
3105 esac
3106 rm -f conftest.make
3107 fi
3108 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3110 $as_echo "yes" >&6; }
3111 SET_MAKE=
3112 else
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3114 $as_echo "no" >&6; }
3115 SET_MAKE="MAKE=${MAKE-make}"
3116 fi
3117
3118 rm -rf .tst 2>/dev/null
3119 mkdir .tst 2>/dev/null
3120 if test -d .tst; then
3121 am__leading_dot=.
3122 else
3123 am__leading_dot=_
3124 fi
3125 rmdir .tst 2>/dev/null
3126
3127 # Check whether --enable-silent-rules was given.
3128 if test "${enable_silent_rules+set}" = set; then :
3129 enableval=$enable_silent_rules;
3130 fi
3131
3132 case $enable_silent_rules in # (((
3133 yes) AM_DEFAULT_VERBOSITY=0;;
3134 no) AM_DEFAULT_VERBOSITY=1;;
3135 *) AM_DEFAULT_VERBOSITY=1;;
3136 esac
3137 am_make=${MAKE-make}
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3139 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3140 if ${am_cv_make_support_nested_variables+:} false; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if $as_echo 'TRUE=$(BAR$(V))
3144 BAR0=false
3145 BAR1=true
3146 V=1
3147 am__doit:
3148 @$(TRUE)
3149 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3150 am_cv_make_support_nested_variables=yes
3151 else
3152 am_cv_make_support_nested_variables=no
3153 fi
3154 fi
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3156 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3157 if test $am_cv_make_support_nested_variables = yes; then
3158 AM_V='$(V)'
3159 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3160 else
3161 AM_V=$AM_DEFAULT_VERBOSITY
3162 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3163 fi
3164 AM_BACKSLASH='\'
3165
3166 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3167 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3168 # is not polluted with repeated "-I."
3169 am__isrc=' -I$(srcdir)'
3170 # test to see if srcdir already configured
3171 if test -f $srcdir/config.status; then
3172 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3173 fi
3174 fi
3175
3176 # test whether we have cygpath
3177 if test -z "$CYGPATH_W"; then
3178 if (cygpath --version) >/dev/null 2>/dev/null; then
3179 CYGPATH_W='cygpath -w'
3180 else
3181 CYGPATH_W=echo
3182 fi
3183 fi
3184
3185
3186 # Define the identity of the package.
3187 PACKAGE='bfd'
3188 VERSION='2.39.50'
3189
3190
3191 cat >>confdefs.h <<_ACEOF
3192 #define PACKAGE "$PACKAGE"
3193 _ACEOF
3194
3195
3196 cat >>confdefs.h <<_ACEOF
3197 #define VERSION "$VERSION"
3198 _ACEOF
3199
3200 # Some tools Automake needs.
3201
3202 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3203
3204
3205 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3206
3207
3208 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3209
3210
3211 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3212
3213
3214 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3215
3216 # For better backward compatibility. To be removed once Automake 1.9.x
3217 # dies out for good. For more background, see:
3218 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3219 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3220 mkdir_p='$(MKDIR_P)'
3221
3222 # We need awk for the "check" target (and possibly the TAP driver). The
3223 # system "awk" is bad on some platforms.
3224 # Always define AMTAR for backward compatibility. Yes, it's still used
3225 # in the wild :-( We should find a proper way to deprecate it ...
3226 AMTAR='$${TAR-tar}'
3227
3228
3229 # We'll loop over all known methods to create a tar archive until one works.
3230 _am_tools='gnutar pax cpio none'
3231
3232 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3233
3234
3235
3236
3237
3238
3239 # POSIX will say in a future version that running "rm -f" with no argument
3240 # is OK; and we want to be able to make that assumption in our Makefile
3241 # recipes. So use an aggressive probe to check that the usage we want is
3242 # actually supported "in the wild" to an acceptable degree.
3243 # See automake bug#10828.
3244 # To make any issue more visible, cause the running configure to be aborted
3245 # by default if the 'rm' program in use doesn't match our expectations; the
3246 # user can still override this though.
3247 if rm -f && rm -fr && rm -rf; then : OK; else
3248 cat >&2 <<'END'
3249 Oops!
3250
3251 Your 'rm' program seems unable to run without file operands specified
3252 on the command line, even when the '-f' option is present. This is contrary
3253 to the behaviour of most rm programs out there, and not conforming with
3254 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3255
3256 Please tell bug-automake@gnu.org about your system, including the value
3257 of your $PATH and any error possibly output before this message. This
3258 can help us improve future automake versions.
3259
3260 END
3261 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3262 echo 'Configuration will proceed anyway, since you have set the' >&2
3263 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3264 echo >&2
3265 else
3266 cat >&2 <<'END'
3267 Aborting the configuration process, to ensure you take notice of the issue.
3268
3269 You can download and install GNU coreutils to get an 'rm' implementation
3270 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3271
3272 If you want to complete the configuration process using your problematic
3273 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3274 to "yes", and re-run configure.
3275
3276 END
3277 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3278 fi
3279 fi
3280
3281 # Check whether --enable-silent-rules was given.
3282 if test "${enable_silent_rules+set}" = set; then :
3283 enableval=$enable_silent_rules;
3284 fi
3285
3286 case $enable_silent_rules in # (((
3287 yes) AM_DEFAULT_VERBOSITY=0;;
3288 no) AM_DEFAULT_VERBOSITY=1;;
3289 *) AM_DEFAULT_VERBOSITY=0;;
3290 esac
3291 am_make=${MAKE-make}
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3293 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3294 if ${am_cv_make_support_nested_variables+:} false; then :
3295 $as_echo_n "(cached) " >&6
3296 else
3297 if $as_echo 'TRUE=$(BAR$(V))
3298 BAR0=false
3299 BAR1=true
3300 V=1
3301 am__doit:
3302 @$(TRUE)
3303 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3304 am_cv_make_support_nested_variables=yes
3305 else
3306 am_cv_make_support_nested_variables=no
3307 fi
3308 fi
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3310 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3311 if test $am_cv_make_support_nested_variables = yes; then
3312 AM_V='$(V)'
3313 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3314 else
3315 AM_V=$AM_DEFAULT_VERBOSITY
3316 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3317 fi
3318 AM_BACKSLASH='\'
3319
3320
3321 if test -n "$ac_tool_prefix"; then
3322 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3323 set dummy ${ac_tool_prefix}ar; ac_word=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_AR+:} false; then :
3327 $as_echo_n "(cached) " >&6
3328 else
3329 if test -n "$AR"; then
3330 ac_cv_prog_AR="$AR" # Let the user override the test.
3331 else
3332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3333 for as_dir in $PATH
3334 do
3335 IFS=$as_save_IFS
3336 test -z "$as_dir" && as_dir=.
3337 for ac_exec_ext in '' $ac_executable_extensions; do
3338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_AR="${ac_tool_prefix}ar"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 break 2
3342 fi
3343 done
3344 done
3345 IFS=$as_save_IFS
3346
3347 fi
3348 fi
3349 AR=$ac_cv_prog_AR
3350 if test -n "$AR"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3352 $as_echo "$AR" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$ac_cv_prog_AR"; then
3361 ac_ct_AR=$AR
3362 # Extract the first word of "ar", so it can be a program name with args.
3363 set dummy ar; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$ac_ct_AR"; then
3370 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_ac_ct_AR="ar"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3390 if test -n "$ac_ct_AR"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3392 $as_echo "$ac_ct_AR" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3396 fi
3397
3398 if test "x$ac_ct_AR" = x; then
3399 AR=""
3400 else
3401 case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407 AR=$ac_ct_AR
3408 fi
3409 else
3410 AR="$ac_cv_prog_AR"
3411 fi
3412
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if ${ac_cv_prog_RANLIB+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 if test -n "$RANLIB"; then
3422 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 break 2
3434 fi
3435 done
3436 done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 RANLIB=$ac_cv_prog_RANLIB
3442 if test -n "$RANLIB"; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3444 $as_echo "$RANLIB" >&6; }
3445 else
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450
3451 fi
3452 if test -z "$ac_cv_prog_RANLIB"; then
3453 ac_ct_RANLIB=$RANLIB
3454 # Extract the first word of "ranlib", so it can be a program name with args.
3455 set dummy ranlib; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3459 $as_echo_n "(cached) " >&6
3460 else
3461 if test -n "$ac_ct_RANLIB"; then
3462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3463 else
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467 IFS=$as_save_IFS
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471 ac_cv_prog_ac_ct_RANLIB="ranlib"
3472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 break 2
3474 fi
3475 done
3476 done
3477 IFS=$as_save_IFS
3478
3479 fi
3480 fi
3481 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3482 if test -n "$ac_ct_RANLIB"; then
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3484 $as_echo "$ac_ct_RANLIB" >&6; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3487 $as_echo "no" >&6; }
3488 fi
3489
3490 if test "x$ac_ct_RANLIB" = x; then
3491 RANLIB=":"
3492 else
3493 case $cross_compiling:$ac_tool_warned in
3494 yes:)
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3497 ac_tool_warned=yes ;;
3498 esac
3499 RANLIB=$ac_ct_RANLIB
3500 fi
3501 else
3502 RANLIB="$ac_cv_prog_RANLIB"
3503 fi
3504
3505
3506 # Check whether --enable-shared was given.
3507 if test "${enable_shared+set}" = set; then :
3508 enableval=$enable_shared; p=${PACKAGE-default}
3509 case $enableval in
3510 yes) enable_shared=yes ;;
3511 no) enable_shared=no ;;
3512 *)
3513 enable_shared=no
3514 # Look at the argument we got. We use all the common list separators.
3515 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3516 for pkg in $enableval; do
3517 IFS="$lt_save_ifs"
3518 if test "X$pkg" = "X$p"; then
3519 enable_shared=yes
3520 fi
3521 done
3522 IFS="$lt_save_ifs"
3523 ;;
3524 esac
3525 else
3526 enable_shared=no
3527 fi
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538 ac_ext=c
3539 ac_cpp='$CPP $CPPFLAGS'
3540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 if test -n "$ac_tool_prefix"; then
3544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3545 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if ${ac_cv_prog_CC+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 if test -n "$CC"; then
3552 ac_cv_prog_CC="$CC" # Let the user override the test.
3553 else
3554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3555 for as_dir in $PATH
3556 do
3557 IFS=$as_save_IFS
3558 test -z "$as_dir" && as_dir=.
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3561 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 break 2
3564 fi
3565 done
3566 done
3567 IFS=$as_save_IFS
3568
3569 fi
3570 fi
3571 CC=$ac_cv_prog_CC
3572 if test -n "$CC"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3574 $as_echo "$CC" >&6; }
3575 else
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3578 fi
3579
3580
3581 fi
3582 if test -z "$ac_cv_prog_CC"; then
3583 ac_ct_CC=$CC
3584 # Extract the first word of "gcc", so it can be a program name with args.
3585 set dummy gcc; ac_word=$2
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3587 $as_echo_n "checking for $ac_word... " >&6; }
3588 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 if test -n "$ac_ct_CC"; then
3592 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3596 do
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_ac_ct_CC="gcc"
3602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 $as_echo "$ac_ct_CC" >&6; }
3615 else
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 $as_echo "no" >&6; }
3618 fi
3619
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3630 fi
3631 else
3632 CC="$ac_cv_prog_CC"
3633 fi
3634
3635 if test -z "$CC"; then
3636 if test -n "$ac_tool_prefix"; then
3637 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3638 set dummy ${ac_tool_prefix}cc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_CC+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_CC="${ac_tool_prefix}cc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3672
3673
3674 fi
3675 fi
3676 if test -z "$CC"; then
3677 # Extract the first word of "cc", so it can be a program name with args.
3678 set dummy cc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_CC+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$CC"; then
3685 ac_cv_prog_CC="$CC" # Let the user override the test.
3686 else
3687 ac_prog_rejected=no
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691 IFS=$as_save_IFS
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3695 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3696 ac_prog_rejected=yes
3697 continue
3698 fi
3699 ac_cv_prog_CC="cc"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3701 break 2
3702 fi
3703 done
3704 done
3705 IFS=$as_save_IFS
3706
3707 if test $ac_prog_rejected = yes; then
3708 # We found a bogon in the path, so make sure we never use it.
3709 set dummy $ac_cv_prog_CC
3710 shift
3711 if test $# != 0; then
3712 # We chose a different compiler from the bogus one.
3713 # However, it has the same basename, so the bogon will be chosen
3714 # first if we set CC to just the basename; use the full file name.
3715 shift
3716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3717 fi
3718 fi
3719 fi
3720 fi
3721 CC=$ac_cv_prog_CC
3722 if test -n "$CC"; then
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3724 $as_echo "$CC" >&6; }
3725 else
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3727 $as_echo "no" >&6; }
3728 fi
3729
3730
3731 fi
3732 if test -z "$CC"; then
3733 if test -n "$ac_tool_prefix"; then
3734 for ac_prog in cl.exe
3735 do
3736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3737 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3739 $as_echo_n "checking for $ac_word... " >&6; }
3740 if ${ac_cv_prog_CC+:} false; then :
3741 $as_echo_n "(cached) " >&6
3742 else
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747 for as_dir in $PATH
3748 do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
3751 for ac_exec_ext in '' $ac_executable_extensions; do
3752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3753 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 break 2
3756 fi
3757 done
3758 done
3759 IFS=$as_save_IFS
3760
3761 fi
3762 fi
3763 CC=$ac_cv_prog_CC
3764 if test -n "$CC"; then
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3766 $as_echo "$CC" >&6; }
3767 else
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 $as_echo "no" >&6; }
3770 fi
3771
3772
3773 test -n "$CC" && break
3774 done
3775 fi
3776 if test -z "$CC"; then
3777 ac_ct_CC=$CC
3778 for ac_prog in cl.exe
3779 do
3780 # Extract the first word of "$ac_prog", so it can be a program name with args.
3781 set dummy $ac_prog; ac_word=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3785 $as_echo_n "(cached) " >&6
3786 else
3787 if test -n "$ac_ct_CC"; then
3788 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3789 else
3790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793 IFS=$as_save_IFS
3794 test -z "$as_dir" && as_dir=.
3795 for ac_exec_ext in '' $ac_executable_extensions; do
3796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797 ac_cv_prog_ac_ct_CC="$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3799 break 2
3800 fi
3801 done
3802 done
3803 IFS=$as_save_IFS
3804
3805 fi
3806 fi
3807 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3808 if test -n "$ac_ct_CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3810 $as_echo "$ac_ct_CC" >&6; }
3811 else
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3814 fi
3815
3816
3817 test -n "$ac_ct_CC" && break
3818 done
3819
3820 if test "x$ac_ct_CC" = x; then
3821 CC=""
3822 else
3823 case $cross_compiling:$ac_tool_warned in
3824 yes:)
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3827 ac_tool_warned=yes ;;
3828 esac
3829 CC=$ac_ct_CC
3830 fi
3831 fi
3832
3833 fi
3834
3835
3836 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 as_fn_error $? "no acceptable C compiler found in \$PATH
3839 See \`config.log' for more details" "$LINENO" 5; }
3840
3841 # Provide some information about the compiler.
3842 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3843 set X $ac_compile
3844 ac_compiler=$2
3845 for ac_option in --version -v -V -qversion; do
3846 { { ac_try="$ac_compiler $ac_option >&5"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 $as_echo "$ac_try_echo"; } >&5
3853 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3854 ac_status=$?
3855 if test -s conftest.err; then
3856 sed '10a\
3857 ... rest of stderr output deleted ...
3858 10q' conftest.err >conftest.er1
3859 cat conftest.er1 >&5
3860 fi
3861 rm -f conftest.er1 conftest.err
3862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863 test $ac_status = 0; }
3864 done
3865
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868
3869 int
3870 main ()
3871 {
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 ac_clean_files_save=$ac_clean_files
3878 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3879 # Try to create an executable without -o first, disregard a.out.
3880 # It will help us diagnose broken compilers, and finding out an intuition
3881 # of exeext.
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3883 $as_echo_n "checking whether the C compiler works... " >&6; }
3884 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3885
3886 # The possible output files:
3887 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3888
3889 ac_rmfiles=
3890 for ac_file in $ac_files
3891 do
3892 case $ac_file in
3893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3894 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3895 esac
3896 done
3897 rm -f $ac_rmfiles
3898
3899 if { { ac_try="$ac_link_default"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3905 $as_echo "$ac_try_echo"; } >&5
3906 (eval "$ac_link_default") 2>&5
3907 ac_status=$?
3908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909 test $ac_status = 0; }; then :
3910 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3911 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3912 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3913 # so that the user can short-circuit this test for compilers unknown to
3914 # Autoconf.
3915 for ac_file in $ac_files ''
3916 do
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3920 ;;
3921 [ab].out )
3922 # We found the default executable, but exeext='' is most
3923 # certainly right.
3924 break;;
3925 *.* )
3926 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3927 then :; else
3928 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3929 fi
3930 # We set ac_cv_exeext here because the later test for it is not
3931 # safe: cross compilers may not add the suffix if given an `-o'
3932 # argument, so we may need to know it at that point already.
3933 # Even if this section looks crufty: it has the advantage of
3934 # actually working.
3935 break;;
3936 * )
3937 break;;
3938 esac
3939 done
3940 test "$ac_cv_exeext" = no && ac_cv_exeext=
3941
3942 else
3943 ac_file=''
3944 fi
3945 if test -z "$ac_file"; then :
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 $as_echo "no" >&6; }
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error 77 "C compiler cannot create executables
3954 See \`config.log' for more details" "$LINENO" 5; }
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3957 $as_echo "yes" >&6; }
3958 fi
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3960 $as_echo_n "checking for C compiler default output file name... " >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3962 $as_echo "$ac_file" >&6; }
3963 ac_exeext=$ac_cv_exeext
3964
3965 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3966 ac_clean_files=$ac_clean_files_save
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3968 $as_echo_n "checking for suffix of executables... " >&6; }
3969 if { { ac_try="$ac_link"
3970 case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3973 esac
3974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3975 $as_echo "$ac_try_echo"; } >&5
3976 (eval "$ac_link") 2>&5
3977 ac_status=$?
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }; then :
3980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3982 # work properly (i.e., refer to `conftest.exe'), while it won't with
3983 # `rm'.
3984 for ac_file in conftest.exe conftest conftest.*; do
3985 test -f "$ac_file" || continue
3986 case $ac_file in
3987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3989 break;;
3990 * ) break;;
3991 esac
3992 done
3993 else
3994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3996 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3997 See \`config.log' for more details" "$LINENO" 5; }
3998 fi
3999 rm -f conftest conftest$ac_cv_exeext
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4001 $as_echo "$ac_cv_exeext" >&6; }
4002
4003 rm -f conftest.$ac_ext
4004 EXEEXT=$ac_cv_exeext
4005 ac_exeext=$EXEEXT
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 #include <stdio.h>
4009 int
4010 main ()
4011 {
4012 FILE *f = fopen ("conftest.out", "w");
4013 return ferror (f) || fclose (f) != 0;
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 ac_clean_files="$ac_clean_files conftest.out"
4020 # Check that the compiler produces executables we can run. If not, either
4021 # the compiler is broken, or we cross compile.
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4023 $as_echo_n "checking whether we are cross compiling... " >&6; }
4024 if test "$cross_compiling" != yes; then
4025 { { ac_try="$ac_link"
4026 case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4029 esac
4030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4031 $as_echo "$ac_try_echo"; } >&5
4032 (eval "$ac_link") 2>&5
4033 ac_status=$?
4034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4035 test $ac_status = 0; }
4036 if { ac_try='./conftest$ac_cv_exeext'
4037 { { case "(($ac_try" in
4038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4039 *) ac_try_echo=$ac_try;;
4040 esac
4041 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4042 $as_echo "$ac_try_echo"; } >&5
4043 (eval "$ac_try") 2>&5
4044 ac_status=$?
4045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4046 test $ac_status = 0; }; }; then
4047 cross_compiling=no
4048 else
4049 if test "$cross_compiling" = maybe; then
4050 cross_compiling=yes
4051 else
4052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4054 as_fn_error $? "cannot run C compiled programs.
4055 If you meant to cross compile, use \`--host'.
4056 See \`config.log' for more details" "$LINENO" 5; }
4057 fi
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4061 $as_echo "$cross_compiling" >&6; }
4062
4063 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4064 ac_clean_files=$ac_clean_files_save
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4066 $as_echo_n "checking for suffix of object files... " >&6; }
4067 if ${ac_cv_objext+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072
4073 int
4074 main ()
4075 {
4076
4077 ;
4078 return 0;
4079 }
4080 _ACEOF
4081 rm -f conftest.o conftest.obj
4082 if { { ac_try="$ac_compile"
4083 case "(($ac_try" in
4084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085 *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088 $as_echo "$ac_try_echo"; } >&5
4089 (eval "$ac_compile") 2>&5
4090 ac_status=$?
4091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092 test $ac_status = 0; }; then :
4093 for ac_file in conftest.o conftest.obj conftest.*; do
4094 test -f "$ac_file" || continue;
4095 case $ac_file in
4096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4097 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4098 break;;
4099 esac
4100 done
4101 else
4102 $as_echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4104
4105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4107 as_fn_error $? "cannot compute suffix of object files: cannot compile
4108 See \`config.log' for more details" "$LINENO" 5; }
4109 fi
4110 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4111 fi
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4113 $as_echo "$ac_cv_objext" >&6; }
4114 OBJEXT=$ac_cv_objext
4115 ac_objext=$OBJEXT
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4117 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4118 if ${ac_cv_c_compiler_gnu+:} false; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123
4124 int
4125 main ()
4126 {
4127 #ifndef __GNUC__
4128 choke me
4129 #endif
4130
4131 ;
4132 return 0;
4133 }
4134 _ACEOF
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_compiler_gnu=yes
4137 else
4138 ac_compiler_gnu=no
4139 fi
4140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4142
4143 fi
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4145 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4146 if test $ac_compiler_gnu = yes; then
4147 GCC=yes
4148 else
4149 GCC=
4150 fi
4151 ac_test_CFLAGS=${CFLAGS+set}
4152 ac_save_CFLAGS=$CFLAGS
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4154 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4155 if ${ac_cv_prog_cc_g+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 ac_save_c_werror_flag=$ac_c_werror_flag
4159 ac_c_werror_flag=yes
4160 ac_cv_prog_cc_g=no
4161 CFLAGS="-g"
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 if ac_fn_c_try_compile "$LINENO"; then :
4174 ac_cv_prog_cc_g=yes
4175 else
4176 CFLAGS=""
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179
4180 int
4181 main ()
4182 {
4183
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189
4190 else
4191 ac_c_werror_flag=$ac_save_c_werror_flag
4192 CFLAGS="-g"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 int
4197 main ()
4198 {
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_g=yes
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_c_werror_flag=$ac_save_c_werror_flag
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4215 $as_echo "$ac_cv_prog_cc_g" >&6; }
4216 if test "$ac_test_CFLAGS" = set; then
4217 CFLAGS=$ac_save_CFLAGS
4218 elif test $ac_cv_prog_cc_g = yes; then
4219 if test "$GCC" = yes; then
4220 CFLAGS="-g -O2"
4221 else
4222 CFLAGS="-g"
4223 fi
4224 else
4225 if test "$GCC" = yes; then
4226 CFLAGS="-O2"
4227 else
4228 CFLAGS=
4229 fi
4230 fi
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4232 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4233 if ${ac_cv_prog_cc_c89+:} false; then :
4234 $as_echo_n "(cached) " >&6
4235 else
4236 ac_cv_prog_cc_c89=no
4237 ac_save_CC=$CC
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <stdarg.h>
4241 #include <stdio.h>
4242 struct stat;
4243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4244 struct buf { int x; };
4245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4246 static char *e (p, i)
4247 char **p;
4248 int i;
4249 {
4250 return p[i];
4251 }
4252 static char *f (char * (*g) (char **, int), char **p, ...)
4253 {
4254 char *s;
4255 va_list v;
4256 va_start (v,p);
4257 s = g (p, va_arg (v,int));
4258 va_end (v);
4259 return s;
4260 }
4261
4262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4263 function prototypes and stuff, but not '\xHH' hex character constants.
4264 These don't provoke an error unfortunately, instead are silently treated
4265 as 'x'. The following induces an error, until -std is added to get
4266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4267 array size at least. It's necessary to write '\x00'==0 to get something
4268 that's true only with -std. */
4269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4270
4271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4272 inside strings and character constants. */
4273 #define FOO(x) 'x'
4274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4275
4276 int test (int i, double x);
4277 struct s1 {int (*f) (int a);};
4278 struct s2 {int (*f) (double a);};
4279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4280 int argc;
4281 char **argv;
4282 int
4283 main ()
4284 {
4285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4286 ;
4287 return 0;
4288 }
4289 _ACEOF
4290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4292 do
4293 CC="$ac_save_CC $ac_arg"
4294 if ac_fn_c_try_compile "$LINENO"; then :
4295 ac_cv_prog_cc_c89=$ac_arg
4296 fi
4297 rm -f core conftest.err conftest.$ac_objext
4298 test "x$ac_cv_prog_cc_c89" != "xno" && break
4299 done
4300 rm -f conftest.$ac_ext
4301 CC=$ac_save_CC
4302
4303 fi
4304 # AC_CACHE_VAL
4305 case "x$ac_cv_prog_cc_c89" in
4306 x)
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4308 $as_echo "none needed" >&6; } ;;
4309 xno)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4311 $as_echo "unsupported" >&6; } ;;
4312 *)
4313 CC="$CC $ac_cv_prog_cc_c89"
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4315 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4316 esac
4317 if test "x$ac_cv_prog_cc_c89" != xno; then :
4318
4319 fi
4320
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
4327 ac_ext=c
4328 ac_cpp='$CPP $CPPFLAGS'
4329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4333 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4334 if ${am_cv_prog_cc_c_o+:} false; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339
4340 int
4341 main ()
4342 {
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 # Make sure it works both with $CC and with simple cc.
4349 # Following AC_PROG_CC_C_O, we do the test twice because some
4350 # compilers refuse to overwrite an existing .o file with -o,
4351 # though they will create one.
4352 am_cv_prog_cc_c_o=yes
4353 for am_i in 1 2; do
4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } \
4359 && test -f conftest2.$ac_objext; then
4360 : OK
4361 else
4362 am_cv_prog_cc_c_o=no
4363 break
4364 fi
4365 done
4366 rm -f core conftest*
4367 unset am_i
4368 fi
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4370 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4371 if test "$am_cv_prog_cc_c_o" != yes; then
4372 # Losing compiler, so override with the script.
4373 # FIXME: It is wrong to rewrite CC.
4374 # But if we don't then we get into trouble of one sort or another.
4375 # A longer-term fix would be to have automake use am__CC in this case,
4376 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4377 CC="$am_aux_dir/compile $CC"
4378 fi
4379 ac_ext=c
4380 ac_cpp='$CPP $CPPFLAGS'
4381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4384
4385 DEPDIR="${am__leading_dot}deps"
4386
4387 ac_config_commands="$ac_config_commands depfiles"
4388
4389
4390 am_make=${MAKE-make}
4391 cat > confinc << 'END'
4392 am__doit:
4393 @echo this is the am__doit target
4394 .PHONY: am__doit
4395 END
4396 # If we don't find an include directive, just comment out the code.
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4398 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4399 am__include="#"
4400 am__quote=
4401 _am_result=none
4402 # First try GNU make style include.
4403 echo "include confinc" > confmf
4404 # Ignore all kinds of additional output from 'make'.
4405 case `$am_make -s -f confmf 2> /dev/null` in #(
4406 *the\ am__doit\ target*)
4407 am__include=include
4408 am__quote=
4409 _am_result=GNU
4410 ;;
4411 esac
4412 # Now try BSD make style include.
4413 if test "$am__include" = "#"; then
4414 echo '.include "confinc"' > confmf
4415 case `$am_make -s -f confmf 2> /dev/null` in #(
4416 *the\ am__doit\ target*)
4417 am__include=.include
4418 am__quote="\""
4419 _am_result=BSD
4420 ;;
4421 esac
4422 fi
4423
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4426 $as_echo "$_am_result" >&6; }
4427 rm -f confinc confmf
4428
4429 # Check whether --enable-dependency-tracking was given.
4430 if test "${enable_dependency_tracking+set}" = set; then :
4431 enableval=$enable_dependency_tracking;
4432 fi
4433
4434 if test "x$enable_dependency_tracking" != xno; then
4435 am_depcomp="$ac_aux_dir/depcomp"
4436 AMDEPBACKSLASH='\'
4437 am__nodep='_no'
4438 fi
4439 if test "x$enable_dependency_tracking" != xno; then
4440 AMDEP_TRUE=
4441 AMDEP_FALSE='#'
4442 else
4443 AMDEP_TRUE='#'
4444 AMDEP_FALSE=
4445 fi
4446
4447
4448
4449 depcc="$CC" am_compiler_list=
4450
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4452 $as_echo_n "checking dependency style of $depcc... " >&6; }
4453 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4457 # We make a subdir and do the tests there. Otherwise we can end up
4458 # making bogus files that we don't know about and never remove. For
4459 # instance it was reported that on HP-UX the gcc test will end up
4460 # making a dummy file named 'D' -- because '-MD' means "put the output
4461 # in D".
4462 rm -rf conftest.dir
4463 mkdir conftest.dir
4464 # Copy depcomp to subdir because otherwise we won't find it if we're
4465 # using a relative directory.
4466 cp "$am_depcomp" conftest.dir
4467 cd conftest.dir
4468 # We will build objects and dependencies in a subdirectory because
4469 # it helps to detect inapplicable dependency modes. For instance
4470 # both Tru64's cc and ICC support -MD to output dependencies as a
4471 # side effect of compilation, but ICC will put the dependencies in
4472 # the current directory while Tru64 will put them in the object
4473 # directory.
4474 mkdir sub
4475
4476 am_cv_CC_dependencies_compiler_type=none
4477 if test "$am_compiler_list" = ""; then
4478 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4479 fi
4480 am__universal=false
4481 case " $depcc " in #(
4482 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4483 esac
4484
4485 for depmode in $am_compiler_list; do
4486 # Setup a source with many dependencies, because some compilers
4487 # like to wrap large dependency lists on column 80 (with \), and
4488 # we should not choose a depcomp mode which is confused by this.
4489 #
4490 # We need to recreate these files for each test, as the compiler may
4491 # overwrite some of them when testing with obscure command lines.
4492 # This happens at least with the AIX C compiler.
4493 : > sub/conftest.c
4494 for i in 1 2 3 4 5 6; do
4495 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4496 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4497 # Solaris 10 /bin/sh.
4498 echo '/* dummy */' > sub/conftst$i.h
4499 done
4500 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501
4502 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4503 # mode. It turns out that the SunPro C++ compiler does not properly
4504 # handle '-M -o', and we need to detect this. Also, some Intel
4505 # versions had trouble with output in subdirs.
4506 am__obj=sub/conftest.${OBJEXT-o}
4507 am__minus_obj="-o $am__obj"
4508 case $depmode in
4509 gcc)
4510 # This depmode causes a compiler race in universal mode.
4511 test "$am__universal" = false || continue
4512 ;;
4513 nosideeffect)
4514 # After this tag, mechanisms are not by side-effect, so they'll
4515 # only be used when explicitly requested.
4516 if test "x$enable_dependency_tracking" = xyes; then
4517 continue
4518 else
4519 break
4520 fi
4521 ;;
4522 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4523 # This compiler won't grok '-c -o', but also, the minuso test has
4524 # not run yet. These depmodes are late enough in the game, and
4525 # so weak that their functioning should not be impacted.
4526 am__obj=conftest.${OBJEXT-o}
4527 am__minus_obj=
4528 ;;
4529 none) break ;;
4530 esac
4531 if depmode=$depmode \
4532 source=sub/conftest.c object=$am__obj \
4533 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4534 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4535 >/dev/null 2>conftest.err &&
4536 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4537 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4538 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4539 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4540 # icc doesn't choke on unknown options, it will just issue warnings
4541 # or remarks (even with -Werror). So we grep stderr for any message
4542 # that says an option was ignored or not supported.
4543 # When given -MP, icc 7.0 and 7.1 complain thusly:
4544 # icc: Command line warning: ignoring option '-M'; no argument required
4545 # The diagnosis changed in icc 8.0:
4546 # icc: Command line remark: option '-MP' not supported
4547 if (grep 'ignoring option' conftest.err ||
4548 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4549 am_cv_CC_dependencies_compiler_type=$depmode
4550 break
4551 fi
4552 fi
4553 done
4554
4555 cd ..
4556 rm -rf conftest.dir
4557 else
4558 am_cv_CC_dependencies_compiler_type=none
4559 fi
4560
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4563 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4564 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4565
4566 if
4567 test "x$enable_dependency_tracking" != xno \
4568 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569 am__fastdepCC_TRUE=
4570 am__fastdepCC_FALSE='#'
4571 else
4572 am__fastdepCC_TRUE='#'
4573 am__fastdepCC_FALSE=
4574 fi
4575
4576
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4584 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4585 # On Suns, sometimes $CPP names a directory.
4586 if test -n "$CPP" && test -d "$CPP"; then
4587 CPP=
4588 fi
4589 if test -z "$CPP"; then
4590 if ${ac_cv_prog_CPP+:} false; then :
4591 $as_echo_n "(cached) " >&6
4592 else
4593 # Double quotes because CPP needs to be expanded
4594 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4595 do
4596 ac_preproc_ok=false
4597 for ac_c_preproc_warn_flag in '' yes
4598 do
4599 # Use a header file that comes with gcc, so configuring glibc
4600 # with a fresh cross-compiler works.
4601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4602 # <limits.h> exists even on freestanding compilers.
4603 # On the NeXT, cc -E runs the code through the compiler's parser,
4604 # not just through cpp. "Syntax error" is here to catch this case.
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4607 #ifdef __STDC__
4608 # include <limits.h>
4609 #else
4610 # include <assert.h>
4611 #endif
4612 Syntax error
4613 _ACEOF
4614 if ac_fn_c_try_cpp "$LINENO"; then :
4615
4616 else
4617 # Broken: fails on valid input.
4618 continue
4619 fi
4620 rm -f conftest.err conftest.i conftest.$ac_ext
4621
4622 # OK, works on sane cases. Now check whether nonexistent headers
4623 # can be detected and how.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h. */
4626 #include <ac_nonexistent.h>
4627 _ACEOF
4628 if ac_fn_c_try_cpp "$LINENO"; then :
4629 # Broken: success on invalid input.
4630 continue
4631 else
4632 # Passes both tests.
4633 ac_preproc_ok=:
4634 break
4635 fi
4636 rm -f conftest.err conftest.i conftest.$ac_ext
4637
4638 done
4639 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4640 rm -f conftest.i conftest.err conftest.$ac_ext
4641 if $ac_preproc_ok; then :
4642 break
4643 fi
4644
4645 done
4646 ac_cv_prog_CPP=$CPP
4647
4648 fi
4649 CPP=$ac_cv_prog_CPP
4650 else
4651 ac_cv_prog_CPP=$CPP
4652 fi
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4654 $as_echo "$CPP" >&6; }
4655 ac_preproc_ok=false
4656 for ac_c_preproc_warn_flag in '' yes
4657 do
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #ifdef __STDC__
4667 # include <limits.h>
4668 #else
4669 # include <assert.h>
4670 #endif
4671 Syntax error
4672 _ACEOF
4673 if ac_fn_c_try_cpp "$LINENO"; then :
4674
4675 else
4676 # Broken: fails on valid input.
4677 continue
4678 fi
4679 rm -f conftest.err conftest.i conftest.$ac_ext
4680
4681 # OK, works on sane cases. Now check whether nonexistent headers
4682 # can be detected and how.
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4685 #include <ac_nonexistent.h>
4686 _ACEOF
4687 if ac_fn_c_try_cpp "$LINENO"; then :
4688 # Broken: success on invalid input.
4689 continue
4690 else
4691 # Passes both tests.
4692 ac_preproc_ok=:
4693 break
4694 fi
4695 rm -f conftest.err conftest.i conftest.$ac_ext
4696
4697 done
4698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4699 rm -f conftest.i conftest.err conftest.$ac_ext
4700 if $ac_preproc_ok; then :
4701
4702 else
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4706 See \`config.log' for more details" "$LINENO" 5; }
4707 fi
4708
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4717 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4718 if ${ac_cv_path_GREP+:} false; then :
4719 $as_echo_n "(cached) " >&6
4720 else
4721 if test -z "$GREP"; then
4722 ac_path_GREP_found=false
4723 # Loop through the user's path and test for each of PROGNAME-LIST
4724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4726 do
4727 IFS=$as_save_IFS
4728 test -z "$as_dir" && as_dir=.
4729 for ac_prog in grep ggrep; do
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4732 as_fn_executable_p "$ac_path_GREP" || continue
4733 # Check for GNU ac_path_GREP and select it if it is found.
4734 # Check for GNU $ac_path_GREP
4735 case `"$ac_path_GREP" --version 2>&1` in
4736 *GNU*)
4737 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4738 *)
4739 ac_count=0
4740 $as_echo_n 0123456789 >"conftest.in"
4741 while :
4742 do
4743 cat "conftest.in" "conftest.in" >"conftest.tmp"
4744 mv "conftest.tmp" "conftest.in"
4745 cp "conftest.in" "conftest.nl"
4746 $as_echo 'GREP' >> "conftest.nl"
4747 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4749 as_fn_arith $ac_count + 1 && ac_count=$as_val
4750 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4751 # Best one so far, save it but keep looking for a better one
4752 ac_cv_path_GREP="$ac_path_GREP"
4753 ac_path_GREP_max=$ac_count
4754 fi
4755 # 10*(2^10) chars as input seems more than enough
4756 test $ac_count -gt 10 && break
4757 done
4758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4759 esac
4760
4761 $ac_path_GREP_found && break 3
4762 done
4763 done
4764 done
4765 IFS=$as_save_IFS
4766 if test -z "$ac_cv_path_GREP"; then
4767 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4768 fi
4769 else
4770 ac_cv_path_GREP=$GREP
4771 fi
4772
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4775 $as_echo "$ac_cv_path_GREP" >&6; }
4776 GREP="$ac_cv_path_GREP"
4777
4778
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4780 $as_echo_n "checking for egrep... " >&6; }
4781 if ${ac_cv_path_EGREP+:} false; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4785 then ac_cv_path_EGREP="$GREP -E"
4786 else
4787 if test -z "$EGREP"; then
4788 ac_path_EGREP_found=false
4789 # Loop through the user's path and test for each of PROGNAME-LIST
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
4795 for ac_prog in egrep; do
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4798 as_fn_executable_p "$ac_path_EGREP" || continue
4799 # Check for GNU ac_path_EGREP and select it if it is found.
4800 # Check for GNU $ac_path_EGREP
4801 case `"$ac_path_EGREP" --version 2>&1` in
4802 *GNU*)
4803 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804 *)
4805 ac_count=0
4806 $as_echo_n 0123456789 >"conftest.in"
4807 while :
4808 do
4809 cat "conftest.in" "conftest.in" >"conftest.tmp"
4810 mv "conftest.tmp" "conftest.in"
4811 cp "conftest.in" "conftest.nl"
4812 $as_echo 'EGREP' >> "conftest.nl"
4813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4815 as_fn_arith $ac_count + 1 && ac_count=$as_val
4816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4817 # Best one so far, save it but keep looking for a better one
4818 ac_cv_path_EGREP="$ac_path_EGREP"
4819 ac_path_EGREP_max=$ac_count
4820 fi
4821 # 10*(2^10) chars as input seems more than enough
4822 test $ac_count -gt 10 && break
4823 done
4824 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4825 esac
4826
4827 $ac_path_EGREP_found && break 3
4828 done
4829 done
4830 done
4831 IFS=$as_save_IFS
4832 if test -z "$ac_cv_path_EGREP"; then
4833 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4834 fi
4835 else
4836 ac_cv_path_EGREP=$EGREP
4837 fi
4838
4839 fi
4840 fi
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4842 $as_echo "$ac_cv_path_EGREP" >&6; }
4843 EGREP="$ac_cv_path_EGREP"
4844
4845
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4847 $as_echo_n "checking for ANSI C header files... " >&6; }
4848 if ${ac_cv_header_stdc+:} false; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <stdlib.h>
4854 #include <stdarg.h>
4855 #include <string.h>
4856 #include <float.h>
4857
4858 int
4859 main ()
4860 {
4861
4862 ;
4863 return 0;
4864 }
4865 _ACEOF
4866 if ac_fn_c_try_compile "$LINENO"; then :
4867 ac_cv_header_stdc=yes
4868 else
4869 ac_cv_header_stdc=no
4870 fi
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872
4873 if test $ac_cv_header_stdc = yes; then
4874 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #include <string.h>
4878
4879 _ACEOF
4880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4881 $EGREP "memchr" >/dev/null 2>&1; then :
4882
4883 else
4884 ac_cv_header_stdc=no
4885 fi
4886 rm -f conftest*
4887
4888 fi
4889
4890 if test $ac_cv_header_stdc = yes; then
4891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <stdlib.h>
4895
4896 _ACEOF
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "free" >/dev/null 2>&1; then :
4899
4900 else
4901 ac_cv_header_stdc=no
4902 fi
4903 rm -f conftest*
4904
4905 fi
4906
4907 if test $ac_cv_header_stdc = yes; then
4908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4909 if test "$cross_compiling" = yes; then :
4910 :
4911 else
4912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4913 /* end confdefs.h. */
4914 #include <ctype.h>
4915 #include <stdlib.h>
4916 #if ((' ' & 0x0FF) == 0x020)
4917 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4918 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4919 #else
4920 # define ISLOWER(c) \
4921 (('a' <= (c) && (c) <= 'i') \
4922 || ('j' <= (c) && (c) <= 'r') \
4923 || ('s' <= (c) && (c) <= 'z'))
4924 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4925 #endif
4926
4927 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4928 int
4929 main ()
4930 {
4931 int i;
4932 for (i = 0; i < 256; i++)
4933 if (XOR (islower (i), ISLOWER (i))
4934 || toupper (i) != TOUPPER (i))
4935 return 2;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_run "$LINENO"; then :
4940
4941 else
4942 ac_cv_header_stdc=no
4943 fi
4944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4945 conftest.$ac_objext conftest.beam conftest.$ac_ext
4946 fi
4947
4948 fi
4949 fi
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4951 $as_echo "$ac_cv_header_stdc" >&6; }
4952 if test $ac_cv_header_stdc = yes; then
4953
4954 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4955
4956 fi
4957
4958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4959 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4960 inttypes.h stdint.h unistd.h
4961 do :
4962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4963 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4964 "
4965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4966 cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 _ACEOF
4969
4970 fi
4971
4972 done
4973
4974
4975
4976 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4977 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4978 MINIX=yes
4979 else
4980 MINIX=
4981 fi
4982
4983
4984 if test "$MINIX" = yes; then
4985
4986 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4987
4988
4989 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4990
4991
4992 $as_echo "#define _MINIX 1" >>confdefs.h
4993
4994 fi
4995
4996
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4998 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4999 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5000 $as_echo_n "(cached) " >&6
5001 else
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004
5005 # define __EXTENSIONS__ 1
5006 $ac_includes_default
5007 int
5008 main ()
5009 {
5010
5011 ;
5012 return 0;
5013 }
5014 _ACEOF
5015 if ac_fn_c_try_compile "$LINENO"; then :
5016 ac_cv_safe_to_define___extensions__=yes
5017 else
5018 ac_cv_safe_to_define___extensions__=no
5019 fi
5020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021 fi
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5023 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5024 test $ac_cv_safe_to_define___extensions__ = yes &&
5025 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5026
5027 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5028
5029 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5030
5031 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5032
5033 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5034
5035
5036
5037
5038
5039 case `pwd` in
5040 *\ * | *\ *)
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5042 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5043 esac
5044
5045
5046
5047 macro_version='2.2.7a'
5048 macro_revision='1.3134'
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062 ltmain="$ac_aux_dir/ltmain.sh"
5063
5064 # Backslashify metacharacters that are still active within
5065 # double-quoted strings.
5066 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5067
5068 # Same as above, but do not quote variable references.
5069 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5070
5071 # Sed substitution to delay expansion of an escaped shell variable in a
5072 # double_quote_subst'ed string.
5073 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5074
5075 # Sed substitution to delay expansion of an escaped single quote.
5076 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5077
5078 # Sed substitution to avoid accidental globbing in evaled expressions
5079 no_glob_subst='s/\*/\\\*/g'
5080
5081 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5082 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5083 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5084
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5086 $as_echo_n "checking how to print strings... " >&6; }
5087 # Test print first, because it will be a builtin if present.
5088 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5089 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5090 ECHO='print -r --'
5091 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5092 ECHO='printf %s\n'
5093 else
5094 # Use this function as a fallback that always works.
5095 func_fallback_echo ()
5096 {
5097 eval 'cat <<_LTECHO_EOF
5098 $1
5099 _LTECHO_EOF'
5100 }
5101 ECHO='func_fallback_echo'
5102 fi
5103
5104 # func_echo_all arg...
5105 # Invoke $ECHO with all args, space-separated.
5106 func_echo_all ()
5107 {
5108 $ECHO ""
5109 }
5110
5111 case "$ECHO" in
5112 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5113 $as_echo "printf" >&6; } ;;
5114 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5115 $as_echo "print -r" >&6; } ;;
5116 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5117 $as_echo "cat" >&6; } ;;
5118 esac
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5134 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5135 if ${ac_cv_path_SED+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5139 for ac_i in 1 2 3 4 5 6 7; do
5140 ac_script="$ac_script$as_nl$ac_script"
5141 done
5142 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5143 { ac_script=; unset ac_script;}
5144 if test -z "$SED"; then
5145 ac_path_SED_found=false
5146 # Loop through the user's path and test for each of PROGNAME-LIST
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150 IFS=$as_save_IFS
5151 test -z "$as_dir" && as_dir=.
5152 for ac_prog in sed gsed; do
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5155 as_fn_executable_p "$ac_path_SED" || continue
5156 # Check for GNU ac_path_SED and select it if it is found.
5157 # Check for GNU $ac_path_SED
5158 case `"$ac_path_SED" --version 2>&1` in
5159 *GNU*)
5160 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5161 *)
5162 ac_count=0
5163 $as_echo_n 0123456789 >"conftest.in"
5164 while :
5165 do
5166 cat "conftest.in" "conftest.in" >"conftest.tmp"
5167 mv "conftest.tmp" "conftest.in"
5168 cp "conftest.in" "conftest.nl"
5169 $as_echo '' >> "conftest.nl"
5170 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5171 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5172 as_fn_arith $ac_count + 1 && ac_count=$as_val
5173 if test $ac_count -gt ${ac_path_SED_max-0}; then
5174 # Best one so far, save it but keep looking for a better one
5175 ac_cv_path_SED="$ac_path_SED"
5176 ac_path_SED_max=$ac_count
5177 fi
5178 # 10*(2^10) chars as input seems more than enough
5179 test $ac_count -gt 10 && break
5180 done
5181 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5182 esac
5183
5184 $ac_path_SED_found && break 3
5185 done
5186 done
5187 done
5188 IFS=$as_save_IFS
5189 if test -z "$ac_cv_path_SED"; then
5190 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5191 fi
5192 else
5193 ac_cv_path_SED=$SED
5194 fi
5195
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5198 $as_echo "$ac_cv_path_SED" >&6; }
5199 SED="$ac_cv_path_SED"
5200 rm -f conftest.sed
5201
5202 test -z "$SED" && SED=sed
5203 Xsed="$SED -e 1s/^X//"
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5216 $as_echo_n "checking for fgrep... " >&6; }
5217 if ${ac_cv_path_FGREP+:} false; then :
5218 $as_echo_n "(cached) " >&6
5219 else
5220 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5221 then ac_cv_path_FGREP="$GREP -F"
5222 else
5223 if test -z "$FGREP"; then
5224 ac_path_FGREP_found=false
5225 # Loop through the user's path and test for each of PROGNAME-LIST
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5228 do
5229 IFS=$as_save_IFS
5230 test -z "$as_dir" && as_dir=.
5231 for ac_prog in fgrep; do
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5234 as_fn_executable_p "$ac_path_FGREP" || continue
5235 # Check for GNU ac_path_FGREP and select it if it is found.
5236 # Check for GNU $ac_path_FGREP
5237 case `"$ac_path_FGREP" --version 2>&1` in
5238 *GNU*)
5239 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5240 *)
5241 ac_count=0
5242 $as_echo_n 0123456789 >"conftest.in"
5243 while :
5244 do
5245 cat "conftest.in" "conftest.in" >"conftest.tmp"
5246 mv "conftest.tmp" "conftest.in"
5247 cp "conftest.in" "conftest.nl"
5248 $as_echo 'FGREP' >> "conftest.nl"
5249 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5250 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5251 as_fn_arith $ac_count + 1 && ac_count=$as_val
5252 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5253 # Best one so far, save it but keep looking for a better one
5254 ac_cv_path_FGREP="$ac_path_FGREP"
5255 ac_path_FGREP_max=$ac_count
5256 fi
5257 # 10*(2^10) chars as input seems more than enough
5258 test $ac_count -gt 10 && break
5259 done
5260 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5261 esac
5262
5263 $ac_path_FGREP_found && break 3
5264 done
5265 done
5266 done
5267 IFS=$as_save_IFS
5268 if test -z "$ac_cv_path_FGREP"; then
5269 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5270 fi
5271 else
5272 ac_cv_path_FGREP=$FGREP
5273 fi
5274
5275 fi
5276 fi
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5278 $as_echo "$ac_cv_path_FGREP" >&6; }
5279 FGREP="$ac_cv_path_FGREP"
5280
5281
5282 test -z "$GREP" && GREP=grep
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302 # Check whether --with-gnu-ld was given.
5303 if test "${with_gnu_ld+set}" = set; then :
5304 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5305 else
5306 with_gnu_ld=no
5307 fi
5308
5309 ac_prog=ld
5310 if test "$GCC" = yes; then
5311 # Check if gcc -print-prog-name=ld gives a path.
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5313 $as_echo_n "checking for ld used by $CC... " >&6; }
5314 case $host in
5315 *-*-mingw*)
5316 # gcc leaves a trailing carriage return which upsets mingw
5317 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5318 *)
5319 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5320 esac
5321 case $ac_prog in
5322 # Accept absolute paths.
5323 [\\/]* | ?:[\\/]*)
5324 re_direlt='/[^/][^/]*/\.\./'
5325 # Canonicalize the pathname of ld
5326 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5327 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5328 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5329 done
5330 test -z "$LD" && LD="$ac_prog"
5331 ;;
5332 "")
5333 # If it fails, then pretend we aren't using GCC.
5334 ac_prog=ld
5335 ;;
5336 *)
5337 # If it is relative, then search for the first ld in PATH.
5338 with_gnu_ld=unknown
5339 ;;
5340 esac
5341 elif test "$with_gnu_ld" = yes; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5343 $as_echo_n "checking for GNU ld... " >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5346 $as_echo_n "checking for non-GNU ld... " >&6; }
5347 fi
5348 if ${lt_cv_path_LD+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -z "$LD"; then
5352 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5353 for ac_dir in $PATH; do
5354 IFS="$lt_save_ifs"
5355 test -z "$ac_dir" && ac_dir=.
5356 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5357 lt_cv_path_LD="$ac_dir/$ac_prog"
5358 # Check to see if the program is GNU ld. I'd rather use --version,
5359 # but apparently some variants of GNU ld only accept -v.
5360 # Break only if it was the GNU/non-GNU ld that we prefer.
5361 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5362 *GNU* | *'with BFD'*)
5363 test "$with_gnu_ld" != no && break
5364 ;;
5365 *)
5366 test "$with_gnu_ld" != yes && break
5367 ;;
5368 esac
5369 fi
5370 done
5371 IFS="$lt_save_ifs"
5372 else
5373 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5374 fi
5375 fi
5376
5377 LD="$lt_cv_path_LD"
5378 if test -n "$LD"; then
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5380 $as_echo "$LD" >&6; }
5381 else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5383 $as_echo "no" >&6; }
5384 fi
5385 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5387 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5388 if ${lt_cv_prog_gnu_ld+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5392 case `$LD -v 2>&1 </dev/null` in
5393 *GNU* | *'with BFD'*)
5394 lt_cv_prog_gnu_ld=yes
5395 ;;
5396 *)
5397 lt_cv_prog_gnu_ld=no
5398 ;;
5399 esac
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5402 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5403 with_gnu_ld=$lt_cv_prog_gnu_ld
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5414 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5415 if ${lt_cv_path_NM+:} false; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 if test -n "$NM"; then
5419 # Let the user override the nm to test.
5420 lt_nm_to_check="$NM"
5421 else
5422 lt_nm_to_check="${ac_tool_prefix}nm"
5423 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5424 lt_nm_to_check="$lt_nm_to_check nm"
5425 fi
5426 fi
5427 for lt_tmp_nm in "$lt_nm_to_check"; do
5428 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5429 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5430 IFS="$lt_save_ifs"
5431 test -z "$ac_dir" && ac_dir=.
5432 # Strip out any user-provided options from the nm to test twice,
5433 # the first time to test to see if nm (rather than its options) has
5434 # an explicit path, the second time to yield a file which can be
5435 # nm'ed itself.
5436 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
5437 case "$tmp_nm_path" in
5438 */*|*\\*) tmp_nm="$lt_tmp_nm";;
5439 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
5440 esac
5441 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
5442 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
5443 # Check to see if the nm accepts a BSD-compat flag.
5444 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5445 # nm: unknown option "B" ignored
5446 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5447 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
5448 break
5449 ;;
5450 *)
5451 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
5452 *$tmp_nm*)
5453 lt_cv_path_NM="$tmp_nm -p"
5454 break
5455 ;;
5456 *)
5457 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5458 continue # so that we can try to find one that supports BSD flags
5459 ;;
5460 esac
5461 ;;
5462 esac
5463 fi
5464 done
5465 IFS="$lt_save_ifs"
5466 done
5467 : ${lt_cv_path_NM=no}
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5470 $as_echo "$lt_cv_path_NM" >&6; }
5471 if test "$lt_cv_path_NM" != "no"; then
5472 NM="$lt_cv_path_NM"
5473 else
5474 # Didn't find any BSD compatible name lister, look for dumpbin.
5475 if test -n "$DUMPBIN"; then :
5476 # Let the user override the test.
5477 else
5478 if test -n "$ac_tool_prefix"; then
5479 for ac_prog in dumpbin "link -dump"
5480 do
5481 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5482 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_prog_DUMPBIN+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$DUMPBIN"; then
5489 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5498 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5501 fi
5502 done
5503 done
5504 IFS=$as_save_IFS
5505
5506 fi
5507 fi
5508 DUMPBIN=$ac_cv_prog_DUMPBIN
5509 if test -n "$DUMPBIN"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5511 $as_echo "$DUMPBIN" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516
5517
5518 test -n "$DUMPBIN" && break
5519 done
5520 fi
5521 if test -z "$DUMPBIN"; then
5522 ac_ct_DUMPBIN=$DUMPBIN
5523 for ac_prog in dumpbin "link -dump"
5524 do
5525 # Extract the first word of "$ac_prog", so it can be a program name with args.
5526 set dummy $ac_prog; ac_word=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 if test -n "$ac_ct_DUMPBIN"; then
5533 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5534 else
5535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 for as_dir in $PATH
5537 do
5538 IFS=$as_save_IFS
5539 test -z "$as_dir" && as_dir=.
5540 for ac_exec_ext in '' $ac_executable_extensions; do
5541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 break 2
5545 fi
5546 done
5547 done
5548 IFS=$as_save_IFS
5549
5550 fi
5551 fi
5552 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5553 if test -n "$ac_ct_DUMPBIN"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5555 $as_echo "$ac_ct_DUMPBIN" >&6; }
5556 else
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 test -n "$ac_ct_DUMPBIN" && break
5563 done
5564
5565 if test "x$ac_ct_DUMPBIN" = x; then
5566 DUMPBIN=":"
5567 else
5568 case $cross_compiling:$ac_tool_warned in
5569 yes:)
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5571 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5572 ac_tool_warned=yes ;;
5573 esac
5574 DUMPBIN=$ac_ct_DUMPBIN
5575 fi
5576 fi
5577
5578 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5579 *COFF*)
5580 DUMPBIN="$DUMPBIN -symbols"
5581 ;;
5582 *)
5583 DUMPBIN=:
5584 ;;
5585 esac
5586 fi
5587
5588 if test "$DUMPBIN" != ":"; then
5589 NM="$DUMPBIN"
5590 fi
5591 fi
5592 test -z "$NM" && NM=nm
5593
5594
5595
5596
5597
5598
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5600 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5601 if ${lt_cv_nm_interface+:} false; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 lt_cv_nm_interface="BSD nm"
5605 echo "int some_variable = 0;" > conftest.$ac_ext
5606 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5607 (eval "$ac_compile" 2>conftest.err)
5608 cat conftest.err >&5
5609 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5610 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5611 cat conftest.err >&5
5612 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5613 cat conftest.out >&5
5614 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5615 lt_cv_nm_interface="MS dumpbin"
5616 fi
5617 rm -f conftest*
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5620 $as_echo "$lt_cv_nm_interface" >&6; }
5621
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5623 $as_echo_n "checking whether ln -s works... " >&6; }
5624 LN_S=$as_ln_s
5625 if test "$LN_S" = "ln -s"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5627 $as_echo "yes" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5630 $as_echo "no, using $LN_S" >&6; }
5631 fi
5632
5633 # find the maximum length of command line arguments
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5635 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5636 if ${lt_cv_sys_max_cmd_len+:} false; then :
5637 $as_echo_n "(cached) " >&6
5638 else
5639 i=0
5640 teststring="ABCD"
5641
5642 case $build_os in
5643 msdosdjgpp*)
5644 # On DJGPP, this test can blow up pretty badly due to problems in libc
5645 # (any single argument exceeding 2000 bytes causes a buffer overrun
5646 # during glob expansion). Even if it were fixed, the result of this
5647 # check would be larger than it should be.
5648 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5649 ;;
5650
5651 gnu*)
5652 # Under GNU Hurd, this test is not required because there is
5653 # no limit to the length of command line arguments.
5654 # Libtool will interpret -1 as no limit whatsoever
5655 lt_cv_sys_max_cmd_len=-1;
5656 ;;
5657
5658 cygwin* | mingw* | cegcc*)
5659 # On Win9x/ME, this test blows up -- it succeeds, but takes
5660 # about 5 minutes as the teststring grows exponentially.
5661 # Worse, since 9x/ME are not pre-emptively multitasking,
5662 # you end up with a "frozen" computer, even though with patience
5663 # the test eventually succeeds (with a max line length of 256k).
5664 # Instead, let's just punt: use the minimum linelength reported by
5665 # all of the supported platforms: 8192 (on NT/2K/XP).
5666 lt_cv_sys_max_cmd_len=8192;
5667 ;;
5668
5669 mint*)
5670 # On MiNT this can take a long time and run out of memory.
5671 lt_cv_sys_max_cmd_len=8192;
5672 ;;
5673
5674 amigaos*)
5675 # On AmigaOS with pdksh, this test takes hours, literally.
5676 # So we just punt and use a minimum line length of 8192.
5677 lt_cv_sys_max_cmd_len=8192;
5678 ;;
5679
5680 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5681 # This has been around since 386BSD, at least. Likely further.
5682 if test -x /sbin/sysctl; then
5683 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5684 elif test -x /usr/sbin/sysctl; then
5685 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5686 else
5687 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5688 fi
5689 # And add a safety zone
5690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5692 ;;
5693
5694 interix*)
5695 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5696 lt_cv_sys_max_cmd_len=196608
5697 ;;
5698
5699 osf*)
5700 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5701 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5702 # nice to cause kernel panics so lets avoid the loop below.
5703 # First set a reasonable default.
5704 lt_cv_sys_max_cmd_len=16384
5705 #
5706 if test -x /sbin/sysconfig; then
5707 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5708 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5709 esac
5710 fi
5711 ;;
5712 sco3.2v5*)
5713 lt_cv_sys_max_cmd_len=102400
5714 ;;
5715 sysv5* | sco5v6* | sysv4.2uw2*)
5716 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5717 if test -n "$kargmax"; then
5718 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5719 else
5720 lt_cv_sys_max_cmd_len=32768
5721 fi
5722 ;;
5723 *)
5724 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5725 if test -n "$lt_cv_sys_max_cmd_len"; then
5726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5728 else
5729 # Make teststring a little bigger before we do anything with it.
5730 # a 1K string should be a reasonable start.
5731 for i in 1 2 3 4 5 6 7 8 ; do
5732 teststring=$teststring$teststring
5733 done
5734 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5735 # If test is not a shell built-in, we'll probably end up computing a
5736 # maximum length that is only half of the actual maximum length, but
5737 # we can't tell.
5738 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5739 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5740 test $i != 17 # 1/2 MB should be enough
5741 do
5742 i=`expr $i + 1`
5743 teststring=$teststring$teststring
5744 done
5745 # Only check the string length outside the loop.
5746 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5747 teststring=
5748 # Add a significant safety factor because C++ compilers can tack on
5749 # massive amounts of additional arguments before passing them to the
5750 # linker. It appears as though 1/2 is a usable value.
5751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5752 fi
5753 ;;
5754 esac
5755
5756 fi
5757
5758 if test -n $lt_cv_sys_max_cmd_len ; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5760 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5761 else
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5763 $as_echo "none" >&6; }
5764 fi
5765 max_cmd_len=$lt_cv_sys_max_cmd_len
5766
5767
5768
5769
5770
5771
5772 : ${CP="cp -f"}
5773 : ${MV="mv -f"}
5774 : ${RM="rm -f"}
5775
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5777 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5778 # Try some XSI features
5779 xsi_shell=no
5780 ( _lt_dummy="a/b/c"
5781 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5782 = c,a/b,, \
5783 && eval 'test $(( 1 + 1 )) -eq 2 \
5784 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5785 && xsi_shell=yes
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5787 $as_echo "$xsi_shell" >&6; }
5788
5789
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5791 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5792 lt_shell_append=no
5793 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5794 >/dev/null 2>&1 \
5795 && lt_shell_append=yes
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5797 $as_echo "$lt_shell_append" >&6; }
5798
5799
5800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5801 lt_unset=unset
5802 else
5803 lt_unset=false
5804 fi
5805
5806
5807
5808
5809
5810 # test EBCDIC or ASCII
5811 case `echo X|tr X '\101'` in
5812 A) # ASCII based system
5813 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5814 lt_SP2NL='tr \040 \012'
5815 lt_NL2SP='tr \015\012 \040\040'
5816 ;;
5817 *) # EBCDIC based system
5818 lt_SP2NL='tr \100 \n'
5819 lt_NL2SP='tr \r\n \100\100'
5820 ;;
5821 esac
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5832 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5833 if ${lt_cv_ld_reload_flag+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 lt_cv_ld_reload_flag='-r'
5837 fi
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5839 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5840 reload_flag=$lt_cv_ld_reload_flag
5841 case $reload_flag in
5842 "" | " "*) ;;
5843 *) reload_flag=" $reload_flag" ;;
5844 esac
5845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5846 case $host_os in
5847 darwin*)
5848 if test "$GCC" = yes; then
5849 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5850 else
5851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5852 fi
5853 ;;
5854 esac
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864 if test -n "$ac_tool_prefix"; then
5865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5866 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5868 $as_echo_n "checking for $ac_word... " >&6; }
5869 if ${ac_cv_prog_OBJDUMP+:} false; then :
5870 $as_echo_n "(cached) " >&6
5871 else
5872 if test -n "$OBJDUMP"; then
5873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5874 else
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 for as_dir in $PATH
5877 do
5878 IFS=$as_save_IFS
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5884 break 2
5885 fi
5886 done
5887 done
5888 IFS=$as_save_IFS
5889
5890 fi
5891 fi
5892 OBJDUMP=$ac_cv_prog_OBJDUMP
5893 if test -n "$OBJDUMP"; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5895 $as_echo "$OBJDUMP" >&6; }
5896 else
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5898 $as_echo "no" >&6; }
5899 fi
5900
5901
5902 fi
5903 if test -z "$ac_cv_prog_OBJDUMP"; then
5904 ac_ct_OBJDUMP=$OBJDUMP
5905 # Extract the first word of "objdump", so it can be a program name with args.
5906 set dummy objdump; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test -n "$ac_ct_OBJDUMP"; then
5913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926 done
5927 done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5933 if test -n "$ac_ct_OBJDUMP"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5935 $as_echo "$ac_ct_OBJDUMP" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941 if test "x$ac_ct_OBJDUMP" = x; then
5942 OBJDUMP="false"
5943 else
5944 case $cross_compiling:$ac_tool_warned in
5945 yes:)
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5948 ac_tool_warned=yes ;;
5949 esac
5950 OBJDUMP=$ac_ct_OBJDUMP
5951 fi
5952 else
5953 OBJDUMP="$ac_cv_prog_OBJDUMP"
5954 fi
5955
5956 test -z "$OBJDUMP" && OBJDUMP=objdump
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5967 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5968 if ${lt_cv_deplibs_check_method+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 lt_cv_file_magic_cmd='$MAGIC_CMD'
5972 lt_cv_file_magic_test_file=
5973 lt_cv_deplibs_check_method='unknown'
5974 # Need to set the preceding variable on all platforms that support
5975 # interlibrary dependencies.
5976 # 'none' -- dependencies not supported.
5977 # `unknown' -- same as none, but documents that we really don't know.
5978 # 'pass_all' -- all dependencies passed with no checks.
5979 # 'test_compile' -- check by making test program.
5980 # 'file_magic [[regex]]' -- check by looking for files in library path
5981 # which responds to the $file_magic_cmd with a given extended regex.
5982 # If you have `file' or equivalent on your system and you're not sure
5983 # whether `pass_all' will *always* work, you probably want this one.
5984
5985 case $host_os in
5986 aix[4-9]*)
5987 lt_cv_deplibs_check_method=pass_all
5988 ;;
5989
5990 beos*)
5991 lt_cv_deplibs_check_method=pass_all
5992 ;;
5993
5994 bsdi[45]*)
5995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5996 lt_cv_file_magic_cmd='/usr/bin/file -L'
5997 lt_cv_file_magic_test_file=/shlib/libc.so
5998 ;;
5999
6000 cygwin*)
6001 # func_win32_libid is a shell function defined in ltmain.sh
6002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6003 lt_cv_file_magic_cmd='func_win32_libid'
6004 ;;
6005
6006 mingw* | pw32*)
6007 # Base MSYS/MinGW do not provide the 'file' command needed by
6008 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6009 # unless we find 'file', for example because we are cross-compiling.
6010 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6011 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6012 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6013 lt_cv_file_magic_cmd='func_win32_libid'
6014 else
6015 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6016 lt_cv_file_magic_cmd='$OBJDUMP -f'
6017 fi
6018 ;;
6019
6020 cegcc*)
6021 # use the weaker test based on 'objdump'. See mingw*.
6022 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6023 lt_cv_file_magic_cmd='$OBJDUMP -f'
6024 ;;
6025
6026 darwin* | rhapsody*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029
6030 freebsd* | dragonfly*)
6031 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6032 case $host_cpu in
6033 i*86 )
6034 # Not sure whether the presence of OpenBSD here was a mistake.
6035 # Let's accept both of them until this is cleared up.
6036 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6037 lt_cv_file_magic_cmd=/usr/bin/file
6038 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6039 ;;
6040 esac
6041 else
6042 lt_cv_deplibs_check_method=pass_all
6043 fi
6044 ;;
6045
6046 gnu*)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050 haiku*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054 hpux10.20* | hpux11*)
6055 lt_cv_file_magic_cmd=/usr/bin/file
6056 case $host_cpu in
6057 ia64*)
6058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6060 ;;
6061 hppa*64*)
6062 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]'
6063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6064 ;;
6065 *)
6066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6068 ;;
6069 esac
6070 ;;
6071
6072 interix[3-9]*)
6073 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6075 ;;
6076
6077 irix5* | irix6* | nonstopux*)
6078 case $LD in
6079 *-32|*"-32 ") libmagic=32-bit;;
6080 *-n32|*"-n32 ") libmagic=N32;;
6081 *-64|*"-64 ") libmagic=64-bit;;
6082 *) libmagic=never-match;;
6083 esac
6084 lt_cv_deplibs_check_method=pass_all
6085 ;;
6086
6087 # This must be Linux ELF.
6088 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 netbsd*)
6093 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095 else
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6097 fi
6098 ;;
6099
6100 newos6*)
6101 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6102 lt_cv_file_magic_cmd=/usr/bin/file
6103 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6104 ;;
6105
6106 *nto* | *qnx*)
6107 lt_cv_deplibs_check_method=pass_all
6108 ;;
6109
6110 openbsd*)
6111 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6113 else
6114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6115 fi
6116 ;;
6117
6118 osf3* | osf4* | osf5*)
6119 lt_cv_deplibs_check_method=pass_all
6120 ;;
6121
6122 rdos*)
6123 lt_cv_deplibs_check_method=pass_all
6124 ;;
6125
6126 solaris*)
6127 lt_cv_deplibs_check_method=pass_all
6128 ;;
6129
6130 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 sysv4 | sysv4.3*)
6135 case $host_vendor in
6136 motorola)
6137 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]'
6138 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6139 ;;
6140 ncr)
6141 lt_cv_deplibs_check_method=pass_all
6142 ;;
6143 sequent)
6144 lt_cv_file_magic_cmd='/bin/file'
6145 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6146 ;;
6147 sni)
6148 lt_cv_file_magic_cmd='/bin/file'
6149 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6150 lt_cv_file_magic_test_file=/lib/libc.so
6151 ;;
6152 siemens)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155 pc)
6156 lt_cv_deplibs_check_method=pass_all
6157 ;;
6158 esac
6159 ;;
6160
6161 tpf*)
6162 lt_cv_deplibs_check_method=pass_all
6163 ;;
6164 esac
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6168 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6169 file_magic_cmd=$lt_cv_file_magic_cmd
6170 deplibs_check_method=$lt_cv_deplibs_check_method
6171 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 plugin_option=
6185 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
6186 for plugin in $plugin_names; do
6187 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
6188 if test x$plugin_so = x$plugin; then
6189 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
6190 fi
6191 if test x$plugin_so != x$plugin; then
6192 plugin_option="--plugin $plugin_so"
6193 break
6194 fi
6195 done
6196
6197 if test -n "$ac_tool_prefix"; then
6198 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6199 set dummy ${ac_tool_prefix}ar; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if ${ac_cv_prog_AR+:} false; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$AR"; then
6206 ac_cv_prog_AR="$AR" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215 ac_cv_prog_AR="${ac_tool_prefix}ar"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6218 fi
6219 done
6220 done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 AR=$ac_cv_prog_AR
6226 if test -n "$AR"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6228 $as_echo "$AR" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235 fi
6236 if test -z "$ac_cv_prog_AR"; then
6237 ac_ct_AR=$AR
6238 # Extract the first word of "ar", so it can be a program name with args.
6239 set dummy ar; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 if test -n "$ac_ct_AR"; then
6246 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251 IFS=$as_save_IFS
6252 test -z "$as_dir" && as_dir=.
6253 for ac_exec_ext in '' $ac_executable_extensions; do
6254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255 ac_cv_prog_ac_ct_AR="ar"
6256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257 break 2
6258 fi
6259 done
6260 done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6266 if test -n "$ac_ct_AR"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6268 $as_echo "$ac_ct_AR" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274 if test "x$ac_ct_AR" = x; then
6275 AR="false"
6276 else
6277 case $cross_compiling:$ac_tool_warned in
6278 yes:)
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6281 ac_tool_warned=yes ;;
6282 esac
6283 AR=$ac_ct_AR
6284 fi
6285 else
6286 AR="$ac_cv_prog_AR"
6287 fi
6288
6289 test -z "$AR" && AR=ar
6290 if test -n "$plugin_option"; then
6291 if $AR --help 2>&1 | grep -q "\--plugin"; then
6292 touch conftest.c
6293 $AR $plugin_option rc conftest.a conftest.c
6294 if test "$?" != 0; then
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
6296 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
6297 else
6298 AR="$AR $plugin_option"
6299 fi
6300 rm -f conftest.*
6301 fi
6302 fi
6303 test -z "$AR_FLAGS" && AR_FLAGS=cru
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 if test -n "$ac_tool_prefix"; then
6316 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6317 set dummy ${ac_tool_prefix}strip; ac_word=$2
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6319 $as_echo_n "checking for $ac_word... " >&6; }
6320 if ${ac_cv_prog_STRIP+:} false; then :
6321 $as_echo_n "(cached) " >&6
6322 else
6323 if test -n "$STRIP"; then
6324 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6325 else
6326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6327 for as_dir in $PATH
6328 do
6329 IFS=$as_save_IFS
6330 test -z "$as_dir" && as_dir=.
6331 for ac_exec_ext in '' $ac_executable_extensions; do
6332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6333 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6335 break 2
6336 fi
6337 done
6338 done
6339 IFS=$as_save_IFS
6340
6341 fi
6342 fi
6343 STRIP=$ac_cv_prog_STRIP
6344 if test -n "$STRIP"; then
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6346 $as_echo "$STRIP" >&6; }
6347 else
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6350 fi
6351
6352
6353 fi
6354 if test -z "$ac_cv_prog_STRIP"; then
6355 ac_ct_STRIP=$STRIP
6356 # Extract the first word of "strip", so it can be a program name with args.
6357 set dummy strip; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$ac_ct_STRIP"; then
6364 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6368 do
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_ac_ct_STRIP="strip"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6376 fi
6377 done
6378 done
6379 IFS=$as_save_IFS
6380
6381 fi
6382 fi
6383 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6384 if test -n "$ac_ct_STRIP"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6386 $as_echo "$ac_ct_STRIP" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392 if test "x$ac_ct_STRIP" = x; then
6393 STRIP=":"
6394 else
6395 case $cross_compiling:$ac_tool_warned in
6396 yes:)
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6399 ac_tool_warned=yes ;;
6400 esac
6401 STRIP=$ac_ct_STRIP
6402 fi
6403 else
6404 STRIP="$ac_cv_prog_STRIP"
6405 fi
6406
6407 test -z "$STRIP" && STRIP=:
6408
6409
6410
6411
6412
6413
6414 if test -n "$ac_tool_prefix"; then
6415 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6416 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_prog_RANLIB+:} false; then :
6420 $as_echo_n "(cached) " >&6
6421 else
6422 if test -n "$RANLIB"; then
6423 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6424 else
6425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426 for as_dir in $PATH
6427 do
6428 IFS=$as_save_IFS
6429 test -z "$as_dir" && as_dir=.
6430 for ac_exec_ext in '' $ac_executable_extensions; do
6431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6432 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6434 break 2
6435 fi
6436 done
6437 done
6438 IFS=$as_save_IFS
6439
6440 fi
6441 fi
6442 RANLIB=$ac_cv_prog_RANLIB
6443 if test -n "$RANLIB"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6445 $as_echo "$RANLIB" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452 fi
6453 if test -z "$ac_cv_prog_RANLIB"; then
6454 ac_ct_RANLIB=$RANLIB
6455 # Extract the first word of "ranlib", so it can be a program name with args.
6456 set dummy ranlib; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 if test -n "$ac_ct_RANLIB"; then
6463 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468 IFS=$as_save_IFS
6469 test -z "$as_dir" && as_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472 ac_cv_prog_ac_ct_RANLIB="ranlib"
6473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474 break 2
6475 fi
6476 done
6477 done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6483 if test -n "$ac_ct_RANLIB"; then
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6485 $as_echo "$ac_ct_RANLIB" >&6; }
6486 else
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491 if test "x$ac_ct_RANLIB" = x; then
6492 RANLIB=":"
6493 else
6494 case $cross_compiling:$ac_tool_warned in
6495 yes:)
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6498 ac_tool_warned=yes ;;
6499 esac
6500 RANLIB=$ac_ct_RANLIB
6501 fi
6502 else
6503 RANLIB="$ac_cv_prog_RANLIB"
6504 fi
6505
6506 test -z "$RANLIB" && RANLIB=:
6507 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
6508 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
6509 RANLIB="$RANLIB $plugin_option"
6510 fi
6511 fi
6512
6513
6514
6515
6516
6517
6518 # Determine commands to create old-style static archives.
6519 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6520 old_postinstall_cmds='chmod 644 $oldlib'
6521 old_postuninstall_cmds=
6522
6523 if test -n "$RANLIB"; then
6524 case $host_os in
6525 openbsd*)
6526 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6527 ;;
6528 *)
6529 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6530 ;;
6531 esac
6532 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6533 fi
6534
6535 case $host_os in
6536 darwin*)
6537 lock_old_archive_extraction=yes ;;
6538 *)
6539 lock_old_archive_extraction=no ;;
6540 esac
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580 # If no C compiler was specified, use CC.
6581 LTCC=${LTCC-"$CC"}
6582
6583 # If no C compiler flags were specified, use CFLAGS.
6584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6585
6586 # Allow CC to be a program name with arguments.
6587 compiler=$CC
6588
6589
6590 # Check for command to grab the raw symbol name followed by C symbol from nm.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6592 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6593 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6594 $as_echo_n "(cached) " >&6
6595 else
6596
6597 # These are sane defaults that work on at least a few old systems.
6598 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6599
6600 # Character class describing NM global symbol codes.
6601 symcode='[BCDEGRST]'
6602
6603 # Regexp to match symbols that can be accessed directly from C.
6604 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6605
6606 # Define system-specific variables.
6607 case $host_os in
6608 aix*)
6609 symcode='[BCDT]'
6610 ;;
6611 cygwin* | mingw* | pw32* | cegcc*)
6612 symcode='[ABCDGISTW]'
6613 ;;
6614 hpux*)
6615 if test "$host_cpu" = ia64; then
6616 symcode='[ABCDEGRST]'
6617 fi
6618 ;;
6619 irix* | nonstopux*)
6620 symcode='[BCDEGRST]'
6621 ;;
6622 osf*)
6623 symcode='[BCDEGQRST]'
6624 ;;
6625 solaris*)
6626 symcode='[BCDRT]'
6627 ;;
6628 sco3.2v5*)
6629 symcode='[DT]'
6630 ;;
6631 sysv4.2uw2*)
6632 symcode='[DT]'
6633 ;;
6634 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6635 symcode='[ABDT]'
6636 ;;
6637 sysv4)
6638 symcode='[DFNSTU]'
6639 ;;
6640 esac
6641
6642 # If we're using GNU nm, then use its standard symbol codes.
6643 case `$NM -V 2>&1` in
6644 *GNU* | *'with BFD'*)
6645 symcode='[ABCDGIRSTW]' ;;
6646 esac
6647
6648 # Transform an extracted symbol line into a proper C declaration.
6649 # Some systems (esp. on ia64) link data and code symbols differently,
6650 # so use this general approach.
6651 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6652
6653 # Transform an extracted symbol line into symbol name and symbol address
6654 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6655 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6656
6657 # Handle CRLF in mingw tool chain
6658 opt_cr=
6659 case $build_os in
6660 mingw*)
6661 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6662 ;;
6663 esac
6664
6665 # Try without a prefix underscore, then with it.
6666 for ac_symprfx in "" "_"; do
6667
6668 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6669 symxfrm="\\1 $ac_symprfx\\2 \\2"
6670
6671 # Write the raw and C identifiers.
6672 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6673 # Fake it for dumpbin and say T for any non-static function
6674 # and D for any global variable.
6675 # Also find C++ and __fastcall symbols from MSVC++,
6676 # which start with @ or ?.
6677 lt_cv_sys_global_symbol_pipe="$AWK '"\
6678 " {last_section=section; section=\$ 3};"\
6679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6680 " \$ 0!~/External *\|/{next};"\
6681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6682 " {if(hide[section]) next};"\
6683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6687 " ' prfx=^$ac_symprfx"
6688 else
6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6690 fi
6691
6692 # Check to see that the pipe works correctly.
6693 pipe_works=no
6694
6695 rm -f conftest*
6696 cat > conftest.$ac_ext <<_LT_EOF
6697 #ifdef __cplusplus
6698 extern "C" {
6699 #endif
6700 char nm_test_var;
6701 void nm_test_func(void);
6702 void nm_test_func(void){}
6703 #ifdef __cplusplus
6704 }
6705 #endif
6706 int main(){nm_test_var='a';nm_test_func();return(0);}
6707 _LT_EOF
6708
6709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6710 (eval $ac_compile) 2>&5
6711 ac_status=$?
6712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713 test $ac_status = 0; }; then
6714 # Now try to grab the symbols.
6715 nlist=conftest.nm
6716 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6717 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6718 ac_status=$?
6719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6720 test $ac_status = 0; } && test -s "$nlist"; then
6721 # Try sorting and uniquifying the output.
6722 if sort "$nlist" | uniq > "$nlist"T; then
6723 mv -f "$nlist"T "$nlist"
6724 else
6725 rm -f "$nlist"T
6726 fi
6727
6728 # Make sure that we snagged all the symbols we need.
6729 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6730 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6731 cat <<_LT_EOF > conftest.$ac_ext
6732 #ifdef __cplusplus
6733 extern "C" {
6734 #endif
6735
6736 _LT_EOF
6737 # Now generate the symbol file.
6738 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6739
6740 cat <<_LT_EOF >> conftest.$ac_ext
6741
6742 /* The mapping between symbol names and symbols. */
6743 const struct {
6744 const char *name;
6745 void *address;
6746 }
6747 lt__PROGRAM__LTX_preloaded_symbols[] =
6748 {
6749 { "@PROGRAM@", (void *) 0 },
6750 _LT_EOF
6751 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6752 cat <<\_LT_EOF >> conftest.$ac_ext
6753 {0, (void *) 0}
6754 };
6755
6756 /* This works around a problem in FreeBSD linker */
6757 #ifdef FREEBSD_WORKAROUND
6758 static const void *lt_preloaded_setup() {
6759 return lt__PROGRAM__LTX_preloaded_symbols;
6760 }
6761 #endif
6762
6763 #ifdef __cplusplus
6764 }
6765 #endif
6766 _LT_EOF
6767 # Now try linking the two files.
6768 mv conftest.$ac_objext conftstm.$ac_objext
6769 lt_save_LIBS="$LIBS"
6770 lt_save_CFLAGS="$CFLAGS"
6771 LIBS="conftstm.$ac_objext"
6772 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6774 (eval $ac_link) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6778 pipe_works=yes
6779 fi
6780 LIBS="$lt_save_LIBS"
6781 CFLAGS="$lt_save_CFLAGS"
6782 else
6783 echo "cannot find nm_test_func in $nlist" >&5
6784 fi
6785 else
6786 echo "cannot find nm_test_var in $nlist" >&5
6787 fi
6788 else
6789 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6790 fi
6791 else
6792 echo "$progname: failed program was:" >&5
6793 cat conftest.$ac_ext >&5
6794 fi
6795 rm -rf conftest* conftst*
6796
6797 # Do not use the global_symbol_pipe unless it works.
6798 if test "$pipe_works" = yes; then
6799 break
6800 else
6801 lt_cv_sys_global_symbol_pipe=
6802 fi
6803 done
6804
6805 fi
6806
6807 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6808 lt_cv_sys_global_symbol_to_cdecl=
6809 fi
6810 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6812 $as_echo "failed" >&6; }
6813 else
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6815 $as_echo "ok" >&6; }
6816 fi
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839 # Check whether --enable-libtool-lock was given.
6840 if test "${enable_libtool_lock+set}" = set; then :
6841 enableval=$enable_libtool_lock;
6842 fi
6843
6844 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6845
6846 # Some flags need to be propagated to the compiler or linker for good
6847 # libtool support.
6848 case $host in
6849 ia64-*-hpux*)
6850 # Find out which ABI we are using.
6851 echo 'int i;' > conftest.$ac_ext
6852 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6853 (eval $ac_compile) 2>&5
6854 ac_status=$?
6855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6856 test $ac_status = 0; }; then
6857 case `/usr/bin/file conftest.$ac_objext` in
6858 *ELF-32*)
6859 HPUX_IA64_MODE="32"
6860 ;;
6861 *ELF-64*)
6862 HPUX_IA64_MODE="64"
6863 ;;
6864 esac
6865 fi
6866 rm -rf conftest*
6867 ;;
6868 *-*-irix6*)
6869 # Find out which ABI we are using.
6870 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 if test "$lt_cv_prog_gnu_ld" = yes; then
6877 case `/usr/bin/file conftest.$ac_objext` in
6878 *32-bit*)
6879 LD="${LD-ld} -melf32bsmip"
6880 ;;
6881 *N32*)
6882 LD="${LD-ld} -melf32bmipn32"
6883 ;;
6884 *64-bit*)
6885 LD="${LD-ld} -melf64bmip"
6886 ;;
6887 esac
6888 else
6889 case `/usr/bin/file conftest.$ac_objext` in
6890 *32-bit*)
6891 LD="${LD-ld} -32"
6892 ;;
6893 *N32*)
6894 LD="${LD-ld} -n32"
6895 ;;
6896 *64-bit*)
6897 LD="${LD-ld} -64"
6898 ;;
6899 esac
6900 fi
6901 fi
6902 rm -rf conftest*
6903 ;;
6904
6905 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6906 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6907 # Find out which ABI we are using.
6908 echo 'int i;' > conftest.$ac_ext
6909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6910 (eval $ac_compile) 2>&5
6911 ac_status=$?
6912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6913 test $ac_status = 0; }; then
6914 case `/usr/bin/file conftest.o` in
6915 *32-bit*)
6916 case $host in
6917 x86_64-*kfreebsd*-gnu)
6918 LD="${LD-ld} -m elf_i386_fbsd"
6919 ;;
6920 x86_64-*linux*)
6921 case `/usr/bin/file conftest.o` in
6922 *x86-64*)
6923 LD="${LD-ld} -m elf32_x86_64"
6924 ;;
6925 *)
6926 LD="${LD-ld} -m elf_i386"
6927 ;;
6928 esac
6929 ;;
6930 powerpc64le-*linux*)
6931 LD="${LD-ld} -m elf32lppclinux"
6932 ;;
6933 powerpc64-*linux*)
6934 LD="${LD-ld} -m elf32ppclinux"
6935 ;;
6936 s390x-*linux*)
6937 LD="${LD-ld} -m elf_s390"
6938 ;;
6939 sparc64-*linux*)
6940 LD="${LD-ld} -m elf32_sparc"
6941 ;;
6942 esac
6943 ;;
6944 *64-bit*)
6945 case $host in
6946 x86_64-*kfreebsd*-gnu)
6947 LD="${LD-ld} -m elf_x86_64_fbsd"
6948 ;;
6949 x86_64-*linux*)
6950 LD="${LD-ld} -m elf_x86_64"
6951 ;;
6952 powerpcle-*linux*)
6953 LD="${LD-ld} -m elf64lppc"
6954 ;;
6955 powerpc-*linux*)
6956 LD="${LD-ld} -m elf64ppc"
6957 ;;
6958 s390*-*linux*|s390*-*tpf*)
6959 LD="${LD-ld} -m elf64_s390"
6960 ;;
6961 sparc*-*linux*)
6962 LD="${LD-ld} -m elf64_sparc"
6963 ;;
6964 esac
6965 ;;
6966 esac
6967 fi
6968 rm -rf conftest*
6969 ;;
6970
6971 *-*-sco3.2v5*)
6972 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6973 SAVE_CFLAGS="$CFLAGS"
6974 CFLAGS="$CFLAGS -belf"
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6976 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6977 if ${lt_cv_cc_needs_belf+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985
6986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6987 /* end confdefs.h. */
6988
6989 int
6990 main ()
6991 {
6992
6993 ;
6994 return 0;
6995 }
6996 _ACEOF
6997 if ac_fn_c_try_link "$LINENO"; then :
6998 lt_cv_cc_needs_belf=yes
6999 else
7000 lt_cv_cc_needs_belf=no
7001 fi
7002 rm -f core conftest.err conftest.$ac_objext \
7003 conftest$ac_exeext conftest.$ac_ext
7004 ac_ext=c
7005 ac_cpp='$CPP $CPPFLAGS'
7006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7009
7010 fi
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7012 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7013 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7014 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7015 CFLAGS="$SAVE_CFLAGS"
7016 fi
7017 ;;
7018 sparc*-*solaris*)
7019 # Find out which ABI we are using.
7020 echo 'int i;' > conftest.$ac_ext
7021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7022 (eval $ac_compile) 2>&5
7023 ac_status=$?
7024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }; then
7026 case `/usr/bin/file conftest.o` in
7027 *64-bit*)
7028 case $lt_cv_prog_gnu_ld in
7029 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7030 *)
7031 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7032 LD="${LD-ld} -64"
7033 fi
7034 ;;
7035 esac
7036 ;;
7037 esac
7038 fi
7039 rm -rf conftest*
7040 ;;
7041 esac
7042
7043 need_locks="$enable_libtool_lock"
7044
7045
7046 case $host_os in
7047 rhapsody* | darwin*)
7048 if test -n "$ac_tool_prefix"; then
7049 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7050 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7052 $as_echo_n "checking for $ac_word... " >&6; }
7053 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 if test -n "$DSYMUTIL"; then
7057 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7058 else
7059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7060 for as_dir in $PATH
7061 do
7062 IFS=$as_save_IFS
7063 test -z "$as_dir" && as_dir=.
7064 for ac_exec_ext in '' $ac_executable_extensions; do
7065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7066 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7068 break 2
7069 fi
7070 done
7071 done
7072 IFS=$as_save_IFS
7073
7074 fi
7075 fi
7076 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7077 if test -n "$DSYMUTIL"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7079 $as_echo "$DSYMUTIL" >&6; }
7080 else
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7082 $as_echo "no" >&6; }
7083 fi
7084
7085
7086 fi
7087 if test -z "$ac_cv_prog_DSYMUTIL"; then
7088 ac_ct_DSYMUTIL=$DSYMUTIL
7089 # Extract the first word of "dsymutil", so it can be a program name with args.
7090 set dummy dsymutil; ac_word=$2
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7092 $as_echo_n "checking for $ac_word... " >&6; }
7093 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if test -n "$ac_ct_DSYMUTIL"; then
7097 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7098 else
7099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7100 for as_dir in $PATH
7101 do
7102 IFS=$as_save_IFS
7103 test -z "$as_dir" && as_dir=.
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7106 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 break 2
7109 fi
7110 done
7111 done
7112 IFS=$as_save_IFS
7113
7114 fi
7115 fi
7116 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7117 if test -n "$ac_ct_DSYMUTIL"; then
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7119 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7120 else
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7122 $as_echo "no" >&6; }
7123 fi
7124
7125 if test "x$ac_ct_DSYMUTIL" = x; then
7126 DSYMUTIL=":"
7127 else
7128 case $cross_compiling:$ac_tool_warned in
7129 yes:)
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134 DSYMUTIL=$ac_ct_DSYMUTIL
7135 fi
7136 else
7137 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7138 fi
7139
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_NMEDIT+:} false; then :
7146 $as_echo_n "(cached) " >&6
7147 else
7148 if test -n "$NMEDIT"; then
7149 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154 IFS=$as_save_IFS
7155 test -z "$as_dir" && as_dir=.
7156 for ac_exec_ext in '' $ac_executable_extensions; do
7157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160 break 2
7161 fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 NMEDIT=$ac_cv_prog_NMEDIT
7169 if test -n "$NMEDIT"; then
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7171 $as_echo "$NMEDIT" >&6; }
7172 else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_NMEDIT"; then
7180 ac_ct_NMEDIT=$NMEDIT
7181 # Extract the first word of "nmedit", so it can be a program name with args.
7182 set dummy nmedit; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7186 $as_echo_n "(cached) " >&6
7187 else
7188 if test -n "$ac_ct_NMEDIT"; then
7189 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194 IFS=$as_save_IFS
7195 test -z "$as_dir" && as_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200 break 2
7201 fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7209 if test -n "$ac_ct_NMEDIT"; then
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7211 $as_echo "$ac_ct_NMEDIT" >&6; }
7212 else
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217 if test "x$ac_ct_NMEDIT" = x; then
7218 NMEDIT=":"
7219 else
7220 case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226 NMEDIT=$ac_ct_NMEDIT
7227 fi
7228 else
7229 NMEDIT="$ac_cv_prog_NMEDIT"
7230 fi
7231
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7234 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_LIPO+:} false; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240 if test -n "$LIPO"; then
7241 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7242 else
7243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7244 for as_dir in $PATH
7245 do
7246 IFS=$as_save_IFS
7247 test -z "$as_dir" && as_dir=.
7248 for ac_exec_ext in '' $ac_executable_extensions; do
7249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7250 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 break 2
7253 fi
7254 done
7255 done
7256 IFS=$as_save_IFS
7257
7258 fi
7259 fi
7260 LIPO=$ac_cv_prog_LIPO
7261 if test -n "$LIPO"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7263 $as_echo "$LIPO" >&6; }
7264 else
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7267 fi
7268
7269
7270 fi
7271 if test -z "$ac_cv_prog_LIPO"; then
7272 ac_ct_LIPO=$LIPO
7273 # Extract the first word of "lipo", so it can be a program name with args.
7274 set dummy lipo; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7278 $as_echo_n "(cached) " >&6
7279 else
7280 if test -n "$ac_ct_LIPO"; then
7281 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7282 else
7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284 for as_dir in $PATH
7285 do
7286 IFS=$as_save_IFS
7287 test -z "$as_dir" && as_dir=.
7288 for ac_exec_ext in '' $ac_executable_extensions; do
7289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7290 ac_cv_prog_ac_ct_LIPO="lipo"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7292 break 2
7293 fi
7294 done
7295 done
7296 IFS=$as_save_IFS
7297
7298 fi
7299 fi
7300 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7301 if test -n "$ac_ct_LIPO"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7303 $as_echo "$ac_ct_LIPO" >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7307 fi
7308
7309 if test "x$ac_ct_LIPO" = x; then
7310 LIPO=":"
7311 else
7312 case $cross_compiling:$ac_tool_warned in
7313 yes:)
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned=yes ;;
7317 esac
7318 LIPO=$ac_ct_LIPO
7319 fi
7320 else
7321 LIPO="$ac_cv_prog_LIPO"
7322 fi
7323
7324 if test -n "$ac_tool_prefix"; then
7325 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7326 set dummy ${ac_tool_prefix}otool; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_prog_OTOOL+:} false; then :
7330 $as_echo_n "(cached) " >&6
7331 else
7332 if test -n "$OTOOL"; then
7333 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7334 else
7335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336 for as_dir in $PATH
7337 do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7342 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 break 2
7345 fi
7346 done
7347 done
7348 IFS=$as_save_IFS
7349
7350 fi
7351 fi
7352 OTOOL=$ac_cv_prog_OTOOL
7353 if test -n "$OTOOL"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7355 $as_echo "$OTOOL" >&6; }
7356 else
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358 $as_echo "no" >&6; }
7359 fi
7360
7361
7362 fi
7363 if test -z "$ac_cv_prog_OTOOL"; then
7364 ac_ct_OTOOL=$OTOOL
7365 # Extract the first word of "otool", so it can be a program name with args.
7366 set dummy otool; ac_word=$2
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7368 $as_echo_n "checking for $ac_word... " >&6; }
7369 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 if test -n "$ac_ct_OTOOL"; then
7373 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7374 else
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7376 for as_dir in $PATH
7377 do
7378 IFS=$as_save_IFS
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7382 ac_cv_prog_ac_ct_OTOOL="otool"
7383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7384 break 2
7385 fi
7386 done
7387 done
7388 IFS=$as_save_IFS
7389
7390 fi
7391 fi
7392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7393 if test -n "$ac_ct_OTOOL"; then
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7395 $as_echo "$ac_ct_OTOOL" >&6; }
7396 else
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7398 $as_echo "no" >&6; }
7399 fi
7400
7401 if test "x$ac_ct_OTOOL" = x; then
7402 OTOOL=":"
7403 else
7404 case $cross_compiling:$ac_tool_warned in
7405 yes:)
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7408 ac_tool_warned=yes ;;
7409 esac
7410 OTOOL=$ac_ct_OTOOL
7411 fi
7412 else
7413 OTOOL="$ac_cv_prog_OTOOL"
7414 fi
7415
7416 if test -n "$ac_tool_prefix"; then
7417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if ${ac_cv_prog_OTOOL64+:} false; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$OTOOL64"; then
7425 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7429 do
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7434 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7437 fi
7438 done
7439 done
7440 IFS=$as_save_IFS
7441
7442 fi
7443 fi
7444 OTOOL64=$ac_cv_prog_OTOOL64
7445 if test -n "$OTOOL64"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7447 $as_echo "$OTOOL64" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7451 fi
7452
7453
7454 fi
7455 if test -z "$ac_cv_prog_OTOOL64"; then
7456 ac_ct_OTOOL64=$OTOOL64
7457 # Extract the first word of "otool64", so it can be a program name with args.
7458 set dummy otool64; ac_word=$2
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7460 $as_echo_n "checking for $ac_word... " >&6; }
7461 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 if test -n "$ac_ct_OTOOL64"; then
7465 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7466 else
7467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7468 for as_dir in $PATH
7469 do
7470 IFS=$as_save_IFS
7471 test -z "$as_dir" && as_dir=.
7472 for ac_exec_ext in '' $ac_executable_extensions; do
7473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7474 ac_cv_prog_ac_ct_OTOOL64="otool64"
7475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476 break 2
7477 fi
7478 done
7479 done
7480 IFS=$as_save_IFS
7481
7482 fi
7483 fi
7484 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7485 if test -n "$ac_ct_OTOOL64"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7487 $as_echo "$ac_ct_OTOOL64" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7490 $as_echo "no" >&6; }
7491 fi
7492
7493 if test "x$ac_ct_OTOOL64" = x; then
7494 OTOOL64=":"
7495 else
7496 case $cross_compiling:$ac_tool_warned in
7497 yes:)
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7500 ac_tool_warned=yes ;;
7501 esac
7502 OTOOL64=$ac_ct_OTOOL64
7503 fi
7504 else
7505 OTOOL64="$ac_cv_prog_OTOOL64"
7506 fi
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7535 $as_echo_n "checking for -single_module linker flag... " >&6; }
7536 if ${lt_cv_apple_cc_single_mod+:} false; then :
7537 $as_echo_n "(cached) " >&6
7538 else
7539 lt_cv_apple_cc_single_mod=no
7540 if test -z "${LT_MULTI_MODULE}"; then
7541 # By default we will add the -single_module flag. You can override
7542 # by either setting the environment variable LT_MULTI_MODULE
7543 # non-empty at configure time, or by adding -multi_module to the
7544 # link flags.
7545 rm -rf libconftest.dylib*
7546 echo "int foo(void){return 1;}" > conftest.c
7547 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c" >&5
7549 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7550 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7551 _lt_result=$?
7552 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7553 lt_cv_apple_cc_single_mod=yes
7554 else
7555 cat conftest.err >&5
7556 fi
7557 rm -rf libconftest.dylib*
7558 rm -f conftest.*
7559 fi
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7562 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7564 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7565 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7566 $as_echo_n "(cached) " >&6
7567 else
7568 lt_cv_ld_exported_symbols_list=no
7569 save_LDFLAGS=$LDFLAGS
7570 echo "_main" > conftest.sym
7571 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7573 /* end confdefs.h. */
7574
7575 int
7576 main ()
7577 {
7578
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 if ac_fn_c_try_link "$LINENO"; then :
7584 lt_cv_ld_exported_symbols_list=yes
7585 else
7586 lt_cv_ld_exported_symbols_list=no
7587 fi
7588 rm -f core conftest.err conftest.$ac_objext \
7589 conftest$ac_exeext conftest.$ac_ext
7590 LDFLAGS="$save_LDFLAGS"
7591
7592 fi
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7594 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7596 $as_echo_n "checking for -force_load linker flag... " >&6; }
7597 if ${lt_cv_ld_force_load+:} false; then :
7598 $as_echo_n "(cached) " >&6
7599 else
7600 lt_cv_ld_force_load=no
7601 cat > conftest.c << _LT_EOF
7602 int forced_loaded() { return 2;}
7603 _LT_EOF
7604 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7605 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7606 echo "$AR cru libconftest.a conftest.o" >&5
7607 $AR cru libconftest.a conftest.o 2>&5
7608 cat > conftest.c << _LT_EOF
7609 int main() { return 0;}
7610 _LT_EOF
7611 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7612 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7613 _lt_result=$?
7614 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7615 lt_cv_ld_force_load=yes
7616 else
7617 cat conftest.err >&5
7618 fi
7619 rm -f conftest.err libconftest.a conftest conftest.c
7620 rm -rf conftest.dSYM
7621
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7624 $as_echo "$lt_cv_ld_force_load" >&6; }
7625 case $host_os in
7626 rhapsody* | darwin1.[012])
7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628 darwin1.*)
7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630 darwin*) # darwin 5.x on
7631 # if running on 10.5 or later, the deployment target defaults
7632 # to the OS version, if on x86, and 10.4, the deployment
7633 # target defaults to 10.4. Don't you love it?
7634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637 10.[012][,.]*)
7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639 10.*)
7640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641 esac
7642 ;;
7643 esac
7644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645 _lt_dar_single_mod='$single_module'
7646 fi
7647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649 else
7650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651 fi
7652 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7653 _lt_dsymutil='~$DSYMUTIL $lib || :'
7654 else
7655 _lt_dsymutil=
7656 fi
7657 ;;
7658 esac
7659
7660 for ac_header in dlfcn.h
7661 do :
7662 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7663 "
7664 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7665 cat >>confdefs.h <<_ACEOF
7666 #define HAVE_DLFCN_H 1
7667 _ACEOF
7668
7669 fi
7670
7671 done
7672
7673
7674
7675
7676
7677 # Set options
7678 enable_dlopen=yes
7679
7680
7681
7682
7683 enable_win32_dll=no
7684
7685
7686
7687 # Check whether --enable-static was given.
7688 if test "${enable_static+set}" = set; then :
7689 enableval=$enable_static; p=${PACKAGE-default}
7690 case $enableval in
7691 yes) enable_static=yes ;;
7692 no) enable_static=no ;;
7693 *)
7694 enable_static=no
7695 # Look at the argument we got. We use all the common list separators.
7696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7697 for pkg in $enableval; do
7698 IFS="$lt_save_ifs"
7699 if test "X$pkg" = "X$p"; then
7700 enable_static=yes
7701 fi
7702 done
7703 IFS="$lt_save_ifs"
7704 ;;
7705 esac
7706 else
7707 enable_static=yes
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719 # Check whether --with-pic was given.
7720 if test "${with_pic+set}" = set; then :
7721 withval=$with_pic; pic_mode="$withval"
7722 else
7723 pic_mode=default
7724 fi
7725
7726
7727 test -z "$pic_mode" && pic_mode=default
7728
7729
7730
7731
7732
7733
7734
7735 # Check whether --enable-fast-install was given.
7736 if test "${enable_fast_install+set}" = set; then :
7737 enableval=$enable_fast_install; p=${PACKAGE-default}
7738 case $enableval in
7739 yes) enable_fast_install=yes ;;
7740 no) enable_fast_install=no ;;
7741 *)
7742 enable_fast_install=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7745 for pkg in $enableval; do
7746 IFS="$lt_save_ifs"
7747 if test "X$pkg" = "X$p"; then
7748 enable_fast_install=yes
7749 fi
7750 done
7751 IFS="$lt_save_ifs"
7752 ;;
7753 esac
7754 else
7755 enable_fast_install=yes
7756 fi
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 # This can be used to rebuild libtool when needed
7769 LIBTOOL_DEPS="$ltmain"
7770
7771 # Always use our own libtool.
7772 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 test -z "$LN_S" && LN_S="ln -s"
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814 if test -n "${ZSH_VERSION+set}" ; then
7815 setopt NO_GLOB_SUBST
7816 fi
7817
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7819 $as_echo_n "checking for objdir... " >&6; }
7820 if ${lt_cv_objdir+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822 else
7823 rm -f .libs 2>/dev/null
7824 mkdir .libs 2>/dev/null
7825 if test -d .libs; then
7826 lt_cv_objdir=.libs
7827 else
7828 # MS-DOS does not allow filenames that begin with a dot.
7829 lt_cv_objdir=_libs
7830 fi
7831 rmdir .libs 2>/dev/null
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7834 $as_echo "$lt_cv_objdir" >&6; }
7835 objdir=$lt_cv_objdir
7836
7837
7838
7839
7840
7841 cat >>confdefs.h <<_ACEOF
7842 #define LT_OBJDIR "$lt_cv_objdir/"
7843 _ACEOF
7844
7845
7846
7847
7848 case $host_os in
7849 aix3*)
7850 # AIX sometimes has problems with the GCC collect2 program. For some
7851 # reason, if we set the COLLECT_NAMES environment variable, the problems
7852 # vanish in a puff of smoke.
7853 if test "X${COLLECT_NAMES+set}" != Xset; then
7854 COLLECT_NAMES=
7855 export COLLECT_NAMES
7856 fi
7857 ;;
7858 esac
7859
7860 # Global variables:
7861 ofile=libtool
7862 can_build_shared=yes
7863
7864 # All known linkers require a `.a' archive for static linking (except MSVC,
7865 # which needs '.lib').
7866 libext=a
7867
7868 with_gnu_ld="$lt_cv_prog_gnu_ld"
7869
7870 old_CC="$CC"
7871 old_CFLAGS="$CFLAGS"
7872
7873 # Set sane defaults for various variables
7874 test -z "$CC" && CC=cc
7875 test -z "$LTCC" && LTCC=$CC
7876 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7877 test -z "$LD" && LD=ld
7878 test -z "$ac_objext" && ac_objext=o
7879
7880 for cc_temp in $compiler""; do
7881 case $cc_temp in
7882 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7883 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7884 \-*) ;;
7885 *) break;;
7886 esac
7887 done
7888 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7889
7890
7891 # Only perform the check for file, if the check method requires it
7892 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7893 case $deplibs_check_method in
7894 file_magic*)
7895 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7897 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7898 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7899 $as_echo_n "(cached) " >&6
7900 else
7901 case $MAGIC_CMD in
7902 [\\/*] | ?:[\\/]*)
7903 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7904 ;;
7905 *)
7906 lt_save_MAGIC_CMD="$MAGIC_CMD"
7907 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7908 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7909 for ac_dir in $ac_dummy; do
7910 IFS="$lt_save_ifs"
7911 test -z "$ac_dir" && ac_dir=.
7912 if test -f $ac_dir/${ac_tool_prefix}file; then
7913 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7914 if test -n "$file_magic_test_file"; then
7915 case $deplibs_check_method in
7916 "file_magic "*)
7917 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7918 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7919 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7920 $EGREP "$file_magic_regex" > /dev/null; then
7921 :
7922 else
7923 cat <<_LT_EOF 1>&2
7924
7925 *** Warning: the command libtool uses to detect shared libraries,
7926 *** $file_magic_cmd, produces output that libtool cannot recognize.
7927 *** The result is that libtool may fail to recognize shared libraries
7928 *** as such. This will affect the creation of libtool libraries that
7929 *** depend on shared libraries, but programs linked with such libtool
7930 *** libraries will work regardless of this problem. Nevertheless, you
7931 *** may want to report the problem to your system manager and/or to
7932 *** bug-libtool@gnu.org
7933
7934 _LT_EOF
7935 fi ;;
7936 esac
7937 fi
7938 break
7939 fi
7940 done
7941 IFS="$lt_save_ifs"
7942 MAGIC_CMD="$lt_save_MAGIC_CMD"
7943 ;;
7944 esac
7945 fi
7946
7947 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7948 if test -n "$MAGIC_CMD"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7950 $as_echo "$MAGIC_CMD" >&6; }
7951 else
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7954 fi
7955
7956
7957
7958
7959
7960 if test -z "$lt_cv_path_MAGIC_CMD"; then
7961 if test -n "$ac_tool_prefix"; then
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7963 $as_echo_n "checking for file... " >&6; }
7964 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $MAGIC_CMD in
7968 [\\/*] | ?:[\\/]*)
7969 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7970 ;;
7971 *)
7972 lt_save_MAGIC_CMD="$MAGIC_CMD"
7973 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7974 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7975 for ac_dir in $ac_dummy; do
7976 IFS="$lt_save_ifs"
7977 test -z "$ac_dir" && ac_dir=.
7978 if test -f $ac_dir/file; then
7979 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7980 if test -n "$file_magic_test_file"; then
7981 case $deplibs_check_method in
7982 "file_magic "*)
7983 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7984 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7985 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7986 $EGREP "$file_magic_regex" > /dev/null; then
7987 :
7988 else
7989 cat <<_LT_EOF 1>&2
7990
7991 *** Warning: the command libtool uses to detect shared libraries,
7992 *** $file_magic_cmd, produces output that libtool cannot recognize.
7993 *** The result is that libtool may fail to recognize shared libraries
7994 *** as such. This will affect the creation of libtool libraries that
7995 *** depend on shared libraries, but programs linked with such libtool
7996 *** libraries will work regardless of this problem. Nevertheless, you
7997 *** may want to report the problem to your system manager and/or to
7998 *** bug-libtool@gnu.org
7999
8000 _LT_EOF
8001 fi ;;
8002 esac
8003 fi
8004 break
8005 fi
8006 done
8007 IFS="$lt_save_ifs"
8008 MAGIC_CMD="$lt_save_MAGIC_CMD"
8009 ;;
8010 esac
8011 fi
8012
8013 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8014 if test -n "$MAGIC_CMD"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8016 $as_echo "$MAGIC_CMD" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8020 fi
8021
8022
8023 else
8024 MAGIC_CMD=:
8025 fi
8026 fi
8027
8028 fi
8029 ;;
8030 esac
8031
8032 # Use C for the default configuration in the libtool script
8033
8034 lt_save_CC="$CC"
8035 ac_ext=c
8036 ac_cpp='$CPP $CPPFLAGS'
8037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8040
8041
8042 # Source file extension for C test sources.
8043 ac_ext=c
8044
8045 # Object file extension for compiled C test sources.
8046 objext=o
8047 objext=$objext
8048
8049 # Code to be used in simple compile tests
8050 lt_simple_compile_test_code="int some_variable = 0;"
8051
8052 # Code to be used in simple link tests
8053 lt_simple_link_test_code='int main(){return(0);}'
8054
8055
8056
8057
8058
8059
8060
8061 # If no C compiler was specified, use CC.
8062 LTCC=${LTCC-"$CC"}
8063
8064 # If no C compiler flags were specified, use CFLAGS.
8065 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8066
8067 # Allow CC to be a program name with arguments.
8068 compiler=$CC
8069
8070 # Save the default compiler, since it gets overwritten when the other
8071 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8072 compiler_DEFAULT=$CC
8073
8074 # save warnings/boilerplate of simple test code
8075 ac_outfile=conftest.$ac_objext
8076 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8077 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8078 _lt_compiler_boilerplate=`cat conftest.err`
8079 $RM conftest*
8080
8081 ac_outfile=conftest.$ac_objext
8082 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8083 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8084 _lt_linker_boilerplate=`cat conftest.err`
8085 $RM -r conftest*
8086
8087
8088 ## CAVEAT EMPTOR:
8089 ## There is no encapsulation within the following macros, do not change
8090 ## the running order or otherwise move them around unless you know exactly
8091 ## what you are doing...
8092 if test -n "$compiler"; then
8093
8094 lt_prog_compiler_no_builtin_flag=
8095
8096 if test "$GCC" = yes; then
8097 case $cc_basename in
8098 nvcc*)
8099 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8100 *)
8101 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8102 esac
8103
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8105 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8106 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 lt_cv_prog_compiler_rtti_exceptions=no
8110 ac_outfile=conftest.$ac_objext
8111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8112 lt_compiler_flag="-fno-rtti -fno-exceptions"
8113 # Insert the option either (1) after the last *FLAGS variable, or
8114 # (2) before a word containing "conftest.", or (3) at the end.
8115 # Note that $ac_compile itself does not contain backslashes and begins
8116 # with a dollar sign (not a hyphen), so the echo should work correctly.
8117 # The option is referenced via a variable to avoid confusing sed.
8118 lt_compile=`echo "$ac_compile" | $SED \
8119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8121 -e 's:$: $lt_compiler_flag:'`
8122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8123 (eval "$lt_compile" 2>conftest.err)
8124 ac_status=$?
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 if (exit $ac_status) && test -s "$ac_outfile"; then
8128 # The compiler can only warn and ignore the option if not recognized
8129 # So say no if there are warnings other than the usual output.
8130 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8131 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8132 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8133 lt_cv_prog_compiler_rtti_exceptions=yes
8134 fi
8135 fi
8136 $RM conftest*
8137
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8140 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8141
8142 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8143 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8144 else
8145 :
8146 fi
8147
8148 fi
8149
8150
8151
8152
8153
8154
8155 lt_prog_compiler_wl=
8156 lt_prog_compiler_pic=
8157 lt_prog_compiler_static=
8158
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8160 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8161
8162 if test "$GCC" = yes; then
8163 lt_prog_compiler_wl='-Wl,'
8164 lt_prog_compiler_static='-static'
8165
8166 case $host_os in
8167 aix*)
8168 # All AIX code is PIC.
8169 if test "$host_cpu" = ia64; then
8170 # AIX 5 now supports IA64 processor
8171 lt_prog_compiler_static='-Bstatic'
8172 fi
8173 lt_prog_compiler_pic='-fPIC'
8174 ;;
8175
8176 amigaos*)
8177 case $host_cpu in
8178 powerpc)
8179 # see comment about AmigaOS4 .so support
8180 lt_prog_compiler_pic='-fPIC'
8181 ;;
8182 m68k)
8183 # FIXME: we need at least 68020 code to build shared libraries, but
8184 # adding the `-m68020' flag to GCC prevents building anything better,
8185 # like `-m68040'.
8186 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8187 ;;
8188 esac
8189 ;;
8190
8191 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8192 # PIC is the default for these OSes.
8193 ;;
8194
8195 mingw* | cygwin* | pw32* | os2* | cegcc*)
8196 # This hack is so that the source file can tell whether it is being
8197 # built for inclusion in a dll (and should export symbols for example).
8198 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8199 # (--disable-auto-import) libraries
8200 lt_prog_compiler_pic='-DDLL_EXPORT'
8201 ;;
8202
8203 darwin* | rhapsody*)
8204 # PIC is the default on this platform
8205 # Common symbols not allowed in MH_DYLIB files
8206 lt_prog_compiler_pic='-fno-common'
8207 ;;
8208
8209 haiku*)
8210 # PIC is the default for Haiku.
8211 # The "-static" flag exists, but is broken.
8212 lt_prog_compiler_static=
8213 ;;
8214
8215 hpux*)
8216 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8217 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8218 # sets the default TLS model and affects inlining.
8219 case $host_cpu in
8220 hppa*64*)
8221 # +Z the default
8222 ;;
8223 *)
8224 lt_prog_compiler_pic='-fPIC'
8225 ;;
8226 esac
8227 ;;
8228
8229 interix[3-9]*)
8230 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8231 # Instead, we relocate shared libraries at runtime.
8232 ;;
8233
8234 msdosdjgpp*)
8235 # Just because we use GCC doesn't mean we suddenly get shared libraries
8236 # on systems that don't support them.
8237 lt_prog_compiler_can_build_shared=no
8238 enable_shared=no
8239 ;;
8240
8241 *nto* | *qnx*)
8242 # QNX uses GNU C++, but need to define -shared option too, otherwise
8243 # it will coredump.
8244 lt_prog_compiler_pic='-fPIC -shared'
8245 ;;
8246
8247 sysv4*MP*)
8248 if test -d /usr/nec; then
8249 lt_prog_compiler_pic=-Kconform_pic
8250 fi
8251 ;;
8252
8253 *)
8254 lt_prog_compiler_pic='-fPIC'
8255 ;;
8256 esac
8257
8258 case $cc_basename in
8259 nvcc*) # Cuda Compiler Driver 2.2
8260 lt_prog_compiler_wl='-Xlinker '
8261 lt_prog_compiler_pic='-Xcompiler -fPIC'
8262 ;;
8263 esac
8264 else
8265 # PORTME Check for flag to pass linker flags through the system compiler.
8266 case $host_os in
8267 aix*)
8268 lt_prog_compiler_wl='-Wl,'
8269 if test "$host_cpu" = ia64; then
8270 # AIX 5 now supports IA64 processor
8271 lt_prog_compiler_static='-Bstatic'
8272 else
8273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8274 fi
8275 ;;
8276
8277 mingw* | cygwin* | pw32* | os2* | cegcc*)
8278 # This hack is so that the source file can tell whether it is being
8279 # built for inclusion in a dll (and should export symbols for example).
8280 lt_prog_compiler_pic='-DDLL_EXPORT'
8281 ;;
8282
8283 hpux9* | hpux10* | hpux11*)
8284 lt_prog_compiler_wl='-Wl,'
8285 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8286 # not for PA HP-UX.
8287 case $host_cpu in
8288 hppa*64*|ia64*)
8289 # +Z the default
8290 ;;
8291 *)
8292 lt_prog_compiler_pic='+Z'
8293 ;;
8294 esac
8295 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8296 lt_prog_compiler_static='${wl}-a ${wl}archive'
8297 ;;
8298
8299 irix5* | irix6* | nonstopux*)
8300 lt_prog_compiler_wl='-Wl,'
8301 # PIC (with -KPIC) is the default.
8302 lt_prog_compiler_static='-non_shared'
8303 ;;
8304
8305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8306 case $cc_basename in
8307 # old Intel for x86_64 which still supported -KPIC.
8308 ecc*)
8309 lt_prog_compiler_wl='-Wl,'
8310 lt_prog_compiler_pic='-KPIC'
8311 lt_prog_compiler_static='-static'
8312 ;;
8313 # icc used to be incompatible with GCC.
8314 # ICC 10 doesn't accept -KPIC any more.
8315 icc* | ifort*)
8316 lt_prog_compiler_wl='-Wl,'
8317 lt_prog_compiler_pic='-fPIC'
8318 lt_prog_compiler_static='-static'
8319 ;;
8320 # Lahey Fortran 8.1.
8321 lf95*)
8322 lt_prog_compiler_wl='-Wl,'
8323 lt_prog_compiler_pic='--shared'
8324 lt_prog_compiler_static='--static'
8325 ;;
8326 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8327 # Portland Group compilers (*not* the Pentium gcc compiler,
8328 # which looks to be a dead project)
8329 lt_prog_compiler_wl='-Wl,'
8330 lt_prog_compiler_pic='-fpic'
8331 lt_prog_compiler_static='-Bstatic'
8332 ;;
8333 ccc*)
8334 lt_prog_compiler_wl='-Wl,'
8335 # All Alpha code is PIC.
8336 lt_prog_compiler_static='-non_shared'
8337 ;;
8338 xl* | bgxl* | bgf* | mpixl*)
8339 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8340 lt_prog_compiler_wl='-Wl,'
8341 lt_prog_compiler_pic='-qpic'
8342 lt_prog_compiler_static='-qstaticlink'
8343 ;;
8344 *)
8345 case `$CC -V 2>&1 | sed 5q` in
8346 *Sun\ F* | *Sun*Fortran*)
8347 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8348 lt_prog_compiler_pic='-KPIC'
8349 lt_prog_compiler_static='-Bstatic'
8350 lt_prog_compiler_wl=''
8351 ;;
8352 *Sun\ C*)
8353 # Sun C 5.9
8354 lt_prog_compiler_pic='-KPIC'
8355 lt_prog_compiler_static='-Bstatic'
8356 lt_prog_compiler_wl='-Wl,'
8357 ;;
8358 esac
8359 ;;
8360 esac
8361 ;;
8362
8363 newsos6)
8364 lt_prog_compiler_pic='-KPIC'
8365 lt_prog_compiler_static='-Bstatic'
8366 ;;
8367
8368 *nto* | *qnx*)
8369 # QNX uses GNU C++, but need to define -shared option too, otherwise
8370 # it will coredump.
8371 lt_prog_compiler_pic='-fPIC -shared'
8372 ;;
8373
8374 osf3* | osf4* | osf5*)
8375 lt_prog_compiler_wl='-Wl,'
8376 # All OSF/1 code is PIC.
8377 lt_prog_compiler_static='-non_shared'
8378 ;;
8379
8380 rdos*)
8381 lt_prog_compiler_static='-non_shared'
8382 ;;
8383
8384 solaris*)
8385 lt_prog_compiler_pic='-KPIC'
8386 lt_prog_compiler_static='-Bstatic'
8387 case $cc_basename in
8388 f77* | f90* | f95*)
8389 lt_prog_compiler_wl='-Qoption ld ';;
8390 *)
8391 lt_prog_compiler_wl='-Wl,';;
8392 esac
8393 ;;
8394
8395 sunos4*)
8396 lt_prog_compiler_wl='-Qoption ld '
8397 lt_prog_compiler_pic='-PIC'
8398 lt_prog_compiler_static='-Bstatic'
8399 ;;
8400
8401 sysv4 | sysv4.2uw2* | sysv4.3*)
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8405 ;;
8406
8407 sysv4*MP*)
8408 if test -d /usr/nec ;then
8409 lt_prog_compiler_pic='-Kconform_pic'
8410 lt_prog_compiler_static='-Bstatic'
8411 fi
8412 ;;
8413
8414 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8415 lt_prog_compiler_wl='-Wl,'
8416 lt_prog_compiler_pic='-KPIC'
8417 lt_prog_compiler_static='-Bstatic'
8418 ;;
8419
8420 unicos*)
8421 lt_prog_compiler_wl='-Wl,'
8422 lt_prog_compiler_can_build_shared=no
8423 ;;
8424
8425 uts4*)
8426 lt_prog_compiler_pic='-pic'
8427 lt_prog_compiler_static='-Bstatic'
8428 ;;
8429
8430 *)
8431 lt_prog_compiler_can_build_shared=no
8432 ;;
8433 esac
8434 fi
8435
8436 case $host_os in
8437 # For platforms which do not support PIC, -DPIC is meaningless:
8438 *djgpp*)
8439 lt_prog_compiler_pic=
8440 ;;
8441 *)
8442 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8443 ;;
8444 esac
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8446 $as_echo "$lt_prog_compiler_pic" >&6; }
8447
8448
8449
8450
8451
8452
8453 #
8454 # Check to make sure the PIC flag actually works.
8455 #
8456 if test -n "$lt_prog_compiler_pic"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8458 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8459 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 lt_cv_prog_compiler_pic_works=no
8463 ac_outfile=conftest.$ac_objext
8464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8465 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8466 # Insert the option either (1) after the last *FLAGS variable, or
8467 # (2) before a word containing "conftest.", or (3) at the end.
8468 # Note that $ac_compile itself does not contain backslashes and begins
8469 # with a dollar sign (not a hyphen), so the echo should work correctly.
8470 # The option is referenced via a variable to avoid confusing sed.
8471 lt_compile=`echo "$ac_compile" | $SED \
8472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8474 -e 's:$: $lt_compiler_flag:'`
8475 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8476 (eval "$lt_compile" 2>conftest.err)
8477 ac_status=$?
8478 cat conftest.err >&5
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 if (exit $ac_status) && test -s "$ac_outfile"; then
8481 # The compiler can only warn and ignore the option if not recognized
8482 # So say no if there are warnings other than the usual output.
8483 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8484 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8485 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8486 lt_cv_prog_compiler_pic_works=yes
8487 fi
8488 fi
8489 $RM conftest*
8490
8491 fi
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8493 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8494
8495 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8496 case $lt_prog_compiler_pic in
8497 "" | " "*) ;;
8498 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8499 esac
8500 else
8501 lt_prog_compiler_pic=
8502 lt_prog_compiler_can_build_shared=no
8503 fi
8504
8505 fi
8506
8507
8508
8509
8510
8511
8512 #
8513 # Check to make sure the static flag actually works.
8514 #
8515 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8517 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8518 if ${lt_cv_prog_compiler_static_works+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 lt_cv_prog_compiler_static_works=no
8522 save_LDFLAGS="$LDFLAGS"
8523 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8524 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8525 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8526 # The linker can only warn and ignore the option if not recognized
8527 # So say no if there are warnings
8528 if test -s conftest.err; then
8529 # Append any errors to the config.log.
8530 cat conftest.err 1>&5
8531 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8533 if diff conftest.exp conftest.er2 >/dev/null; then
8534 lt_cv_prog_compiler_static_works=yes
8535 fi
8536 else
8537 lt_cv_prog_compiler_static_works=yes
8538 fi
8539 fi
8540 $RM -r conftest*
8541 LDFLAGS="$save_LDFLAGS"
8542
8543 fi
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8545 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8546
8547 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8548 :
8549 else
8550 lt_prog_compiler_static=
8551 fi
8552
8553
8554
8555
8556
8557
8558
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8560 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8561 if ${lt_cv_prog_compiler_c_o+:} false; then :
8562 $as_echo_n "(cached) " >&6
8563 else
8564 lt_cv_prog_compiler_c_o=no
8565 $RM -r conftest 2>/dev/null
8566 mkdir conftest
8567 cd conftest
8568 mkdir out
8569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8570
8571 lt_compiler_flag="-o out/conftest2.$ac_objext"
8572 # Insert the option either (1) after the last *FLAGS variable, or
8573 # (2) before a word containing "conftest.", or (3) at the end.
8574 # Note that $ac_compile itself does not contain backslashes and begins
8575 # with a dollar sign (not a hyphen), so the echo should work correctly.
8576 lt_compile=`echo "$ac_compile" | $SED \
8577 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8578 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8579 -e 's:$: $lt_compiler_flag:'`
8580 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8581 (eval "$lt_compile" 2>out/conftest.err)
8582 ac_status=$?
8583 cat out/conftest.err >&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8586 then
8587 # The compiler can only warn and ignore the option if not recognized
8588 # So say no if there are warnings
8589 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8590 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8591 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8592 lt_cv_prog_compiler_c_o=yes
8593 fi
8594 fi
8595 chmod u+w . 2>&5
8596 $RM conftest*
8597 # SGI C++ compiler will create directory out/ii_files/ for
8598 # template instantiation
8599 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8600 $RM out/* && rmdir out
8601 cd ..
8602 $RM -r conftest
8603 $RM conftest*
8604
8605 fi
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8607 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8608
8609
8610
8611
8612
8613
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8615 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8616 if ${lt_cv_prog_compiler_c_o+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 lt_cv_prog_compiler_c_o=no
8620 $RM -r conftest 2>/dev/null
8621 mkdir conftest
8622 cd conftest
8623 mkdir out
8624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8625
8626 lt_compiler_flag="-o out/conftest2.$ac_objext"
8627 # Insert the option either (1) after the last *FLAGS variable, or
8628 # (2) before a word containing "conftest.", or (3) at the end.
8629 # Note that $ac_compile itself does not contain backslashes and begins
8630 # with a dollar sign (not a hyphen), so the echo should work correctly.
8631 lt_compile=`echo "$ac_compile" | $SED \
8632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8634 -e 's:$: $lt_compiler_flag:'`
8635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8636 (eval "$lt_compile" 2>out/conftest.err)
8637 ac_status=$?
8638 cat out/conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8641 then
8642 # The compiler can only warn and ignore the option if not recognized
8643 # So say no if there are warnings
8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_c_o=yes
8648 fi
8649 fi
8650 chmod u+w . 2>&5
8651 $RM conftest*
8652 # SGI C++ compiler will create directory out/ii_files/ for
8653 # template instantiation
8654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8655 $RM out/* && rmdir out
8656 cd ..
8657 $RM -r conftest
8658 $RM conftest*
8659
8660 fi
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8662 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8663
8664
8665
8666
8667 hard_links="nottested"
8668 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8669 # do not overwrite the value of need_locks provided by the user
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8671 $as_echo_n "checking if we can lock with hard links... " >&6; }
8672 hard_links=yes
8673 $RM conftest*
8674 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8675 touch conftest.a
8676 ln conftest.a conftest.b 2>&5 || hard_links=no
8677 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8679 $as_echo "$hard_links" >&6; }
8680 if test "$hard_links" = no; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8682 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8683 need_locks=warn
8684 fi
8685 else
8686 need_locks=no
8687 fi
8688
8689
8690
8691
8692
8693
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8695 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8696
8697 runpath_var=
8698 allow_undefined_flag=
8699 always_export_symbols=no
8700 archive_cmds=
8701 archive_expsym_cmds=
8702 compiler_needs_object=no
8703 enable_shared_with_static_runtimes=no
8704 export_dynamic_flag_spec=
8705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8706 hardcode_automatic=no
8707 hardcode_direct=no
8708 hardcode_direct_absolute=no
8709 hardcode_libdir_flag_spec=
8710 hardcode_libdir_flag_spec_ld=
8711 hardcode_libdir_separator=
8712 hardcode_minus_L=no
8713 hardcode_shlibpath_var=unsupported
8714 inherit_rpath=no
8715 link_all_deplibs=unknown
8716 module_cmds=
8717 module_expsym_cmds=
8718 old_archive_from_new_cmds=
8719 old_archive_from_expsyms_cmds=
8720 thread_safe_flag_spec=
8721 whole_archive_flag_spec=
8722 # include_expsyms should be a list of space-separated symbols to be *always*
8723 # included in the symbol list
8724 include_expsyms=
8725 # exclude_expsyms can be an extended regexp of symbols to exclude
8726 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8727 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8728 # as well as any symbol that contains `d'.
8729 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8730 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8731 # platforms (ab)use it in PIC code, but their linkers get confused if
8732 # the symbol is explicitly referenced. Since portable code cannot
8733 # rely on this symbol name, it's probably fine to never include it in
8734 # preloaded symbol tables.
8735 # Exclude shared library initialization/finalization symbols.
8736 extract_expsyms_cmds=
8737
8738 case $host_os in
8739 cygwin* | mingw* | pw32* | cegcc*)
8740 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8741 # When not using gcc, we currently assume that we are using
8742 # Microsoft Visual C++.
8743 if test "$GCC" != yes; then
8744 with_gnu_ld=no
8745 fi
8746 ;;
8747 interix*)
8748 # we just hope/assume this is gcc and not c89 (= MSVC++)
8749 with_gnu_ld=yes
8750 ;;
8751 openbsd*)
8752 with_gnu_ld=no
8753 ;;
8754 esac
8755
8756 ld_shlibs=yes
8757
8758 # On some targets, GNU ld is compatible enough with the native linker
8759 # that we're better off using the native interface for both.
8760 lt_use_gnu_ld_interface=no
8761 if test "$with_gnu_ld" = yes; then
8762 case $host_os in
8763 aix*)
8764 # The AIX port of GNU ld has always aspired to compatibility
8765 # with the native linker. However, as the warning in the GNU ld
8766 # block says, versions before 2.19.5* couldn't really create working
8767 # shared libraries, regardless of the interface used.
8768 case `$LD -v 2>&1` in
8769 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8770 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8771 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8772 *)
8773 lt_use_gnu_ld_interface=yes
8774 ;;
8775 esac
8776 ;;
8777 *)
8778 lt_use_gnu_ld_interface=yes
8779 ;;
8780 esac
8781 fi
8782
8783 if test "$lt_use_gnu_ld_interface" = yes; then
8784 # If archive_cmds runs LD, not CC, wlarc should be empty
8785 wlarc='${wl}'
8786
8787 # Set some defaults for GNU ld with shared library support. These
8788 # are reset later if shared libraries are not supported. Putting them
8789 # here allows them to be overridden if necessary.
8790 runpath_var=LD_RUN_PATH
8791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8792 export_dynamic_flag_spec='${wl}--export-dynamic'
8793 # ancient GNU ld didn't support --whole-archive et. al.
8794 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8795 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8796 else
8797 whole_archive_flag_spec=
8798 fi
8799 supports_anon_versioning=no
8800 case `$LD -v 2>&1` in
8801 *GNU\ gold*) supports_anon_versioning=yes ;;
8802 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8803 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8804 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8805 *\ 2.11.*) ;; # other 2.11 versions
8806 *) supports_anon_versioning=yes ;;
8807 esac
8808
8809 # See if GNU ld supports shared libraries.
8810 case $host_os in
8811 aix[3-9]*)
8812 # On AIX/PPC, the GNU linker is very broken
8813 if test "$host_cpu" != ia64; then
8814 ld_shlibs=no
8815 cat <<_LT_EOF 1>&2
8816
8817 *** Warning: the GNU linker, at least up to release 2.19, is reported
8818 *** to be unable to reliably create shared libraries on AIX.
8819 *** Therefore, libtool is disabling shared libraries support. If you
8820 *** really care for shared libraries, you may want to install binutils
8821 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8822 *** You will then need to restart the configuration process.
8823
8824 _LT_EOF
8825 fi
8826 ;;
8827
8828 amigaos*)
8829 case $host_cpu in
8830 powerpc)
8831 # see comment about AmigaOS4 .so support
8832 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833 archive_expsym_cmds=''
8834 ;;
8835 m68k)
8836 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)'
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 hardcode_minus_L=yes
8839 ;;
8840 esac
8841 ;;
8842
8843 beos*)
8844 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8845 allow_undefined_flag=unsupported
8846 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8847 # support --undefined. This deserves some investigation. FIXME
8848 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8849 else
8850 ld_shlibs=no
8851 fi
8852 ;;
8853
8854 cygwin* | mingw* | pw32* | cegcc*)
8855 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8856 # as there is no search path for DLLs.
8857 hardcode_libdir_flag_spec='-L$libdir'
8858 export_dynamic_flag_spec='${wl}--export-all-symbols'
8859 allow_undefined_flag=unsupported
8860 always_export_symbols=no
8861 enable_shared_with_static_runtimes=yes
8862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8863
8864 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8866 # If the export-symbols file already is a .def file (1st line
8867 # is EXPORTS), use it as is; otherwise, prepend...
8868 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8869 cp $export_symbols $output_objdir/$soname.def;
8870 else
8871 echo EXPORTS > $output_objdir/$soname.def;
8872 cat $export_symbols >> $output_objdir/$soname.def;
8873 fi~
8874 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8875 else
8876 ld_shlibs=no
8877 fi
8878 ;;
8879
8880 haiku*)
8881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8882 link_all_deplibs=yes
8883 ;;
8884
8885 interix[3-9]*)
8886 hardcode_direct=no
8887 hardcode_shlibpath_var=no
8888 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8889 export_dynamic_flag_spec='${wl}-E'
8890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8891 # Instead, shared libraries are loaded at an image base (0x10000000 by
8892 # default) and relocated if they conflict, which is a slow very memory
8893 # consuming and fragmenting process. To avoid this, we pick a random,
8894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8896 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8897 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'
8898 ;;
8899
8900 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8901 tmp_diet=no
8902 if test "$host_os" = linux-dietlibc; then
8903 case $cc_basename in
8904 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8905 esac
8906 fi
8907 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8908 && test "$tmp_diet" = no
8909 then
8910 tmp_addflag=' $pic_flag'
8911 tmp_sharedflag='-shared'
8912 case $cc_basename,$host_cpu in
8913 pgcc*) # Portland Group C compiler
8914 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'
8915 tmp_addflag=' $pic_flag'
8916 ;;
8917 pgf77* | pgf90* | pgf95* | pgfortran*)
8918 # Portland Group f77 and f90 compilers
8919 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'
8920 tmp_addflag=' $pic_flag -Mnomain' ;;
8921 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8922 tmp_addflag=' -i_dynamic' ;;
8923 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8924 tmp_addflag=' -i_dynamic -nofor_main' ;;
8925 ifc* | ifort*) # Intel Fortran compiler
8926 tmp_addflag=' -nofor_main' ;;
8927 lf95*) # Lahey Fortran 8.1
8928 whole_archive_flag_spec=
8929 tmp_sharedflag='--shared' ;;
8930 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8931 tmp_sharedflag='-qmkshrobj'
8932 tmp_addflag= ;;
8933 nvcc*) # Cuda Compiler Driver 2.2
8934 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'
8935 compiler_needs_object=yes
8936 ;;
8937 esac
8938 case `$CC -V 2>&1 | sed 5q` in
8939 *Sun\ C*) # Sun C 5.9
8940 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'
8941 compiler_needs_object=yes
8942 tmp_sharedflag='-G' ;;
8943 *Sun\ F*) # Sun Fortran 8.3
8944 tmp_sharedflag='-G' ;;
8945 esac
8946 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8947
8948 if test "x$supports_anon_versioning" = xyes; then
8949 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8951 echo "local: *; };" >> $output_objdir/$libname.ver~
8952 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8953 fi
8954
8955 case $cc_basename in
8956 xlf* | bgf* | bgxlf* | mpixlf*)
8957 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8958 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8959 hardcode_libdir_flag_spec=
8960 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8961 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8962 if test "x$supports_anon_versioning" = xyes; then
8963 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8964 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8965 echo "local: *; };" >> $output_objdir/$libname.ver~
8966 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8967 fi
8968 ;;
8969 esac
8970 else
8971 ld_shlibs=no
8972 fi
8973 ;;
8974
8975 netbsd*)
8976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8977 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8978 wlarc=
8979 else
8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8981 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8982 fi
8983 ;;
8984
8985 solaris*)
8986 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8987 ld_shlibs=no
8988 cat <<_LT_EOF 1>&2
8989
8990 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8991 *** create shared libraries on Solaris systems. Therefore, libtool
8992 *** is disabling shared libraries support. We urge you to upgrade GNU
8993 *** binutils to release 2.9.1 or newer. Another option is to modify
8994 *** your PATH or compiler configuration so that the native linker is
8995 *** used, and then restart.
8996
8997 _LT_EOF
8998 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9000 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9001 else
9002 ld_shlibs=no
9003 fi
9004 ;;
9005
9006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9007 case `$LD -v 2>&1` in
9008 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9009 ld_shlibs=no
9010 cat <<_LT_EOF 1>&2
9011
9012 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9013 *** reliably create shared libraries on SCO systems. Therefore, libtool
9014 *** is disabling shared libraries support. We urge you to upgrade GNU
9015 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9016 *** your PATH or compiler configuration so that the native linker is
9017 *** used, and then restart.
9018
9019 _LT_EOF
9020 ;;
9021 *)
9022 # For security reasons, it is highly recommended that you always
9023 # use absolute paths for naming shared libraries, and exclude the
9024 # DT_RUNPATH tag from executables and libraries. But doing so
9025 # requires that you compile everything twice, which is a pain.
9026 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9029 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9030 else
9031 ld_shlibs=no
9032 fi
9033 ;;
9034 esac
9035 ;;
9036
9037 sunos4*)
9038 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9039 wlarc=
9040 hardcode_direct=yes
9041 hardcode_shlibpath_var=no
9042 ;;
9043
9044 *)
9045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9048 else
9049 ld_shlibs=no
9050 fi
9051 ;;
9052 esac
9053
9054 if test "$ld_shlibs" = no; then
9055 runpath_var=
9056 hardcode_libdir_flag_spec=
9057 export_dynamic_flag_spec=
9058 whole_archive_flag_spec=
9059 fi
9060 else
9061 # PORTME fill in a description of your system's linker (not GNU ld)
9062 case $host_os in
9063 aix3*)
9064 allow_undefined_flag=unsupported
9065 always_export_symbols=yes
9066 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'
9067 # Note: this linker hardcodes the directories in LIBPATH if there
9068 # are no directories specified by -L.
9069 hardcode_minus_L=yes
9070 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9071 # Neither direct hardcoding nor static linking is supported with a
9072 # broken collect2.
9073 hardcode_direct=unsupported
9074 fi
9075 ;;
9076
9077 aix[4-9]*)
9078 if test "$host_cpu" = ia64; then
9079 # On IA64, the linker does run time linking by default, so we don't
9080 # have to do anything special.
9081 aix_use_runtimelinking=no
9082 exp_sym_flag='-Bexport'
9083 no_entry_flag=""
9084 else
9085 # If we're using GNU nm, then we don't want the "-C" option.
9086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9087 # Also, AIX nm treats weak defined symbols like other global
9088 # defined symbols, whereas GNU nm marks them as "W".
9089 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9090 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'
9091 else
9092 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'
9093 fi
9094 aix_use_runtimelinking=no
9095
9096 # Test if we are trying to use run time linking or normal
9097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9098 # need to do runtime linking.
9099 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9100 for ld_flag in $LDFLAGS; do
9101 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9102 aix_use_runtimelinking=yes
9103 break
9104 fi
9105 done
9106 ;;
9107 esac
9108
9109 exp_sym_flag='-bexport'
9110 no_entry_flag='-bnoentry'
9111 fi
9112
9113 # When large executables or shared objects are built, AIX ld can
9114 # have problems creating the table of contents. If linking a library
9115 # or program results in "error TOC overflow" add -mminimal-toc to
9116 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9117 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9118
9119 archive_cmds=''
9120 hardcode_direct=yes
9121 hardcode_direct_absolute=yes
9122 hardcode_libdir_separator=':'
9123 link_all_deplibs=yes
9124 file_list_spec='${wl}-f,'
9125
9126 if test "$GCC" = yes; then
9127 case $host_os in aix4.[012]|aix4.[012].*)
9128 # We only want to do this on AIX 4.2 and lower, the check
9129 # below for broken collect2 doesn't work under 4.3+
9130 collect2name=`${CC} -print-prog-name=collect2`
9131 if test -f "$collect2name" &&
9132 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9133 then
9134 # We have reworked collect2
9135 :
9136 else
9137 # We have old collect2
9138 hardcode_direct=unsupported
9139 # It fails to find uninstalled libraries when the uninstalled
9140 # path is not listed in the libpath. Setting hardcode_minus_L
9141 # to unsupported forces relinking
9142 hardcode_minus_L=yes
9143 hardcode_libdir_flag_spec='-L$libdir'
9144 hardcode_libdir_separator=
9145 fi
9146 ;;
9147 esac
9148 shared_flag='-shared'
9149 if test "$aix_use_runtimelinking" = yes; then
9150 shared_flag="$shared_flag "'${wl}-G'
9151 fi
9152 else
9153 # not using gcc
9154 if test "$host_cpu" = ia64; then
9155 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9156 # chokes on -Wl,-G. The following line is correct:
9157 shared_flag='-G'
9158 else
9159 if test "$aix_use_runtimelinking" = yes; then
9160 shared_flag='${wl}-G'
9161 else
9162 shared_flag='${wl}-bM:SRE'
9163 fi
9164 fi
9165 fi
9166
9167 export_dynamic_flag_spec='${wl}-bexpall'
9168 # It seems that -bexpall does not export symbols beginning with
9169 # underscore (_), so it is better to generate a list of symbols to export.
9170 always_export_symbols=yes
9171 if test "$aix_use_runtimelinking" = yes; then
9172 # Warning - without using the other runtime loading flags (-brtl),
9173 # -berok will link without error, but may produce a broken library.
9174 allow_undefined_flag='-berok'
9175 # Determine the default libpath from the value encoded in an
9176 # empty executable.
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179
9180 int
9181 main ()
9182 {
9183
9184 ;
9185 return 0;
9186 }
9187 _ACEOF
9188 if ac_fn_c_try_link "$LINENO"; then :
9189
9190 lt_aix_libpath_sed='
9191 /Import File Strings/,/^$/ {
9192 /^0/ {
9193 s/^0 *\(.*\)$/\1/
9194 p
9195 }
9196 }'
9197 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9198 # Check for a 64-bit object if we didn't find anything.
9199 if test -z "$aix_libpath"; then
9200 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9201 fi
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext \
9204 conftest$ac_exeext conftest.$ac_ext
9205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9206
9207 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9208 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"
9209 else
9210 if test "$host_cpu" = ia64; then
9211 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9212 allow_undefined_flag="-z nodefs"
9213 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"
9214 else
9215 # Determine the default libpath from the value encoded in an
9216 # empty executable.
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219
9220 int
9221 main ()
9222 {
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"; then :
9229
9230 lt_aix_libpath_sed='
9231 /Import File Strings/,/^$/ {
9232 /^0/ {
9233 s/^0 *\(.*\)$/\1/
9234 p
9235 }
9236 }'
9237 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9238 # Check for a 64-bit object if we didn't find anything.
9239 if test -z "$aix_libpath"; then
9240 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9241 fi
9242 fi
9243 rm -f core conftest.err conftest.$ac_objext \
9244 conftest$ac_exeext conftest.$ac_ext
9245 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9246
9247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9248 # Warning - without using the other run time loading flags,
9249 # -berok will link without error, but may produce a broken library.
9250 no_undefined_flag=' ${wl}-bernotok'
9251 allow_undefined_flag=' ${wl}-berok'
9252 if test "$with_gnu_ld" = yes; then
9253 # We only use this code for GNU lds that support --whole-archive.
9254 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9255 else
9256 # Exported symbols can be pulled into shared objects from archives
9257 whole_archive_flag_spec='$convenience'
9258 fi
9259 archive_cmds_need_lc=yes
9260 # This is similar to how AIX traditionally builds its shared libraries.
9261 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'
9262 fi
9263 fi
9264 ;;
9265
9266 amigaos*)
9267 case $host_cpu in
9268 powerpc)
9269 # see comment about AmigaOS4 .so support
9270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271 archive_expsym_cmds=''
9272 ;;
9273 m68k)
9274 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)'
9275 hardcode_libdir_flag_spec='-L$libdir'
9276 hardcode_minus_L=yes
9277 ;;
9278 esac
9279 ;;
9280
9281 bsdi[45]*)
9282 export_dynamic_flag_spec=-rdynamic
9283 ;;
9284
9285 cygwin* | mingw* | pw32* | cegcc*)
9286 # When not using gcc, we currently assume that we are using
9287 # Microsoft Visual C++.
9288 # hardcode_libdir_flag_spec is actually meaningless, as there is
9289 # no search path for DLLs.
9290 hardcode_libdir_flag_spec=' '
9291 allow_undefined_flag=unsupported
9292 # Tell ltmain to make .lib files, not .a files.
9293 libext=lib
9294 # Tell ltmain to make .dll files, not .so files.
9295 shrext_cmds=".dll"
9296 # FIXME: Setting linknames here is a bad hack.
9297 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9298 # The linker will automatically build a .lib file if we build a DLL.
9299 old_archive_from_new_cmds='true'
9300 # FIXME: Should let the user specify the lib program.
9301 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9302 fix_srcfile_path='`cygpath -w "$srcfile"`'
9303 enable_shared_with_static_runtimes=yes
9304 ;;
9305
9306 darwin* | rhapsody*)
9307
9308
9309 archive_cmds_need_lc=no
9310 hardcode_direct=no
9311 hardcode_automatic=yes
9312 hardcode_shlibpath_var=unsupported
9313 if test "$lt_cv_ld_force_load" = "yes"; then
9314 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\"`'
9315 else
9316 whole_archive_flag_spec=''
9317 fi
9318 link_all_deplibs=yes
9319 allow_undefined_flag="$_lt_dar_allow_undefined"
9320 case $cc_basename in
9321 ifort*) _lt_dar_can_shared=yes ;;
9322 *) _lt_dar_can_shared=$GCC ;;
9323 esac
9324 if test "$_lt_dar_can_shared" = "yes"; then
9325 output_verbose_link_cmd=func_echo_all
9326 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9327 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9328 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}"
9329 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}"
9330
9331 else
9332 ld_shlibs=no
9333 fi
9334
9335 ;;
9336
9337 dgux*)
9338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9339 hardcode_libdir_flag_spec='-L$libdir'
9340 hardcode_shlibpath_var=no
9341 ;;
9342
9343 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9344 # support. Future versions do this automatically, but an explicit c++rt0.o
9345 # does not break anything, and helps significantly (at the cost of a little
9346 # extra space).
9347 freebsd2.2*)
9348 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9349 hardcode_libdir_flag_spec='-R$libdir'
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9355 freebsd2.*)
9356 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_direct=yes
9358 hardcode_minus_L=yes
9359 hardcode_shlibpath_var=no
9360 ;;
9361
9362 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9363 freebsd* | dragonfly*)
9364 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9365 hardcode_libdir_flag_spec='-R$libdir'
9366 hardcode_direct=yes
9367 hardcode_shlibpath_var=no
9368 ;;
9369
9370 hpux9*)
9371 if test "$GCC" = yes; then
9372 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'
9373 else
9374 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'
9375 fi
9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377 hardcode_libdir_separator=:
9378 hardcode_direct=yes
9379
9380 # hardcode_minus_L: Not really in the search PATH,
9381 # but as the default location of the library.
9382 hardcode_minus_L=yes
9383 export_dynamic_flag_spec='${wl}-E'
9384 ;;
9385
9386 hpux10*)
9387 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9388 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9389 else
9390 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9391 fi
9392 if test "$with_gnu_ld" = no; then
9393 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9394 hardcode_libdir_flag_spec_ld='+b $libdir'
9395 hardcode_libdir_separator=:
9396 hardcode_direct=yes
9397 hardcode_direct_absolute=yes
9398 export_dynamic_flag_spec='${wl}-E'
9399 # hardcode_minus_L: Not really in the search PATH,
9400 # but as the default location of the library.
9401 hardcode_minus_L=yes
9402 fi
9403 ;;
9404
9405 hpux11*)
9406 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9407 case $host_cpu in
9408 hppa*64*)
9409 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9410 ;;
9411 ia64*)
9412 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9413 ;;
9414 *)
9415 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9416 ;;
9417 esac
9418 else
9419 case $host_cpu in
9420 hppa*64*)
9421 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9422 ;;
9423 ia64*)
9424 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9425 ;;
9426 *)
9427
9428 # Older versions of the 11.00 compiler do not understand -b yet
9429 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9431 $as_echo_n "checking if $CC understands -b... " >&6; }
9432 if ${lt_cv_prog_compiler__b+:} false; then :
9433 $as_echo_n "(cached) " >&6
9434 else
9435 lt_cv_prog_compiler__b=no
9436 save_LDFLAGS="$LDFLAGS"
9437 LDFLAGS="$LDFLAGS -b"
9438 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9439 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9440 # The linker can only warn and ignore the option if not recognized
9441 # So say no if there are warnings
9442 if test -s conftest.err; then
9443 # Append any errors to the config.log.
9444 cat conftest.err 1>&5
9445 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9446 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9447 if diff conftest.exp conftest.er2 >/dev/null; then
9448 lt_cv_prog_compiler__b=yes
9449 fi
9450 else
9451 lt_cv_prog_compiler__b=yes
9452 fi
9453 fi
9454 $RM -r conftest*
9455 LDFLAGS="$save_LDFLAGS"
9456
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9459 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9460
9461 if test x"$lt_cv_prog_compiler__b" = xyes; then
9462 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9463 else
9464 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9465 fi
9466
9467 ;;
9468 esac
9469 fi
9470 if test "$with_gnu_ld" = no; then
9471 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9472 hardcode_libdir_separator=:
9473
9474 case $host_cpu in
9475 hppa*64*|ia64*)
9476 hardcode_direct=no
9477 hardcode_shlibpath_var=no
9478 ;;
9479 *)
9480 hardcode_direct=yes
9481 hardcode_direct_absolute=yes
9482 export_dynamic_flag_spec='${wl}-E'
9483
9484 # hardcode_minus_L: Not really in the search PATH,
9485 # but as the default location of the library.
9486 hardcode_minus_L=yes
9487 ;;
9488 esac
9489 fi
9490 ;;
9491
9492 irix5* | irix6* | nonstopux*)
9493 if test "$GCC" = yes; then
9494 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'
9495 # Try to use the -exported_symbol ld option, if it does not
9496 # work, assume that -exports_file does not work either and
9497 # implicitly export all symbols.
9498 save_LDFLAGS="$LDFLAGS"
9499 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9502 int foo(void) {}
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505 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'
9506
9507 fi
9508 rm -f core conftest.err conftest.$ac_objext \
9509 conftest$ac_exeext conftest.$ac_ext
9510 LDFLAGS="$save_LDFLAGS"
9511 else
9512 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'
9513 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'
9514 fi
9515 archive_cmds_need_lc='no'
9516 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9517 hardcode_libdir_separator=:
9518 inherit_rpath=yes
9519 link_all_deplibs=yes
9520 ;;
9521
9522 netbsd*)
9523 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9524 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9525 else
9526 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9527 fi
9528 hardcode_libdir_flag_spec='-R$libdir'
9529 hardcode_direct=yes
9530 hardcode_shlibpath_var=no
9531 ;;
9532
9533 newsos6)
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_direct=yes
9536 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9537 hardcode_libdir_separator=:
9538 hardcode_shlibpath_var=no
9539 ;;
9540
9541 *nto* | *qnx*)
9542 ;;
9543
9544 openbsd*)
9545 if test -f /usr/libexec/ld.so; then
9546 hardcode_direct=yes
9547 hardcode_shlibpath_var=no
9548 hardcode_direct_absolute=yes
9549 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9550 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9551 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9552 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9553 export_dynamic_flag_spec='${wl}-E'
9554 else
9555 case $host_os in
9556 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9558 hardcode_libdir_flag_spec='-R$libdir'
9559 ;;
9560 *)
9561 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9562 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9563 ;;
9564 esac
9565 fi
9566 else
9567 ld_shlibs=no
9568 fi
9569 ;;
9570
9571 os2*)
9572 hardcode_libdir_flag_spec='-L$libdir'
9573 hardcode_minus_L=yes
9574 allow_undefined_flag=unsupported
9575 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'
9576 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9577 ;;
9578
9579 osf3*)
9580 if test "$GCC" = yes; then
9581 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9582 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'
9583 else
9584 allow_undefined_flag=' -expect_unresolved \*'
9585 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'
9586 fi
9587 archive_cmds_need_lc='no'
9588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9589 hardcode_libdir_separator=:
9590 ;;
9591
9592 osf4* | osf5*) # as osf3* with the addition of -msym flag
9593 if test "$GCC" = yes; then
9594 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9595 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'
9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9597 else
9598 allow_undefined_flag=' -expect_unresolved \*'
9599 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'
9600 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~
9601 $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'
9602
9603 # Both c and cxx compiler support -rpath directly
9604 hardcode_libdir_flag_spec='-rpath $libdir'
9605 fi
9606 archive_cmds_need_lc='no'
9607 hardcode_libdir_separator=:
9608 ;;
9609
9610 solaris*)
9611 no_undefined_flag=' -z defs'
9612 if test "$GCC" = yes; then
9613 wlarc='${wl}'
9614 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9615 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9616 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9617 else
9618 case `$CC -V 2>&1` in
9619 *"Compilers 5.0"*)
9620 wlarc=''
9621 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9624 ;;
9625 *)
9626 wlarc='${wl}'
9627 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9628 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9629 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9630 ;;
9631 esac
9632 fi
9633 hardcode_libdir_flag_spec='-R$libdir'
9634 hardcode_shlibpath_var=no
9635 case $host_os in
9636 solaris2.[0-5] | solaris2.[0-5].*) ;;
9637 *)
9638 # The compiler driver will combine and reorder linker options,
9639 # but understands `-z linker_flag'. GCC discards it without `$wl',
9640 # but is careful enough not to reorder.
9641 # Supported since Solaris 2.6 (maybe 2.5.1?)
9642 if test "$GCC" = yes; then
9643 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9644 else
9645 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9646 fi
9647 ;;
9648 esac
9649 link_all_deplibs=yes
9650 ;;
9651
9652 sunos4*)
9653 if test "x$host_vendor" = xsequent; then
9654 # Use $CC to link under sequent, because it throws in some extra .o
9655 # files that make .init and .fini sections work.
9656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9657 else
9658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9659 fi
9660 hardcode_libdir_flag_spec='-L$libdir'
9661 hardcode_direct=yes
9662 hardcode_minus_L=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 sysv4)
9667 case $host_vendor in
9668 sni)
9669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9670 hardcode_direct=yes # is this really true???
9671 ;;
9672 siemens)
9673 ## LD is ld it makes a PLAMLIB
9674 ## CC just makes a GrossModule.
9675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9676 reload_cmds='$CC -r -o $output$reload_objs'
9677 hardcode_direct=no
9678 ;;
9679 motorola)
9680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9682 ;;
9683 esac
9684 runpath_var='LD_RUN_PATH'
9685 hardcode_shlibpath_var=no
9686 ;;
9687
9688 sysv4.3*)
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_shlibpath_var=no
9691 export_dynamic_flag_spec='-Bexport'
9692 ;;
9693
9694 sysv4*MP*)
9695 if test -d /usr/nec; then
9696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_shlibpath_var=no
9698 runpath_var=LD_RUN_PATH
9699 hardcode_runpath_var=yes
9700 ld_shlibs=yes
9701 fi
9702 ;;
9703
9704 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9705 no_undefined_flag='${wl}-z,text'
9706 archive_cmds_need_lc=no
9707 hardcode_shlibpath_var=no
9708 runpath_var='LD_RUN_PATH'
9709
9710 if test "$GCC" = yes; then
9711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9713 else
9714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9716 fi
9717 ;;
9718
9719 sysv5* | sco3.2v5* | sco5v6*)
9720 # Note: We can NOT use -z defs as we might desire, because we do not
9721 # link with -lc, and that would cause any symbols used from libc to
9722 # always be unresolved, which means just about no library would
9723 # ever link correctly. If we're not using GNU ld we use -z text
9724 # though, which does catch some bad symbols but isn't as heavy-handed
9725 # as -z defs.
9726 no_undefined_flag='${wl}-z,text'
9727 allow_undefined_flag='${wl}-z,nodefs'
9728 archive_cmds_need_lc=no
9729 hardcode_shlibpath_var=no
9730 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9731 hardcode_libdir_separator=':'
9732 link_all_deplibs=yes
9733 export_dynamic_flag_spec='${wl}-Bexport'
9734 runpath_var='LD_RUN_PATH'
9735
9736 if test "$GCC" = yes; then
9737 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9738 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9739 else
9740 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9741 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9742 fi
9743 ;;
9744
9745 uts4*)
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_shlibpath_var=no
9749 ;;
9750
9751 *)
9752 ld_shlibs=no
9753 ;;
9754 esac
9755
9756 if test x$host_vendor = xsni; then
9757 case $host in
9758 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9759 export_dynamic_flag_spec='${wl}-Blargedynsym'
9760 ;;
9761 esac
9762 fi
9763 fi
9764
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9766 $as_echo "$ld_shlibs" >&6; }
9767 test "$ld_shlibs" = no && can_build_shared=no
9768
9769 with_gnu_ld=$with_gnu_ld
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785 #
9786 # Do we need to explicitly link libc?
9787 #
9788 case "x$archive_cmds_need_lc" in
9789 x|xyes)
9790 # Assume -lc should be added
9791 archive_cmds_need_lc=yes
9792
9793 if test "$enable_shared" = yes && test "$GCC" = yes; then
9794 case $archive_cmds in
9795 *'~'*)
9796 # FIXME: we may have to deal with multi-command sequences.
9797 ;;
9798 '$CC '*)
9799 # Test whether the compiler implicitly links with -lc since on some
9800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9801 # to ld, don't add -lc before -lgcc.
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9803 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9804 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806 else
9807 $RM conftest*
9808 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9809
9810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9811 (eval $ac_compile) 2>&5
9812 ac_status=$?
9813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9814 test $ac_status = 0; } 2>conftest.err; then
9815 soname=conftest
9816 lib=conftest
9817 libobjs=conftest.$ac_objext
9818 deplibs=
9819 wl=$lt_prog_compiler_wl
9820 pic_flag=$lt_prog_compiler_pic
9821 compiler_flags=-v
9822 linker_flags=-v
9823 verstring=
9824 output_objdir=.
9825 libname=conftest
9826 lt_save_allow_undefined_flag=$allow_undefined_flag
9827 allow_undefined_flag=
9828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9829 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9830 ac_status=$?
9831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9832 test $ac_status = 0; }
9833 then
9834 lt_cv_archive_cmds_need_lc=no
9835 else
9836 lt_cv_archive_cmds_need_lc=yes
9837 fi
9838 allow_undefined_flag=$lt_save_allow_undefined_flag
9839 else
9840 cat conftest.err 1>&5
9841 fi
9842 $RM conftest*
9843
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9846 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9847 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9848 ;;
9849 esac
9850 fi
9851 ;;
9852 esac
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10011 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10012
10013 if test "$GCC" = yes; then
10014 case $host_os in
10015 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10016 *) lt_awk_arg="/^libraries:/" ;;
10017 esac
10018 case $host_os in
10019 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10020 *) lt_sed_strip_eq="s,=/,/,g" ;;
10021 esac
10022 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10023 case $lt_search_path_spec in
10024 *\;*)
10025 # if the path contains ";" then we assume it to be the separator
10026 # otherwise default to the standard path separator (i.e. ":") - it is
10027 # assumed that no part of a normal pathname contains ";" but that should
10028 # okay in the real world where ";" in dirpaths is itself problematic.
10029 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10030 ;;
10031 *)
10032 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10033 ;;
10034 esac
10035 # Ok, now we have the path, separated by spaces, we can step through it
10036 # and add multilib dir if necessary.
10037 lt_tmp_lt_search_path_spec=
10038 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10039 for lt_sys_path in $lt_search_path_spec; do
10040 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10041 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10042 else
10043 test -d "$lt_sys_path" && \
10044 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10045 fi
10046 done
10047 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10048 BEGIN {RS=" "; FS="/|\n";} {
10049 lt_foo="";
10050 lt_count=0;
10051 for (lt_i = NF; lt_i > 0; lt_i--) {
10052 if ($lt_i != "" && $lt_i != ".") {
10053 if ($lt_i == "..") {
10054 lt_count++;
10055 } else {
10056 if (lt_count == 0) {
10057 lt_foo="/" $lt_i lt_foo;
10058 } else {
10059 lt_count--;
10060 }
10061 }
10062 }
10063 }
10064 if (lt_foo != "") { lt_freq[lt_foo]++; }
10065 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10066 }'`
10067 # AWK program above erroneously prepends '/' to C:/dos/paths
10068 # for these hosts.
10069 case $host_os in
10070 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10071 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10072 esac
10073 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10074 else
10075 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10076 fi
10077 library_names_spec=
10078 libname_spec='lib$name'
10079 soname_spec=
10080 shrext_cmds=".so"
10081 postinstall_cmds=
10082 postuninstall_cmds=
10083 finish_cmds=
10084 finish_eval=
10085 shlibpath_var=
10086 shlibpath_overrides_runpath=unknown
10087 version_type=none
10088 dynamic_linker="$host_os ld.so"
10089 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10090 need_lib_prefix=unknown
10091 hardcode_into_libs=no
10092
10093 # when you set need_version to no, make sure it does not cause -set_version
10094 # flags to be left without arguments
10095 need_version=unknown
10096
10097 case $host_os in
10098 aix3*)
10099 version_type=linux
10100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10101 shlibpath_var=LIBPATH
10102
10103 # AIX 3 has no versioning support, so we append a major version to the name.
10104 soname_spec='${libname}${release}${shared_ext}$major'
10105 ;;
10106
10107 aix[4-9]*)
10108 version_type=linux
10109 need_lib_prefix=no
10110 need_version=no
10111 hardcode_into_libs=yes
10112 if test "$host_cpu" = ia64; then
10113 # AIX 5 supports IA64
10114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10115 shlibpath_var=LD_LIBRARY_PATH
10116 else
10117 # With GCC up to 2.95.x, collect2 would create an import file
10118 # for dependence libraries. The import file would start with
10119 # the line `#! .'. This would cause the generated library to
10120 # depend on `.', always an invalid library. This was fixed in
10121 # development snapshots of GCC prior to 3.0.
10122 case $host_os in
10123 aix4 | aix4.[01] | aix4.[01].*)
10124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10125 echo ' yes '
10126 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10127 :
10128 else
10129 can_build_shared=no
10130 fi
10131 ;;
10132 esac
10133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10134 # soname into executable. Probably we can add versioning support to
10135 # collect2, so additional links can be useful in future.
10136 if test "$aix_use_runtimelinking" = yes; then
10137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10138 # instead of lib<name>.a to let people know that these are not
10139 # typical AIX shared libraries.
10140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 else
10142 # We preserve .a as extension for shared libraries through AIX4.2
10143 # and later when we are not doing run time linking.
10144 library_names_spec='${libname}${release}.a $libname.a'
10145 soname_spec='${libname}${release}${shared_ext}$major'
10146 fi
10147 shlibpath_var=LIBPATH
10148 fi
10149 ;;
10150
10151 amigaos*)
10152 case $host_cpu in
10153 powerpc)
10154 # Since July 2007 AmigaOS4 officially supports .so libraries.
10155 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 ;;
10158 m68k)
10159 library_names_spec='$libname.ixlibrary $libname.a'
10160 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10161 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'
10162 ;;
10163 esac
10164 ;;
10165
10166 beos*)
10167 library_names_spec='${libname}${shared_ext}'
10168 dynamic_linker="$host_os ld.so"
10169 shlibpath_var=LIBRARY_PATH
10170 ;;
10171
10172 bsdi[45]*)
10173 version_type=linux
10174 need_version=no
10175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176 soname_spec='${libname}${release}${shared_ext}$major'
10177 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10178 shlibpath_var=LD_LIBRARY_PATH
10179 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10180 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10181 # the default ld.so.conf also contains /usr/contrib/lib and
10182 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10183 # libtool to hard-code these into programs
10184 ;;
10185
10186 cygwin* | mingw* | pw32* | cegcc*)
10187 version_type=windows
10188 shrext_cmds=".dll"
10189 need_version=no
10190 need_lib_prefix=no
10191
10192 case $GCC,$host_os in
10193 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10194 library_names_spec='$libname.dll.a'
10195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10196 postinstall_cmds='base_file=`basename \${file}`~
10197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10198 dldir=$destdir/`dirname \$dlpath`~
10199 test -d \$dldir || mkdir -p \$dldir~
10200 $install_prog $dir/$dlname \$dldir/$dlname~
10201 chmod a+x \$dldir/$dlname~
10202 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10203 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10204 fi'
10205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10206 dlpath=$dir/\$dldll~
10207 $RM \$dlpath'
10208 shlibpath_overrides_runpath=yes
10209
10210 case $host_os in
10211 cygwin*)
10212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10214
10215 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10216 ;;
10217 mingw* | cegcc*)
10218 # MinGW DLLs use traditional 'lib' prefix
10219 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10220 ;;
10221 pw32*)
10222 # pw32 DLLs use 'pw' prefix rather than 'lib'
10223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10224 ;;
10225 esac
10226 ;;
10227
10228 *)
10229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10230 ;;
10231 esac
10232 dynamic_linker='Win32 ld.exe'
10233 # FIXME: first we should search . and the directory the executable is in
10234 shlibpath_var=PATH
10235 ;;
10236
10237 darwin* | rhapsody*)
10238 dynamic_linker="$host_os dyld"
10239 version_type=darwin
10240 need_lib_prefix=no
10241 need_version=no
10242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10243 soname_spec='${libname}${release}${major}$shared_ext'
10244 shlibpath_overrides_runpath=yes
10245 shlibpath_var=DYLD_LIBRARY_PATH
10246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10247
10248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10250 ;;
10251
10252 dgux*)
10253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 shlibpath_var=LD_LIBRARY_PATH
10259 ;;
10260
10261 freebsd* | dragonfly*)
10262 # DragonFly does not have aout. When/if they implement a new
10263 # versioning mechanism, adjust this.
10264 if test -x /usr/bin/objformat; then
10265 objformat=`/usr/bin/objformat`
10266 else
10267 case $host_os in
10268 freebsd[23].*) objformat=aout ;;
10269 *) objformat=elf ;;
10270 esac
10271 fi
10272 version_type=freebsd-$objformat
10273 case $version_type in
10274 freebsd-elf*)
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10276 need_version=no
10277 need_lib_prefix=no
10278 ;;
10279 freebsd-*)
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10281 need_version=yes
10282 ;;
10283 esac
10284 shlibpath_var=LD_LIBRARY_PATH
10285 case $host_os in
10286 freebsd2.*)
10287 shlibpath_overrides_runpath=yes
10288 ;;
10289 freebsd3.[01]* | freebsdelf3.[01]*)
10290 shlibpath_overrides_runpath=yes
10291 hardcode_into_libs=yes
10292 ;;
10293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10295 shlibpath_overrides_runpath=no
10296 hardcode_into_libs=yes
10297 ;;
10298 *) # from 4.6 on, and DragonFly
10299 shlibpath_overrides_runpath=yes
10300 hardcode_into_libs=yes
10301 ;;
10302 esac
10303 ;;
10304
10305 haiku*)
10306 version_type=linux
10307 need_lib_prefix=no
10308 need_version=no
10309 dynamic_linker="$host_os runtime_loader"
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10311 soname_spec='${libname}${release}${shared_ext}$major'
10312 shlibpath_var=LIBRARY_PATH
10313 shlibpath_overrides_runpath=yes
10314 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10315 hardcode_into_libs=yes
10316 ;;
10317
10318 hpux9* | hpux10* | hpux11*)
10319 # Give a soname corresponding to the major version so that dld.sl refuses to
10320 # link against other versions.
10321 version_type=sunos
10322 need_lib_prefix=no
10323 need_version=no
10324 case $host_cpu in
10325 ia64*)
10326 shrext_cmds='.so'
10327 hardcode_into_libs=yes
10328 dynamic_linker="$host_os dld.so"
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10332 soname_spec='${libname}${release}${shared_ext}$major'
10333 if test "X$HPUX_IA64_MODE" = X32; then
10334 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10335 else
10336 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10337 fi
10338 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10339 ;;
10340 hppa*64*)
10341 shrext_cmds='.sl'
10342 hardcode_into_libs=yes
10343 dynamic_linker="$host_os dld.sl"
10344 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10345 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10347 soname_spec='${libname}${release}${shared_ext}$major'
10348 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10350 ;;
10351 *)
10352 shrext_cmds='.sl'
10353 dynamic_linker="$host_os dld.sl"
10354 shlibpath_var=SHLIB_PATH
10355 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 soname_spec='${libname}${release}${shared_ext}$major'
10358 ;;
10359 esac
10360 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10361 postinstall_cmds='chmod 555 $lib'
10362 # or fails outright, so override atomically:
10363 install_override_mode=555
10364 ;;
10365
10366 interix[3-9]*)
10367 version_type=linux
10368 need_lib_prefix=no
10369 need_version=no
10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10371 soname_spec='${libname}${release}${shared_ext}$major'
10372 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10373 shlibpath_var=LD_LIBRARY_PATH
10374 shlibpath_overrides_runpath=no
10375 hardcode_into_libs=yes
10376 ;;
10377
10378 irix5* | irix6* | nonstopux*)
10379 case $host_os in
10380 nonstopux*) version_type=nonstopux ;;
10381 *)
10382 if test "$lt_cv_prog_gnu_ld" = yes; then
10383 version_type=linux
10384 else
10385 version_type=irix
10386 fi ;;
10387 esac
10388 need_lib_prefix=no
10389 need_version=no
10390 soname_spec='${libname}${release}${shared_ext}$major'
10391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10392 case $host_os in
10393 irix5* | nonstopux*)
10394 libsuff= shlibsuff=
10395 ;;
10396 *)
10397 case $LD in # libtool.m4 will add one of these switches to LD
10398 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10399 libsuff= shlibsuff= libmagic=32-bit;;
10400 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10401 libsuff=32 shlibsuff=N32 libmagic=N32;;
10402 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10403 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10404 *) libsuff= shlibsuff= libmagic=never-match;;
10405 esac
10406 ;;
10407 esac
10408 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10409 shlibpath_overrides_runpath=no
10410 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10411 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10412 hardcode_into_libs=yes
10413 ;;
10414
10415 # No shared lib support for Linux oldld, aout, or coff.
10416 linux*oldld* | linux*aout* | linux*coff*)
10417 dynamic_linker=no
10418 ;;
10419
10420 # This must be Linux ELF.
10421 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10422 version_type=linux
10423 need_lib_prefix=no
10424 need_version=no
10425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10427 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10428 shlibpath_var=LD_LIBRARY_PATH
10429 shlibpath_overrides_runpath=no
10430
10431 # Some binutils ld are patched to set DT_RUNPATH
10432 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 lt_cv_shlibpath_overrides_runpath=no
10436 save_LDFLAGS=$LDFLAGS
10437 save_libdir=$libdir
10438 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10439 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442
10443 int
10444 main ()
10445 {
10446
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 if ac_fn_c_try_link "$LINENO"; then :
10452 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10453 lt_cv_shlibpath_overrides_runpath=yes
10454 fi
10455 fi
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 LDFLAGS=$save_LDFLAGS
10459 libdir=$save_libdir
10460
10461 fi
10462
10463 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10464
10465 # This implies no fast_install, which is unacceptable.
10466 # Some rework will be needed to allow for fast_install
10467 # before this can be enabled.
10468 hardcode_into_libs=yes
10469
10470 # Append ld.so.conf contents to the search path
10471 if test -f /etc/ld.so.conf; then
10472 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' ' '`
10473 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10474 fi
10475
10476 # We used to test for /lib/ld.so.1 and disable shared libraries on
10477 # powerpc, because MkLinux only supported shared libraries with the
10478 # GNU dynamic linker. Since this was broken with cross compilers,
10479 # most powerpc-linux boxes support dynamic linking these days and
10480 # people can always --disable-shared, the test was removed, and we
10481 # assume the GNU/Linux dynamic linker is in use.
10482 dynamic_linker='GNU/Linux ld.so'
10483 ;;
10484
10485 netbsd*)
10486 version_type=sunos
10487 need_lib_prefix=no
10488 need_version=no
10489 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10492 dynamic_linker='NetBSD (a.out) ld.so'
10493 else
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 dynamic_linker='NetBSD ld.elf_so'
10497 fi
10498 shlibpath_var=LD_LIBRARY_PATH
10499 shlibpath_overrides_runpath=yes
10500 hardcode_into_libs=yes
10501 ;;
10502
10503 newsos6)
10504 version_type=linux
10505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10506 shlibpath_var=LD_LIBRARY_PATH
10507 shlibpath_overrides_runpath=yes
10508 ;;
10509
10510 *nto* | *qnx*)
10511 version_type=qnx
10512 need_lib_prefix=no
10513 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
10516 shlibpath_var=LD_LIBRARY_PATH
10517 shlibpath_overrides_runpath=no
10518 hardcode_into_libs=yes
10519 dynamic_linker='ldqnx.so'
10520 ;;
10521
10522 openbsd*)
10523 version_type=sunos
10524 sys_lib_dlsearch_path_spec="/usr/lib"
10525 need_lib_prefix=no
10526 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10527 case $host_os in
10528 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10529 *) need_version=no ;;
10530 esac
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10532 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10535 case $host_os in
10536 openbsd2.[89] | openbsd2.[89].*)
10537 shlibpath_overrides_runpath=no
10538 ;;
10539 *)
10540 shlibpath_overrides_runpath=yes
10541 ;;
10542 esac
10543 else
10544 shlibpath_overrides_runpath=yes
10545 fi
10546 ;;
10547
10548 os2*)
10549 libname_spec='$name'
10550 shrext_cmds=".dll"
10551 need_lib_prefix=no
10552 library_names_spec='$libname${shared_ext} $libname.a'
10553 dynamic_linker='OS/2 ld.exe'
10554 shlibpath_var=LIBPATH
10555 ;;
10556
10557 osf3* | osf4* | osf5*)
10558 version_type=osf
10559 need_lib_prefix=no
10560 need_version=no
10561 soname_spec='${libname}${release}${shared_ext}$major'
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 shlibpath_var=LD_LIBRARY_PATH
10564 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10565 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10566 ;;
10567
10568 rdos*)
10569 dynamic_linker=no
10570 ;;
10571
10572 solaris*)
10573 version_type=linux
10574 need_lib_prefix=no
10575 need_version=no
10576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10577 soname_spec='${libname}${release}${shared_ext}$major'
10578 shlibpath_var=LD_LIBRARY_PATH
10579 shlibpath_overrides_runpath=yes
10580 hardcode_into_libs=yes
10581 # ldd complains unless libraries are executable
10582 postinstall_cmds='chmod +x $lib'
10583 ;;
10584
10585 sunos4*)
10586 version_type=sunos
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10589 shlibpath_var=LD_LIBRARY_PATH
10590 shlibpath_overrides_runpath=yes
10591 if test "$with_gnu_ld" = yes; then
10592 need_lib_prefix=no
10593 fi
10594 need_version=yes
10595 ;;
10596
10597 sysv4 | sysv4.3*)
10598 version_type=linux
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600 soname_spec='${libname}${release}${shared_ext}$major'
10601 shlibpath_var=LD_LIBRARY_PATH
10602 case $host_vendor in
10603 sni)
10604 shlibpath_overrides_runpath=no
10605 need_lib_prefix=no
10606 runpath_var=LD_RUN_PATH
10607 ;;
10608 siemens)
10609 need_lib_prefix=no
10610 ;;
10611 motorola)
10612 need_lib_prefix=no
10613 need_version=no
10614 shlibpath_overrides_runpath=no
10615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10616 ;;
10617 esac
10618 ;;
10619
10620 sysv4*MP*)
10621 if test -d /usr/nec ;then
10622 version_type=linux
10623 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10624 soname_spec='$libname${shared_ext}.$major'
10625 shlibpath_var=LD_LIBRARY_PATH
10626 fi
10627 ;;
10628
10629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10630 version_type=freebsd-elf
10631 need_lib_prefix=no
10632 need_version=no
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10634 soname_spec='${libname}${release}${shared_ext}$major'
10635 shlibpath_var=LD_LIBRARY_PATH
10636 shlibpath_overrides_runpath=yes
10637 hardcode_into_libs=yes
10638 if test "$with_gnu_ld" = yes; then
10639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10640 else
10641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10642 case $host_os in
10643 sco3.2v5*)
10644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10645 ;;
10646 esac
10647 fi
10648 sys_lib_dlsearch_path_spec='/usr/lib'
10649 ;;
10650
10651 tpf*)
10652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10653 version_type=linux
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10657 shlibpath_var=LD_LIBRARY_PATH
10658 shlibpath_overrides_runpath=no
10659 hardcode_into_libs=yes
10660 ;;
10661
10662 uts4*)
10663 version_type=linux
10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10665 soname_spec='${libname}${release}${shared_ext}$major'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 ;;
10668
10669 *)
10670 dynamic_linker=no
10671 ;;
10672 esac
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10674 $as_echo "$dynamic_linker" >&6; }
10675 test "$dynamic_linker" = no && can_build_shared=no
10676
10677 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10678 if test "$GCC" = yes; then
10679 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10680 fi
10681
10682 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10683 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10684 fi
10685 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10686 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10687 fi
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10781 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10782 hardcode_action=
10783 if test -n "$hardcode_libdir_flag_spec" ||
10784 test -n "$runpath_var" ||
10785 test "X$hardcode_automatic" = "Xyes" ; then
10786
10787 # We can hardcode non-existent directories.
10788 if test "$hardcode_direct" != no &&
10789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10790 # have to relink, otherwise we might link with an installed library
10791 # when we should be linking with a yet-to-be-installed one
10792 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10793 test "$hardcode_minus_L" != no; then
10794 # Linking always hardcodes the temporary library directory.
10795 hardcode_action=relink
10796 else
10797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10798 hardcode_action=immediate
10799 fi
10800 else
10801 # We cannot hardcode anything, or else we can only hardcode existing
10802 # directories.
10803 hardcode_action=unsupported
10804 fi
10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10806 $as_echo "$hardcode_action" >&6; }
10807
10808 if test "$hardcode_action" = relink ||
10809 test "$inherit_rpath" = yes; then
10810 # Fast installation is not supported
10811 enable_fast_install=no
10812 elif test "$shlibpath_overrides_runpath" = yes ||
10813 test "$enable_shared" = no; then
10814 # Fast installation is not necessary
10815 enable_fast_install=needless
10816 fi
10817
10818
10819
10820
10821
10822
10823 if test "x$enable_dlopen" != xyes; then
10824 enable_dlopen=unknown
10825 enable_dlopen_self=unknown
10826 enable_dlopen_self_static=unknown
10827 else
10828 lt_cv_dlopen=no
10829 lt_cv_dlopen_libs=
10830
10831 case $host_os in
10832 beos*)
10833 lt_cv_dlopen="load_add_on"
10834 lt_cv_dlopen_libs=
10835 lt_cv_dlopen_self=yes
10836 ;;
10837
10838 mingw* | pw32* | cegcc*)
10839 lt_cv_dlopen="LoadLibrary"
10840 lt_cv_dlopen_libs=
10841 ;;
10842
10843 cygwin*)
10844 lt_cv_dlopen="dlopen"
10845 lt_cv_dlopen_libs=
10846 ;;
10847
10848 darwin*)
10849 # if libdl is installed we need to link against it
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10851 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10852 if ${ac_cv_lib_dl_dlopen+:} false; then :
10853 $as_echo_n "(cached) " >&6
10854 else
10855 ac_check_lib_save_LIBS=$LIBS
10856 LIBS="-ldl $LIBS"
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859
10860 /* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863 #ifdef __cplusplus
10864 extern "C"
10865 #endif
10866 char dlopen ();
10867 int
10868 main ()
10869 {
10870 return dlopen ();
10871 ;
10872 return 0;
10873 }
10874 _ACEOF
10875 if ac_fn_c_try_link "$LINENO"; then :
10876 ac_cv_lib_dl_dlopen=yes
10877 else
10878 ac_cv_lib_dl_dlopen=no
10879 fi
10880 rm -f core conftest.err conftest.$ac_objext \
10881 conftest$ac_exeext conftest.$ac_ext
10882 LIBS=$ac_check_lib_save_LIBS
10883 fi
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10885 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10886 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10888 else
10889
10890 lt_cv_dlopen="dyld"
10891 lt_cv_dlopen_libs=
10892 lt_cv_dlopen_self=yes
10893
10894 fi
10895
10896 ;;
10897
10898 *)
10899 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10900 if test "x$ac_cv_func_shl_load" = xyes; then :
10901 lt_cv_dlopen="shl_load"
10902 else
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10904 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10905 if ${ac_cv_lib_dld_shl_load+:} false; then :
10906 $as_echo_n "(cached) " >&6
10907 else
10908 ac_check_lib_save_LIBS=$LIBS
10909 LIBS="-ldld $LIBS"
10910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912
10913 /* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916 #ifdef __cplusplus
10917 extern "C"
10918 #endif
10919 char shl_load ();
10920 int
10921 main ()
10922 {
10923 return shl_load ();
10924 ;
10925 return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_link "$LINENO"; then :
10929 ac_cv_lib_dld_shl_load=yes
10930 else
10931 ac_cv_lib_dld_shl_load=no
10932 fi
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10935 LIBS=$ac_check_lib_save_LIBS
10936 fi
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10938 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10939 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10940 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10941 else
10942 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10943 if test "x$ac_cv_func_dlopen" = xyes; then :
10944 lt_cv_dlopen="dlopen"
10945 else
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10947 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10948 if ${ac_cv_lib_dl_dlopen+:} false; then :
10949 $as_echo_n "(cached) " >&6
10950 else
10951 ac_check_lib_save_LIBS=$LIBS
10952 LIBS="-ldl $LIBS"
10953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955
10956 /* Override any GCC internal prototype to avoid an error.
10957 Use char because int might match the return type of a GCC
10958 builtin and then its argument prototype would still apply. */
10959 #ifdef __cplusplus
10960 extern "C"
10961 #endif
10962 char dlopen ();
10963 int
10964 main ()
10965 {
10966 return dlopen ();
10967 ;
10968 return 0;
10969 }
10970 _ACEOF
10971 if ac_fn_c_try_link "$LINENO"; then :
10972 ac_cv_lib_dl_dlopen=yes
10973 else
10974 ac_cv_lib_dl_dlopen=no
10975 fi
10976 rm -f core conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978 LIBS=$ac_check_lib_save_LIBS
10979 fi
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10981 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10982 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10983 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10984 else
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10986 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10987 if ${ac_cv_lib_svld_dlopen+:} false; then :
10988 $as_echo_n "(cached) " >&6
10989 else
10990 ac_check_lib_save_LIBS=$LIBS
10991 LIBS="-lsvld $LIBS"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993 /* end confdefs.h. */
10994
10995 /* Override any GCC internal prototype to avoid an error.
10996 Use char because int might match the return type of a GCC
10997 builtin and then its argument prototype would still apply. */
10998 #ifdef __cplusplus
10999 extern "C"
11000 #endif
11001 char dlopen ();
11002 int
11003 main ()
11004 {
11005 return dlopen ();
11006 ;
11007 return 0;
11008 }
11009 _ACEOF
11010 if ac_fn_c_try_link "$LINENO"; then :
11011 ac_cv_lib_svld_dlopen=yes
11012 else
11013 ac_cv_lib_svld_dlopen=no
11014 fi
11015 rm -f core conftest.err conftest.$ac_objext \
11016 conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11020 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11021 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11022 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11023 else
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11025 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11026 if ${ac_cv_lib_dld_dld_link+:} false; then :
11027 $as_echo_n "(cached) " >&6
11028 else
11029 ac_check_lib_save_LIBS=$LIBS
11030 LIBS="-ldld $LIBS"
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char dld_link ();
11041 int
11042 main ()
11043 {
11044 return dld_link ();
11045 ;
11046 return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050 ac_cv_lib_dld_dld_link=yes
11051 else
11052 ac_cv_lib_dld_dld_link=no
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11057 fi
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11059 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11060 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11061 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073
11074 fi
11075
11076
11077 fi
11078
11079 ;;
11080 esac
11081
11082 if test "x$lt_cv_dlopen" != xno; then
11083 enable_dlopen=yes
11084 else
11085 enable_dlopen=no
11086 fi
11087
11088 case $lt_cv_dlopen in
11089 dlopen)
11090 save_CPPFLAGS="$CPPFLAGS"
11091 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11092
11093 save_LDFLAGS="$LDFLAGS"
11094 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11095
11096 save_LIBS="$LIBS"
11097 LIBS="$lt_cv_dlopen_libs $LIBS"
11098
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11100 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11101 if ${lt_cv_dlopen_self+:} false; then :
11102 $as_echo_n "(cached) " >&6
11103 else
11104 if test "$cross_compiling" = yes; then :
11105 lt_cv_dlopen_self=cross
11106 else
11107 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11108 lt_status=$lt_dlunknown
11109 cat > conftest.$ac_ext <<_LT_EOF
11110 #line 11109 "configure"
11111 #include "confdefs.h"
11112
11113 #if HAVE_DLFCN_H
11114 #include <dlfcn.h>
11115 #endif
11116
11117 #include <stdio.h>
11118
11119 #ifdef RTLD_GLOBAL
11120 # define LT_DLGLOBAL RTLD_GLOBAL
11121 #else
11122 # ifdef DL_GLOBAL
11123 # define LT_DLGLOBAL DL_GLOBAL
11124 # else
11125 # define LT_DLGLOBAL 0
11126 # endif
11127 #endif
11128
11129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11130 find out it does not work in some platform. */
11131 #ifndef LT_DLLAZY_OR_NOW
11132 # ifdef RTLD_LAZY
11133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11134 # else
11135 # ifdef DL_LAZY
11136 # define LT_DLLAZY_OR_NOW DL_LAZY
11137 # else
11138 # ifdef RTLD_NOW
11139 # define LT_DLLAZY_OR_NOW RTLD_NOW
11140 # else
11141 # ifdef DL_NOW
11142 # define LT_DLLAZY_OR_NOW DL_NOW
11143 # else
11144 # define LT_DLLAZY_OR_NOW 0
11145 # endif
11146 # endif
11147 # endif
11148 # endif
11149 #endif
11150
11151 /* When -fvisbility=hidden is used, assume the code has been annotated
11152 correspondingly for the symbols needed. */
11153 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11154 void fnord () __attribute__((visibility("default")));
11155 #endif
11156
11157 void fnord () { int i=42; }
11158 int main ()
11159 {
11160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11161 int status = $lt_dlunknown;
11162
11163 if (self)
11164 {
11165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11166 else
11167 {
11168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11169 else puts (dlerror ());
11170 }
11171 /* dlclose (self); */
11172 }
11173 else
11174 puts (dlerror ());
11175
11176 return status;
11177 }
11178 _LT_EOF
11179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11180 (eval $ac_link) 2>&5
11181 ac_status=$?
11182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11183 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11184 (./conftest; exit; ) >&5 2>/dev/null
11185 lt_status=$?
11186 case x$lt_status in
11187 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11188 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11189 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11190 esac
11191 else :
11192 # compilation failed
11193 lt_cv_dlopen_self=no
11194 fi
11195 fi
11196 rm -fr conftest*
11197
11198
11199 fi
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11201 $as_echo "$lt_cv_dlopen_self" >&6; }
11202
11203 if test "x$lt_cv_dlopen_self" = xyes; then
11204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11206 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11207 if ${lt_cv_dlopen_self_static+:} false; then :
11208 $as_echo_n "(cached) " >&6
11209 else
11210 if test "$cross_compiling" = yes; then :
11211 lt_cv_dlopen_self_static=cross
11212 else
11213 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11214 lt_status=$lt_dlunknown
11215 cat > conftest.$ac_ext <<_LT_EOF
11216 #line 11215 "configure"
11217 #include "confdefs.h"
11218
11219 #if HAVE_DLFCN_H
11220 #include <dlfcn.h>
11221 #endif
11222
11223 #include <stdio.h>
11224
11225 #ifdef RTLD_GLOBAL
11226 # define LT_DLGLOBAL RTLD_GLOBAL
11227 #else
11228 # ifdef DL_GLOBAL
11229 # define LT_DLGLOBAL DL_GLOBAL
11230 # else
11231 # define LT_DLGLOBAL 0
11232 # endif
11233 #endif
11234
11235 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11236 find out it does not work in some platform. */
11237 #ifndef LT_DLLAZY_OR_NOW
11238 # ifdef RTLD_LAZY
11239 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11240 # else
11241 # ifdef DL_LAZY
11242 # define LT_DLLAZY_OR_NOW DL_LAZY
11243 # else
11244 # ifdef RTLD_NOW
11245 # define LT_DLLAZY_OR_NOW RTLD_NOW
11246 # else
11247 # ifdef DL_NOW
11248 # define LT_DLLAZY_OR_NOW DL_NOW
11249 # else
11250 # define LT_DLLAZY_OR_NOW 0
11251 # endif
11252 # endif
11253 # endif
11254 # endif
11255 #endif
11256
11257 /* When -fvisbility=hidden is used, assume the code has been annotated
11258 correspondingly for the symbols needed. */
11259 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11260 void fnord () __attribute__((visibility("default")));
11261 #endif
11262
11263 void fnord () { int i=42; }
11264 int main ()
11265 {
11266 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11267 int status = $lt_dlunknown;
11268
11269 if (self)
11270 {
11271 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11272 else
11273 {
11274 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11275 else puts (dlerror ());
11276 }
11277 /* dlclose (self); */
11278 }
11279 else
11280 puts (dlerror ());
11281
11282 return status;
11283 }
11284 _LT_EOF
11285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11286 (eval $ac_link) 2>&5
11287 ac_status=$?
11288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11289 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11290 (./conftest; exit; ) >&5 2>/dev/null
11291 lt_status=$?
11292 case x$lt_status in
11293 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11294 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11295 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11296 esac
11297 else :
11298 # compilation failed
11299 lt_cv_dlopen_self_static=no
11300 fi
11301 fi
11302 rm -fr conftest*
11303
11304
11305 fi
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11307 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11308 fi
11309
11310 CPPFLAGS="$save_CPPFLAGS"
11311 LDFLAGS="$save_LDFLAGS"
11312 LIBS="$save_LIBS"
11313 ;;
11314 esac
11315
11316 case $lt_cv_dlopen_self in
11317 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11318 *) enable_dlopen_self=unknown ;;
11319 esac
11320
11321 case $lt_cv_dlopen_self_static in
11322 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11323 *) enable_dlopen_self_static=unknown ;;
11324 esac
11325 fi
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 striplib=
11344 old_striplib=
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11346 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11347 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11348 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11349 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11352 else
11353 # FIXME - insert some real tests, host_os isn't really good enough
11354 case $host_os in
11355 darwin*)
11356 if test -n "$STRIP" ; then
11357 striplib="$STRIP -x"
11358 old_striplib="$STRIP -S"
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11360 $as_echo "yes" >&6; }
11361 else
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11363 $as_echo "no" >&6; }
11364 fi
11365 ;;
11366 *)
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11368 $as_echo "no" >&6; }
11369 ;;
11370 esac
11371 fi
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384 # Report which library types will actually be built
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11386 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11388 $as_echo "$can_build_shared" >&6; }
11389
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11391 $as_echo_n "checking whether to build shared libraries... " >&6; }
11392 test "$can_build_shared" = "no" && enable_shared=no
11393
11394 # On AIX, shared libraries and static libraries use the same namespace, and
11395 # are all built from PIC.
11396 case $host_os in
11397 aix3*)
11398 test "$enable_shared" = yes && enable_static=no
11399 if test -n "$RANLIB"; then
11400 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11401 postinstall_cmds='$RANLIB $lib'
11402 fi
11403 ;;
11404
11405 aix[4-9]*)
11406 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11407 test "$enable_shared" = yes && enable_static=no
11408 fi
11409 ;;
11410 esac
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11412 $as_echo "$enable_shared" >&6; }
11413
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11415 $as_echo_n "checking whether to build static libraries... " >&6; }
11416 # Make sure either enable_shared or enable_static is yes.
11417 test "$enable_shared" = yes || enable_static=yes
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11419 $as_echo "$enable_static" >&6; }
11420
11421
11422
11423
11424 fi
11425 ac_ext=c
11426 ac_cpp='$CPP $CPPFLAGS'
11427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
11431 CC="$lt_save_CC"
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 ac_config_commands="$ac_config_commands libtool"
11446
11447
11448
11449
11450 # Only expand once:
11451
11452
11453
11454 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11455
11456 # The tests for host and target for $enable_largefile require
11457 # canonical names.
11458
11459
11460
11461 # As the $enable_largefile decision depends on --enable-plugins we must set it
11462 # even in directories otherwise not depending on the $plugins option.
11463
11464
11465 maybe_plugins=no
11466 for ac_header in dlfcn.h
11467 do :
11468 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11469 "
11470 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11471 cat >>confdefs.h <<_ACEOF
11472 #define HAVE_DLFCN_H 1
11473 _ACEOF
11474 maybe_plugins=yes
11475 fi
11476
11477 done
11478
11479 for ac_header in windows.h
11480 do :
11481 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11482 "
11483 if test "x$ac_cv_header_windows_h" = xyes; then :
11484 cat >>confdefs.h <<_ACEOF
11485 #define HAVE_WINDOWS_H 1
11486 _ACEOF
11487 maybe_plugins=yes
11488 fi
11489
11490 done
11491
11492
11493 # Check whether --enable-plugins was given.
11494 if test "${enable_plugins+set}" = set; then :
11495 enableval=$enable_plugins; case "${enableval}" in
11496 no) plugins=no ;;
11497 *) plugins=yes
11498 if test "$maybe_plugins" != "yes" ; then
11499 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11500 fi ;;
11501 esac
11502 else
11503 plugins=$maybe_plugins
11504
11505 fi
11506
11507 if test "$plugins" = "yes"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11509 $as_echo_n "checking for library containing dlsym... " >&6; }
11510 if ${ac_cv_search_dlsym+:} false; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513 ac_func_search_save_LIBS=$LIBS
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char dlsym ();
11524 int
11525 main ()
11526 {
11527 return dlsym ();
11528 ;
11529 return 0;
11530 }
11531 _ACEOF
11532 for ac_lib in '' dl; do
11533 if test -z "$ac_lib"; then
11534 ac_res="none required"
11535 else
11536 ac_res=-l$ac_lib
11537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11538 fi
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 ac_cv_search_dlsym=$ac_res
11541 fi
11542 rm -f core conftest.err conftest.$ac_objext \
11543 conftest$ac_exeext
11544 if ${ac_cv_search_dlsym+:} false; then :
11545 break
11546 fi
11547 done
11548 if ${ac_cv_search_dlsym+:} false; then :
11549
11550 else
11551 ac_cv_search_dlsym=no
11552 fi
11553 rm conftest.$ac_ext
11554 LIBS=$ac_func_search_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11557 $as_echo "$ac_cv_search_dlsym" >&6; }
11558 ac_res=$ac_cv_search_dlsym
11559 if test "$ac_res" != no; then :
11560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11561
11562 fi
11563
11564 fi
11565
11566
11567 case "${host}" in
11568 sparc-*-solaris*|i?86-*-solaris*)
11569 # On native 32-bit Solaris/SPARC and x86, large-file and procfs support
11570 # were mutually exclusive until Solaris 11.3. Without procfs support,
11571 # the bfd/ elf module cannot provide certain routines such as
11572 # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user
11573 # explicitly requested large-file support through the
11574 # --enable-largefile switch, disable large-file support in favor of
11575 # procfs support.
11576 #
11577 # Check if <sys/procfs.h> is incompatible with large-file support.
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580 #define _FILE_OFFSET_BITS 64
11581 #define _STRUCTURED_PROC 1
11582 #include <sys/procfs.h>
11583 int
11584 main ()
11585 {
11586
11587 ;
11588 return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_compile "$LINENO"; then :
11592 acx_cv_procfs_lfs=yes
11593 else
11594 acx_cv_procfs_lfs=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 #
11598 # Forcefully disable large-file support only if necessary, gdb is in
11599 # tree and enabled.
11600 if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \
11601 -a -d $srcdir/../gdb -a "$enable_gdb" != no; then
11602 : ${enable_largefile="no"}
11603 if test "$plugins" = yes; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
11605 plugin support disabled; require large-file support which is incompatible with GDB." >&5
11606 $as_echo "$as_me: WARNING:
11607 plugin support disabled; require large-file support which is incompatible with GDB." >&2;}
11608 plugins=no
11609 fi
11610 fi
11611 #
11612 # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the
11613 # benefit of g++ 9+ which predefines it on Solaris.
11614 if test "$enable_largefile" = no; then
11615 LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS"
11616
11617 fi
11618 ;;
11619 esac
11620
11621 # Check whether --enable-largefile was given.
11622 if test "${enable_largefile+set}" = set; then :
11623 enableval=$enable_largefile;
11624 fi
11625
11626 if test "$enable_largefile" != no; then
11627
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11629 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11630 if ${ac_cv_sys_largefile_CC+:} false; then :
11631 $as_echo_n "(cached) " >&6
11632 else
11633 ac_cv_sys_largefile_CC=no
11634 if test "$GCC" != yes; then
11635 ac_save_CC=$CC
11636 while :; do
11637 # IRIX 6.2 and later do not support large files by default,
11638 # so use the C compiler's -n32 option if that helps.
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11641 #include <sys/types.h>
11642 /* Check that off_t can represent 2**63 - 1 correctly.
11643 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11644 since some C++ compilers masquerading as C compilers
11645 incorrectly reject 9223372036854775807. */
11646 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11647 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11648 && LARGE_OFF_T % 2147483647 == 1)
11649 ? 1 : -1];
11650 int
11651 main ()
11652 {
11653
11654 ;
11655 return 0;
11656 }
11657 _ACEOF
11658 if ac_fn_c_try_compile "$LINENO"; then :
11659 break
11660 fi
11661 rm -f core conftest.err conftest.$ac_objext
11662 CC="$CC -n32"
11663 if ac_fn_c_try_compile "$LINENO"; then :
11664 ac_cv_sys_largefile_CC=' -n32'; break
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext
11667 break
11668 done
11669 CC=$ac_save_CC
11670 rm -f conftest.$ac_ext
11671 fi
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11674 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11675 if test "$ac_cv_sys_largefile_CC" != no; then
11676 CC=$CC$ac_cv_sys_largefile_CC
11677 fi
11678
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11680 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11681 if ${ac_cv_sys_file_offset_bits+:} false; then :
11682 $as_echo_n "(cached) " >&6
11683 else
11684 while :; do
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686 /* end confdefs.h. */
11687 #include <sys/types.h>
11688 /* Check that off_t can represent 2**63 - 1 correctly.
11689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11690 since some C++ compilers masquerading as C compilers
11691 incorrectly reject 9223372036854775807. */
11692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11694 && LARGE_OFF_T % 2147483647 == 1)
11695 ? 1 : -1];
11696 int
11697 main ()
11698 {
11699
11700 ;
11701 return 0;
11702 }
11703 _ACEOF
11704 if ac_fn_c_try_compile "$LINENO"; then :
11705 ac_cv_sys_file_offset_bits=no; break
11706 fi
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11709 /* end confdefs.h. */
11710 #define _FILE_OFFSET_BITS 64
11711 #include <sys/types.h>
11712 /* Check that off_t can represent 2**63 - 1 correctly.
11713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11714 since some C++ compilers masquerading as C compilers
11715 incorrectly reject 9223372036854775807. */
11716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11718 && LARGE_OFF_T % 2147483647 == 1)
11719 ? 1 : -1];
11720 int
11721 main ()
11722 {
11723
11724 ;
11725 return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_compile "$LINENO"; then :
11729 ac_cv_sys_file_offset_bits=64; break
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 ac_cv_sys_file_offset_bits=unknown
11733 break
11734 done
11735 fi
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11737 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11738 case $ac_cv_sys_file_offset_bits in #(
11739 no | unknown) ;;
11740 *)
11741 cat >>confdefs.h <<_ACEOF
11742 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11743 _ACEOF
11744 ;;
11745 esac
11746 rm -rf conftest*
11747 if test $ac_cv_sys_file_offset_bits = unknown; then
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11749 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11750 if ${ac_cv_sys_large_files+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 while :; do
11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 #include <sys/types.h>
11757 /* Check that off_t can represent 2**63 - 1 correctly.
11758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11759 since some C++ compilers masquerading as C compilers
11760 incorrectly reject 9223372036854775807. */
11761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11763 && LARGE_OFF_T % 2147483647 == 1)
11764 ? 1 : -1];
11765 int
11766 main ()
11767 {
11768
11769 ;
11770 return 0;
11771 }
11772 _ACEOF
11773 if ac_fn_c_try_compile "$LINENO"; then :
11774 ac_cv_sys_large_files=no; break
11775 fi
11776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779 #define _LARGE_FILES 1
11780 #include <sys/types.h>
11781 /* Check that off_t can represent 2**63 - 1 correctly.
11782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11783 since some C++ compilers masquerading as C compilers
11784 incorrectly reject 9223372036854775807. */
11785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11787 && LARGE_OFF_T % 2147483647 == 1)
11788 ? 1 : -1];
11789 int
11790 main ()
11791 {
11792
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_compile "$LINENO"; then :
11798 ac_cv_sys_large_files=1; break
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 ac_cv_sys_large_files=unknown
11802 break
11803 done
11804 fi
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11806 $as_echo "$ac_cv_sys_large_files" >&6; }
11807 case $ac_cv_sys_large_files in #(
11808 no | unknown) ;;
11809 *)
11810 cat >>confdefs.h <<_ACEOF
11811 #define _LARGE_FILES $ac_cv_sys_large_files
11812 _ACEOF
11813 ;;
11814 esac
11815 rm -rf conftest*
11816 fi
11817
11818
11819 fi
11820
11821
11822
11823 case "${target}" in
11824 hppa*64*-*-*) ;;
11825 *-*-*aout*| i[3-7]86-*-msdos* | ns32k-*-* | pdp11-*-*)
11826 if test "$plugins" = "yes"; then
11827 if test "${enable_plugins+set}" = set; then
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5
11829 $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;}
11830 else
11831 plugins=no
11832 fi
11833 fi ;;
11834 hppa*-*-hpux* | *-*-*vms* | \
11835 powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*)
11836 if test "$plugins" = "yes"; then
11837 if test "${enable_plugins+set}" = set; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5
11839 $as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;}
11840 else
11841 plugins=no
11842 fi
11843 fi ;;
11844 esac
11845
11846 if test "$plugins" = "yes"; then
11847 PLUGINS_TRUE=
11848 PLUGINS_FALSE='#'
11849 else
11850 PLUGINS_TRUE='#'
11851 PLUGINS_FALSE=
11852 fi
11853
11854
11855 ac_checking=
11856 . ${srcdir}/development.sh
11857 test "$development" = true && ac_checking=yes
11858 # Check whether --enable-checking was given.
11859 if test "${enable_checking+set}" = set; then :
11860 enableval=$enable_checking; case "${enableval}" in
11861 no|none) ac_checking= ;;
11862 *) ac_checking=yes ;;
11863 esac
11864 fi
11865 if test x$ac_checking != x ; then
11866
11867 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
11868
11869 fi
11870
11871 # Check whether --enable-64-bit-bfd was given.
11872 if test "${enable_64_bit_bfd+set}" = set; then :
11873 enableval=$enable_64_bit_bfd; case $enableval in #(
11874 yes|no) :
11875 ;; #(
11876 *) :
11877 as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; #(
11878 *) :
11879 ;;
11880 esac
11881 else
11882 enable_64_bit_bfd=no
11883 fi
11884
11885
11886 if test "x$enable_64_bit_bfd" = "xno"; then :
11887 # The cast to long int works around a bug in the HP C Compiler
11888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11890 # This bug is HP SR number 8606223364.
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11892 $as_echo_n "checking size of void *... " >&6; }
11893 if ${ac_cv_sizeof_void_p+:} false; then :
11894 $as_echo_n "(cached) " >&6
11895 else
11896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
11897
11898 else
11899 if test "$ac_cv_type_void_p" = yes; then
11900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11902 as_fn_error 77 "cannot compute sizeof (void *)
11903 See \`config.log' for more details" "$LINENO" 5; }
11904 else
11905 ac_cv_sizeof_void_p=0
11906 fi
11907 fi
11908
11909 fi
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11911 $as_echo "$ac_cv_sizeof_void_p" >&6; }
11912
11913
11914
11915 cat >>confdefs.h <<_ACEOF
11916 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
11917 _ACEOF
11918
11919
11920 if test "x$ac_cv_sizeof_void_p" = "x8"; then :
11921 enable_64_bit_bfd=yes
11922 fi
11923
11924 fi
11925
11926 if test "x$enable_64_bit_bfd" = "xyes"; then
11927 ENABLE_BFD_64_BIT_TRUE=
11928 ENABLE_BFD_64_BIT_FALSE='#'
11929 else
11930 ENABLE_BFD_64_BIT_TRUE='#'
11931 ENABLE_BFD_64_BIT_FALSE=
11932 fi
11933
11934
11935 if test $enable_64_bit_bfd = yes ; then
11936 want64=true
11937 else
11938 want64=false
11939 fi
11940
11941 # Check whether --enable-targets was given.
11942 if test "${enable_targets+set}" = set; then :
11943 enableval=$enable_targets; case "${enableval}" in
11944 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
11945 ;;
11946 no) enable_targets= ;;
11947 *) enable_targets=$enableval ;;
11948 esac
11949 fi
11950
11951 # Check whether --enable-64_bit_archive was given.
11952 if test "${enable_64_bit_archive+set}" = set; then :
11953 enableval=$enable_64_bit_archive; case "${enableval}" in
11954 yes) want_64_bit_archive=true ;;
11955 no) want_64_bit_archive=false ;;
11956 *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
11957 esac
11958 else
11959 want_64_bit_archive=unset
11960 fi
11961
11962
11963 # Check whether --with-mmap was given.
11964 if test "${with_mmap+set}" = set; then :
11965 withval=$with_mmap; case "${withval}" in
11966 yes) want_mmap=true ;;
11967 no) want_mmap=false ;;
11968 *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
11969 esac
11970 else
11971 want_mmap=false
11972 fi
11973
11974 # Check whether --enable-secureplt was given.
11975 if test "${enable_secureplt+set}" = set; then :
11976 enableval=$enable_secureplt; case "${enableval}" in
11977 yes) use_secureplt=true ;;
11978 no) use_secureplt=false ;;
11979 *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
11980 esac
11981 else
11982 use_secureplt=false # XXX port-alpha/57511
11983 fi
11984 if test $use_secureplt = true; then
11985
11986 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
11987
11988 fi
11989
11990 # Decide if -z separate-code should be enabled in ELF linker by default.
11991 ac_default_ld_z_separate_code=unset
11992 # Check whether --enable-separate-code was given.
11993 if test "${enable_separate_code+set}" = set; then :
11994 enableval=$enable_separate_code; case "${enableval}" in
11995 yes) ac_default_ld_z_separate_code=1 ;;
11996 no) ac_default_ld_z_separate_code=0 ;;
11997 esac
11998 fi
11999
12000 # Enable -z separate-code by default for Linux/x86.
12001 case "${target}" in
12002 i[3-7]86-*-linux-* | x86_64-*-linux-*)
12003 if test ${ac_default_ld_z_separate_code} = unset; then
12004 ac_default_ld_z_separate_code=1
12005 fi
12006 ;;
12007 esac
12008 if test "${ac_default_ld_z_separate_code}" = unset; then
12009 ac_default_ld_z_separate_code=0
12010 fi
12011
12012 cat >>confdefs.h <<_ACEOF
12013 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12014 _ACEOF
12015
12016
12017 # Check whether --enable-leading-mingw64-underscores was given.
12018 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12019 enableval=$enable_leading_mingw64_underscores;
12020 fi
12021
12022 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12023
12024 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12025
12026 fi
12027
12028 DEBUGDIR=${libdir}/debug
12029
12030 # Check whether --with-separate-debug-dir was given.
12031 if test "${with_separate_debug_dir+set}" = set; then :
12032 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12033 fi
12034
12035
12036
12037
12038
12039 # Check whether --with-pkgversion was given.
12040 if test "${with_pkgversion+set}" = set; then :
12041 withval=$with_pkgversion; case "$withval" in
12042 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
12043 no) PKGVERSION= ;;
12044 *) PKGVERSION="($withval) " ;;
12045 esac
12046 else
12047 PKGVERSION="(GNU Binutils) "
12048
12049 fi
12050
12051
12052
12053
12054
12055 # Check whether --with-bugurl was given.
12056 if test "${with_bugurl+set}" = set; then :
12057 withval=$with_bugurl; case "$withval" in
12058 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
12059 no) BUGURL=
12060 ;;
12061 *) BUGURL="$withval"
12062 ;;
12063 esac
12064 else
12065 BUGURL="https://sourceware.org/bugzilla/"
12066
12067 fi
12068
12069 case ${BUGURL} in
12070 "")
12071 REPORT_BUGS_TO=
12072 REPORT_BUGS_TEXI=
12073 ;;
12074 *)
12075 REPORT_BUGS_TO="<$BUGURL>"
12076 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12077 ;;
12078 esac;
12079
12080
12081
12082
12083
12084 # Set the 'development' global.
12085 . $srcdir/../bfd/development.sh
12086
12087 # Set acp_cpp_for_build variable
12088 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12089
12090 # Default set of GCC warnings to enable.
12091 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12092 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12093
12094 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12096 /* end confdefs.h. */
12097 __GNUC__
12098 _ACEOF
12099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12100 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12101
12102 else
12103 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12104 fi
12105 rm -f conftest*
12106
12107
12108 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12110 /* end confdefs.h. */
12111 __GNUC__
12112 _ACEOF
12113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12114 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12115
12116 else
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 __clang__
12120 _ACEOF
12121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12122 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12123 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12124 fi
12125 rm -f conftest*
12126
12127 fi
12128 rm -f conftest*
12129
12130
12131 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12132 WARN_WRITE_STRINGS=""
12133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h. */
12135 __GNUC__
12136 _ACEOF
12137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12138 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12139
12140 else
12141 WARN_WRITE_STRINGS="-Wwrite-strings"
12142 fi
12143 rm -f conftest*
12144
12145
12146 # Verify CC_FOR_BUILD to be compatible with warning flags
12147
12148 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151 __GNUC__
12152 _ACEOF
12153 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12154 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
12155
12156 else
12157 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12158 fi
12159 rm -f conftest*
12160
12161
12162 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164 /* end confdefs.h. */
12165 __GNUC__
12166 _ACEOF
12167 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12168 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
12169
12170 else
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12173 __clang__
12174 _ACEOF
12175 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12176 $EGREP "^__clang__$" >/dev/null 2>&1; then :
12177 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12178 fi
12179 rm -f conftest*
12180
12181 fi
12182 rm -f conftest*
12183
12184
12185 # Check whether --enable-werror was given.
12186 if test "${enable_werror+set}" = set; then :
12187 enableval=$enable_werror; case "${enableval}" in
12188 yes | y) ERROR_ON_WARNING="yes" ;;
12189 no | n) ERROR_ON_WARNING="no" ;;
12190 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12191 esac
12192 fi
12193
12194
12195 # Disable -Wformat by default when using gcc on mingw
12196 case "${host}" in
12197 *-*-mingw32*)
12198 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12199 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12200 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12201 fi
12202 ;;
12203 *) ;;
12204 esac
12205
12206 # Enable -Werror by default when using gcc. Turn it off for releases.
12207 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12208 ERROR_ON_WARNING=yes
12209 fi
12210
12211 NO_WERROR=
12212 if test "${ERROR_ON_WARNING}" = yes ; then
12213 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12214 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12215 NO_WERROR="-Wno-error"
12216 fi
12217
12218 if test "${GCC}" = yes ; then
12219 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12220 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12221 fi
12222
12223 # Check whether --enable-build-warnings was given.
12224 if test "${enable_build_warnings+set}" = set; then :
12225 enableval=$enable_build_warnings; case "${enableval}" in
12226 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12227 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12228 no) if test "${GCC}" = yes ; then
12229 WARN_CFLAGS="-w"
12230 WARN_CFLAGS_FOR_BUILD="-w"
12231 fi;;
12232 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12233 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12234 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12235 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12236 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12237 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12238 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12239 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12240 esac
12241 fi
12242
12243
12244 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12245 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12246 fi
12247
12248
12249
12250
12251
12252
12253
12254 ac_config_headers="$ac_config_headers config.h:config.in"
12255
12256
12257 # PR 14072
12258
12259
12260 if test -z "$target" ; then
12261 as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5
12262 fi
12263
12264
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12266 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12267 # Check whether --enable-maintainer-mode was given.
12268 if test "${enable_maintainer_mode+set}" = set; then :
12269 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12270 else
12271 USE_MAINTAINER_MODE=no
12272 fi
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12275 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12276 if test $USE_MAINTAINER_MODE = yes; then
12277 MAINTAINER_MODE_TRUE=
12278 MAINTAINER_MODE_FALSE='#'
12279 else
12280 MAINTAINER_MODE_TRUE='#'
12281 MAINTAINER_MODE_FALSE=
12282 fi
12283
12284 MAINT=$MAINTAINER_MODE_TRUE
12285
12286
12287 if false; then
12288 GENINSRC_NEVER_TRUE=
12289 GENINSRC_NEVER_FALSE='#'
12290 else
12291 GENINSRC_NEVER_TRUE='#'
12292 GENINSRC_NEVER_FALSE=
12293 fi
12294
12295 case ${build_alias} in
12296 "") build_noncanonical=${build} ;;
12297 *) build_noncanonical=${build_alias} ;;
12298 esac
12299
12300 case ${host_alias} in
12301 "") host_noncanonical=${build_noncanonical} ;;
12302 *) host_noncanonical=${host_alias} ;;
12303 esac
12304
12305 case ${target_alias} in
12306 "") target_noncanonical=${host_noncanonical} ;;
12307 *) target_noncanonical=${target_alias} ;;
12308 esac
12309
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12311 $as_echo_n "checking whether to install libbfd... " >&6; }
12312 # Check whether --enable-install-libbfd was given.
12313 if test "${enable_install_libbfd+set}" = set; then :
12314 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12315 else
12316 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12317 install_libbfd_p=yes
12318 else
12319 install_libbfd_p=no
12320 fi
12321 fi
12322
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12324 $as_echo "$install_libbfd_p" >&6; }
12325 if test $install_libbfd_p = yes; then
12326 INSTALL_LIBBFD_TRUE=
12327 INSTALL_LIBBFD_FALSE='#'
12328 else
12329 INSTALL_LIBBFD_TRUE='#'
12330 INSTALL_LIBBFD_FALSE=
12331 fi
12332
12333 # Need _noncanonical variables for this.
12334
12335
12336
12337
12338 # libbfd.a is a host library containing target dependent code
12339 bfdlibdir='$(libdir)'
12340 bfdincludedir='$(includedir)'
12341 if test "${host}" != "${target}"; then
12342 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12343 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12344 fi
12345
12346
12347
12348
12349
12350
12351
12352
12353 host64=false
12354 target64=false
12355 bfd_default_target_size=32
12356
12357 # host stuff:
12358
12359 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
12360 # If we haven't got the data from the intl directory,
12361 # assume NLS is disabled.
12362 USE_NLS=no
12363 LIBINTL=
12364 LIBINTL_DEP=
12365 INCINTL=
12366 XGETTEXT=
12367 GMSGFMT=
12368 POSUB=
12369
12370 if test -f ../intl/config.intl; then
12371 . ../intl/config.intl
12372 fi
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12374 $as_echo_n "checking whether NLS is requested... " >&6; }
12375 if test x"$USE_NLS" != xyes; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377 $as_echo "no" >&6; }
12378 else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381
12382 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12383
12384
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12386 $as_echo_n "checking for catalogs to be installed... " >&6; }
12387 # Look for .po and .gmo files in the source directory.
12388 CATALOGS=
12389 XLINGUAS=
12390 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12391 # If there aren't any .gmo files the shell will give us the
12392 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12393 # weeded out.
12394 case "$cat" in *\**)
12395 continue;;
12396 esac
12397 # The quadruple backslash is collapsed to a double backslash
12398 # by the backticks, then collapsed again by the double quotes,
12399 # leaving us with one backslash in the sed expression (right
12400 # before the dot that mustn't act as a wildcard).
12401 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12402 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12403 # The user is allowed to set LINGUAS to a list of languages to
12404 # install catalogs for. If it's empty that means "all of them."
12405 if test "x$LINGUAS" = x; then
12406 CATALOGS="$CATALOGS $cat"
12407 XLINGUAS="$XLINGUAS $lang"
12408 else
12409 case "$LINGUAS" in *$lang*)
12410 CATALOGS="$CATALOGS $cat"
12411 XLINGUAS="$XLINGUAS $lang"
12412 ;;
12413 esac
12414 fi
12415 done
12416 LINGUAS="$XLINGUAS"
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12418 $as_echo "$LINGUAS" >&6; }
12419
12420
12421 DATADIRNAME=share
12422
12423 INSTOBJEXT=.mo
12424
12425 GENCAT=gencat
12426
12427 CATOBJEXT=.gmo
12428
12429 fi
12430
12431 MKINSTALLDIRS=
12432 if test -n "$ac_aux_dir"; then
12433 case "$ac_aux_dir" in
12434 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12435 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12436 esac
12437 fi
12438 if test -z "$MKINSTALLDIRS"; then
12439 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12440 fi
12441
12442
12443
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12445 $as_echo_n "checking whether NLS is requested... " >&6; }
12446 # Check whether --enable-nls was given.
12447 if test "${enable_nls+set}" = set; then :
12448 enableval=$enable_nls; USE_NLS=$enableval
12449 else
12450 USE_NLS=yes
12451 fi
12452
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12454 $as_echo "$USE_NLS" >&6; }
12455
12456
12457
12458
12459
12460
12461 # Prepare PATH_SEPARATOR.
12462 # The user is always right.
12463 if test "${PATH_SEPARATOR+set}" != set; then
12464 echo "#! /bin/sh" >conf$$.sh
12465 echo "exit 0" >>conf$$.sh
12466 chmod +x conf$$.sh
12467 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12468 PATH_SEPARATOR=';'
12469 else
12470 PATH_SEPARATOR=:
12471 fi
12472 rm -f conf$$.sh
12473 fi
12474
12475 # Find out how to test for executable files. Don't use a zero-byte file,
12476 # as systems may use methods other than mode bits to determine executability.
12477 cat >conf$$.file <<_ASEOF
12478 #! /bin/sh
12479 exit 0
12480 _ASEOF
12481 chmod +x conf$$.file
12482 if test -x conf$$.file >/dev/null 2>&1; then
12483 ac_executable_p="test -x"
12484 else
12485 ac_executable_p="test -f"
12486 fi
12487 rm -f conf$$.file
12488
12489 # Extract the first word of "msgfmt", so it can be a program name with args.
12490 set dummy msgfmt; ac_word=$2
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12492 $as_echo_n "checking for $ac_word... " >&6; }
12493 if ${ac_cv_path_MSGFMT+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 case "$MSGFMT" in
12497 [\\/]* | ?:[\\/]*)
12498 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12499 ;;
12500 *)
12501 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12502 for ac_dir in $PATH; do
12503 IFS="$ac_save_IFS"
12504 test -z "$ac_dir" && ac_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12507 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12508 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12509 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12510 break 2
12511 fi
12512 fi
12513 done
12514 done
12515 IFS="$ac_save_IFS"
12516 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12517 ;;
12518 esac
12519 fi
12520 MSGFMT="$ac_cv_path_MSGFMT"
12521 if test "$MSGFMT" != ":"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12523 $as_echo "$MSGFMT" >&6; }
12524 else
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12526 $as_echo "no" >&6; }
12527 fi
12528
12529 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12530 set dummy gmsgfmt; ac_word=$2
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532 $as_echo_n "checking for $ac_word... " >&6; }
12533 if ${ac_cv_path_GMSGFMT+:} false; then :
12534 $as_echo_n "(cached) " >&6
12535 else
12536 case $GMSGFMT in
12537 [\\/]* | ?:[\\/]*)
12538 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12539 ;;
12540 *)
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12543 do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12550 break 2
12551 fi
12552 done
12553 done
12554 IFS=$as_save_IFS
12555
12556 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12557 ;;
12558 esac
12559 fi
12560 GMSGFMT=$ac_cv_path_GMSGFMT
12561 if test -n "$GMSGFMT"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12563 $as_echo "$GMSGFMT" >&6; }
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566 $as_echo "no" >&6; }
12567 fi
12568
12569
12570
12571
12572 # Prepare PATH_SEPARATOR.
12573 # The user is always right.
12574 if test "${PATH_SEPARATOR+set}" != set; then
12575 echo "#! /bin/sh" >conf$$.sh
12576 echo "exit 0" >>conf$$.sh
12577 chmod +x conf$$.sh
12578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12579 PATH_SEPARATOR=';'
12580 else
12581 PATH_SEPARATOR=:
12582 fi
12583 rm -f conf$$.sh
12584 fi
12585
12586 # Find out how to test for executable files. Don't use a zero-byte file,
12587 # as systems may use methods other than mode bits to determine executability.
12588 cat >conf$$.file <<_ASEOF
12589 #! /bin/sh
12590 exit 0
12591 _ASEOF
12592 chmod +x conf$$.file
12593 if test -x conf$$.file >/dev/null 2>&1; then
12594 ac_executable_p="test -x"
12595 else
12596 ac_executable_p="test -f"
12597 fi
12598 rm -f conf$$.file
12599
12600 # Extract the first word of "xgettext", so it can be a program name with args.
12601 set dummy xgettext; ac_word=$2
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603 $as_echo_n "checking for $ac_word... " >&6; }
12604 if ${ac_cv_path_XGETTEXT+:} false; then :
12605 $as_echo_n "(cached) " >&6
12606 else
12607 case "$XGETTEXT" in
12608 [\\/]* | ?:[\\/]*)
12609 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12610 ;;
12611 *)
12612 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12613 for ac_dir in $PATH; do
12614 IFS="$ac_save_IFS"
12615 test -z "$ac_dir" && ac_dir=.
12616 for ac_exec_ext in '' $ac_executable_extensions; do
12617 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12618 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12619 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12620 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12621 break 2
12622 fi
12623 fi
12624 done
12625 done
12626 IFS="$ac_save_IFS"
12627 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12628 ;;
12629 esac
12630 fi
12631 XGETTEXT="$ac_cv_path_XGETTEXT"
12632 if test "$XGETTEXT" != ":"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12634 $as_echo "$XGETTEXT" >&6; }
12635 else
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637 $as_echo "no" >&6; }
12638 fi
12639
12640 rm -f messages.po
12641
12642
12643 # Prepare PATH_SEPARATOR.
12644 # The user is always right.
12645 if test "${PATH_SEPARATOR+set}" != set; then
12646 echo "#! /bin/sh" >conf$$.sh
12647 echo "exit 0" >>conf$$.sh
12648 chmod +x conf$$.sh
12649 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12650 PATH_SEPARATOR=';'
12651 else
12652 PATH_SEPARATOR=:
12653 fi
12654 rm -f conf$$.sh
12655 fi
12656
12657 # Find out how to test for executable files. Don't use a zero-byte file,
12658 # as systems may use methods other than mode bits to determine executability.
12659 cat >conf$$.file <<_ASEOF
12660 #! /bin/sh
12661 exit 0
12662 _ASEOF
12663 chmod +x conf$$.file
12664 if test -x conf$$.file >/dev/null 2>&1; then
12665 ac_executable_p="test -x"
12666 else
12667 ac_executable_p="test -f"
12668 fi
12669 rm -f conf$$.file
12670
12671 # Extract the first word of "msgmerge", so it can be a program name with args.
12672 set dummy msgmerge; ac_word=$2
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12674 $as_echo_n "checking for $ac_word... " >&6; }
12675 if ${ac_cv_path_MSGMERGE+:} false; then :
12676 $as_echo_n "(cached) " >&6
12677 else
12678 case "$MSGMERGE" in
12679 [\\/]* | ?:[\\/]*)
12680 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12681 ;;
12682 *)
12683 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12684 for ac_dir in $PATH; do
12685 IFS="$ac_save_IFS"
12686 test -z "$ac_dir" && ac_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12689 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12690 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12691 break 2
12692 fi
12693 fi
12694 done
12695 done
12696 IFS="$ac_save_IFS"
12697 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12698 ;;
12699 esac
12700 fi
12701 MSGMERGE="$ac_cv_path_MSGMERGE"
12702 if test "$MSGMERGE" != ":"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12704 $as_echo "$MSGMERGE" >&6; }
12705 else
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12707 $as_echo "no" >&6; }
12708 fi
12709
12710
12711 if test "$GMSGFMT" != ":"; then
12712 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12713 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12714 : ;
12715 else
12716 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12718 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12719 GMSGFMT=":"
12720 fi
12721 fi
12722
12723 if test "$XGETTEXT" != ":"; then
12724 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12725 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12726 : ;
12727 else
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12729 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12730 XGETTEXT=":"
12731 fi
12732 rm -f messages.po
12733 fi
12734
12735 ac_config_commands="$ac_config_commands default-1"
12736
12737
12738
12739 # Permit host specific settings.
12740 . ${srcdir}/configure.host
12741
12742
12743
12744
12745 # The cast to long int works around a bug in the HP C Compiler
12746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12748 # This bug is HP SR number 8606223364.
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12750 $as_echo_n "checking size of long long... " >&6; }
12751 if ${ac_cv_sizeof_long_long+:} false; then :
12752 $as_echo_n "(cached) " >&6
12753 else
12754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12755
12756 else
12757 if test "$ac_cv_type_long_long" = yes; then
12758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12760 as_fn_error 77 "cannot compute sizeof (long long)
12761 See \`config.log' for more details" "$LINENO" 5; }
12762 else
12763 ac_cv_sizeof_long_long=0
12764 fi
12765 fi
12766
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12769 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12770
12771
12772
12773 cat >>confdefs.h <<_ACEOF
12774 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12775 _ACEOF
12776
12777
12778 # The cast to long int works around a bug in the HP C Compiler
12779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12781 # This bug is HP SR number 8606223364.
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12783 $as_echo_n "checking size of void *... " >&6; }
12784 if ${ac_cv_sizeof_void_p+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12788
12789 else
12790 if test "$ac_cv_type_void_p" = yes; then
12791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12793 as_fn_error 77 "cannot compute sizeof (void *)
12794 See \`config.log' for more details" "$LINENO" 5; }
12795 else
12796 ac_cv_sizeof_void_p=0
12797 fi
12798 fi
12799
12800 fi
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12802 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12803
12804
12805
12806 cat >>confdefs.h <<_ACEOF
12807 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12808 _ACEOF
12809
12810
12811 # The cast to long int works around a bug in the HP C Compiler
12812 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12813 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12814 # This bug is HP SR number 8606223364.
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12816 $as_echo_n "checking size of long... " >&6; }
12817 if ${ac_cv_sizeof_long+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12821
12822 else
12823 if test "$ac_cv_type_long" = yes; then
12824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12826 as_fn_error 77 "cannot compute sizeof (long)
12827 See \`config.log' for more details" "$LINENO" 5; }
12828 else
12829 ac_cv_sizeof_long=0
12830 fi
12831 fi
12832
12833 fi
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12835 $as_echo "$ac_cv_sizeof_long" >&6; }
12836
12837
12838
12839 cat >>confdefs.h <<_ACEOF
12840 #define SIZEOF_LONG $ac_cv_sizeof_long
12841 _ACEOF
12842
12843
12844 # The cast to long int works around a bug in the HP C Compiler
12845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12847 # This bug is HP SR number 8606223364.
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12849 $as_echo_n "checking size of int... " >&6; }
12850 if ${ac_cv_sizeof_int+:} false; then :
12851 $as_echo_n "(cached) " >&6
12852 else
12853 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
12854
12855 else
12856 if test "$ac_cv_type_int" = yes; then
12857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12859 as_fn_error 77 "cannot compute sizeof (int)
12860 See \`config.log' for more details" "$LINENO" 5; }
12861 else
12862 ac_cv_sizeof_int=0
12863 fi
12864 fi
12865
12866 fi
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12868 $as_echo "$ac_cv_sizeof_int" >&6; }
12869
12870
12871
12872 cat >>confdefs.h <<_ACEOF
12873 #define SIZEOF_INT $ac_cv_sizeof_int
12874 _ACEOF
12875
12876
12877
12878 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12879 host64=true
12880 fi
12881
12882 # Put a plausible default for CC_FOR_BUILD in Makefile.
12883 if test -z "$CC_FOR_BUILD"; then
12884 if test "x$cross_compiling" = "xno"; then
12885 CC_FOR_BUILD='$(CC)'
12886 else
12887 CC_FOR_BUILD=gcc
12888 fi
12889 fi
12890
12891 # Also set EXEEXT_FOR_BUILD.
12892 if test "x$cross_compiling" = "xno"; then
12893 EXEEXT_FOR_BUILD='$(EXEEXT)'
12894 else
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12896 $as_echo_n "checking for build system executable suffix... " >&6; }
12897 if ${bfd_cv_build_exeext+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 rm -f conftest*
12901 echo 'int main () { return 0; }' > conftest.c
12902 bfd_cv_build_exeext=
12903 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12904 for file in conftest.*; do
12905 case $file in
12906 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12907 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12908 esac
12909 done
12910 rm -f conftest*
12911 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12912 fi
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12914 $as_echo "$bfd_cv_build_exeext" >&6; }
12915 EXEEXT_FOR_BUILD=""
12916 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12917 fi
12918
12919
12920 for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \
12921 unistd.h
12922 do :
12923 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12924 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12925 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12926 cat >>confdefs.h <<_ACEOF
12927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12928 _ACEOF
12929
12930 fi
12931
12932 done
12933
12934
12935 for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \
12936 sysconf
12937 do :
12938 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12939 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12940 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12941 cat >>confdefs.h <<_ACEOF
12942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12943 _ACEOF
12944
12945 fi
12946 done
12947
12948
12949 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
12950 if test "x$ac_cv_have_decl_basename" = xyes; then :
12951 ac_have_decl=1
12952 else
12953 ac_have_decl=0
12954 fi
12955
12956 cat >>confdefs.h <<_ACEOF
12957 #define HAVE_DECL_BASENAME $ac_have_decl
12958 _ACEOF
12959 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
12960 if test "x$ac_cv_have_decl_ffs" = xyes; then :
12961 ac_have_decl=1
12962 else
12963 ac_have_decl=0
12964 fi
12965
12966 cat >>confdefs.h <<_ACEOF
12967 #define HAVE_DECL_FFS $ac_have_decl
12968 _ACEOF
12969 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
12970 if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
12971 ac_have_decl=1
12972 else
12973 ac_have_decl=0
12974 fi
12975
12976 cat >>confdefs.h <<_ACEOF
12977 #define HAVE_DECL_STPCPY $ac_have_decl
12978 _ACEOF
12979 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
12980 if test "x$ac_cv_have_decl_asprintf" = xyes; then :
12981 ac_have_decl=1
12982 else
12983 ac_have_decl=0
12984 fi
12985
12986 cat >>confdefs.h <<_ACEOF
12987 #define HAVE_DECL_ASPRINTF $ac_have_decl
12988 _ACEOF
12989 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
12990 if test "x$ac_cv_have_decl_vasprintf" = xyes; then :
12991 ac_have_decl=1
12992 else
12993 ac_have_decl=0
12994 fi
12995
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_DECL_VASPRINTF $ac_have_decl
12998 _ACEOF
12999 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13000 if test "x$ac_cv_have_decl_strnlen" = xyes; then :
13001 ac_have_decl=1
13002 else
13003 ac_have_decl=0
13004 fi
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_DECL_STRNLEN $ac_have_decl
13008 _ACEOF
13009
13010 ac_fn_c_check_decl "$LINENO" "___lc_codepage_func" "ac_cv_have_decl____lc_codepage_func" "#include <locale.h>
13011 "
13012 if test "x$ac_cv_have_decl____lc_codepage_func" = xyes; then :
13013 ac_have_decl=1
13014 else
13015 ac_have_decl=0
13016 fi
13017
13018 cat >>confdefs.h <<_ACEOF
13019 #define HAVE_DECL____LC_CODEPAGE_FUNC $ac_have_decl
13020 _ACEOF
13021
13022
13023
13024 case "${host}" in
13025 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13026
13027 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13028 ;;
13029 esac
13030
13031 # Link in zlib/zstd if we can. This allows us to read compressed debug sections.
13032 # This is used only by compress.c.
13033
13034 # Use the system's zlib library.
13035 zlibdir="-L\$(top_builddir)/../zlib"
13036 zlibinc="-I\$(top_srcdir)/../zlib"
13037
13038 # Check whether --with-system-zlib was given.
13039 if test "${with_system_zlib+set}" = set; then :
13040 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13041 zlibdir=
13042 zlibinc=
13043 fi
13044
13045 fi
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13058 if test -n "$ac_tool_prefix"; then
13059 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13060 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13062 $as_echo_n "checking for $ac_word... " >&6; }
13063 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13064 $as_echo_n "(cached) " >&6
13065 else
13066 case $PKG_CONFIG in
13067 [\\/]* | ?:[\\/]*)
13068 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13069 ;;
13070 *)
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13073 do
13074 IFS=$as_save_IFS
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 break 2
13081 fi
13082 done
13083 done
13084 IFS=$as_save_IFS
13085
13086 ;;
13087 esac
13088 fi
13089 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13090 if test -n "$PKG_CONFIG"; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13092 $as_echo "$PKG_CONFIG" >&6; }
13093 else
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096 fi
13097
13098
13099 fi
13100 if test -z "$ac_cv_path_PKG_CONFIG"; then
13101 ac_pt_PKG_CONFIG=$PKG_CONFIG
13102 # Extract the first word of "pkg-config", so it can be a program name with args.
13103 set dummy pkg-config; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13105 $as_echo_n "checking for $ac_word... " >&6; }
13106 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13107 $as_echo_n "(cached) " >&6
13108 else
13109 case $ac_pt_PKG_CONFIG in
13110 [\\/]* | ?:[\\/]*)
13111 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13112 ;;
13113 *)
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13116 do
13117 IFS=$as_save_IFS
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13123 break 2
13124 fi
13125 done
13126 done
13127 IFS=$as_save_IFS
13128
13129 ;;
13130 esac
13131 fi
13132 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13133 if test -n "$ac_pt_PKG_CONFIG"; then
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13135 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13136 else
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138 $as_echo "no" >&6; }
13139 fi
13140
13141 if test "x$ac_pt_PKG_CONFIG" = x; then
13142 PKG_CONFIG=""
13143 else
13144 case $cross_compiling:$ac_tool_warned in
13145 yes:)
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13148 ac_tool_warned=yes ;;
13149 esac
13150 PKG_CONFIG=$ac_pt_PKG_CONFIG
13151 fi
13152 else
13153 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13154 fi
13155
13156 fi
13157 if test -n "$PKG_CONFIG"; then
13158 _pkg_min_version=0.9.0
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13160 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13161 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163 $as_echo "yes" >&6; }
13164 else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13166 $as_echo "no" >&6; }
13167 PKG_CONFIG=""
13168 fi
13169 fi
13170
13171
13172 # Check whether --with-zstd was given.
13173 if test "${with_zstd+set}" = set; then :
13174 withval=$with_zstd;
13175 else
13176 with_zstd=auto
13177 fi
13178
13179
13180 if test "$with_zstd" != no; then :
13181
13182 pkg_failed=no
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.4.0" >&5
13184 $as_echo_n "checking for libzstd >= 1.4.0... " >&6; }
13185
13186 if test -n "$ZSTD_CFLAGS"; then
13187 pkg_cv_ZSTD_CFLAGS="$ZSTD_CFLAGS"
13188 elif test -n "$PKG_CONFIG"; then
13189 if test -n "$PKG_CONFIG" && \
13190 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
13191 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
13192 ac_status=$?
13193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13194 test $ac_status = 0; }; then
13195 pkg_cv_ZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.4.0" 2>/dev/null`
13196 test "x$?" != "x0" && pkg_failed=yes
13197 else
13198 pkg_failed=yes
13199 fi
13200 else
13201 pkg_failed=untried
13202 fi
13203 if test -n "$ZSTD_LIBS"; then
13204 pkg_cv_ZSTD_LIBS="$ZSTD_LIBS"
13205 elif test -n "$PKG_CONFIG"; then
13206 if test -n "$PKG_CONFIG" && \
13207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.4.0\""; } >&5
13208 ($PKG_CONFIG --exists --print-errors "libzstd >= 1.4.0") 2>&5
13209 ac_status=$?
13210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13211 test $ac_status = 0; }; then
13212 pkg_cv_ZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.4.0" 2>/dev/null`
13213 test "x$?" != "x0" && pkg_failed=yes
13214 else
13215 pkg_failed=yes
13216 fi
13217 else
13218 pkg_failed=untried
13219 fi
13220
13221 if test $pkg_failed = no; then
13222 pkg_save_LDFLAGS="$LDFLAGS"
13223 LDFLAGS="$LDFLAGS $pkg_cv_ZSTD_LIBS"
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h. */
13226
13227 int
13228 main ()
13229 {
13230
13231 ;
13232 return 0;
13233 }
13234 _ACEOF
13235 if ac_fn_c_try_link "$LINENO"; then :
13236
13237 else
13238 pkg_failed=yes
13239 fi
13240 rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242 LDFLAGS=$pkg_save_LDFLAGS
13243 fi
13244
13245
13246
13247 if test $pkg_failed = yes; then
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250
13251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13252 _pkg_short_errors_supported=yes
13253 else
13254 _pkg_short_errors_supported=no
13255 fi
13256 if test $_pkg_short_errors_supported = yes; then
13257 ZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
13258 else
13259 ZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.4.0" 2>&1`
13260 fi
13261 # Put the nasty error message in config.log where it belongs
13262 echo "$ZSTD_PKG_ERRORS" >&5
13263
13264
13265 if test "$with_zstd" = yes; then
13266 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13267 fi
13268
13269 elif test $pkg_failed = untried; then
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271 $as_echo "no" >&6; }
13272
13273 if test "$with_zstd" = yes; then
13274 as_fn_error $? "--with-zstd was given, but pkgconfig/libzstd.pc is not found" "$LINENO" 5
13275 fi
13276
13277 else
13278 ZSTD_CFLAGS=$pkg_cv_ZSTD_CFLAGS
13279 ZSTD_LIBS=$pkg_cv_ZSTD_LIBS
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13281 $as_echo "yes" >&6; }
13282
13283
13284 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
13285
13286
13287 fi
13288
13289 fi
13290
13291
13292 save_CFLAGS="$CFLAGS"
13293 CFLAGS="$CFLAGS -Werror"
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5
13295 $as_echo_n "checking compiler support for hidden visibility... " >&6; }
13296 if ${bfd_cv_hidden+:} false; then :
13297 $as_echo_n "(cached) " >&6
13298 else
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301
13302 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
13303 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));
13304 int
13305 main ()
13306 {
13307 print (hw);
13308 ;
13309 return 0;
13310 }
13311 _ACEOF
13312 if ac_fn_c_try_compile "$LINENO"; then :
13313 bfd_cv_hidden=yes
13314 else
13315 bfd_cv_hidden=no
13316 fi
13317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318 fi
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5
13320 $as_echo "$bfd_cv_hidden" >&6; }
13321 CFLAGS="$save_CFLAGS"
13322 if test $bfd_cv_hidden = yes; then
13323
13324 $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h
13325
13326 fi
13327
13328 # Check if linker supports --as-needed and --no-as-needed options
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13330 $as_echo_n "checking linker --as-needed support... " >&6; }
13331 if ${bfd_cv_ld_as_needed+:} false; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 bfd_cv_ld_as_needed=no
13335 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
13336 bfd_cv_ld_as_needed=yes
13337 fi
13338
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
13341 $as_echo "$bfd_cv_ld_as_needed" >&6; }
13342
13343 LIBM=
13344 case $host in
13345 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13346 # These system don't have libm, or don't need it
13347 ;;
13348 *-ncr-sysv4.3*)
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13350 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13351 if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
13352 $as_echo_n "(cached) " >&6
13353 else
13354 ac_check_lib_save_LIBS=$LIBS
13355 LIBS="-lmw $LIBS"
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13358
13359 /* Override any GCC internal prototype to avoid an error.
13360 Use char because int might match the return type of a GCC
13361 builtin and then its argument prototype would still apply. */
13362 #ifdef __cplusplus
13363 extern "C"
13364 #endif
13365 char _mwvalidcheckl ();
13366 int
13367 main ()
13368 {
13369 return _mwvalidcheckl ();
13370 ;
13371 return 0;
13372 }
13373 _ACEOF
13374 if ac_fn_c_try_link "$LINENO"; then :
13375 ac_cv_lib_mw__mwvalidcheckl=yes
13376 else
13377 ac_cv_lib_mw__mwvalidcheckl=no
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13381 LIBS=$ac_check_lib_save_LIBS
13382 fi
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
13384 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
13385 if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
13386 LIBM="-lmw"
13387 fi
13388
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13390 $as_echo_n "checking for cos in -lm... " >&6; }
13391 if ${ac_cv_lib_m_cos+:} false; then :
13392 $as_echo_n "(cached) " >&6
13393 else
13394 ac_check_lib_save_LIBS=$LIBS
13395 LIBS="-lm $LIBS"
13396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h. */
13398
13399 /* Override any GCC internal prototype to avoid an error.
13400 Use char because int might match the return type of a GCC
13401 builtin and then its argument prototype would still apply. */
13402 #ifdef __cplusplus
13403 extern "C"
13404 #endif
13405 char cos ();
13406 int
13407 main ()
13408 {
13409 return cos ();
13410 ;
13411 return 0;
13412 }
13413 _ACEOF
13414 if ac_fn_c_try_link "$LINENO"; then :
13415 ac_cv_lib_m_cos=yes
13416 else
13417 ac_cv_lib_m_cos=no
13418 fi
13419 rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13422 fi
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13424 $as_echo "$ac_cv_lib_m_cos" >&6; }
13425 if test "x$ac_cv_lib_m_cos" = xyes; then :
13426 LIBM="$LIBM -lm"
13427 fi
13428
13429 ;;
13430 *)
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
13432 $as_echo_n "checking for cos in -lm... " >&6; }
13433 if ${ac_cv_lib_m_cos+:} false; then :
13434 $as_echo_n "(cached) " >&6
13435 else
13436 ac_check_lib_save_LIBS=$LIBS
13437 LIBS="-lm $LIBS"
13438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13439 /* end confdefs.h. */
13440
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13444 #ifdef __cplusplus
13445 extern "C"
13446 #endif
13447 char cos ();
13448 int
13449 main ()
13450 {
13451 return cos ();
13452 ;
13453 return 0;
13454 }
13455 _ACEOF
13456 if ac_fn_c_try_link "$LINENO"; then :
13457 ac_cv_lib_m_cos=yes
13458 else
13459 ac_cv_lib_m_cos=no
13460 fi
13461 rm -f core conftest.err conftest.$ac_objext \
13462 conftest$ac_exeext conftest.$ac_ext
13463 LIBS=$ac_check_lib_save_LIBS
13464 fi
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
13466 $as_echo "$ac_cv_lib_m_cos" >&6; }
13467 if test "x$ac_cv_lib_m_cos" = xyes; then :
13468 LIBM="-lm"
13469 fi
13470
13471 ;;
13472 esac
13473
13474
13475
13476 # When building a shared libbfd, link against the pic version of libiberty
13477 # so that apps that use libbfd won't need libiberty just to satisfy any
13478 # libbfd references.
13479 # We can't do that if a pic libiberty is unavailable since including non-pic
13480 # code would insert text relocations into libbfd.
13481 SHARED_LIBADD=
13482 SHARED_LDFLAGS=
13483 if test "$enable_shared" = "yes"; then
13484 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
13485 if test -n "$x"; then
13486 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
13487 fi
13488 fi
13489
13490 SHARED_LIBADD="$SHARED_LIBADD $LIBINTL"
13491
13492 if test "$enable_shared" = "yes"; then
13493 case "${host}" in
13494 # More hacks to build DLLs on Windows.
13495 *-*-cygwin*)
13496 SHARED_LDFLAGS="-no-undefined"
13497 SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32"
13498 ;;
13499 esac
13500
13501 if test -n "$SHARED_LIBADD"; then
13502 if test -n "$LIBM"; then
13503 if test x"$bfd_cv_ld_as_needed" = xyes; then
13504 # Link against libm only when needed. Put -lc, -lm inside -Wl
13505 # to stop libtool reordering these options.
13506 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
13507 else
13508 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
13509 fi
13510 fi
13511 fi
13512 fi
13513
13514
13515
13516 # target stuff:
13517
13518 # Canonicalize the secondary target names.
13519 if test -n "$enable_targets" ; then
13520 for targ in `echo $enable_targets | sed 's/,/ /g'`
13521 do
13522 result=`$ac_config_sub $targ 2>/dev/null`
13523 if test -n "$result" ; then
13524 canon_targets="$canon_targets $result"
13525 else
13526 # Allow targets that config.sub doesn't recognize, like "all".
13527 canon_targets="$canon_targets $targ"
13528 fi
13529 done
13530 fi
13531
13532 all_targets=false
13533 defvec=
13534 selvecs=
13535 assocvecs=
13536 selarchs=
13537 TDEFINES=
13538 for targ in $target $canon_targets
13539 do
13540 if test $targ = all; then
13541 all_targets=true
13542 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
13543 elif test $targ != plugin; then
13544 . $srcdir/config.bfd
13545 if test $targ = $target; then
13546 defvec=$targ_defvec
13547 fi
13548 selvecs="$selvecs $targ_defvec $targ_selvecs"
13549 selarchs="$selarchs $targ_archs"
13550 TDEFINES="$TDEFINES $targ_cflags"
13551 fi
13552 done
13553
13554
13555 # This processing still needs to be done if we're to decide properly whether
13556 # 64-bit support needs to be compiled in. Currently, it will be included if
13557 # the default or any other explicitly requested target requires it; it
13558 # will not be included on a 32-bit host if no 64-bit target is requested, and
13559 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
13560 # used.
13561
13562 # uniq the default and selected vectors in all the configured targets.
13563 f=""
13564 for i in $selvecs ; do
13565 case " $f " in
13566 *" $i "*) ;;
13567 *) f="$f $i" ;;
13568 esac
13569 done
13570 selvecs="$f"
13571
13572
13573 # uniq the associated vectors in all the configured targets.
13574 f=""
13575 for i in $assocvecs ; do
13576 case " $f " in
13577 *" $i "*) ;;
13578 *) f="$f $i" ;;
13579 esac
13580 done
13581 assocvecs="$f"
13582
13583
13584 # uniq the architectures in all the configured targets.
13585 f=""
13586 for i in $selarchs ; do
13587 case " $f " in
13588 *" $i "*) ;;
13589 *) f="$f $i" ;;
13590 esac
13591 done
13592 selarchs="$f"
13593
13594 # Target backend .o files.
13595 tb=
13596
13597 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
13598 elf-sframe.lo dwarf1.lo dwarf2.lo"
13599 coffgen="coffgen.lo dwarf2.lo"
13600 coff="cofflink.lo $coffgen"
13601 ecoff="ecofflink.lo $coffgen"
13602 xcoff="xcofflink.lo $coffgen"
13603
13604 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo"
13605 for vec in $selvecs
13606 do
13607 target_size=32
13608 case "$vec" in
13609 # This list is alphabetized to make it easy to compare
13610 # with the two vector lists in targets.c. For the same reason,
13611 # use one entry per line, even though this leads to long lines.
13612 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13613 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13614 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13615 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13616 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13617 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
13618 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
13619 aarch64_pei_le_vec) tb="$tb pei-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
13620 aarch64_pe_le_vec) tb="$tb pe-aarch64.lo pe-aarch64igen.lo $coff"; target_size=64 ;;
13621 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
13622 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13623 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
13624 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
13625 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
13626 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
13627 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;;
13628 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
13629 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
13630 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
13631 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13632 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
13633 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13634 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13635 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13636 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13637 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13638 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13639 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13640 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
13641 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
13642 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
13643 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
13644 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
13645 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
13646 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
13647 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
13648 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
13649 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
13650 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
13651 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13652 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
13653 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
13654 cris_aout_vec) tb="$tb aout-cris.lo" ;;
13655 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13656 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13657 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
13658 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
13659 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
13660 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
13661 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
13662 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
13663 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13664 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
13665 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13666 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13667 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
13668 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
13669 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
13670 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
13671 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13672 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
13673 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13674 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
13675 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13676 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13677 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13678 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13679 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
13680 hppa_som_vec) tb="$tb som.lo" ;;
13681 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
13682 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
13683 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
13684 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
13685 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
13686 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
13687 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
13688 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13689 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13690 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13691 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13692 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
13693 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
13694 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
13695 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
13696 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
13697 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
13698 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
13699 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
13700 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13701 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13702 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
13703 ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
13704 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
13705 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
13706 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
13707 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
13708 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
13709 loongarch_elf32_vec) tb="$tb elf32-loongarch.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf" ;;
13710 loongarch_elf64_vec) tb="$tb elf64-loongarch.lo elf64.lo elfxx-loongarch.lo elf32.lo elf-ifunc.lo $elf"; target_size=64 ;;
13711 loongarch64_pei_vec) tb="$tb pei-loongarch64.lo pe-loongarch64igen.lo $coff"; target_size=64 ;;
13712 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
13713 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13714 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13715 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13716 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
13717 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13718 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
13719 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
13720 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
13721 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13722 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13723 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
13724 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13725 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
13726 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
13727 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
13728 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
13729 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
13730 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13731 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
13732 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
13733 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
13734 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
13735 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13736 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13737 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
13738 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13739 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13740 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13741 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13742 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13743 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13744 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13745 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13746 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13747 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13748 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13749 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13750 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13751 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
13752 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13753 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13754 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13755 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13756 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13757 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
13758 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
13759 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
13760 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
13761 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
13762 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
13763 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
13764 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13765 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
13766 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
13767 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13768 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13769 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13770 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
13771 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
13772 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
13773 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
13774 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
13775 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
13776 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
13777 pdb_vec) tb="$tb pdb.lo" ;;
13778 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
13779 pef_vec) tb="$tb pef.lo" ;;
13780 pef_xlib_vec) tb="$tb pef.lo" ;;
13781 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
13782 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
13783 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
13784 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13785 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13786 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13787 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
13788 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
13789 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13790 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13791 powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
13792 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
13793 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
13794 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
13795 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13796 riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;;
13797 riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
13798 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
13799 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
13800 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
13801 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
13802 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13803 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13804 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13805 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
13806 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
13807 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
13808 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
13809 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
13810 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
13811 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
13812 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
13813 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
13814 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13815 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13816 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13817 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13818 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13819 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13820 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13821 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13822 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13823 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
13824 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
13825 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
13826 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13827 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13828 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
13829 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13830 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13831 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
13832 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
13833 sym_vec) tb="$tb xsym.lo" ;;
13834 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
13835 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13836 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13837 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13838 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13839 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13840 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
13841 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13842 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13843 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13844 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13845 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13846 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
13847 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13848 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13849 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13850 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13851 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13852 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
13853 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
13854 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
13855 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
13856 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
13857 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
13858 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13859 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
13860 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
13861 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
13862 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
13863 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
13864 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
13865 wasm_vec) tb="$tb wasm-module.lo" ;;
13866 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
13867 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
13868 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
13869 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13870 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13871 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13872 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
13873 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
13874 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13875 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13876 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
13877 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
13878 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
13879 xtensa_elf32_be_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13880 xtensa_elf32_le_vec) tb="$tb xtensa-dynconfig.lo xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
13881 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
13882 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
13883 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
13884
13885 # These appear out of order in targets.c
13886 srec_vec) tb="$tb srec.lo" ;;
13887 symbolsrec_vec) tb="$tb srec.lo" ;;
13888 tekhex_vec) tb="$tb tekhex.lo" ;;
13889 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
13890 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
13891
13892 "") ;;
13893 *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;;
13894 esac
13895
13896 if test ${target_size} = 64; then
13897 target64=true
13898 fi
13899 if test x"${vec}" = x"${defvec}"; then
13900 bfd_default_target_size=${target_size}
13901 fi
13902 done
13903
13904 if test "$plugins" = "yes"; then
13905 tb="$tb plugin.lo"
13906 fi
13907
13908 # Target architecture .o files.
13909 # A couple of CPUs use shorter file names to avoid problems on DOS
13910 # filesystems.
13911 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
13912
13913 # Weed out duplicate .o files.
13914 f=""
13915 for i in $tb ; do
13916 case " $f " in
13917 *" $i "*) ;;
13918 *) f="$f $i" ;;
13919 esac
13920 done
13921 tb="$f"
13922
13923 f=""
13924 for i in $ta ; do
13925 case " $f " in
13926 *" $i "*) ;;
13927 *) f="$f $i" ;;
13928 esac
13929 done
13930 ta="$f"
13931
13932 bfd_backends="$tb"
13933 bfd_machines="$ta"
13934
13935 if test x${all_targets} = xtrue ; then
13936 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
13937 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
13938 selvecs=
13939 havevecs=-DHAVE_all_vecs
13940 selarchs=
13941 test -n "$assocvecs" &&
13942 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13943 else # all_targets is true
13944 # Only set these if they will be nonempty, for the clever echo.
13945 havevecs=
13946 assocvecs=
13947 test -n "$selvecs" &&
13948 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
13949 test -n "$selvecs" &&
13950 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13951 test -n "$selarchs" &&
13952 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
13953 fi # all_targets is true
13954
13955 # 64-bit archives need a 64-bit bfd_vma.
13956 if test "x$want_64_bit_archive" = xtrue; then
13957 want64=true
13958
13959 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
13960
13961 fi
13962
13963 case ${host64}-${target64}-${want64} in
13964 *true*)
13965 wordsize=64
13966 bfd64_libs='$(BFD64_LIBS)'
13967 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
13968 if test -n "$GCC" ; then
13969 bad_64bit_gcc=no;
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
13971 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
13972 # Add more tests for gcc versions with non-working 64-bit support here.
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 :__GNUC__:__GNUC_MINOR__:__i386__:
13976 _ACEOF
13977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13978 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
13979 bad_64bit_gcc=yes;
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
13981 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
13982 else
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13984 $as_echo "no" >&6; }
13985 fi
13986 rm -f conftest*
13987
13988 if test $bad_64bit_gcc = yes ; then
13989 as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
13990 fi
13991 fi
13992 ;;
13993 false-false-false)
13994 wordsize=32
13995 all_backends='$(BFD32_BACKENDS)'
13996 ;;
13997 esac
13998
13999 tdefaults=""
14000 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14001 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14002 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14003 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014 # If we are configured native, pick a core file support file.
14015 COREFILE=
14016 COREFLAG=
14017 CORE_HEADER=
14018 TRAD_HEADER=
14019 if test "${target}" = "${host}"; then
14020 case "${host}" in
14021 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14022 COREFILE=''
14023 ;;
14024 alpha*-*-linux-*)
14025 COREFILE=trad-core.lo
14026 TRAD_HEADER='"hosts/alphalinux.h"'
14027 ;;
14028 alpha*-*-netbsd* | alpha*-*-openbsd*)
14029 COREFILE=netbsd-core.lo
14030 ;;
14031 alpha*-*-*)
14032 COREFILE=osf-core.lo
14033 ;;
14034 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14035 COREFILE='' ;;
14036 arm*-*-netbsd* | arm-*-openbsd*)
14037 COREFILE=netbsd-core.lo
14038 ;;
14039 arm-*-riscix) COREFILE=trad-core.lo ;;
14040 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14041 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14042 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14043 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14044 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14045 hppa*-*-netbsd* | hppa*-*-openbsd*)
14046 COREFILE=netbsd-core.lo
14047 ;;
14048
14049 i[3-7]86-sequent-bsd*)
14050 COREFILE=trad-core.lo
14051 TRAD_HEADER='"hosts/symmetry.h"'
14052 ;;
14053 i[3-7]86-sequent-sysv4*) ;;
14054 i[3-7]86-sequent-sysv*)
14055 COREFILE=trad-core.lo
14056 TRAD_HEADER='"hosts/symmetry.h"'
14057 ;;
14058 i[3-7]86-*-bsdi)
14059 COREFILE=
14060 ;;
14061 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
14062 COREFILE=trad-core.lo
14063 TRAD_HEADER='"hosts/i386bsd.h"'
14064 ;;
14065 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14066 COREFILE=''
14067 TRAD_HEADER='"hosts/i386bsd.h"'
14068 ;;
14069 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14070 COREFILE=netbsd-core.lo
14071 ;;
14072 i[3-7]86-esix-sysv3*)
14073 COREFILE=trad-core.lo
14074 TRAD_HEADER='"hosts/esix.h"'
14075 ;;
14076 i[3-7]86-*-sco3.2v5*)
14077 COREFILE=sco5-core.lo
14078 ;;
14079 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14080 COREFILE=trad-core.lo
14081 TRAD_HEADER='"hosts/i386sco.h"'
14082 ;;
14083 i[3-7]86-*-mach3*)
14084 COREFILE=trad-core.lo
14085 TRAD_HEADER='"hosts/i386mach3.h"'
14086 ;;
14087 i[3-7]86-*-linux-*)
14088 COREFILE=trad-core.lo
14089 TRAD_HEADER='"hosts/i386linux.h"'
14090 case "$enable_targets"-"$want64" in
14091 *x86_64-*linux*|*-true)
14092 CORE_HEADER='"hosts/x86-64linux.h"'
14093 esac
14094 ;;
14095 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14096 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
14097 mips*-*-netbsd* | mips*-*-openbsd*)
14098 COREFILE=netbsd-core.lo
14099 ;;
14100 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14101 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14102 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
14103 m68*-*-linux-*)
14104 COREFILE=trad-core.lo
14105 TRAD_HEADER='"hosts/m68klinux.h"'
14106 ;;
14107 m68*-*-netbsd*)
14108 COREFILE=netbsd-core.lo
14109 ;;
14110 ns32k-pc532-mach)
14111 COREFILE=trad-core.lo
14112 TRAD_HEADER='"hosts/pc532mach.h"'
14113 ;;
14114 ns32k-*-netbsd* | ns32k-*-openbsd*)
14115 COREFILE=netbsd-core.lo
14116 ;;
14117 riscv*-*-netbsd*)
14118 COREFILE=netbsd-core.lo
14119 ;;
14120 rs6000-*-lynx*)
14121 COREFILE=lynx-core.lo
14122 ;;
14123 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14124 COREFILE=rs6000-core.lo
14125 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14126 ;;
14127 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14128 COREFILE=rs6000-core.lo
14129 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14130 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14131 # have c_impl as a member of struct core_dumpx
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14133 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136 #include <core.h>
14137 int
14138 main ()
14139 {
14140 struct core_dumpx c; c.c_impl = 0;
14141 ;
14142 return 0;
14143 }
14144 _ACEOF
14145 if ac_fn_c_try_compile "$LINENO"; then :
14146
14147 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14148
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14150 $as_echo "yes" >&6; }
14151 else
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14153 $as_echo "no" >&6; }
14154 fi
14155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14156 ;;
14157 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14158 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14159 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14160 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14161 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14162 powerpc-*-beos*) ;;
14163 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14164 COREFILE='' ;;
14165 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14166 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14167 s390*-*-*) COREFILE=trad-core.lo ;;
14168 sh*-*-netbsd* | sh*-*-openbsd*)
14169 COREFILE=netbsd-core.lo
14170 ;;
14171 sparc-*-netbsd* | sparc*-*-openbsd*)
14172 COREFILE=netbsd-core.lo
14173 ;;
14174 vax-*-netbsd* | vax-*-openbsd*)
14175 COREFILE=netbsd-core.lo
14176 ;;
14177 vax-*-ultrix2*)
14178 COREFILE=trad-core.lo
14179 TRAD_HEADER='"hosts/vaxult2.h"'
14180 ;;
14181 vax-*-ultrix*)
14182 COREFILE=trad-core.lo
14183 TRAD_HEADER='"hosts/vaxult2.h"'
14184 ;;
14185 vax-*-linux-*)
14186 COREFILE=trad-core.lo
14187 TRAD_HEADER='"hosts/vaxlinux.h"'
14188 ;;
14189 vax-*-*)
14190 COREFILE=trad-core.lo
14191 TRAD_HEADER='"hosts/vaxbsd.h"'
14192 ;;
14193 x86_64-*-linux*)
14194 CORE_HEADER='"hosts/x86-64linux.h"'
14195 ;;
14196 x86_64-*-netbsd* | x86_64-*-openbsd*)
14197 COREFILE=netbsd-core.lo
14198 ;;
14199 esac
14200
14201 case "$COREFILE" in
14202 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14203 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14204 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14205 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14206 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14207 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14208 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14209 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14210 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14211 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14212 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14213 esac
14214
14215 # ELF corefile support has several flavors, but all of
14216 # them use something called <sys/procfs.h>
14217
14218 $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h
14219
14220 for ac_header in sys/procfs.h
14221 do :
14222 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14223 if test "x$ac_cv_header_sys_procfs_h" = xyes; then :
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_SYS_PROCFS_H 1
14226 _ACEOF
14227
14228 fi
14229
14230 done
14231
14232 if test "$ac_cv_header_sys_procfs_h" = yes; then
14233
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14235 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14236 if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241
14242 #define _SYSCALL32
14243 #include <sys/procfs.h>
14244 int
14245 main ()
14246 {
14247 prstatus_t avar
14248 ;
14249 return 0;
14250 }
14251 _ACEOF
14252 if ac_fn_c_try_compile "$LINENO"; then :
14253 bfd_cv_have_sys_procfs_type_prstatus_t=yes
14254 else
14255 bfd_cv_have_sys_procfs_type_prstatus_t=no
14256
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 fi
14260
14261 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
14262
14263 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
14264
14265 fi
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14267 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
14268
14269
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14271 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14272 if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277
14278 #define _SYSCALL32
14279 #include <sys/procfs.h>
14280 int
14281 main ()
14282 {
14283 prstatus32_t avar
14284 ;
14285 return 0;
14286 }
14287 _ACEOF
14288 if ac_fn_c_try_compile "$LINENO"; then :
14289 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
14290 else
14291 bfd_cv_have_sys_procfs_type_prstatus32_t=no
14292
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 fi
14296
14297 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14298
14299 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14300
14301 fi
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14303 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14304
14305
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14307 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14308 if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then :
14309 $as_echo_n "(cached) " >&6
14310 else
14311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14312 /* end confdefs.h. */
14313
14314 #define _SYSCALL32
14315 #include <sys/procfs.h>
14316 int
14317 main ()
14318 {
14319 prstatus_t avar; void* aref = (void*) &avar.pr_who
14320 ;
14321 return 0;
14322 }
14323 _ACEOF
14324 if ac_fn_c_try_compile "$LINENO"; then :
14325 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14326 else
14327 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14328
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 fi
14332
14333 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14334
14335 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14336
14337 fi
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14339 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14340
14341
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14343 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14344 if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then :
14345 $as_echo_n "(cached) " >&6
14346 else
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349
14350 #define _SYSCALL32
14351 #include <sys/procfs.h>
14352 int
14353 main ()
14354 {
14355 prstatus32_t avar; void* aref = (void*) &avar.pr_who
14356 ;
14357 return 0;
14358 }
14359 _ACEOF
14360 if ac_fn_c_try_compile "$LINENO"; then :
14361 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
14362 else
14363 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
14364
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367 fi
14368
14369 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14370
14371 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14372
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14375 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14376
14377
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14379 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14380 if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385
14386 #define _SYSCALL32
14387 #include <sys/procfs.h>
14388 int
14389 main ()
14390 {
14391 pstatus_t avar
14392 ;
14393 return 0;
14394 }
14395 _ACEOF
14396 if ac_fn_c_try_compile "$LINENO"; then :
14397 bfd_cv_have_sys_procfs_type_pstatus_t=yes
14398 else
14399 bfd_cv_have_sys_procfs_type_pstatus_t=no
14400
14401 fi
14402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14403 fi
14404
14405 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14406
14407 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14408
14409 fi
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14411 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14412
14413
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14415 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14416 if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then :
14417 $as_echo_n "(cached) " >&6
14418 else
14419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h. */
14421
14422 #define _SYSCALL32
14423 #include <sys/procfs.h>
14424 int
14425 main ()
14426 {
14427 pxstatus_t avar
14428 ;
14429 return 0;
14430 }
14431 _ACEOF
14432 if ac_fn_c_try_compile "$LINENO"; then :
14433 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14434 else
14435 bfd_cv_have_sys_procfs_type_pxstatus_t=no
14436
14437 fi
14438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14439 fi
14440
14441 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14442
14443 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14444
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14447 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14451 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14452 if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457
14458 #define _SYSCALL32
14459 #include <sys/procfs.h>
14460 int
14461 main ()
14462 {
14463 pstatus32_t avar
14464 ;
14465 return 0;
14466 }
14467 _ACEOF
14468 if ac_fn_c_try_compile "$LINENO"; then :
14469 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14470 else
14471 bfd_cv_have_sys_procfs_type_pstatus32_t=no
14472
14473 fi
14474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14475 fi
14476
14477 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14478
14479 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14480
14481 fi
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14483 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14484
14485
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14487 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14488 if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14492 /* end confdefs.h. */
14493
14494 #define _SYSCALL32
14495 #include <sys/procfs.h>
14496 int
14497 main ()
14498 {
14499 prpsinfo_t avar
14500 ;
14501 return 0;
14502 }
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"; then :
14505 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14506 else
14507 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14508
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512
14513 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14514
14515 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14516
14517 fi
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14519 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14520
14521
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
14523 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
14524 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then :
14525 $as_echo_n "(cached) " >&6
14526 else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529
14530 #define _SYSCALL32
14531 #include <sys/procfs.h>
14532 int
14533 main ()
14534 {
14535 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
14536 ;
14537 return 0;
14538 }
14539 _ACEOF
14540 if ac_fn_c_try_compile "$LINENO"; then :
14541 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
14542 else
14543 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
14544
14545 fi
14546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14547 fi
14548
14549 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
14550
14551 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
14552
14553 fi
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
14555 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
14556
14557
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14559 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14560 if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then :
14561 $as_echo_n "(cached) " >&6
14562 else
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565
14566 #define _SYSCALL32
14567 #include <sys/procfs.h>
14568 int
14569 main ()
14570 {
14571 prpsinfo32_t avar
14572 ;
14573 return 0;
14574 }
14575 _ACEOF
14576 if ac_fn_c_try_compile "$LINENO"; then :
14577 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14578 else
14579 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14580
14581 fi
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 fi
14584
14585 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14586
14587 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14588
14589 fi
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14591 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14592
14593
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
14595 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
14596 if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then :
14597 $as_echo_n "(cached) " >&6
14598 else
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601
14602 #define _SYSCALL32
14603 #include <sys/procfs.h>
14604 int
14605 main ()
14606 {
14607 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
14614 else
14615 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
14616
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14619 fi
14620
14621 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
14622
14623 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
14624
14625 fi
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
14627 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
14628
14629
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14631 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14632 if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14636 /* end confdefs.h. */
14637
14638 #define _SYSCALL32
14639 #include <sys/procfs.h>
14640 int
14641 main ()
14642 {
14643 psinfo_t avar
14644 ;
14645 return 0;
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649 bfd_cv_have_sys_procfs_type_psinfo_t=yes
14650 else
14651 bfd_cv_have_sys_procfs_type_psinfo_t=no
14652
14653 fi
14654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 fi
14656
14657 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14658
14659 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14660
14661 fi
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14663 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14664
14665
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
14667 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
14668 if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then :
14669 $as_echo_n "(cached) " >&6
14670 else
14671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14672 /* end confdefs.h. */
14673
14674 #define _SYSCALL32
14675 #include <sys/procfs.h>
14676 int
14677 main ()
14678 {
14679 psinfo_t avar; void* aref = (void*) &avar.pr_pid
14680 ;
14681 return 0;
14682 }
14683 _ACEOF
14684 if ac_fn_c_try_compile "$LINENO"; then :
14685 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
14686 else
14687 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
14688
14689 fi
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692
14693 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
14694
14695 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
14696
14697 fi
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
14699 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
14700
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14703 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14704 if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then :
14705 $as_echo_n "(cached) " >&6
14706 else
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709
14710 #define _SYSCALL32
14711 #include <sys/procfs.h>
14712 int
14713 main ()
14714 {
14715 psinfo32_t avar
14716 ;
14717 return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14722 else
14723 bfd_cv_have_sys_procfs_type_psinfo32_t=no
14724
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 fi
14728
14729 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14730
14731 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14732
14733 fi
14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14735 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14736
14737
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
14739 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
14740 if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then :
14741 $as_echo_n "(cached) " >&6
14742 else
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745
14746 #define _SYSCALL32
14747 #include <sys/procfs.h>
14748 int
14749 main ()
14750 {
14751 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 if ac_fn_c_try_compile "$LINENO"; then :
14757 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
14758 else
14759 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
14760
14761 fi
14762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14763 fi
14764
14765 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
14766
14767 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
14768
14769 fi
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
14771 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
14772
14773
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14775 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14776 if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then :
14777 $as_echo_n "(cached) " >&6
14778 else
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780 /* end confdefs.h. */
14781
14782 #define _SYSCALL32
14783 #include <sys/procfs.h>
14784 int
14785 main ()
14786 {
14787 lwpstatus_t avar
14788 ;
14789 return 0;
14790 }
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"; then :
14793 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14794 else
14795 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14796
14797 fi
14798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14799 fi
14800
14801 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14802
14803 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14804
14805 fi
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14807 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14808
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14811 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14812 if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817
14818 #define _SYSCALL32
14819 #include <sys/procfs.h>
14820 int
14821 main ()
14822 {
14823 lwpxstatus_t avar
14824 ;
14825 return 0;
14826 }
14827 _ACEOF
14828 if ac_fn_c_try_compile "$LINENO"; then :
14829 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14830 else
14831 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14832
14833 fi
14834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14835 fi
14836
14837 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14838
14839 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14840
14841 fi
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14843 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14844
14845
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14847 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14848 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853
14854 #define _SYSCALL32
14855 #include <sys/procfs.h>
14856 int
14857 main ()
14858 {
14859 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14860 ;
14861 return 0;
14862 }
14863 _ACEOF
14864 if ac_fn_c_try_compile "$LINENO"; then :
14865 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14866 else
14867 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14868
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871 fi
14872
14873 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14874
14875 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14876
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14879 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14880
14881
14882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14883 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14884 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then :
14885 $as_echo_n "(cached) " >&6
14886 else
14887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14888 /* end confdefs.h. */
14889
14890 #define _SYSCALL32
14891 #include <sys/procfs.h>
14892 int
14893 main ()
14894 {
14895 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14896 ;
14897 return 0;
14898 }
14899 _ACEOF
14900 if ac_fn_c_try_compile "$LINENO"; then :
14901 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14902 else
14903 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14904
14905 fi
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14907 fi
14908
14909 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14910
14911 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14912
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14915 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14916
14917
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14919 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14920 if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14924 /* end confdefs.h. */
14925
14926 #define _SYSCALL32
14927 #include <sys/procfs.h>
14928 int
14929 main ()
14930 {
14931 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14932 ;
14933 return 0;
14934 }
14935 _ACEOF
14936 if ac_fn_c_try_compile "$LINENO"; then :
14937 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14938 else
14939 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14940
14941 fi
14942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14943 fi
14944
14945 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14946
14947 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14948
14949 fi
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14951 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14952
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14955 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14956 if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then :
14957 $as_echo_n "(cached) " >&6
14958 else
14959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14961
14962 #define _SYSCALL32
14963 #include <sys/procfs.h>
14964 int
14965 main ()
14966 {
14967 win32_pstatus_t avar
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 if ac_fn_c_try_compile "$LINENO"; then :
14973 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14974 else
14975 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14976
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 fi
14980
14981 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14982
14983 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14984
14985 fi
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14987 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14988
14989 fi
14990 fi
14991
14992
14993 if test -n "$CORE_HEADER"; then
14994
14995 cat >>confdefs.h <<_ACEOF
14996 #define CORE_HEADER $CORE_HEADER
14997 _ACEOF
14998
14999 fi
15000 if test -n "$TRAD_HEADER"; then
15001
15002 cat >>confdefs.h <<_ACEOF
15003 #define TRAD_HEADER $TRAD_HEADER
15004 _ACEOF
15005
15006 fi
15007
15008 if test "$plugins" = "yes"; then
15009 supports_plugins=1
15010 else
15011 supports_plugins=0
15012 fi
15013
15014
15015
15016 # Determine the host dependent file_ptr a.k.a. off_t type. In order
15017 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15018 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15019 # Hopefully a reasonable assumption since fseeko et.al. should be
15020 # upward compatible.
15021 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15022 do :
15023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15024 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15025 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15026 cat >>confdefs.h <<_ACEOF
15027 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15028 _ACEOF
15029
15030 fi
15031 done
15032
15033 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
15034 if test "x$ac_cv_have_decl_ftello" = xyes; then :
15035 ac_have_decl=1
15036 else
15037 ac_have_decl=0
15038 fi
15039
15040 cat >>confdefs.h <<_ACEOF
15041 #define HAVE_DECL_FTELLO $ac_have_decl
15042 _ACEOF
15043 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
15044 if test "x$ac_cv_have_decl_ftello64" = xyes; then :
15045 ac_have_decl=1
15046 else
15047 ac_have_decl=0
15048 fi
15049
15050 cat >>confdefs.h <<_ACEOF
15051 #define HAVE_DECL_FTELLO64 $ac_have_decl
15052 _ACEOF
15053 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
15054 if test "x$ac_cv_have_decl_fseeko" = xyes; then :
15055 ac_have_decl=1
15056 else
15057 ac_have_decl=0
15058 fi
15059
15060 cat >>confdefs.h <<_ACEOF
15061 #define HAVE_DECL_FSEEKO $ac_have_decl
15062 _ACEOF
15063 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
15064 if test "x$ac_cv_have_decl_fseeko64" = xyes; then :
15065 ac_have_decl=1
15066 else
15067 ac_have_decl=0
15068 fi
15069
15070 cat >>confdefs.h <<_ACEOF
15071 #define HAVE_DECL_FSEEKO64 $ac_have_decl
15072 _ACEOF
15073 ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default"
15074 if test "x$ac_cv_have_decl_fopen64" = xyes; then :
15075 ac_have_decl=1
15076 else
15077 ac_have_decl=0
15078 fi
15079
15080 cat >>confdefs.h <<_ACEOF
15081 #define HAVE_DECL_FOPEN64 $ac_have_decl
15082 _ACEOF
15083
15084 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15085 # The cast to long int works around a bug in the HP C Compiler
15086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15088 # This bug is HP SR number 8606223364.
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15090 $as_echo_n "checking size of off_t... " >&6; }
15091 if ${ac_cv_sizeof_off_t+:} false; then :
15092 $as_echo_n "(cached) " >&6
15093 else
15094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15095
15096 else
15097 if test "$ac_cv_type_off_t" = yes; then
15098 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15100 as_fn_error 77 "cannot compute sizeof (off_t)
15101 See \`config.log' for more details" "$LINENO" 5; }
15102 else
15103 ac_cv_sizeof_off_t=0
15104 fi
15105 fi
15106
15107 fi
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15109 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15110
15111
15112
15113 cat >>confdefs.h <<_ACEOF
15114 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15115 _ACEOF
15116
15117
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15120 $as_echo_n "checking file_ptr type... " >&6; }
15121 bfd_file_ptr="long"
15122 bfd_ufile_ptr="unsigned long"
15123 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15124 -o x"${ac_cv_sizeof_off_t}" = x8; then
15125 bfd_file_ptr=int64_t
15126 bfd_ufile_ptr=uint64_t
15127 fi
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15129 $as_echo "$bfd_file_ptr" >&6; }
15130
15131
15132
15133
15134
15135
15136 for ac_header in $ac_header_list
15137 do :
15138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15140 "
15141 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15142 cat >>confdefs.h <<_ACEOF
15143 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15144 _ACEOF
15145
15146 fi
15147
15148 done
15149
15150
15151
15152
15153
15154
15155
15156
15157 for ac_func in getpagesize
15158 do :
15159 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15160 if test "x$ac_cv_func_getpagesize" = xyes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_GETPAGESIZE 1
15163 _ACEOF
15164
15165 fi
15166 done
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15169 $as_echo_n "checking for working mmap... " >&6; }
15170 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
15171 $as_echo_n "(cached) " >&6
15172 else
15173 if test "$cross_compiling" = yes; then :
15174 ac_cv_func_mmap_fixed_mapped=no
15175 else
15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15177 /* end confdefs.h. */
15178 $ac_includes_default
15179 /* malloc might have been renamed as rpl_malloc. */
15180 #undef malloc
15181
15182 /* Thanks to Mike Haertel and Jim Avera for this test.
15183 Here is a matrix of mmap possibilities:
15184 mmap private not fixed
15185 mmap private fixed at somewhere currently unmapped
15186 mmap private fixed at somewhere already mapped
15187 mmap shared not fixed
15188 mmap shared fixed at somewhere currently unmapped
15189 mmap shared fixed at somewhere already mapped
15190 For private mappings, we should verify that changes cannot be read()
15191 back from the file, nor mmap's back from the file at a different
15192 address. (There have been systems where private was not correctly
15193 implemented like the infamous i386 svr4.0, and systems where the
15194 VM page cache was not coherent with the file system buffer cache
15195 like early versions of FreeBSD and possibly contemporary NetBSD.)
15196 For shared mappings, we should conversely verify that changes get
15197 propagated back to all the places they're supposed to be.
15198
15199 Grep wants private fixed already mapped.
15200 The main things grep needs to know about mmap are:
15201 * does it exist and is it safe to write into the mmap'd area
15202 * how to use it (BSD variants) */
15203
15204 #include <fcntl.h>
15205 #include <sys/mman.h>
15206
15207 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15208 char *malloc ();
15209 #endif
15210
15211 /* This mess was copied from the GNU getpagesize.h. */
15212 #ifndef HAVE_GETPAGESIZE
15213 # ifdef _SC_PAGESIZE
15214 # define getpagesize() sysconf(_SC_PAGESIZE)
15215 # else /* no _SC_PAGESIZE */
15216 # ifdef HAVE_SYS_PARAM_H
15217 # include <sys/param.h>
15218 # ifdef EXEC_PAGESIZE
15219 # define getpagesize() EXEC_PAGESIZE
15220 # else /* no EXEC_PAGESIZE */
15221 # ifdef NBPG
15222 # define getpagesize() NBPG * CLSIZE
15223 # ifndef CLSIZE
15224 # define CLSIZE 1
15225 # endif /* no CLSIZE */
15226 # else /* no NBPG */
15227 # ifdef NBPC
15228 # define getpagesize() NBPC
15229 # else /* no NBPC */
15230 # ifdef PAGESIZE
15231 # define getpagesize() PAGESIZE
15232 # endif /* PAGESIZE */
15233 # endif /* no NBPC */
15234 # endif /* no NBPG */
15235 # endif /* no EXEC_PAGESIZE */
15236 # else /* no HAVE_SYS_PARAM_H */
15237 # define getpagesize() 8192 /* punt totally */
15238 # endif /* no HAVE_SYS_PARAM_H */
15239 # endif /* no _SC_PAGESIZE */
15240
15241 #endif /* no HAVE_GETPAGESIZE */
15242
15243 int
15244 main ()
15245 {
15246 char *data, *data2, *data3;
15247 const char *cdata2;
15248 int i, pagesize;
15249 int fd, fd2;
15250
15251 pagesize = getpagesize ();
15252
15253 /* First, make a file with some known garbage in it. */
15254 data = (char *) malloc (pagesize);
15255 if (!data)
15256 return 1;
15257 for (i = 0; i < pagesize; ++i)
15258 *(data + i) = rand ();
15259 umask (0);
15260 fd = creat ("conftest.mmap", 0600);
15261 if (fd < 0)
15262 return 2;
15263 if (write (fd, data, pagesize) != pagesize)
15264 return 3;
15265 close (fd);
15266
15267 /* Next, check that the tail of a page is zero-filled. File must have
15268 non-zero length, otherwise we risk SIGBUS for entire page. */
15269 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
15270 if (fd2 < 0)
15271 return 4;
15272 cdata2 = "";
15273 if (write (fd2, cdata2, 1) != 1)
15274 return 5;
15275 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
15276 if (data2 == MAP_FAILED)
15277 return 6;
15278 for (i = 0; i < pagesize; ++i)
15279 if (*(data2 + i))
15280 return 7;
15281 close (fd2);
15282 if (munmap (data2, pagesize))
15283 return 8;
15284
15285 /* Next, try to mmap the file at a fixed address which already has
15286 something else allocated at it. If we can, also make sure that
15287 we see the same garbage. */
15288 fd = open ("conftest.mmap", O_RDWR);
15289 if (fd < 0)
15290 return 9;
15291 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15292 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15293 return 10;
15294 for (i = 0; i < pagesize; ++i)
15295 if (*(data + i) != *(data2 + i))
15296 return 11;
15297
15298 /* Finally, make sure that changes to the mapped area do not
15299 percolate back to the file as seen by read(). (This is a bug on
15300 some variants of i386 svr4.0.) */
15301 for (i = 0; i < pagesize; ++i)
15302 *(data2 + i) = *(data2 + i) + 1;
15303 data3 = (char *) malloc (pagesize);
15304 if (!data3)
15305 return 12;
15306 if (read (fd, data3, pagesize) != pagesize)
15307 return 13;
15308 for (i = 0; i < pagesize; ++i)
15309 if (*(data + i) != *(data3 + i))
15310 return 14;
15311 close (fd);
15312 return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_run "$LINENO"; then :
15316 ac_cv_func_mmap_fixed_mapped=yes
15317 else
15318 ac_cv_func_mmap_fixed_mapped=no
15319 fi
15320 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15321 conftest.$ac_objext conftest.beam conftest.$ac_ext
15322 fi
15323
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15326 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15327 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15328
15329 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15330
15331 fi
15332 rm -f conftest.mmap conftest.txt
15333
15334 for ac_func in madvise mprotect
15335 do :
15336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15339 cat >>confdefs.h <<_ACEOF
15340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15341 _ACEOF
15342
15343 fi
15344 done
15345
15346 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15347 true+yes )
15348 $as_echo "#define USE_MMAP 1" >>confdefs.h
15349 ;;
15350 esac
15351
15352 ac_config_files="$ac_config_files Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15353
15354
15355 ac_config_commands="$ac_config_commands default"
15356
15357
15358
15359
15360
15361
15362
15363 cat >confcache <<\_ACEOF
15364 # This file is a shell script that caches the results of configure
15365 # tests run on this system so they can be shared between configure
15366 # scripts and configure runs, see configure's option --config-cache.
15367 # It is not useful on other systems. If it contains results you don't
15368 # want to keep, you may remove or edit it.
15369 #
15370 # config.status only pays attention to the cache file if you give it
15371 # the --recheck option to rerun configure.
15372 #
15373 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15374 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15375 # following values.
15376
15377 _ACEOF
15378
15379 # The following way of writing the cache mishandles newlines in values,
15380 # but we know of no workaround that is simple, portable, and efficient.
15381 # So, we kill variables containing newlines.
15382 # Ultrix sh set writes to stderr and can't be redirected directly,
15383 # and sets the high bit in the cache file unless we assign to the vars.
15384 (
15385 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15386 eval ac_val=\$$ac_var
15387 case $ac_val in #(
15388 *${as_nl}*)
15389 case $ac_var in #(
15390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15391 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15392 esac
15393 case $ac_var in #(
15394 _ | IFS | as_nl) ;; #(
15395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15396 *) { eval $ac_var=; unset $ac_var;} ;;
15397 esac ;;
15398 esac
15399 done
15400
15401 (set) 2>&1 |
15402 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15403 *${as_nl}ac_space=\ *)
15404 # `set' does not quote correctly, so add quotes: double-quote
15405 # substitution turns \\\\ into \\, and sed turns \\ into \.
15406 sed -n \
15407 "s/'/'\\\\''/g;
15408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15409 ;; #(
15410 *)
15411 # `set' quotes correctly as required by POSIX, so do not add quotes.
15412 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15413 ;;
15414 esac |
15415 sort
15416 ) |
15417 sed '
15418 /^ac_cv_env_/b end
15419 t clear
15420 :clear
15421 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15422 t end
15423 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15424 :end' >>confcache
15425 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15426 if test -w "$cache_file"; then
15427 if test "x$cache_file" != "x/dev/null"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15429 $as_echo "$as_me: updating cache $cache_file" >&6;}
15430 if test ! -f "$cache_file" || test -h "$cache_file"; then
15431 cat confcache >"$cache_file"
15432 else
15433 case $cache_file in #(
15434 */* | ?:*)
15435 mv -f confcache "$cache_file"$$ &&
15436 mv -f "$cache_file"$$ "$cache_file" ;; #(
15437 *)
15438 mv -f confcache "$cache_file" ;;
15439 esac
15440 fi
15441 fi
15442 else
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15444 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15445 fi
15446 fi
15447 rm -f confcache
15448
15449 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15450 # Let make expand exec_prefix.
15451 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15452
15453 DEFS=-DHAVE_CONFIG_H
15454
15455 ac_libobjs=
15456 ac_ltlibobjs=
15457 U=
15458 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15459 # 1. Remove the extension, and $U if already installed.
15460 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15463 # will be set to the directory where LIBOBJS objects are built.
15464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15466 done
15467 LIBOBJS=$ac_libobjs
15468
15469 LTLIBOBJS=$ac_ltlibobjs
15470
15471
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15473 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15474 if test -n "$am_sleep_pid"; then
15475 # Hide warnings about reused PIDs.
15476 wait $am_sleep_pid 2>/dev/null
15477 fi
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15479 $as_echo "done" >&6; }
15480 if test -n "$EXEEXT"; then
15481 am__EXEEXT_TRUE=
15482 am__EXEEXT_FALSE='#'
15483 else
15484 am__EXEEXT_TRUE='#'
15485 am__EXEEXT_FALSE=
15486 fi
15487
15488 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15489 as_fn_error $? "conditional \"AMDEP\" was never defined.
15490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15491 fi
15492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15493 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15495 fi
15496 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15497 as_fn_error $? "conditional \"PLUGINS\" was never defined.
15498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15499 fi
15500 if test -z "${ENABLE_BFD_64_BIT_TRUE}" && test -z "${ENABLE_BFD_64_BIT_FALSE}"; then
15501 as_fn_error $? "conditional \"ENABLE_BFD_64_BIT\" was never defined.
15502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15503 fi
15504 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15505 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15507 fi
15508 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15509 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
15510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15511 fi
15512 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15513 as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined.
15514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15515 fi
15516
15517 : "${CONFIG_STATUS=./config.status}"
15518 ac_write_fail=0
15519 ac_clean_files_save=$ac_clean_files
15520 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15522 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15523 as_write_fail=0
15524 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15525 #! $SHELL
15526 # Generated by $as_me.
15527 # Run this file to recreate the current configuration.
15528 # Compiler output produced by configure, useful for debugging
15529 # configure, is in config.log if it exists.
15530
15531 debug=false
15532 ac_cs_recheck=false
15533 ac_cs_silent=false
15534
15535 SHELL=\${CONFIG_SHELL-$SHELL}
15536 export SHELL
15537 _ASEOF
15538 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15539 ## -------------------- ##
15540 ## M4sh Initialization. ##
15541 ## -------------------- ##
15542
15543 # Be more Bourne compatible
15544 DUALCASE=1; export DUALCASE # for MKS sh
15545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15546 emulate sh
15547 NULLCMD=:
15548 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15549 # is contrary to our usage. Disable this feature.
15550 alias -g '${1+"$@"}'='"$@"'
15551 setopt NO_GLOB_SUBST
15552 else
15553 case `(set -o) 2>/dev/null` in #(
15554 *posix*) :
15555 set -o posix ;; #(
15556 *) :
15557 ;;
15558 esac
15559 fi
15560
15561
15562 as_nl='
15563 '
15564 export as_nl
15565 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15566 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15568 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15569 # Prefer a ksh shell builtin over an external printf program on Solaris,
15570 # but without wasting forks for bash or zsh.
15571 if test -z "$BASH_VERSION$ZSH_VERSION" \
15572 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15573 as_echo='print -r --'
15574 as_echo_n='print -rn --'
15575 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15576 as_echo='printf %s\n'
15577 as_echo_n='printf %s'
15578 else
15579 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15580 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15581 as_echo_n='/usr/ucb/echo -n'
15582 else
15583 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15584 as_echo_n_body='eval
15585 arg=$1;
15586 case $arg in #(
15587 *"$as_nl"*)
15588 expr "X$arg" : "X\\(.*\\)$as_nl";
15589 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15590 esac;
15591 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15592 '
15593 export as_echo_n_body
15594 as_echo_n='sh -c $as_echo_n_body as_echo'
15595 fi
15596 export as_echo_body
15597 as_echo='sh -c $as_echo_body as_echo'
15598 fi
15599
15600 # The user is always right.
15601 if test "${PATH_SEPARATOR+set}" != set; then
15602 PATH_SEPARATOR=:
15603 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15604 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15605 PATH_SEPARATOR=';'
15606 }
15607 fi
15608
15609
15610 # IFS
15611 # We need space, tab and new line, in precisely that order. Quoting is
15612 # there to prevent editors from complaining about space-tab.
15613 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15614 # splitting by setting IFS to empty value.)
15615 IFS=" "" $as_nl"
15616
15617 # Find who we are. Look in the path if we contain no directory separator.
15618 as_myself=
15619 case $0 in #((
15620 *[\\/]* ) as_myself=$0 ;;
15621 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15622 for as_dir in $PATH
15623 do
15624 IFS=$as_save_IFS
15625 test -z "$as_dir" && as_dir=.
15626 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15627 done
15628 IFS=$as_save_IFS
15629
15630 ;;
15631 esac
15632 # We did not find ourselves, most probably we were run as `sh COMMAND'
15633 # in which case we are not to be found in the path.
15634 if test "x$as_myself" = x; then
15635 as_myself=$0
15636 fi
15637 if test ! -f "$as_myself"; then
15638 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15639 exit 1
15640 fi
15641
15642 # Unset variables that we do not need and which cause bugs (e.g. in
15643 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15644 # suppresses any "Segmentation fault" message there. '((' could
15645 # trigger a bug in pdksh 5.2.14.
15646 for as_var in BASH_ENV ENV MAIL MAILPATH
15647 do eval test x\${$as_var+set} = xset \
15648 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15649 done
15650 PS1='$ '
15651 PS2='> '
15652 PS4='+ '
15653
15654 # NLS nuisances.
15655 LC_ALL=C
15656 export LC_ALL
15657 LANGUAGE=C
15658 export LANGUAGE
15659
15660 # CDPATH.
15661 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15662
15663
15664 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15665 # ----------------------------------------
15666 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15667 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15668 # script with STATUS, using 1 if that was 0.
15669 as_fn_error ()
15670 {
15671 as_status=$1; test $as_status -eq 0 && as_status=1
15672 if test "$4"; then
15673 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15674 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15675 fi
15676 $as_echo "$as_me: error: $2" >&2
15677 as_fn_exit $as_status
15678 } # as_fn_error
15679
15680
15681 # as_fn_set_status STATUS
15682 # -----------------------
15683 # Set $? to STATUS, without forking.
15684 as_fn_set_status ()
15685 {
15686 return $1
15687 } # as_fn_set_status
15688
15689 # as_fn_exit STATUS
15690 # -----------------
15691 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15692 as_fn_exit ()
15693 {
15694 set +e
15695 as_fn_set_status $1
15696 exit $1
15697 } # as_fn_exit
15698
15699 # as_fn_unset VAR
15700 # ---------------
15701 # Portably unset VAR.
15702 as_fn_unset ()
15703 {
15704 { eval $1=; unset $1;}
15705 }
15706 as_unset=as_fn_unset
15707 # as_fn_append VAR VALUE
15708 # ----------------------
15709 # Append the text in VALUE to the end of the definition contained in VAR. Take
15710 # advantage of any shell optimizations that allow amortized linear growth over
15711 # repeated appends, instead of the typical quadratic growth present in naive
15712 # implementations.
15713 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15714 eval 'as_fn_append ()
15715 {
15716 eval $1+=\$2
15717 }'
15718 else
15719 as_fn_append ()
15720 {
15721 eval $1=\$$1\$2
15722 }
15723 fi # as_fn_append
15724
15725 # as_fn_arith ARG...
15726 # ------------------
15727 # Perform arithmetic evaluation on the ARGs, and store the result in the
15728 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15729 # must be portable across $(()) and expr.
15730 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15731 eval 'as_fn_arith ()
15732 {
15733 as_val=$(( $* ))
15734 }'
15735 else
15736 as_fn_arith ()
15737 {
15738 as_val=`expr "$@" || test $? -eq 1`
15739 }
15740 fi # as_fn_arith
15741
15742
15743 if expr a : '\(a\)' >/dev/null 2>&1 &&
15744 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15745 as_expr=expr
15746 else
15747 as_expr=false
15748 fi
15749
15750 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15751 as_basename=basename
15752 else
15753 as_basename=false
15754 fi
15755
15756 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15757 as_dirname=dirname
15758 else
15759 as_dirname=false
15760 fi
15761
15762 as_me=`$as_basename -- "$0" ||
15763 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15764 X"$0" : 'X\(//\)$' \| \
15765 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15766 $as_echo X/"$0" |
15767 sed '/^.*\/\([^/][^/]*\)\/*$/{
15768 s//\1/
15769 q
15770 }
15771 /^X\/\(\/\/\)$/{
15772 s//\1/
15773 q
15774 }
15775 /^X\/\(\/\).*/{
15776 s//\1/
15777 q
15778 }
15779 s/.*/./; q'`
15780
15781 # Avoid depending upon Character Ranges.
15782 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15783 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15784 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15785 as_cr_digits='0123456789'
15786 as_cr_alnum=$as_cr_Letters$as_cr_digits
15787
15788 ECHO_C= ECHO_N= ECHO_T=
15789 case `echo -n x` in #(((((
15790 -n*)
15791 case `echo 'xy\c'` in
15792 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15793 xy) ECHO_C='\c';;
15794 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15795 ECHO_T=' ';;
15796 esac;;
15797 *)
15798 ECHO_N='-n';;
15799 esac
15800
15801 rm -f conf$$ conf$$.exe conf$$.file
15802 if test -d conf$$.dir; then
15803 rm -f conf$$.dir/conf$$.file
15804 else
15805 rm -f conf$$.dir
15806 mkdir conf$$.dir 2>/dev/null
15807 fi
15808 if (echo >conf$$.file) 2>/dev/null; then
15809 if ln -s conf$$.file conf$$ 2>/dev/null; then
15810 as_ln_s='ln -s'
15811 # ... but there are two gotchas:
15812 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15813 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15814 # In both cases, we have to default to `cp -pR'.
15815 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15816 as_ln_s='cp -pR'
15817 elif ln conf$$.file conf$$ 2>/dev/null; then
15818 as_ln_s=ln
15819 else
15820 as_ln_s='cp -pR'
15821 fi
15822 else
15823 as_ln_s='cp -pR'
15824 fi
15825 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15826 rmdir conf$$.dir 2>/dev/null
15827
15828
15829 # as_fn_mkdir_p
15830 # -------------
15831 # Create "$as_dir" as a directory, including parents if necessary.
15832 as_fn_mkdir_p ()
15833 {
15834
15835 case $as_dir in #(
15836 -*) as_dir=./$as_dir;;
15837 esac
15838 test -d "$as_dir" || eval $as_mkdir_p || {
15839 as_dirs=
15840 while :; do
15841 case $as_dir in #(
15842 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15843 *) as_qdir=$as_dir;;
15844 esac
15845 as_dirs="'$as_qdir' $as_dirs"
15846 as_dir=`$as_dirname -- "$as_dir" ||
15847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15848 X"$as_dir" : 'X\(//\)[^/]' \| \
15849 X"$as_dir" : 'X\(//\)$' \| \
15850 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15851 $as_echo X"$as_dir" |
15852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15853 s//\1/
15854 q
15855 }
15856 /^X\(\/\/\)[^/].*/{
15857 s//\1/
15858 q
15859 }
15860 /^X\(\/\/\)$/{
15861 s//\1/
15862 q
15863 }
15864 /^X\(\/\).*/{
15865 s//\1/
15866 q
15867 }
15868 s/.*/./; q'`
15869 test -d "$as_dir" && break
15870 done
15871 test -z "$as_dirs" || eval "mkdir $as_dirs"
15872 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15873
15874
15875 } # as_fn_mkdir_p
15876 if mkdir -p . 2>/dev/null; then
15877 as_mkdir_p='mkdir -p "$as_dir"'
15878 else
15879 test -d ./-p && rmdir ./-p
15880 as_mkdir_p=false
15881 fi
15882
15883
15884 # as_fn_executable_p FILE
15885 # -----------------------
15886 # Test if FILE is an executable regular file.
15887 as_fn_executable_p ()
15888 {
15889 test -f "$1" && test -x "$1"
15890 } # as_fn_executable_p
15891 as_test_x='test -x'
15892 as_executable_p=as_fn_executable_p
15893
15894 # Sed expression to map a string onto a valid CPP name.
15895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15896
15897 # Sed expression to map a string onto a valid variable name.
15898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15899
15900
15901 exec 6>&1
15902 ## ----------------------------------- ##
15903 ## Main body of $CONFIG_STATUS script. ##
15904 ## ----------------------------------- ##
15905 _ASEOF
15906 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15907
15908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15909 # Save the log message, to keep $0 and so on meaningful, and to
15910 # report actual input values of CONFIG_FILES etc. instead of their
15911 # values after options handling.
15912 ac_log="
15913 This file was extended by bfd $as_me 2.39.50, which was
15914 generated by GNU Autoconf 2.69. Invocation command line was
15915
15916 CONFIG_FILES = $CONFIG_FILES
15917 CONFIG_HEADERS = $CONFIG_HEADERS
15918 CONFIG_LINKS = $CONFIG_LINKS
15919 CONFIG_COMMANDS = $CONFIG_COMMANDS
15920 $ $0 $@
15921
15922 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15923 "
15924
15925 _ACEOF
15926
15927 case $ac_config_files in *"
15928 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15929 esac
15930
15931 case $ac_config_headers in *"
15932 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15933 esac
15934
15935
15936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15937 # Files that config.status was made for.
15938 config_files="$ac_config_files"
15939 config_headers="$ac_config_headers"
15940 config_commands="$ac_config_commands"
15941
15942 _ACEOF
15943
15944 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15945 ac_cs_usage="\
15946 \`$as_me' instantiates files and other configuration actions
15947 from templates according to the current configuration. Unless the files
15948 and actions are specified as TAGs, all are instantiated by default.
15949
15950 Usage: $0 [OPTION]... [TAG]...
15951
15952 -h, --help print this help, then exit
15953 -V, --version print version number and configuration settings, then exit
15954 --config print configuration, then exit
15955 -q, --quiet, --silent
15956 do not print progress messages
15957 -d, --debug don't remove temporary files
15958 --recheck update $as_me by reconfiguring in the same conditions
15959 --file=FILE[:TEMPLATE]
15960 instantiate the configuration file FILE
15961 --header=FILE[:TEMPLATE]
15962 instantiate the configuration header FILE
15963
15964 Configuration files:
15965 $config_files
15966
15967 Configuration headers:
15968 $config_headers
15969
15970 Configuration commands:
15971 $config_commands
15972
15973 Report bugs to the package provider."
15974
15975 _ACEOF
15976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15977 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15978 ac_cs_version="\\
15979 bfd config.status 2.39.50
15980 configured by $0, generated by GNU Autoconf 2.69,
15981 with options \\"\$ac_cs_config\\"
15982
15983 Copyright (C) 2012 Free Software Foundation, Inc.
15984 This config.status script is free software; the Free Software Foundation
15985 gives unlimited permission to copy, distribute and modify it."
15986
15987 ac_pwd='$ac_pwd'
15988 srcdir='$srcdir'
15989 INSTALL='$INSTALL'
15990 MKDIR_P='$MKDIR_P'
15991 AWK='$AWK'
15992 test -n "\$AWK" || AWK=awk
15993 _ACEOF
15994
15995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15996 # The default lists apply if the user does not specify any file.
15997 ac_need_defaults=:
15998 while test $# != 0
15999 do
16000 case $1 in
16001 --*=?*)
16002 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16003 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16004 ac_shift=:
16005 ;;
16006 --*=)
16007 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16008 ac_optarg=
16009 ac_shift=:
16010 ;;
16011 *)
16012 ac_option=$1
16013 ac_optarg=$2
16014 ac_shift=shift
16015 ;;
16016 esac
16017
16018 case $ac_option in
16019 # Handling of the options.
16020 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16021 ac_cs_recheck=: ;;
16022 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16023 $as_echo "$ac_cs_version"; exit ;;
16024 --config | --confi | --conf | --con | --co | --c )
16025 $as_echo "$ac_cs_config"; exit ;;
16026 --debug | --debu | --deb | --de | --d | -d )
16027 debug=: ;;
16028 --file | --fil | --fi | --f )
16029 $ac_shift
16030 case $ac_optarg in
16031 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16032 '') as_fn_error $? "missing file argument" ;;
16033 esac
16034 as_fn_append CONFIG_FILES " '$ac_optarg'"
16035 ac_need_defaults=false;;
16036 --header | --heade | --head | --hea )
16037 $ac_shift
16038 case $ac_optarg in
16039 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16040 esac
16041 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16042 ac_need_defaults=false;;
16043 --he | --h)
16044 # Conflict between --help and --header
16045 as_fn_error $? "ambiguous option: \`$1'
16046 Try \`$0 --help' for more information.";;
16047 --help | --hel | -h )
16048 $as_echo "$ac_cs_usage"; exit ;;
16049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16050 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16051 ac_cs_silent=: ;;
16052
16053 # This is an error.
16054 -*) as_fn_error $? "unrecognized option: \`$1'
16055 Try \`$0 --help' for more information." ;;
16056
16057 *) as_fn_append ac_config_targets " $1"
16058 ac_need_defaults=false ;;
16059
16060 esac
16061 shift
16062 done
16063
16064 ac_configure_extra_args=
16065
16066 if $ac_cs_silent; then
16067 exec 6>/dev/null
16068 ac_configure_extra_args="$ac_configure_extra_args --silent"
16069 fi
16070
16071 _ACEOF
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 if \$ac_cs_recheck; then
16074 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16075 shift
16076 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16077 CONFIG_SHELL='$SHELL'
16078 export CONFIG_SHELL
16079 exec "\$@"
16080 fi
16081
16082 _ACEOF
16083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16084 exec 5>>config.log
16085 {
16086 echo
16087 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16088 ## Running $as_me. ##
16089 _ASBOX
16090 $as_echo "$ac_log"
16091 } >&5
16092
16093 _ACEOF
16094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16095 #
16096 # INIT-COMMANDS
16097 #
16098 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16099
16100
16101 # The HP-UX ksh and POSIX shell print the target directory to stdout
16102 # if CDPATH is set.
16103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16104
16105 sed_quote_subst='$sed_quote_subst'
16106 double_quote_subst='$double_quote_subst'
16107 delay_variable_subst='$delay_variable_subst'
16108 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16109 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16110 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16111 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16112 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16113 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16114 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16115 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16116 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16117 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16118 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16119 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16120 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16121 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16122 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16123 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16124 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16125 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16126 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16127 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16128 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16129 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16130 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16131 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16132 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16133 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16134 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16135 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16136 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16137 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16138 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16139 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16140 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16141 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16142 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16143 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16144 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16145 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16146 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16147 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16148 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16149 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16150 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16151 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16152 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16153 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16154 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16155 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16157 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16158 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16159 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16160 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16161 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16162 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16163 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16164 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16165 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16166 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16167 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16168 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16169 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16170 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16171 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16172 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16173 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16174 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16175 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16176 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16177 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16178 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16179 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16180 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16181 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16182 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16183 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16184 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16185 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16186 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16187 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16188 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16189 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16190 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16191 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16192 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16193 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16194 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16195 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16196 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16197 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16198 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16199 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16200 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16201 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16202 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16203 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16204 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16205 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16206 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16207 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16208 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16209 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16210 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16211 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16212 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16213 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16214 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16215 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16216 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16217 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16218 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16219 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16220 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16221 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16222 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16223 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16224 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16225 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16226 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16227 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16228
16229 LTCC='$LTCC'
16230 LTCFLAGS='$LTCFLAGS'
16231 compiler='$compiler_DEFAULT'
16232
16233 # A function that is used when there is no print builtin or printf.
16234 func_fallback_echo ()
16235 {
16236 eval 'cat <<_LTECHO_EOF
16237 \$1
16238 _LTECHO_EOF'
16239 }
16240
16241 # Quote evaled strings.
16242 for var in SHELL \
16243 ECHO \
16244 SED \
16245 GREP \
16246 EGREP \
16247 FGREP \
16248 LD \
16249 NM \
16250 LN_S \
16251 lt_SP2NL \
16252 lt_NL2SP \
16253 reload_flag \
16254 OBJDUMP \
16255 deplibs_check_method \
16256 file_magic_cmd \
16257 AR \
16258 AR_FLAGS \
16259 STRIP \
16260 RANLIB \
16261 CC \
16262 CFLAGS \
16263 compiler \
16264 lt_cv_sys_global_symbol_pipe \
16265 lt_cv_sys_global_symbol_to_cdecl \
16266 lt_cv_sys_global_symbol_to_c_name_address \
16267 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16268 lt_prog_compiler_no_builtin_flag \
16269 lt_prog_compiler_wl \
16270 lt_prog_compiler_pic \
16271 lt_prog_compiler_static \
16272 lt_cv_prog_compiler_c_o \
16273 need_locks \
16274 DSYMUTIL \
16275 NMEDIT \
16276 LIPO \
16277 OTOOL \
16278 OTOOL64 \
16279 shrext_cmds \
16280 export_dynamic_flag_spec \
16281 whole_archive_flag_spec \
16282 compiler_needs_object \
16283 with_gnu_ld \
16284 allow_undefined_flag \
16285 no_undefined_flag \
16286 hardcode_libdir_flag_spec \
16287 hardcode_libdir_flag_spec_ld \
16288 hardcode_libdir_separator \
16289 fix_srcfile_path \
16290 exclude_expsyms \
16291 include_expsyms \
16292 file_list_spec \
16293 variables_saved_for_relink \
16294 libname_spec \
16295 library_names_spec \
16296 soname_spec \
16297 install_override_mode \
16298 finish_eval \
16299 old_striplib \
16300 striplib; do
16301 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16302 *[\\\\\\\`\\"\\\$]*)
16303 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16304 ;;
16305 *)
16306 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16307 ;;
16308 esac
16309 done
16310
16311 # Double-quote double-evaled strings.
16312 for var in reload_cmds \
16313 old_postinstall_cmds \
16314 old_postuninstall_cmds \
16315 old_archive_cmds \
16316 extract_expsyms_cmds \
16317 old_archive_from_new_cmds \
16318 old_archive_from_expsyms_cmds \
16319 archive_cmds \
16320 archive_expsym_cmds \
16321 module_cmds \
16322 module_expsym_cmds \
16323 export_symbols_cmds \
16324 prelink_cmds \
16325 postinstall_cmds \
16326 postuninstall_cmds \
16327 finish_cmds \
16328 sys_lib_search_path_spec \
16329 sys_lib_dlsearch_path_spec; do
16330 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16331 *[\\\\\\\`\\"\\\$]*)
16332 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16333 ;;
16334 *)
16335 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16336 ;;
16337 esac
16338 done
16339
16340 ac_aux_dir='$ac_aux_dir'
16341 xsi_shell='$xsi_shell'
16342 lt_shell_append='$lt_shell_append'
16343
16344 # See if we are running on zsh, and set the options which allow our
16345 # commands through without removal of \ escapes INIT.
16346 if test -n "\${ZSH_VERSION+set}" ; then
16347 setopt NO_GLOB_SUBST
16348 fi
16349
16350
16351 PACKAGE='$PACKAGE'
16352 VERSION='$VERSION'
16353 TIMESTAMP='$TIMESTAMP'
16354 RM='$RM'
16355 ofile='$ofile'
16356
16357
16358
16359 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16360 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16361 # from automake.
16362 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16363 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16364 LINGUAS="${LINGUAS-%UNSET%}"
16365
16366
16367
16368 _ACEOF
16369
16370 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16371
16372 # Handling of arguments.
16373 for ac_config_target in $ac_config_targets
16374 do
16375 case $ac_config_target in
16376 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16377 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16379 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16381 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16382 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16383 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16384
16385 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16386 esac
16387 done
16388
16389
16390 # If the user did not use the arguments to specify the items to instantiate,
16391 # then the envvar interface is used. Set only those that are not.
16392 # We use the long form for the default assignment because of an extremely
16393 # bizarre bug on SunOS 4.1.3.
16394 if $ac_need_defaults; then
16395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16398 fi
16399
16400 # Have a temporary directory for convenience. Make it in the build tree
16401 # simply because there is no reason against having it here, and in addition,
16402 # creating and moving files from /tmp can sometimes cause problems.
16403 # Hook for its removal unless debugging.
16404 # Note that there is a small window in which the directory will not be cleaned:
16405 # after its creation but before its name has been assigned to `$tmp'.
16406 $debug ||
16407 {
16408 tmp= ac_tmp=
16409 trap 'exit_status=$?
16410 : "${ac_tmp:=$tmp}"
16411 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16412 ' 0
16413 trap 'as_fn_exit 1' 1 2 13 15
16414 }
16415 # Create a (secure) tmp directory for tmp files.
16416
16417 {
16418 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16419 test -d "$tmp"
16420 } ||
16421 {
16422 tmp=./conf$$-$RANDOM
16423 (umask 077 && mkdir "$tmp")
16424 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16425 ac_tmp=$tmp
16426
16427 # Set up the scripts for CONFIG_FILES section.
16428 # No need to generate them if there are no CONFIG_FILES.
16429 # This happens for instance with `./config.status config.h'.
16430 if test -n "$CONFIG_FILES"; then
16431
16432
16433 ac_cr=`echo X | tr X '\015'`
16434 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16435 # But we know of no other shell where ac_cr would be empty at this
16436 # point, so we can use a bashism as a fallback.
16437 if test "x$ac_cr" = x; then
16438 eval ac_cr=\$\'\\r\'
16439 fi
16440 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16441 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16442 ac_cs_awk_cr='\\r'
16443 else
16444 ac_cs_awk_cr=$ac_cr
16445 fi
16446
16447 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16448 _ACEOF
16449
16450
16451 {
16452 echo "cat >conf$$subs.awk <<_ACEOF" &&
16453 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16454 echo "_ACEOF"
16455 } >conf$$subs.sh ||
16456 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16457 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16458 ac_delim='%!_!# '
16459 for ac_last_try in false false false false false :; do
16460 . ./conf$$subs.sh ||
16461 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16462
16463 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16464 if test $ac_delim_n = $ac_delim_num; then
16465 break
16466 elif $ac_last_try; then
16467 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16468 else
16469 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16470 fi
16471 done
16472 rm -f conf$$subs.sh
16473
16474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16475 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16476 _ACEOF
16477 sed -n '
16478 h
16479 s/^/S["/; s/!.*/"]=/
16480 p
16481 g
16482 s/^[^!]*!//
16483 :repl
16484 t repl
16485 s/'"$ac_delim"'$//
16486 t delim
16487 :nl
16488 h
16489 s/\(.\{148\}\)..*/\1/
16490 t more1
16491 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16492 p
16493 n
16494 b repl
16495 :more1
16496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16497 p
16498 g
16499 s/.\{148\}//
16500 t nl
16501 :delim
16502 h
16503 s/\(.\{148\}\)..*/\1/
16504 t more2
16505 s/["\\]/\\&/g; s/^/"/; s/$/"/
16506 p
16507 b
16508 :more2
16509 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16510 p
16511 g
16512 s/.\{148\}//
16513 t delim
16514 ' <conf$$subs.awk | sed '
16515 /^[^""]/{
16516 N
16517 s/\n//
16518 }
16519 ' >>$CONFIG_STATUS || ac_write_fail=1
16520 rm -f conf$$subs.awk
16521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16522 _ACAWK
16523 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16524 for (key in S) S_is_set[key] = 1
16525 FS = ""
16526
16527 }
16528 {
16529 line = $ 0
16530 nfields = split(line, field, "@")
16531 substed = 0
16532 len = length(field[1])
16533 for (i = 2; i < nfields; i++) {
16534 key = field[i]
16535 keylen = length(key)
16536 if (S_is_set[key]) {
16537 value = S[key]
16538 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16539 len += length(value) + length(field[++i])
16540 substed = 1
16541 } else
16542 len += 1 + keylen
16543 }
16544
16545 print line
16546 }
16547
16548 _ACAWK
16549 _ACEOF
16550 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16551 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16552 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16553 else
16554 cat
16555 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16556 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16557 _ACEOF
16558
16559 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16560 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16561 # trailing colons and then remove the whole line if VPATH becomes empty
16562 # (actually we leave an empty line to preserve line numbers).
16563 if test "x$srcdir" = x.; then
16564 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16565 h
16566 s///
16567 s/^/:/
16568 s/[ ]*$/:/
16569 s/:\$(srcdir):/:/g
16570 s/:\${srcdir}:/:/g
16571 s/:@srcdir@:/:/g
16572 s/^:*//
16573 s/:*$//
16574 x
16575 s/\(=[ ]*\).*/\1/
16576 G
16577 s/\n//
16578 s/^[^=]*=[ ]*$//
16579 }'
16580 fi
16581
16582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16583 fi # test -n "$CONFIG_FILES"
16584
16585 # Set up the scripts for CONFIG_HEADERS section.
16586 # No need to generate them if there are no CONFIG_HEADERS.
16587 # This happens for instance with `./config.status Makefile'.
16588 if test -n "$CONFIG_HEADERS"; then
16589 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16590 BEGIN {
16591 _ACEOF
16592
16593 # Transform confdefs.h into an awk script `defines.awk', embedded as
16594 # here-document in config.status, that substitutes the proper values into
16595 # config.h.in to produce config.h.
16596
16597 # Create a delimiter string that does not exist in confdefs.h, to ease
16598 # handling of long lines.
16599 ac_delim='%!_!# '
16600 for ac_last_try in false false :; do
16601 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16602 if test -z "$ac_tt"; then
16603 break
16604 elif $ac_last_try; then
16605 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16606 else
16607 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16608 fi
16609 done
16610
16611 # For the awk script, D is an array of macro values keyed by name,
16612 # likewise P contains macro parameters if any. Preserve backslash
16613 # newline sequences.
16614
16615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16616 sed -n '
16617 s/.\{148\}/&'"$ac_delim"'/g
16618 t rset
16619 :rset
16620 s/^[ ]*#[ ]*define[ ][ ]*/ /
16621 t def
16622 d
16623 :def
16624 s/\\$//
16625 t bsnl
16626 s/["\\]/\\&/g
16627 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16628 D["\1"]=" \3"/p
16629 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16630 d
16631 :bsnl
16632 s/["\\]/\\&/g
16633 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16634 D["\1"]=" \3\\\\\\n"\\/p
16635 t cont
16636 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16637 t cont
16638 d
16639 :cont
16640 n
16641 s/.\{148\}/&'"$ac_delim"'/g
16642 t clear
16643 :clear
16644 s/\\$//
16645 t bsnlc
16646 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16647 d
16648 :bsnlc
16649 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16650 b cont
16651 ' <confdefs.h | sed '
16652 s/'"$ac_delim"'/"\\\
16653 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16654
16655 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16656 for (key in D) D_is_set[key] = 1
16657 FS = ""
16658 }
16659 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16660 line = \$ 0
16661 split(line, arg, " ")
16662 if (arg[1] == "#") {
16663 defundef = arg[2]
16664 mac1 = arg[3]
16665 } else {
16666 defundef = substr(arg[1], 2)
16667 mac1 = arg[2]
16668 }
16669 split(mac1, mac2, "(") #)
16670 macro = mac2[1]
16671 prefix = substr(line, 1, index(line, defundef) - 1)
16672 if (D_is_set[macro]) {
16673 # Preserve the white space surrounding the "#".
16674 print prefix "define", macro P[macro] D[macro]
16675 next
16676 } else {
16677 # Replace #undef with comments. This is necessary, for example,
16678 # in the case of _POSIX_SOURCE, which is predefined and required
16679 # on some systems where configure will not decide to define it.
16680 if (defundef == "undef") {
16681 print "/*", prefix defundef, macro, "*/"
16682 next
16683 }
16684 }
16685 }
16686 { print }
16687 _ACAWK
16688 _ACEOF
16689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16690 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16691 fi # test -n "$CONFIG_HEADERS"
16692
16693
16694 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16695 shift
16696 for ac_tag
16697 do
16698 case $ac_tag in
16699 :[FHLC]) ac_mode=$ac_tag; continue;;
16700 esac
16701 case $ac_mode$ac_tag in
16702 :[FHL]*:*);;
16703 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16704 :[FH]-) ac_tag=-:-;;
16705 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16706 esac
16707 ac_save_IFS=$IFS
16708 IFS=:
16709 set x $ac_tag
16710 IFS=$ac_save_IFS
16711 shift
16712 ac_file=$1
16713 shift
16714
16715 case $ac_mode in
16716 :L) ac_source=$1;;
16717 :[FH])
16718 ac_file_inputs=
16719 for ac_f
16720 do
16721 case $ac_f in
16722 -) ac_f="$ac_tmp/stdin";;
16723 *) # Look for the file first in the build tree, then in the source tree
16724 # (if the path is not absolute). The absolute path cannot be DOS-style,
16725 # because $ac_f cannot contain `:'.
16726 test -f "$ac_f" ||
16727 case $ac_f in
16728 [\\/$]*) false;;
16729 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16730 esac ||
16731 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16732 esac
16733 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16734 as_fn_append ac_file_inputs " '$ac_f'"
16735 done
16736
16737 # Let's still pretend it is `configure' which instantiates (i.e., don't
16738 # use $as_me), people would be surprised to read:
16739 # /* config.h. Generated by config.status. */
16740 configure_input='Generated from '`
16741 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16742 `' by configure.'
16743 if test x"$ac_file" != x-; then
16744 configure_input="$ac_file. $configure_input"
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16746 $as_echo "$as_me: creating $ac_file" >&6;}
16747 fi
16748 # Neutralize special characters interpreted by sed in replacement strings.
16749 case $configure_input in #(
16750 *\&* | *\|* | *\\* )
16751 ac_sed_conf_input=`$as_echo "$configure_input" |
16752 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16753 *) ac_sed_conf_input=$configure_input;;
16754 esac
16755
16756 case $ac_tag in
16757 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16759 esac
16760 ;;
16761 esac
16762
16763 ac_dir=`$as_dirname -- "$ac_file" ||
16764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16765 X"$ac_file" : 'X\(//\)[^/]' \| \
16766 X"$ac_file" : 'X\(//\)$' \| \
16767 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16768 $as_echo X"$ac_file" |
16769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16770 s//\1/
16771 q
16772 }
16773 /^X\(\/\/\)[^/].*/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\/\)$/{
16778 s//\1/
16779 q
16780 }
16781 /^X\(\/\).*/{
16782 s//\1/
16783 q
16784 }
16785 s/.*/./; q'`
16786 as_dir="$ac_dir"; as_fn_mkdir_p
16787 ac_builddir=.
16788
16789 case "$ac_dir" in
16790 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16791 *)
16792 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16793 # A ".." for each directory in $ac_dir_suffix.
16794 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16795 case $ac_top_builddir_sub in
16796 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16797 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16798 esac ;;
16799 esac
16800 ac_abs_top_builddir=$ac_pwd
16801 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16802 # for backward compatibility:
16803 ac_top_builddir=$ac_top_build_prefix
16804
16805 case $srcdir in
16806 .) # We are building in place.
16807 ac_srcdir=.
16808 ac_top_srcdir=$ac_top_builddir_sub
16809 ac_abs_top_srcdir=$ac_pwd ;;
16810 [\\/]* | ?:[\\/]* ) # Absolute name.
16811 ac_srcdir=$srcdir$ac_dir_suffix;
16812 ac_top_srcdir=$srcdir
16813 ac_abs_top_srcdir=$srcdir ;;
16814 *) # Relative name.
16815 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16816 ac_top_srcdir=$ac_top_build_prefix$srcdir
16817 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16818 esac
16819 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16820
16821
16822 case $ac_mode in
16823 :F)
16824 #
16825 # CONFIG_FILE
16826 #
16827
16828 case $INSTALL in
16829 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16830 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16831 esac
16832 ac_MKDIR_P=$MKDIR_P
16833 case $MKDIR_P in
16834 [\\/$]* | ?:[\\/]* ) ;;
16835 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16836 esac
16837 _ACEOF
16838
16839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16840 # If the template does not know about datarootdir, expand it.
16841 # FIXME: This hack should be removed a few years after 2.60.
16842 ac_datarootdir_hack=; ac_datarootdir_seen=
16843 ac_sed_dataroot='
16844 /datarootdir/ {
16845 p
16846 q
16847 }
16848 /@datadir@/p
16849 /@docdir@/p
16850 /@infodir@/p
16851 /@localedir@/p
16852 /@mandir@/p'
16853 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16854 *datarootdir*) ac_datarootdir_seen=yes;;
16855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16857 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16858 _ACEOF
16859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16860 ac_datarootdir_hack='
16861 s&@datadir@&$datadir&g
16862 s&@docdir@&$docdir&g
16863 s&@infodir@&$infodir&g
16864 s&@localedir@&$localedir&g
16865 s&@mandir@&$mandir&g
16866 s&\\\${datarootdir}&$datarootdir&g' ;;
16867 esac
16868 _ACEOF
16869
16870 # Neutralize VPATH when `$srcdir' = `.'.
16871 # Shell code in configure.ac might set extrasub.
16872 # FIXME: do we really want to maintain this feature?
16873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16874 ac_sed_extra="$ac_vpsub
16875 $extrasub
16876 _ACEOF
16877 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16878 :t
16879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16880 s|@configure_input@|$ac_sed_conf_input|;t t
16881 s&@top_builddir@&$ac_top_builddir_sub&;t t
16882 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16883 s&@srcdir@&$ac_srcdir&;t t
16884 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16885 s&@top_srcdir@&$ac_top_srcdir&;t t
16886 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16887 s&@builddir@&$ac_builddir&;t t
16888 s&@abs_builddir@&$ac_abs_builddir&;t t
16889 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16890 s&@INSTALL@&$ac_INSTALL&;t t
16891 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16892 $ac_datarootdir_hack
16893 "
16894 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16895 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16896
16897 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16898 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16899 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16900 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16902 which seems to be undefined. Please make sure it is defined" >&5
16903 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16904 which seems to be undefined. Please make sure it is defined" >&2;}
16905
16906 rm -f "$ac_tmp/stdin"
16907 case $ac_file in
16908 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16909 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16910 esac \
16911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16912 ;;
16913 :H)
16914 #
16915 # CONFIG_HEADER
16916 #
16917 if test x"$ac_file" != x-; then
16918 {
16919 $as_echo "/* $configure_input */" \
16920 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16921 } >"$ac_tmp/config.h" \
16922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16923 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16925 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16926 else
16927 rm -f "$ac_file"
16928 mv "$ac_tmp/config.h" "$ac_file" \
16929 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16930 fi
16931 else
16932 $as_echo "/* $configure_input */" \
16933 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16934 || as_fn_error $? "could not create -" "$LINENO" 5
16935 fi
16936 # Compute "$ac_file"'s index in $config_headers.
16937 _am_arg="$ac_file"
16938 _am_stamp_count=1
16939 for _am_header in $config_headers :; do
16940 case $_am_header in
16941 $_am_arg | $_am_arg:* )
16942 break ;;
16943 * )
16944 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16945 esac
16946 done
16947 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16948 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16949 X"$_am_arg" : 'X\(//\)[^/]' \| \
16950 X"$_am_arg" : 'X\(//\)$' \| \
16951 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16952 $as_echo X"$_am_arg" |
16953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16954 s//\1/
16955 q
16956 }
16957 /^X\(\/\/\)[^/].*/{
16958 s//\1/
16959 q
16960 }
16961 /^X\(\/\/\)$/{
16962 s//\1/
16963 q
16964 }
16965 /^X\(\/\).*/{
16966 s//\1/
16967 q
16968 }
16969 s/.*/./; q'`/stamp-h$_am_stamp_count
16970 ;;
16971
16972 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16973 $as_echo "$as_me: executing $ac_file commands" >&6;}
16974 ;;
16975 esac
16976
16977
16978 case $ac_file$ac_mode in
16979 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16980 # Older Autoconf quotes --file arguments for eval, but not when files
16981 # are listed without --file. Let's play safe and only enable the eval
16982 # if we detect the quoting.
16983 case $CONFIG_FILES in
16984 *\'*) eval set x "$CONFIG_FILES" ;;
16985 *) set x $CONFIG_FILES ;;
16986 esac
16987 shift
16988 for mf
16989 do
16990 # Strip MF so we end up with the name of the file.
16991 mf=`echo "$mf" | sed -e 's/:.*$//'`
16992 # Check whether this is an Automake generated Makefile or not.
16993 # We used to match only the files named 'Makefile.in', but
16994 # some people rename them; so instead we look at the file content.
16995 # Grep'ing the first line is not enough: some people post-process
16996 # each Makefile.in and add a new line on top of each file to say so.
16997 # Grep'ing the whole file is not good either: AIX grep has a line
16998 # limit of 2048, but all sed's we know have understand at least 4000.
16999 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17000 dirpart=`$as_dirname -- "$mf" ||
17001 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17002 X"$mf" : 'X\(//\)[^/]' \| \
17003 X"$mf" : 'X\(//\)$' \| \
17004 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17005 $as_echo X"$mf" |
17006 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17007 s//\1/
17008 q
17009 }
17010 /^X\(\/\/\)[^/].*/{
17011 s//\1/
17012 q
17013 }
17014 /^X\(\/\/\)$/{
17015 s//\1/
17016 q
17017 }
17018 /^X\(\/\).*/{
17019 s//\1/
17020 q
17021 }
17022 s/.*/./; q'`
17023 else
17024 continue
17025 fi
17026 # Extract the definition of DEPDIR, am__include, and am__quote
17027 # from the Makefile without running 'make'.
17028 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17029 test -z "$DEPDIR" && continue
17030 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17031 test -z "$am__include" && continue
17032 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17033 # Find all dependency output files, they are included files with
17034 # $(DEPDIR) in their names. We invoke sed twice because it is the
17035 # simplest approach to changing $(DEPDIR) to its actual value in the
17036 # expansion.
17037 for file in `sed -n "
17038 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17039 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17040 # Make sure the directory exists.
17041 test -f "$dirpart/$file" && continue
17042 fdir=`$as_dirname -- "$file" ||
17043 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17044 X"$file" : 'X\(//\)[^/]' \| \
17045 X"$file" : 'X\(//\)$' \| \
17046 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17047 $as_echo X"$file" |
17048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17049 s//\1/
17050 q
17051 }
17052 /^X\(\/\/\)[^/].*/{
17053 s//\1/
17054 q
17055 }
17056 /^X\(\/\/\)$/{
17057 s//\1/
17058 q
17059 }
17060 /^X\(\/\).*/{
17061 s//\1/
17062 q
17063 }
17064 s/.*/./; q'`
17065 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17066 # echo "creating $dirpart/$file"
17067 echo '# dummy' > "$dirpart/$file"
17068 done
17069 done
17070 }
17071 ;;
17072 "libtool":C)
17073
17074 # See if we are running on zsh, and set the options which allow our
17075 # commands through without removal of \ escapes.
17076 if test -n "${ZSH_VERSION+set}" ; then
17077 setopt NO_GLOB_SUBST
17078 fi
17079
17080 cfgfile="${ofile}T"
17081 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17082 $RM "$cfgfile"
17083
17084 cat <<_LT_EOF >> "$cfgfile"
17085 #! $SHELL
17086
17087 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17088 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17089 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17090 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17091 #
17092 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17093 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17094 # Written by Gordon Matzigkeit, 1996
17095 #
17096 # This file is part of GNU Libtool.
17097 #
17098 # GNU Libtool is free software; you can redistribute it and/or
17099 # modify it under the terms of the GNU General Public License as
17100 # published by the Free Software Foundation; either version 2 of
17101 # the License, or (at your option) any later version.
17102 #
17103 # As a special exception to the GNU General Public License,
17104 # if you distribute this file as part of a program or library that
17105 # is built using GNU Libtool, you may include this file under the
17106 # same distribution terms that you use for the rest of that program.
17107 #
17108 # GNU Libtool is distributed in the hope that it will be useful,
17109 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17110 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17111 # GNU General Public License for more details.
17112 #
17113 # You should have received a copy of the GNU General Public License
17114 # along with GNU Libtool; see the file COPYING. If not, a copy
17115 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17116 # obtained by writing to the Free Software Foundation, Inc.,
17117 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17118
17119
17120 # The names of the tagged configurations supported by this script.
17121 available_tags=""
17122
17123 # ### BEGIN LIBTOOL CONFIG
17124
17125 # Whether or not to build shared libraries.
17126 build_libtool_libs=$enable_shared
17127
17128 # Which release of libtool.m4 was used?
17129 macro_version=$macro_version
17130 macro_revision=$macro_revision
17131
17132 # Whether or not to build static libraries.
17133 build_old_libs=$enable_static
17134
17135 # What type of objects to build.
17136 pic_mode=$pic_mode
17137
17138 # Whether or not to optimize for fast installation.
17139 fast_install=$enable_fast_install
17140
17141 # Shell to use when invoking shell scripts.
17142 SHELL=$lt_SHELL
17143
17144 # An echo program that protects backslashes.
17145 ECHO=$lt_ECHO
17146
17147 # The host system.
17148 host_alias=$host_alias
17149 host=$host
17150 host_os=$host_os
17151
17152 # The build system.
17153 build_alias=$build_alias
17154 build=$build
17155 build_os=$build_os
17156
17157 # A sed program that does not truncate output.
17158 SED=$lt_SED
17159
17160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17161 Xsed="\$SED -e 1s/^X//"
17162
17163 # A grep program that handles long lines.
17164 GREP=$lt_GREP
17165
17166 # An ERE matcher.
17167 EGREP=$lt_EGREP
17168
17169 # A literal string matcher.
17170 FGREP=$lt_FGREP
17171
17172 # A BSD- or MS-compatible name lister.
17173 NM=$lt_NM
17174
17175 # Whether we need soft or hard links.
17176 LN_S=$lt_LN_S
17177
17178 # What is the maximum length of a command?
17179 max_cmd_len=$max_cmd_len
17180
17181 # Object file suffix (normally "o").
17182 objext=$ac_objext
17183
17184 # Executable file suffix (normally "").
17185 exeext=$exeext
17186
17187 # whether the shell understands "unset".
17188 lt_unset=$lt_unset
17189
17190 # turn spaces into newlines.
17191 SP2NL=$lt_lt_SP2NL
17192
17193 # turn newlines into spaces.
17194 NL2SP=$lt_lt_NL2SP
17195
17196 # An object symbol dumper.
17197 OBJDUMP=$lt_OBJDUMP
17198
17199 # Method to check whether dependent libraries are shared objects.
17200 deplibs_check_method=$lt_deplibs_check_method
17201
17202 # Command to use when deplibs_check_method == "file_magic".
17203 file_magic_cmd=$lt_file_magic_cmd
17204
17205 # The archiver.
17206 AR=$lt_AR
17207 AR_FLAGS=$lt_AR_FLAGS
17208
17209 # A symbol stripping program.
17210 STRIP=$lt_STRIP
17211
17212 # Commands used to install an old-style archive.
17213 RANLIB=$lt_RANLIB
17214 old_postinstall_cmds=$lt_old_postinstall_cmds
17215 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17216
17217 # Whether to use a lock for old archive extraction.
17218 lock_old_archive_extraction=$lock_old_archive_extraction
17219
17220 # A C compiler.
17221 LTCC=$lt_CC
17222
17223 # LTCC compiler flags.
17224 LTCFLAGS=$lt_CFLAGS
17225
17226 # Take the output of nm and produce a listing of raw symbols and C names.
17227 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17228
17229 # Transform the output of nm in a proper C declaration.
17230 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17231
17232 # Transform the output of nm in a C name address pair.
17233 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17234
17235 # Transform the output of nm in a C name address pair when lib prefix is needed.
17236 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17237
17238 # The name of the directory that contains temporary libtool files.
17239 objdir=$objdir
17240
17241 # Used to examine libraries when file_magic_cmd begins with "file".
17242 MAGIC_CMD=$MAGIC_CMD
17243
17244 # Must we lock files when doing compilation?
17245 need_locks=$lt_need_locks
17246
17247 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17248 DSYMUTIL=$lt_DSYMUTIL
17249
17250 # Tool to change global to local symbols on Mac OS X.
17251 NMEDIT=$lt_NMEDIT
17252
17253 # Tool to manipulate fat objects and archives on Mac OS X.
17254 LIPO=$lt_LIPO
17255
17256 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17257 OTOOL=$lt_OTOOL
17258
17259 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17260 OTOOL64=$lt_OTOOL64
17261
17262 # Old archive suffix (normally "a").
17263 libext=$libext
17264
17265 # Shared library suffix (normally ".so").
17266 shrext_cmds=$lt_shrext_cmds
17267
17268 # The commands to extract the exported symbol list from a shared archive.
17269 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17270
17271 # Variables whose values should be saved in libtool wrapper scripts and
17272 # restored at link time.
17273 variables_saved_for_relink=$lt_variables_saved_for_relink
17274
17275 # Do we need the "lib" prefix for modules?
17276 need_lib_prefix=$need_lib_prefix
17277
17278 # Do we need a version for libraries?
17279 need_version=$need_version
17280
17281 # Library versioning type.
17282 version_type=$version_type
17283
17284 # Shared library runtime path variable.
17285 runpath_var=$runpath_var
17286
17287 # Shared library path variable.
17288 shlibpath_var=$shlibpath_var
17289
17290 # Is shlibpath searched before the hard-coded library search path?
17291 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17292
17293 # Format of library name prefix.
17294 libname_spec=$lt_libname_spec
17295
17296 # List of archive names. First name is the real one, the rest are links.
17297 # The last name is the one that the linker finds with -lNAME
17298 library_names_spec=$lt_library_names_spec
17299
17300 # The coded name of the library, if different from the real name.
17301 soname_spec=$lt_soname_spec
17302
17303 # Permission mode override for installation of shared libraries.
17304 install_override_mode=$lt_install_override_mode
17305
17306 # Command to use after installation of a shared archive.
17307 postinstall_cmds=$lt_postinstall_cmds
17308
17309 # Command to use after uninstallation of a shared archive.
17310 postuninstall_cmds=$lt_postuninstall_cmds
17311
17312 # Commands used to finish a libtool library installation in a directory.
17313 finish_cmds=$lt_finish_cmds
17314
17315 # As "finish_cmds", except a single script fragment to be evaled but
17316 # not shown.
17317 finish_eval=$lt_finish_eval
17318
17319 # Whether we should hardcode library paths into libraries.
17320 hardcode_into_libs=$hardcode_into_libs
17321
17322 # Compile-time system search path for libraries.
17323 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17324
17325 # Run-time system search path for libraries.
17326 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17327
17328 # Whether dlopen is supported.
17329 dlopen_support=$enable_dlopen
17330
17331 # Whether dlopen of programs is supported.
17332 dlopen_self=$enable_dlopen_self
17333
17334 # Whether dlopen of statically linked programs is supported.
17335 dlopen_self_static=$enable_dlopen_self_static
17336
17337 # Commands to strip libraries.
17338 old_striplib=$lt_old_striplib
17339 striplib=$lt_striplib
17340
17341
17342 # The linker used to build libraries.
17343 LD=$lt_LD
17344
17345 # How to create reloadable object files.
17346 reload_flag=$lt_reload_flag
17347 reload_cmds=$lt_reload_cmds
17348
17349 # Commands used to build an old-style archive.
17350 old_archive_cmds=$lt_old_archive_cmds
17351
17352 # A language specific compiler.
17353 CC=$lt_compiler
17354
17355 # Is the compiler the GNU compiler?
17356 with_gcc=$GCC
17357
17358 # Compiler flag to turn off builtin functions.
17359 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17360
17361 # How to pass a linker flag through the compiler.
17362 wl=$lt_lt_prog_compiler_wl
17363
17364 # Additional compiler flags for building library objects.
17365 pic_flag=$lt_lt_prog_compiler_pic
17366
17367 # Compiler flag to prevent dynamic linking.
17368 link_static_flag=$lt_lt_prog_compiler_static
17369
17370 # Does compiler simultaneously support -c and -o options?
17371 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17372
17373 # Whether or not to add -lc for building shared libraries.
17374 build_libtool_need_lc=$archive_cmds_need_lc
17375
17376 # Whether or not to disallow shared libs when runtime libs are static.
17377 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17378
17379 # Compiler flag to allow reflexive dlopens.
17380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17381
17382 # Compiler flag to generate shared objects directly from archives.
17383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17384
17385 # Whether the compiler copes with passing no objects directly.
17386 compiler_needs_object=$lt_compiler_needs_object
17387
17388 # Create an old-style archive from a shared archive.
17389 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17390
17391 # Create a temporary old-style archive to link instead of a shared archive.
17392 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17393
17394 # Commands used to build a shared archive.
17395 archive_cmds=$lt_archive_cmds
17396 archive_expsym_cmds=$lt_archive_expsym_cmds
17397
17398 # Commands used to build a loadable module if different from building
17399 # a shared archive.
17400 module_cmds=$lt_module_cmds
17401 module_expsym_cmds=$lt_module_expsym_cmds
17402
17403 # Whether we are building with GNU ld or not.
17404 with_gnu_ld=$lt_with_gnu_ld
17405
17406 # Flag that allows shared libraries with undefined symbols to be built.
17407 allow_undefined_flag=$lt_allow_undefined_flag
17408
17409 # Flag that enforces no undefined symbols.
17410 no_undefined_flag=$lt_no_undefined_flag
17411
17412 # Flag to hardcode \$libdir into a binary during linking.
17413 # This must work even if \$libdir does not exist
17414 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17415
17416 # If ld is used when linking, flag to hardcode \$libdir into a binary
17417 # during linking. This must work even if \$libdir does not exist.
17418 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17419
17420 # Whether we need a single "-rpath" flag with a separated argument.
17421 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17422
17423 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17424 # DIR into the resulting binary.
17425 hardcode_direct=$hardcode_direct
17426
17427 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17428 # DIR into the resulting binary and the resulting library dependency is
17429 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17430 # library is relocated.
17431 hardcode_direct_absolute=$hardcode_direct_absolute
17432
17433 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17434 # into the resulting binary.
17435 hardcode_minus_L=$hardcode_minus_L
17436
17437 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17438 # into the resulting binary.
17439 hardcode_shlibpath_var=$hardcode_shlibpath_var
17440
17441 # Set to "yes" if building a shared library automatically hardcodes DIR
17442 # into the library and all subsequent libraries and executables linked
17443 # against it.
17444 hardcode_automatic=$hardcode_automatic
17445
17446 # Set to yes if linker adds runtime paths of dependent libraries
17447 # to runtime path list.
17448 inherit_rpath=$inherit_rpath
17449
17450 # Whether libtool must link a program against all its dependency libraries.
17451 link_all_deplibs=$link_all_deplibs
17452
17453 # Fix the shell variable \$srcfile for the compiler.
17454 fix_srcfile_path=$lt_fix_srcfile_path
17455
17456 # Set to "yes" if exported symbols are required.
17457 always_export_symbols=$always_export_symbols
17458
17459 # The commands to list exported symbols.
17460 export_symbols_cmds=$lt_export_symbols_cmds
17461
17462 # Symbols that should not be listed in the preloaded symbols.
17463 exclude_expsyms=$lt_exclude_expsyms
17464
17465 # Symbols that must always be exported.
17466 include_expsyms=$lt_include_expsyms
17467
17468 # Commands necessary for linking programs (against libraries) with templates.
17469 prelink_cmds=$lt_prelink_cmds
17470
17471 # Specify filename containing input files.
17472 file_list_spec=$lt_file_list_spec
17473
17474 # How to hardcode a shared library path into an executable.
17475 hardcode_action=$hardcode_action
17476
17477 # ### END LIBTOOL CONFIG
17478
17479 _LT_EOF
17480
17481 case $host_os in
17482 aix3*)
17483 cat <<\_LT_EOF >> "$cfgfile"
17484 # AIX sometimes has problems with the GCC collect2 program. For some
17485 # reason, if we set the COLLECT_NAMES environment variable, the problems
17486 # vanish in a puff of smoke.
17487 if test "X${COLLECT_NAMES+set}" != Xset; then
17488 COLLECT_NAMES=
17489 export COLLECT_NAMES
17490 fi
17491 _LT_EOF
17492 ;;
17493 esac
17494
17495
17496 ltmain="$ac_aux_dir/ltmain.sh"
17497
17498
17499 # We use sed instead of cat because bash on DJGPP gets confused if
17500 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17501 # text mode, it properly converts lines to CR/LF. This bash problem
17502 # is reportedly fixed, but why not run on old versions too?
17503 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17504 || (rm -f "$cfgfile"; exit 1)
17505
17506 case $xsi_shell in
17507 yes)
17508 cat << \_LT_EOF >> "$cfgfile"
17509
17510 # func_dirname file append nondir_replacement
17511 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17512 # otherwise set result to NONDIR_REPLACEMENT.
17513 func_dirname ()
17514 {
17515 case ${1} in
17516 */*) func_dirname_result="${1%/*}${2}" ;;
17517 * ) func_dirname_result="${3}" ;;
17518 esac
17519 }
17520
17521 # func_basename file
17522 func_basename ()
17523 {
17524 func_basename_result="${1##*/}"
17525 }
17526
17527 # func_dirname_and_basename file append nondir_replacement
17528 # perform func_basename and func_dirname in a single function
17529 # call:
17530 # dirname: Compute the dirname of FILE. If nonempty,
17531 # add APPEND to the result, otherwise set result
17532 # to NONDIR_REPLACEMENT.
17533 # value returned in "$func_dirname_result"
17534 # basename: Compute filename of FILE.
17535 # value retuned in "$func_basename_result"
17536 # Implementation must be kept synchronized with func_dirname
17537 # and func_basename. For efficiency, we do not delegate to
17538 # those functions but instead duplicate the functionality here.
17539 func_dirname_and_basename ()
17540 {
17541 case ${1} in
17542 */*) func_dirname_result="${1%/*}${2}" ;;
17543 * ) func_dirname_result="${3}" ;;
17544 esac
17545 func_basename_result="${1##*/}"
17546 }
17547
17548 # func_stripname prefix suffix name
17549 # strip PREFIX and SUFFIX off of NAME.
17550 # PREFIX and SUFFIX must not contain globbing or regex special
17551 # characters, hashes, percent signs, but SUFFIX may contain a leading
17552 # dot (in which case that matches only a dot).
17553 func_stripname ()
17554 {
17555 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17556 # positional parameters, so assign one to ordinary parameter first.
17557 func_stripname_result=${3}
17558 func_stripname_result=${func_stripname_result#"${1}"}
17559 func_stripname_result=${func_stripname_result%"${2}"}
17560 }
17561
17562 # func_opt_split
17563 func_opt_split ()
17564 {
17565 func_opt_split_opt=${1%%=*}
17566 func_opt_split_arg=${1#*=}
17567 }
17568
17569 # func_lo2o object
17570 func_lo2o ()
17571 {
17572 case ${1} in
17573 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17574 *) func_lo2o_result=${1} ;;
17575 esac
17576 }
17577
17578 # func_xform libobj-or-source
17579 func_xform ()
17580 {
17581 func_xform_result=${1%.*}.lo
17582 }
17583
17584 # func_arith arithmetic-term...
17585 func_arith ()
17586 {
17587 func_arith_result=$(( $* ))
17588 }
17589
17590 # func_len string
17591 # STRING may not start with a hyphen.
17592 func_len ()
17593 {
17594 func_len_result=${#1}
17595 }
17596
17597 _LT_EOF
17598 ;;
17599 *) # Bourne compatible functions.
17600 cat << \_LT_EOF >> "$cfgfile"
17601
17602 # func_dirname file append nondir_replacement
17603 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17604 # otherwise set result to NONDIR_REPLACEMENT.
17605 func_dirname ()
17606 {
17607 # Extract subdirectory from the argument.
17608 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17609 if test "X$func_dirname_result" = "X${1}"; then
17610 func_dirname_result="${3}"
17611 else
17612 func_dirname_result="$func_dirname_result${2}"
17613 fi
17614 }
17615
17616 # func_basename file
17617 func_basename ()
17618 {
17619 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17620 }
17621
17622
17623 # func_stripname prefix suffix name
17624 # strip PREFIX and SUFFIX off of NAME.
17625 # PREFIX and SUFFIX must not contain globbing or regex special
17626 # characters, hashes, percent signs, but SUFFIX may contain a leading
17627 # dot (in which case that matches only a dot).
17628 # func_strip_suffix prefix name
17629 func_stripname ()
17630 {
17631 case ${2} in
17632 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17633 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17634 esac
17635 }
17636
17637 # sed scripts:
17638 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17639 my_sed_long_arg='1s/^-[^=]*=//'
17640
17641 # func_opt_split
17642 func_opt_split ()
17643 {
17644 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17645 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17646 }
17647
17648 # func_lo2o object
17649 func_lo2o ()
17650 {
17651 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17652 }
17653
17654 # func_xform libobj-or-source
17655 func_xform ()
17656 {
17657 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17658 }
17659
17660 # func_arith arithmetic-term...
17661 func_arith ()
17662 {
17663 func_arith_result=`expr "$@"`
17664 }
17665
17666 # func_len string
17667 # STRING may not start with a hyphen.
17668 func_len ()
17669 {
17670 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17671 }
17672
17673 _LT_EOF
17674 esac
17675
17676 case $lt_shell_append in
17677 yes)
17678 cat << \_LT_EOF >> "$cfgfile"
17679
17680 # func_append var value
17681 # Append VALUE to the end of shell variable VAR.
17682 func_append ()
17683 {
17684 eval "$1+=\$2"
17685 }
17686 _LT_EOF
17687 ;;
17688 *)
17689 cat << \_LT_EOF >> "$cfgfile"
17690
17691 # func_append var value
17692 # Append VALUE to the end of shell variable VAR.
17693 func_append ()
17694 {
17695 eval "$1=\$$1\$2"
17696 }
17697
17698 _LT_EOF
17699 ;;
17700 esac
17701
17702
17703 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17704 || (rm -f "$cfgfile"; exit 1)
17705
17706 mv -f "$cfgfile" "$ofile" ||
17707 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17708 chmod +x "$ofile"
17709
17710 ;;
17711 "default-1":C)
17712 for ac_file in $CONFIG_FILES; do
17713 # Support "outfile[:infile[:infile...]]"
17714 case "$ac_file" in
17715 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17716 esac
17717 # PO directories have a Makefile.in generated from Makefile.in.in.
17718 case "$ac_file" in */Makefile.in)
17719 # Adjust a relative srcdir.
17720 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17721 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
17722 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17723 # In autoconf-2.13 it is called $ac_given_srcdir.
17724 # In autoconf-2.50 it is called $srcdir.
17725 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17726 case "$ac_given_srcdir" in
17727 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17728 /*) top_srcdir="$ac_given_srcdir" ;;
17729 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17730 esac
17731 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17732 rm -f "$ac_dir/POTFILES"
17733 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17734 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17735 POMAKEFILEDEPS="POTFILES.in"
17736 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17737 # on $ac_dir but don't depend on user-specified configuration
17738 # parameters.
17739 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17740 # The LINGUAS file contains the set of available languages.
17741 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17742 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
17743 fi
17744 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17745 # Hide the ALL_LINGUAS assigment from automake.
17746 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17747 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17748 else
17749 # The set of available languages was given in configure.ac.
17750 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17751 fi
17752 case "$ac_given_srcdir" in
17753 .) srcdirpre= ;;
17754 *) srcdirpre='$(srcdir)/' ;;
17755 esac
17756 POFILES=
17757 GMOFILES=
17758 UPDATEPOFILES=
17759 DUMMYPOFILES=
17760 for lang in $ALL_LINGUAS; do
17761 POFILES="$POFILES $srcdirpre$lang.po"
17762 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17763 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17764 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17765 done
17766 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17767 # environment variable.
17768 INST_LINGUAS=
17769 if test -n "$ALL_LINGUAS"; then
17770 for presentlang in $ALL_LINGUAS; do
17771 useit=no
17772 if test "%UNSET%" != "$LINGUAS"; then
17773 desiredlanguages="$LINGUAS"
17774 else
17775 desiredlanguages="$ALL_LINGUAS"
17776 fi
17777 for desiredlang in $desiredlanguages; do
17778 # Use the presentlang catalog if desiredlang is
17779 # a. equal to presentlang, or
17780 # b. a variant of presentlang (because in this case,
17781 # presentlang can be used as a fallback for messages
17782 # which are not translated in the desiredlang catalog).
17783 case "$desiredlang" in
17784 "$presentlang"*) useit=yes;;
17785 esac
17786 done
17787 if test $useit = yes; then
17788 INST_LINGUAS="$INST_LINGUAS $presentlang"
17789 fi
17790 done
17791 fi
17792 CATALOGS=
17793 if test -n "$INST_LINGUAS"; then
17794 for lang in $INST_LINGUAS; do
17795 CATALOGS="$CATALOGS $lang.gmo"
17796 done
17797 fi
17798 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17799 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17800 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17801 if test -f "$f"; then
17802 case "$f" in
17803 *.orig | *.bak | *~) ;;
17804 *) cat "$f" >> "$ac_dir/Makefile" ;;
17805 esac
17806 fi
17807 done
17808 fi
17809 ;;
17810 esac
17811 done ;;
17812 "default":C)
17813 case "$srcdir" in
17814 .) srcdirpre= ;;
17815 *) srcdirpre='$(srcdir)/' ;;
17816 esac
17817 POFILES=
17818 GMOFILES=
17819 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
17820 if test $lang != dummy; then
17821 POFILES="$POFILES $srcdirpre$lang.po"
17822 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17823 fi
17824 done
17825 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
17826 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
17827 -e "s,@POFILES@,$POFILES," \
17828 -e "s,@GMOFILES@,$GMOFILES," \
17829 po/Makefile.in > po/Makefile ;;
17830
17831 esac
17832 done # for ac_tag
17833
17834
17835 as_fn_exit 0
17836 _ACEOF
17837 ac_clean_files=$ac_clean_files_save
17838
17839 test $ac_write_fail = 0 ||
17840 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17841
17842
17843 # configure is writing to config.log, and then calls config.status.
17844 # config.status does its own redirection, appending to config.log.
17845 # Unfortunately, on DOS this fails, as config.log is still kept open
17846 # by configure, so config.status won't be able to write to it; its
17847 # output is simply discarded. So we exec the FD to /dev/null,
17848 # effectively closing config.log, so it can be properly (re)opened and
17849 # appended to by config.status. When coming back to configure, we
17850 # need to make the FD available again.
17851 if test "$no_create" != yes; then
17852 ac_cs_success=:
17853 ac_config_status_args=
17854 test "$silent" = yes &&
17855 ac_config_status_args="$ac_config_status_args --quiet"
17856 exec 5>/dev/null
17857 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17858 exec 5>>config.log
17859 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17860 # would make configure fail if this is the last instruction.
17861 $ac_cs_success || as_fn_exit 1
17862 fi
17863 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17865 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17866 fi
17867
17868
17869
17870 touch config.status.tmp
17871 if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then
17872 sed '/as_fn_exit 0/i \
17873 sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \
17874 touch --reference=Makefile Makefile.tmp \
17875 mv Makefile.tmp Makefile \
17876 ' config.status > config.status.tmp
17877 touch --reference=config.status config.status.tmp
17878 mv config.status.tmp config.status
17879 chmod +x config.status
17880 sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp
17881 touch --reference=Makefile Makefile.tmp
17882 mv Makefile.tmp Makefile
17883 else
17884 rm -f config.status.tmp
17885 fi
17886