configure revision 1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bfd 2.28.51.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
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 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
185 fi
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
197 /*)
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
206 fi
207 fi
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241 fi
242 exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260 { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269 return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
311 q
312 }
313 /^X\(\/\/\)$/{
314 s//\1/
315 q
316 }
317 /^X\(\/\).*/{
318 s//\1/
319 q
320 }
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
337 {
338 eval $1+=\$2
339 }'
340 else
341 as_fn_append ()
342 {
343 eval $1=\$$1\$2
344 }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
354 {
355 as_val=$(( $* ))
356 }'
357 else
358 as_fn_arith ()
359 {
360 as_val=`expr "$@" || test $? -eq 1`
361 }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 fi
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\/\)$/{
410 s//\1/
411 q
412 }
413 /^X\/\(\/\).*/{
414 s//\1/
415 q
416 }
417 s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 as_me=bfd_$as_me # XXX don't overwrite our caller's configure.lineno
432 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
433 sed -n '
434 p
435 /[$]LINENO/=
436 ' <$as_myself |
437 sed '
438 s/[$]LINENO.*/&-/
439 t lineno
440 b
441 :lineno
442 N
443 :loop
444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
445 t loop
446 s/-\n.*//
447 ' >$as_me.lineno &&
448 chmod +x "$as_me.lineno" ||
449 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459 ECHO_C= ECHO_N= ECHO_T=
460 case `echo -n x` in #(((((
461 -n*)
462 case `echo 'xy\c'` in
463 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 xy) ECHO_C='\c';;
465 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
466 ECHO_T=' ';;
467 esac;;
468 *)
469 ECHO_N='-n';;
470 esac
471
472 rm -f conf$$ conf$$.exe conf$$.file
473 if test -d conf$$.dir; then
474 rm -f conf$$.dir/conf$$.file
475 else
476 rm -f conf$$.dir
477 mkdir conf$$.dir 2>/dev/null
478 fi
479 if (echo >conf$$.file) 2>/dev/null; then
480 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 as_ln_s='ln -s'
482 # ... but there are two gotchas:
483 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
484 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
485 # In both cases, we have to default to `cp -p'.
486 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 as_ln_s='cp -p'
488 elif ln conf$$.file conf$$ 2>/dev/null; then
489 as_ln_s=ln
490 else
491 as_ln_s='cp -p'
492 fi
493 else
494 as_ln_s='cp -p'
495 fi
496 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
497 rmdir conf$$.dir 2>/dev/null
498
499 if mkdir -p . 2>/dev/null; then
500 as_mkdir_p='mkdir -p "$as_dir"'
501 else
502 test -d ./-p && rmdir ./-p
503 as_mkdir_p=false
504 fi
505
506 if test -x / >/dev/null 2>&1; then
507 as_test_x='test -x'
508 else
509 if ls -dL / >/dev/null 2>&1; then
510 as_ls_L_option=L
511 else
512 as_ls_L_option=
513 fi
514 as_test_x='
515 eval sh -c '\''
516 if test -d "$1"; then
517 test -d "$1/.";
518 else
519 case $1 in #(
520 -*)set "./$1";;
521 esac;
522 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
523 ???[sx]*):;;*)false;;esac;fi
524 '\'' sh
525 '
526 fi
527 as_executable_p=$as_test_x
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535 SHELL=${CONFIG_SHELL-/bin/sh}
536
537
538 exec 7<&0 </dev/null 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='bfd'
559 PACKAGE_TARNAME='bfd'
560 PACKAGE_VERSION='2.28.51'
561 PACKAGE_STRING='bfd 2.28.51'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="libbfd.c"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 bfd_ufile_ptr
607 bfd_file_ptr
608 lt_cv_dlopen_libs
609 supports_plugins
610 COREFLAG
611 COREFILE
612 havevecs
613 tdefaults
614 bfd_default_target_size
615 bfd_machines
616 bfd_backends
617 all_backends
618 bfd64_libs
619 wordsize
620 TDEFINES
621 SHARED_LIBADD
622 SHARED_LDFLAGS
623 LIBM
624 zlibinc
625 zlibdir
626 EXEEXT_FOR_BUILD
627 CC_FOR_BUILD
628 BFD_HOSTPTR_T
629 BFD_HOST_U_64_BIT
630 BFD_HOST_64_BIT
631 BFD_HOST_64_BIT_DEFINED
632 BFD_HOST_64BIT_LONG_LONG
633 BFD_HOST_64BIT_LONG
634 HDEFINES
635 MSGMERGE
636 MSGFMT
637 MKINSTALLDIRS
638 CATOBJEXT
639 GENCAT
640 INSTOBJEXT
641 DATADIRNAME
642 CATALOGS
643 POSUB
644 GMSGFMT
645 XGETTEXT
646 INCINTL
647 LIBINTL_DEP
648 LIBINTL
649 USE_NLS
650 bfdincludedir
651 bfdlibdir
652 target_noncanonical
653 host_noncanonical
654 INSTALL_LIBBFD_FALSE
655 INSTALL_LIBBFD_TRUE
656 GENINSRC_NEVER_FALSE
657 GENINSRC_NEVER_TRUE
658 MAINT
659 MAINTAINER_MODE_FALSE
660 MAINTAINER_MODE_TRUE
661 WARN_WRITE_STRINGS
662 NO_WERROR
663 WARN_CFLAGS_FOR_BUILD
664 WARN_CFLAGS
665 REPORT_BUGS_TEXI
666 REPORT_BUGS_TO
667 PKGVERSION
668 DEBUGDIR
669 PLUGINS_FALSE
670 PLUGINS_TRUE
671 OTOOL64
672 OTOOL
673 LIPO
674 NMEDIT
675 DSYMUTIL
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 SED
684 LIBTOOL
685 EGREP
686 GREP
687 CPP
688 RANLIB
689 AR
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__quote
698 am__include
699 DEPDIR
700 am__untar
701 am__tar
702 AMTAR
703 am__leading_dot
704 SET_MAKE
705 AWK
706 mkdir_p
707 MKDIR_P
708 INSTALL_STRIP_PROGRAM
709 STRIP
710 install_sh
711 MAKEINFO
712 AUTOHEADER
713 AUTOMAKE
714 AUTOCONF
715 ACLOCAL
716 VERSION
717 PACKAGE
718 CYGPATH_W
719 am__isrc
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 target_os
731 target_vendor
732 target_cpu
733 target
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_dependency_tracking
784 enable_shared
785 enable_static
786 with_pic
787 enable_fast_install
788 with_gnu_ld
789 enable_libtool_lock
790 enable_plugins
791 enable_largefile
792 enable_64_bit_bfd
793 enable_targets
794 enable_64_bit_archive
795 with_mmap
796 enable_secureplt
797 enable_leading_mingw64_underscores
798 with_separate_debug_dir
799 with_pkgversion
800 with_bugurl
801 enable_werror
802 enable_build_warnings
803 enable_maintainer_mode
804 enable_install_libbfd
805 enable_nls
806 with_system_zlib
807 '
808 ac_precious_vars='build_alias
809 host_alias
810 target_alias
811 CC
812 CFLAGS
813 LDFLAGS
814 LIBS
815 CPPFLAGS
816 CPP'
817
818
819 # Initialize some variables set by options.
820 ac_init_help=
821 ac_init_version=false
822 ac_unrecognized_opts=
823 ac_unrecognized_sep=
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
826 cache_file=/dev/null
827 exec_prefix=NONE
828 no_create=
829 no_recursion=
830 prefix=NONE
831 program_prefix=NONE
832 program_suffix=NONE
833 program_transform_name=s,x,x,
834 silent=
835 site=
836 srcdir=
837 verbose=
838 x_includes=NONE
839 x_libraries=NONE
840
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
859 htmldir='${docdir}'
860 dvidir='${docdir}'
861 pdfdir='${docdir}'
862 psdir='${docdir}'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
866
867 ac_prev=
868 ac_dashdash=
869 for ac_option
870 do
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
874 ac_prev=
875 continue
876 fi
877
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 bindir=$ac_optarg ;;
893
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
908
909 -datadir | --datadir | --datadi | --datad)
910 ac_prev=datadir ;;
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
913
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
921 -disable-* | --disable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
946
947 -enable-* | --enable-*)
948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
949 # Reject names that are not valid shell variable names.
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956 "enable_$ac_useropt"
957 "*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
960 esac
961 eval enable_$ac_useropt=\$ac_optarg ;;
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
970 exec_prefix=$ac_optarg ;;
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
982
983 -host | --host | --hos | --ho)
984 ac_prev=host_alias ;;
985 -host=* | --host=* | --hos=* | --ho=*)
986 host_alias=$ac_optarg ;;
987
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
999 includedir=$ac_optarg ;;
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1004 infodir=$ac_optarg ;;
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1009 libdir=$ac_optarg ;;
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
1016 libexecdir=$ac_optarg ;;
1017
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
1024 | --localstate | --localstat | --localsta | --localst | --locals)
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1028 localstatedir=$ac_optarg ;;
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1033 mandir=$ac_optarg ;;
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1040 | --no-cr | --no-c | -n)
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1054 oldincludedir=$ac_optarg ;;
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1059 prefix=$ac_optarg ;;
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1066 program_prefix=$ac_optarg ;;
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1073 program_suffix=$ac_optarg ;;
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
1090 program_transform_name=$ac_optarg ;;
1091
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
1110 sbindir=$ac_optarg ;;
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
1121 sharedstatedir=$ac_optarg ;;
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
1126 site=$ac_optarg ;;
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1131 srcdir=$ac_optarg ;;
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1138 sysconfdir=$ac_optarg ;;
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
1141 ac_prev=target_alias ;;
1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1143 target_alias=$ac_optarg ;;
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
1150
1151 -with-* | --with-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160 "with_$ac_useropt"
1161 "*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=\$ac_optarg ;;
1166
1167 -without-* | --without-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176 "with_$ac_useropt"
1177 "*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1192 x_includes=$ac_optarg ;;
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1199 x_libraries=$ac_optarg ;;
1200
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202 Try \`$0 --help' for more information."
1203 ;;
1204
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
1213 export $ac_envvar ;;
1214
1215 *)
1216 # FIXME: should be removed in autoconf 3.0.
1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1221 ;;
1222
1223 esac
1224 done
1225
1226 if test -n "$ac_prev"; then
1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1228 as_fn_error "missing argument to $ac_option"
1229 fi
1230
1231 if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1236 esac
1237 fi
1238
1239 # Check all directory arguments for consistency.
1240 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
1244 do
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
1253 case $ac_val in
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 esac
1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1258 done
1259
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1263 build=$build_alias
1264 host=$host_alias
1265 target=$target_alias
1266
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276 fi
1277
1278 ac_tool_prefix=
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281 test "$silent" = yes && exec 6>/dev/null
1282
1283
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
1292 # Find the source files, if location was not specified.
1293 if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301 $as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
1319 srcdir=$ac_confdir
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 srcdir=..
1322 fi
1323 else
1324 ac_srcdir_defaulted=no
1325 fi
1326 if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334 # When building in place, set srcdir=.
1335 if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337 fi
1338 # Remove unnecessary trailing slashes from srcdir.
1339 # Double slashes in file names in object file debugging info
1340 # mess up M-x gdb in Emacs.
1341 case $srcdir in
1342 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343 esac
1344 for ac_var in $ac_precious_vars; do
1345 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_env_${ac_var}_value=\$${ac_var}
1347 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1349 done
1350
1351 #
1352 # Report the --help message.
1353 #
1354 if test "$ac_init_help" = "long"; then
1355 # Omit some internal or obsolete options to make the list less imposing.
1356 # This message is too long to be a string in the A/UX 3.1 sh.
1357 cat <<_ACEOF
1358 \`configure' configures bfd 2.28.51 to adapt to many kinds of systems.
1359
1360 Usage: $0 [OPTION]... [VAR=VALUE]...
1361
1362 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1363 VAR=VALUE. See below for descriptions of some of the useful variables.
1364
1365 Defaults for the options are specified in brackets.
1366
1367 Configuration:
1368 -h, --help display this help and exit
1369 --help=short display options specific to this package
1370 --help=recursive display the short help of all the included packages
1371 -V, --version display version information and exit
1372 -q, --quiet, --silent do not print \`checking...' messages
1373 --cache-file=FILE cache test results in FILE [disabled]
1374 -C, --config-cache alias for \`--cache-file=config.cache'
1375 -n, --no-create do not create output files
1376 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1377
1378 Installation directories:
1379 --prefix=PREFIX install architecture-independent files in PREFIX
1380 [$ac_default_prefix]
1381 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1382 [PREFIX]
1383
1384 By default, \`make install' will install all the files in
1385 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1386 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1387 for instance \`--prefix=\$HOME'.
1388
1389 For better control, use the options below.
1390
1391 Fine tuning of the installation directories:
1392 --bindir=DIR user executables [EPREFIX/bin]
1393 --sbindir=DIR system admin executables [EPREFIX/sbin]
1394 --libexecdir=DIR program executables [EPREFIX/libexec]
1395 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1396 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1397 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/bfd]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1412
1413 cat <<\_ACEOF
1414
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 --target=TARGET configure for building compilers for TARGET [HOST]
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428 case $ac_init_help in
1429 short | recursive ) echo "Configuration of bfd 2.28.51:";;
1430 esac
1431 cat <<\_ACEOF
1432
1433 Optional Features:
1434 --disable-option-checking ignore unrecognized --enable/--with options
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --disable-dependency-tracking speeds up one-time build
1438 --enable-dependency-tracking do not reject slow dependency extractors
1439 --enable-shared[=PKGS] build shared libraries [default=no]
1440 --enable-static[=PKGS] build static libraries [default=yes]
1441 --enable-fast-install[=PKGS]
1442 optimize for fast installation [default=yes]
1443 --disable-libtool-lock avoid locking (might break parallel builds)
1444 --enable-plugins Enable support for plugins
1445 --disable-largefile omit support for large files
1446 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
1447 --enable-targets alternative target configurations
1448 --enable-64-bit-archive force 64-bit archives
1449 --enable-secureplt Default to creating read-only plt entries
1450 --enable-leading-mingw64-underscores
1451 Enable leading underscores on 64 bit mingw targets
1452 --enable-werror treat compile warnings as errors
1453 --enable-build-warnings enable build-time compiler warnings
1454 --enable-maintainer-mode enable make rules and dependencies not useful
1455 (and sometimes confusing) to the casual installer
1456 --enable-install-libbfd controls installation of libbfd and related headers
1457 --disable-nls do not use Native Language Support
1458
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-pic try to use only PIC/non-PIC objects [default=use
1463 both]
1464 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1465 --with-mmap try using mmap for BFD input files if available
1466 --with-separate-debug-dir=DIR
1467 Look for global separate debug info in DIR
1468 [default=LIBDIR/debug]
1469 --with-pkgversion=PKG Use PKG in the version string in place of "GNU
1470 Binutils"
1471 --with-bugurl=URL Direct users to URL to report a bug
1472 --with-system-zlib use installed libz
1473
1474 Some influential environment variables:
1475 CC C compiler command
1476 CFLAGS C compiler flags
1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1478 nonstandard directory <lib dir>
1479 LIBS libraries to pass to the linker, e.g. -l<library>
1480 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1481 you have headers in a nonstandard directory <include dir>
1482 CPP C preprocessor
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for guested configure.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 bfd configure 2.28.51
1551 generated by GNU Autoconf 2.64
1552
1553 Copyright (C) 2009 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext; then :
1590 ac_retval=0
1591 else
1592 $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595 ac_retval=1
1596 fi
1597 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598 return $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1606 {
1607 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608 rm -f conftest.$ac_objext conftest$ac_exeext
1609 if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612 *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616 (eval "$ac_link") 2>conftest.err
1617 ac_status=$?
1618 if test -s conftest.err; then
1619 grep -v '^ *+' conftest.err >conftest.er1
1620 cat conftest.er1 >&5
1621 mv -f conftest.er1 conftest.err
1622 fi
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && {
1625 test -z "$ac_c_werror_flag" ||
1626 test ! -s conftest.err
1627 } && test -s conftest$ac_exeext && {
1628 test "$cross_compiling" = yes ||
1629 $as_test_x conftest$ac_exeext
1630 }; then :
1631 ac_retval=0
1632 else
1633 $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637 fi
1638 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640 # interfere with the next link command; also delete a directory that is
1641 # left behind by Apple's compiler. We do this before executing the actions.
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644 return $ac_retval
1645
1646 } # ac_fn_c_try_link
1647
1648 # ac_fn_c_try_cpp LINENO
1649 # ----------------------
1650 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1651 ac_fn_c_try_cpp ()
1652 {
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_cpp conftest.$ac_ext"
1655 case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1662 ac_status=$?
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1667 fi
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } >/dev/null && {
1670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 }; then :
1673 ac_retval=0
1674 else
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679 fi
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1681 return $ac_retval
1682
1683 } # ac_fn_c_try_cpp
1684
1685 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1686 # -------------------------------------------------------
1687 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1688 # the include files in INCLUDES and setting the cache variable VAR
1689 # accordingly.
1690 ac_fn_c_check_header_mongrel ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1695 $as_echo_n "checking for $2... " >&6; }
1696 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1697 $as_echo_n "(cached) " >&6
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 else
1703 # Is the header compilable?
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1705 $as_echo_n "checking $2 usability... " >&6; }
1706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1707 /* end confdefs.h. */
1708 $4
1709 #include <$2>
1710 _ACEOF
1711 if ac_fn_c_try_compile "$LINENO"; then :
1712 ac_header_compiler=yes
1713 else
1714 ac_header_compiler=no
1715 fi
1716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1718 $as_echo "$ac_header_compiler" >&6; }
1719
1720 # Is the header present?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1722 $as_echo_n "checking $2 presence... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 #include <$2>
1726 _ACEOF
1727 if ac_fn_c_try_cpp "$LINENO"; then :
1728 ac_header_preproc=yes
1729 else
1730 ac_header_preproc=no
1731 fi
1732 rm -f conftest.err conftest.$ac_ext
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1734 $as_echo "$ac_header_preproc" >&6; }
1735
1736 # So? What about this header?
1737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1738 yes:no: )
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1740 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1742 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1743 ;;
1744 no:yes:* )
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1746 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1748 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1750 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1752 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1754 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1755 ;;
1756 esac
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758 $as_echo_n "checking for $2... " >&6; }
1759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1760 $as_echo_n "(cached) " >&6
1761 else
1762 eval "$3=\$ac_header_compiler"
1763 fi
1764 eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766 $as_echo "$ac_res" >&6; }
1767 fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769
1770 } # ac_fn_c_check_header_mongrel
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists and can be compiled using the include files in
1817 # INCLUDES, setting the cache variable VAR accordingly.
1818 ac_fn_c_check_header_compile ()
1819 {
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1824 $as_echo_n "(cached) " >&6
1825 else
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 #include <$2>
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 fi
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843 } # ac_fn_c_check_header_compile
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1854 $as_echo_n "(cached) " >&6
1855 else
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h. */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863 which can conflict with char $2 (); below.
1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865 <limits.h> exists even on freestanding compilers. */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876 Use char because int might match the return type of a GCC
1877 builtin and then its argument prototype would still apply. */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883 to always fail with ENOSYS. Some functions are actually named
1884 something starting with __ and the normal name is an alias. */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893 ;
1894 return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898 eval "$3=yes"
1899 else
1900 eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903 conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1909
1910 } # ac_fn_c_check_func
1911
1912 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1913 # --------------------------------------------
1914 # Tries to find the compile-time value of EXPR in a program that includes
1915 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1916 # computed
1917 ac_fn_c_compute_int ()
1918 {
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 if test "$cross_compiling" = yes; then
1921 # Depending upon the size, compute the lo and hi bounds.
1922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923 /* end confdefs.h. */
1924 $4
1925 int
1926 main ()
1927 {
1928 static int test_array [1 - 2 * !(($2) >= 0)];
1929 test_array [0] = 0
1930
1931 ;
1932 return 0;
1933 }
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 ac_lo=0 ac_mid=0
1937 while :; do
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 int
1942 main ()
1943 {
1944 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1945 test_array [0] = 0
1946
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_hi=$ac_mid; break
1953 else
1954 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1955 if test $ac_lo -le $ac_mid; then
1956 ac_lo= ac_hi=
1957 break
1958 fi
1959 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 done
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $4
1967 int
1968 main ()
1969 {
1970 static int test_array [1 - 2 * !(($2) < 0)];
1971 test_array [0] = 0
1972
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 ac_hi=-1 ac_mid=-1
1979 while :; do
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1987 test_array [0] = 0
1988
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 ac_lo=$ac_mid; break
1995 else
1996 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1997 if test $ac_mid -le $ac_hi; then
1998 ac_lo= ac_hi=
1999 break
2000 fi
2001 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005 else
2006 ac_lo= ac_hi=
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 # Binary search between lo and hi bounds.
2012 while test "x$ac_lo" != "x$ac_hi"; do
2013 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 $4
2017 int
2018 main ()
2019 {
2020 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2021 test_array [0] = 0
2022
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 ac_hi=$ac_mid
2029 else
2030 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 done
2034 case $ac_lo in #((
2035 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2036 '') ac_retval=1 ;;
2037 esac
2038 else
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 $4
2042 static long int longval () { return $2; }
2043 static unsigned long int ulongval () { return $2; }
2044 #include <stdio.h>
2045 #include <stdlib.h>
2046 int
2047 main ()
2048 {
2049
2050 FILE *f = fopen ("conftest.val", "w");
2051 if (! f)
2052 return 1;
2053 if (($2) < 0)
2054 {
2055 long int i = longval ();
2056 if (i != ($2))
2057 return 1;
2058 fprintf (f, "%ld", i);
2059 }
2060 else
2061 {
2062 unsigned long int i = ulongval ();
2063 if (i != ($2))
2064 return 1;
2065 fprintf (f, "%lu", i);
2066 }
2067 /* Do not output a trailing newline, as this causes \r\n confusion
2068 on some platforms. */
2069 return ferror (f) || fclose (f) != 0;
2070
2071 ;
2072 return 0;
2073 }
2074 _ACEOF
2075 if ac_fn_c_try_run "$LINENO"; then :
2076 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2077 else
2078 ac_retval=1
2079 fi
2080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2081 conftest.$ac_objext conftest.beam conftest.$ac_ext
2082 rm -f conftest.val
2083
2084 fi
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 return $ac_retval
2087
2088 } # ac_fn_c_compute_int
2089
2090 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2091 # -------------------------------------------
2092 # Tests whether TYPE exists after having included INCLUDES, setting cache
2093 # variable VAR accordingly.
2094 ac_fn_c_check_type ()
2095 {
2096 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2098 $as_echo_n "checking for $2... " >&6; }
2099 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2100 $as_echo_n "(cached) " >&6
2101 else
2102 eval "$3=no"
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 $4
2106 int
2107 main ()
2108 {
2109 if (sizeof ($2))
2110 return 0;
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 if ac_fn_c_try_compile "$LINENO"; then :
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 int
2120 main ()
2121 {
2122 if (sizeof (($2)))
2123 return 0;
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129
2130 else
2131 eval "$3=yes"
2132 fi
2133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136 fi
2137 eval ac_res=\$$3
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2140 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141
2142 } # ac_fn_c_check_type
2143
2144 # ac_fn_c_check_decl LINENO SYMBOL VAR
2145 # ------------------------------------
2146 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2147 ac_fn_c_check_decl ()
2148 {
2149 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150 as_decl_name=`echo $2|sed 's/ *(.*//'`
2151 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2153 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2154 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2155 $as_echo_n "(cached) " >&6
2156 else
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2159 $4
2160 int
2161 main ()
2162 {
2163 #ifndef $as_decl_name
2164 #ifdef __cplusplus
2165 (void) $as_decl_use;
2166 #else
2167 (void) $as_decl_name;
2168 #endif
2169 #endif
2170
2171 ;
2172 return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176 eval "$3=yes"
2177 else
2178 eval "$3=no"
2179 fi
2180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 fi
2182 eval ac_res=\$$3
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2186
2187 } # ac_fn_c_check_decl
2188 cat >config.log <<_ACEOF
2189 This file contains any messages produced by compilers while
2190 running configure, to aid debugging if configure makes a mistake.
2191
2192 It was created by bfd $as_me 2.28.51, which was
2193 generated by GNU Autoconf 2.64. Invocation command line was
2194
2195 $ $0 $@
2196
2197 _ACEOF
2198 exec 5>>config.log
2199 {
2200 cat <<_ASUNAME
2201 ## --------- ##
2202 ## Platform. ##
2203 ## --------- ##
2204
2205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2210
2211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2213
2214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2217 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2221
2222 _ASUNAME
2223
2224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 for as_dir in $PATH
2226 do
2227 IFS=$as_save_IFS
2228 test -z "$as_dir" && as_dir=.
2229 $as_echo "PATH: $as_dir"
2230 done
2231 IFS=$as_save_IFS
2232
2233 } >&5
2234
2235 cat >&5 <<_ACEOF
2236
2237
2238 ## ----------- ##
2239 ## Core tests. ##
2240 ## ----------- ##
2241
2242 _ACEOF
2243
2244
2245 # Keep a trace of the command line.
2246 # Strip out --no-create and --no-recursion so they do not pile up.
2247 # Strip out --silent because we don't want to record it for future runs.
2248 # Also quote any args containing shell meta-characters.
2249 # Make two passes to allow for proper duplicate-argument suppression.
2250 ac_configure_args=
2251 ac_configure_args0=
2252 ac_configure_args1=
2253 ac_must_keep_next=false
2254 for ac_pass in 1 2
2255 do
2256 for ac_arg
2257 do
2258 case $ac_arg in
2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2261 | -silent | --silent | --silen | --sile | --sil)
2262 continue ;;
2263 *\'*)
2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2265 esac
2266 case $ac_pass in
2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2268 2)
2269 as_fn_append ac_configure_args1 " '$ac_arg'"
2270 if test $ac_must_keep_next = true; then
2271 ac_must_keep_next=false # Got value, back to normal.
2272 else
2273 case $ac_arg in
2274 *=* | --config-cache | -C | -disable-* | --disable-* \
2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2277 | -with-* | --with-* | -without-* | --without-* | --x)
2278 case "$ac_configure_args0 " in
2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2280 esac
2281 ;;
2282 -* ) ac_must_keep_next=true ;;
2283 esac
2284 fi
2285 as_fn_append ac_configure_args " '$ac_arg'"
2286 ;;
2287 esac
2288 done
2289 done
2290 { ac_configure_args0=; unset ac_configure_args0;}
2291 { ac_configure_args1=; unset ac_configure_args1;}
2292
2293 # When interrupted or exit'd, cleanup temporary files, and complete
2294 # config.log. We remove comments because anyway the quotes in there
2295 # would cause problems or look ugly.
2296 # WARNING: Use '\'' to represent an apostrophe within the trap.
2297 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2298 trap 'exit_status=$?
2299 # Save into config.log some information that might help in debugging.
2300 {
2301 echo
2302
2303 cat <<\_ASBOX
2304 ## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##
2307 _ASBOX
2308 echo
2309 # The following way of writing the cache mishandles newlines in values,
2310 (
2311 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2312 eval ac_val=\$$ac_var
2313 case $ac_val in #(
2314 *${as_nl}*)
2315 case $ac_var in #(
2316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2317 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2318 esac
2319 case $ac_var in #(
2320 _ | IFS | as_nl) ;; #(
2321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2322 *) { eval $ac_var=; unset $ac_var;} ;;
2323 esac ;;
2324 esac
2325 done
2326 (set) 2>&1 |
2327 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2328 *${as_nl}ac_space=\ *)
2329 sed -n \
2330 "s/'\''/'\''\\\\'\'''\''/g;
2331 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2332 ;; #(
2333 *)
2334 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2335 ;;
2336 esac |
2337 sort
2338 )
2339 echo
2340
2341 cat <<\_ASBOX
2342 ## ----------------- ##
2343 ## Output variables. ##
2344 ## ----------------- ##
2345 _ASBOX
2346 echo
2347 for ac_var in $ac_subst_vars
2348 do
2349 eval ac_val=\$$ac_var
2350 case $ac_val in
2351 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2352 esac
2353 $as_echo "$ac_var='\''$ac_val'\''"
2354 done | sort
2355 echo
2356
2357 if test -n "$ac_subst_files"; then
2358 cat <<\_ASBOX
2359 ## ------------------- ##
2360 ## File substitutions. ##
2361 ## ------------------- ##
2362 _ASBOX
2363 echo
2364 for ac_var in $ac_subst_files
2365 do
2366 eval ac_val=\$$ac_var
2367 case $ac_val in
2368 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2369 esac
2370 $as_echo "$ac_var='\''$ac_val'\''"
2371 done | sort
2372 echo
2373 fi
2374
2375 if test -s confdefs.h; then
2376 cat <<\_ASBOX
2377 ## ----------- ##
2378 ## confdefs.h. ##
2379 ## ----------- ##
2380 _ASBOX
2381 echo
2382 cat confdefs.h
2383 echo
2384 fi
2385 test "$ac_signal" != 0 &&
2386 $as_echo "$as_me: caught signal $ac_signal"
2387 $as_echo "$as_me: exit $exit_status"
2388 } >&5
2389 rm -f core *.core core.conftest.* &&
2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2391 exit $exit_status
2392 ' 0
2393 for ac_signal in 1 2 13 15; do
2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2395 done
2396 ac_signal=0
2397
2398 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2399 rm -f -r conftest* confdefs.h
2400
2401 $as_echo "/* confdefs.h */" > confdefs.h
2402
2403 # Predefined preprocessor variables.
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_NAME "$PACKAGE_NAME"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2411 _ACEOF
2412
2413 cat >>confdefs.h <<_ACEOF
2414 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2415 _ACEOF
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_STRING "$PACKAGE_STRING"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_URL "$PACKAGE_URL"
2427 _ACEOF
2428
2429
2430 # Let the site file select an alternate cache file if it wants to.
2431 # Prefer an explicitly selected file to automatically selected ones.
2432 ac_site_file1=NONE
2433 ac_site_file2=NONE
2434 if test -n "$CONFIG_SITE"; then
2435 ac_site_file1=$CONFIG_SITE
2436 elif test "x$prefix" != xNONE; then
2437 ac_site_file1=$prefix/share/config.site
2438 ac_site_file2=$prefix/etc/config.site
2439 else
2440 ac_site_file1=$ac_default_prefix/share/config.site
2441 ac_site_file2=$ac_default_prefix/etc/config.site
2442 fi
2443 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2444 do
2445 test "x$ac_site_file" = xNONE && continue
2446 if test -r "$ac_site_file"; then
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2448 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2449 sed 's/^/| /' "$ac_site_file" >&5
2450 . "$ac_site_file"
2451 fi
2452 done
2453
2454 if test -r "$cache_file"; then
2455 # Some versions of bash will fail to source /dev/null (special
2456 # files actually), so we avoid doing that.
2457 if test -f "$cache_file"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2459 $as_echo "$as_me: loading cache $cache_file" >&6;}
2460 case $cache_file in
2461 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2462 *) . "./$cache_file";;
2463 esac
2464 fi
2465 else
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2467 $as_echo "$as_me: creating cache $cache_file" >&6;}
2468 >$cache_file
2469 fi
2470
2471 # Check that the precious variables saved in the cache have kept the same
2472 # value.
2473 ac_cache_corrupted=false
2474 for ac_var in $ac_precious_vars; do
2475 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2476 eval ac_new_set=\$ac_env_${ac_var}_set
2477 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2478 eval ac_new_val=\$ac_env_${ac_var}_value
2479 case $ac_old_set,$ac_new_set in
2480 set,)
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2482 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2483 ac_cache_corrupted=: ;;
2484 ,set)
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2486 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2487 ac_cache_corrupted=: ;;
2488 ,);;
2489 *)
2490 if test "x$ac_old_val" != "x$ac_new_val"; then
2491 # differences in whitespace do not lead to failure.
2492 ac_old_val_w=`echo x $ac_old_val`
2493 ac_new_val_w=`echo x $ac_new_val`
2494 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2496 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2497 ac_cache_corrupted=:
2498 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2500 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2501 eval $ac_var=\$ac_old_val
2502 fi
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2504 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2506 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2507 fi;;
2508 esac
2509 # Pass precious variables to config.status.
2510 if test "$ac_new_set" = set; then
2511 case $ac_new_val in
2512 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2513 *) ac_arg=$ac_var=$ac_new_val ;;
2514 esac
2515 case " $ac_configure_args " in
2516 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2517 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2518 esac
2519 fi
2520 done
2521 if $ac_cache_corrupted; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2525 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2526 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2527 fi
2528 ## -------------------- ##
2529 ## Main body of script. ##
2530 ## -------------------- ##
2531
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537
2538
2539
2540
2541
2542
2543
2544 ac_aux_dir=
2545 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2546 for ac_t in install-sh install.sh shtool; do
2547 if test -f "$ac_dir/$ac_t"; then
2548 ac_aux_dir=$ac_dir
2549 ac_install_sh="$ac_aux_dir/$ac_t -c"
2550 break 2
2551 fi
2552 done
2553 done
2554 if test -z "$ac_aux_dir"; then
2555 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 fi
2557
2558 # These three variables are undocumented and unsupported,
2559 # and are intended to be withdrawn in a future Autoconf release.
2560 # They can cause serious problems if a builder's source tree is in a directory
2561 # whose full name contains unusual characters.
2562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2564 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565
2566
2567 # Make sure we can run config.sub.
2568 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2569 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2570
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2572 $as_echo_n "checking build system type... " >&6; }
2573 if test "${ac_cv_build+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575 else
2576 ac_build_alias=$build_alias
2577 test "x$ac_build_alias" = x &&
2578 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2579 test "x$ac_build_alias" = x &&
2580 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2581 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2582 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2583
2584 fi
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2586 $as_echo "$ac_cv_build" >&6; }
2587 case $ac_cv_build in
2588 *-*-*) ;;
2589 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2590 esac
2591 build=$ac_cv_build
2592 ac_save_IFS=$IFS; IFS='-'
2593 set x $ac_cv_build
2594 shift
2595 build_cpu=$1
2596 build_vendor=$2
2597 shift; shift
2598 # Remember, the first character of IFS is used to create $*,
2599 # except with old shells:
2600 build_os=$*
2601 IFS=$ac_save_IFS
2602 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2603
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2606 $as_echo_n "checking host system type... " >&6; }
2607 if test "${ac_cv_host+set}" = set; then :
2608 $as_echo_n "(cached) " >&6
2609 else
2610 if test "x$host_alias" = x; then
2611 ac_cv_host=$ac_cv_build
2612 else
2613 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2614 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2615 fi
2616
2617 fi
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2619 $as_echo "$ac_cv_host" >&6; }
2620 case $ac_cv_host in
2621 *-*-*) ;;
2622 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2623 esac
2624 host=$ac_cv_host
2625 ac_save_IFS=$IFS; IFS='-'
2626 set x $ac_cv_host
2627 shift
2628 host_cpu=$1
2629 host_vendor=$2
2630 shift; shift
2631 # Remember, the first character of IFS is used to create $*,
2632 # except with old shells:
2633 host_os=$*
2634 IFS=$ac_save_IFS
2635 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2636
2637
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2639 $as_echo_n "checking target system type... " >&6; }
2640 if test "${ac_cv_target+set}" = set; then :
2641 $as_echo_n "(cached) " >&6
2642 else
2643 if test "x$target_alias" = x; then
2644 ac_cv_target=$ac_cv_host
2645 else
2646 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2647 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2648 fi
2649
2650 fi
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2652 $as_echo "$ac_cv_target" >&6; }
2653 case $ac_cv_target in
2654 *-*-*) ;;
2655 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2656 esac
2657 target=$ac_cv_target
2658 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_target
2660 shift
2661 target_cpu=$1
2662 target_vendor=$2
2663 shift; shift
2664 # Remember, the first character of IFS is used to create $*,
2665 # except with old shells:
2666 target_os=$*
2667 IFS=$ac_save_IFS
2668 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2669
2670
2671 # The aliases save the names the user supplied, while $host etc.
2672 # will get canonicalized.
2673 test -n "$target_alias" &&
2674 test "$program_prefix$program_suffix$program_transform_name" = \
2675 NONENONEs,x,x, &&
2676 program_prefix=${target_alias}-
2677 ac_ext=c
2678 ac_cpp='$CPP $CPPFLAGS'
2679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682 if test -n "$ac_tool_prefix"; then
2683 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2684 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2686 $as_echo_n "checking for $ac_word... " >&6; }
2687 if test "${ac_cv_prog_CC+set}" = set; then :
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test -n "$CC"; then
2691 ac_cv_prog_CC="$CC" # Let the user override the test.
2692 else
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 for as_dir in $PATH
2695 do
2696 IFS=$as_save_IFS
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 break 2
2703 fi
2704 done
2705 done
2706 IFS=$as_save_IFS
2707
2708 fi
2709 fi
2710 CC=$ac_cv_prog_CC
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2717 fi
2718
2719
2720 fi
2721 if test -z "$ac_cv_prog_CC"; then
2722 ac_ct_CC=$CC
2723 # Extract the first word of "gcc", so it can be a program name with args.
2724 set dummy gcc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$ac_ct_CC"; then
2731 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2735 do
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_ac_ct_CC="gcc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi
2749 fi
2750 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2751 if test -n "$ac_ct_CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2753 $as_echo "$ac_ct_CC" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2757 fi
2758
2759 if test "x$ac_ct_CC" = x; then
2760 CC=""
2761 else
2762 case $cross_compiling:$ac_tool_warned in
2763 yes:)
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2766 ac_tool_warned=yes ;;
2767 esac
2768 CC=$ac_ct_CC
2769 fi
2770 else
2771 CC="$ac_cv_prog_CC"
2772 fi
2773
2774 if test -z "$CC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2777 set dummy ${ac_tool_prefix}cc; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if test "${ac_cv_prog_CC+set}" = set; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785 else
2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 for as_dir in $PATH
2788 do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
2791 for ac_exec_ext in '' $ac_executable_extensions; do
2792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2793 ac_cv_prog_CC="${ac_tool_prefix}cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2796 fi
2797 done
2798 done
2799 IFS=$as_save_IFS
2800
2801 fi
2802 fi
2803 CC=$ac_cv_prog_CC
2804 if test -n "$CC"; then
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2806 $as_echo "$CC" >&6; }
2807 else
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2809 $as_echo "no" >&6; }
2810 fi
2811
2812
2813 fi
2814 fi
2815 if test -z "$CC"; then
2816 # Extract the first word of "cc", so it can be a program name with args.
2817 set dummy cc; ac_word=$2
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2819 $as_echo_n "checking for $ac_word... " >&6; }
2820 if test "${ac_cv_prog_CC+set}" = set; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if test -n "$CC"; then
2824 ac_cv_prog_CC="$CC" # Let the user override the test.
2825 else
2826 ac_prog_rejected=no
2827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 for as_dir in $PATH
2829 do
2830 IFS=$as_save_IFS
2831 test -z "$as_dir" && as_dir=.
2832 for ac_exec_ext in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2835 ac_prog_rejected=yes
2836 continue
2837 fi
2838 ac_cv_prog_CC="cc"
2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 break 2
2841 fi
2842 done
2843 done
2844 IFS=$as_save_IFS
2845
2846 if test $ac_prog_rejected = yes; then
2847 # We found a bogon in the path, so make sure we never use it.
2848 set dummy $ac_cv_prog_CC
2849 shift
2850 if test $# != 0; then
2851 # We chose a different compiler from the bogus one.
2852 # However, it has the same basename, so the bogon will be chosen
2853 # first if we set CC to just the basename; use the full file name.
2854 shift
2855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2856 fi
2857 fi
2858 fi
2859 fi
2860 CC=$ac_cv_prog_CC
2861 if test -n "$CC"; then
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2863 $as_echo "$CC" >&6; }
2864 else
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2866 $as_echo "no" >&6; }
2867 fi
2868
2869
2870 fi
2871 if test -z "$CC"; then
2872 if test -n "$ac_tool_prefix"; then
2873 for ac_prog in cl.exe
2874 do
2875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911
2912 test -n "$CC" && break
2913 done
2914 fi
2915 if test -z "$CC"; then
2916 ac_ct_CC=$CC
2917 for ac_prog in cl.exe
2918 do
2919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2920 set dummy $ac_prog; ac_word=$2
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2922 $as_echo_n "checking for $ac_word... " >&6; }
2923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if test -n "$ac_ct_CC"; then
2927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2928 else
2929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 for as_dir in $PATH
2931 do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
2934 for ac_exec_ext in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_ac_ct_CC="$ac_prog"
2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2938 break 2
2939 fi
2940 done
2941 done
2942 IFS=$as_save_IFS
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 $as_echo "$ac_ct_CC" >&6; }
2950 else
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 $as_echo "no" >&6; }
2953 fi
2954
2955
2956 test -n "$ac_ct_CC" && break
2957 done
2958
2959 if test "x$ac_ct_CC" = x; then
2960 CC=""
2961 else
2962 case $cross_compiling:$ac_tool_warned in
2963 yes:)
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2966 ac_tool_warned=yes ;;
2967 esac
2968 CC=$ac_ct_CC
2969 fi
2970 fi
2971
2972 fi
2973
2974
2975 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error "no acceptable C compiler found in \$PATH
2978 See \`config.log' for more details." "$LINENO" 5; }
2979
2980 # Provide some information about the compiler.
2981 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2982 set X $ac_compile
2983 ac_compiler=$2
2984 for ac_option in --version -v -V -qversion; do
2985 { { ac_try="$ac_compiler $ac_option >&5"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2993 ac_status=$?
2994 if test -s conftest.err; then
2995 sed '10a\
2996 ... rest of stderr output deleted ...
2997 10q' conftest.err >conftest.er1
2998 cat conftest.er1 >&5
2999 rm -f conftest.er1 conftest.err
3000 fi
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }
3003 done
3004
3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3006 /* end confdefs.h. */
3007
3008 int
3009 main ()
3010 {
3011
3012 ;
3013 return 0;
3014 }
3015 _ACEOF
3016 ac_clean_files_save=$ac_clean_files
3017 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3018 # Try to create an executable without -o first, disregard a.out.
3019 # It will help us diagnose broken compilers, and finding out an intuition
3020 # of exeext.
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3022 $as_echo_n "checking for C compiler default output file name... " >&6; }
3023 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3024
3025 # The possible output files:
3026 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3027
3028 ac_rmfiles=
3029 for ac_file in $ac_files
3030 do
3031 case $ac_file in
3032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3033 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3034 esac
3035 done
3036 rm -f $ac_rmfiles
3037
3038 if { { ac_try="$ac_link_default"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044 $as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link_default") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }; then :
3049 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3050 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3051 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3052 # so that the user can short-circuit this test for compilers unknown to
3053 # Autoconf.
3054 for ac_file in $ac_files ''
3055 do
3056 test -f "$ac_file" || continue
3057 case $ac_file in
3058 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3059 ;;
3060 [ab].out )
3061 # We found the default executable, but exeext='' is most
3062 # certainly right.
3063 break;;
3064 *.* )
3065 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3066 then :; else
3067 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3068 fi
3069 # We set ac_cv_exeext here because the later test for it is not
3070 # safe: cross compilers may not add the suffix if given an `-o'
3071 # argument, so we may need to know it at that point already.
3072 # Even if this section looks crufty: it has the advantage of
3073 # actually working.
3074 break;;
3075 * )
3076 break;;
3077 esac
3078 done
3079 test "$ac_cv_exeext" = no && ac_cv_exeext=
3080
3081 else
3082 ac_file=''
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3085 $as_echo "$ac_file" >&6; }
3086 if test -z "$ac_file"; then :
3087 $as_echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3089
3090 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3092 { as_fn_set_status 77
3093 as_fn_error "C compiler cannot create executables
3094 See \`config.log' for more details." "$LINENO" 5; }; }
3095 fi
3096 ac_exeext=$ac_cv_exeext
3097
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3101 $as_echo_n "checking whether the C compiler works... " >&6; }
3102 # If not cross compiling, check that we can run a simple program.
3103 if test "$cross_compiling" != yes; then
3104 if { ac_try='./$ac_file'
3105 { { case "(($ac_try" in
3106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3107 *) ac_try_echo=$ac_try;;
3108 esac
3109 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3110 $as_echo "$ac_try_echo"; } >&5
3111 (eval "$ac_try") 2>&5
3112 ac_status=$?
3113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3114 test $ac_status = 0; }; }; then
3115 cross_compiling=no
3116 else
3117 if test "$cross_compiling" = maybe; then
3118 cross_compiling=yes
3119 else
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error "cannot run C compiled programs.
3123 If you meant to cross compile, use \`--host'.
3124 See \`config.log' for more details." "$LINENO" 5; }
3125 fi
3126 fi
3127 fi
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3129 $as_echo "yes" >&6; }
3130
3131 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3132 ac_clean_files=$ac_clean_files_save
3133 # Check that the compiler produces executables we can run. If not, either
3134 # the compiler is broken, or we cross compile.
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3136 $as_echo_n "checking whether we are cross compiling... " >&6; }
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3138 $as_echo "$cross_compiling" >&6; }
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3141 $as_echo_n "checking for suffix of executables... " >&6; }
3142 if { { ac_try="$ac_link"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3154 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3155 # work properly (i.e., refer to `conftest.exe'), while it won't with
3156 # `rm'.
3157 for ac_file in conftest.exe conftest conftest.*; do
3158 test -f "$ac_file" || continue
3159 case $ac_file in
3160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3161 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3162 break;;
3163 * ) break;;
3164 esac
3165 done
3166 else
3167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error "cannot compute suffix of executables: cannot compile and link
3170 See \`config.log' for more details." "$LINENO" 5; }
3171 fi
3172 rm -f conftest$ac_cv_exeext
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3174 $as_echo "$ac_cv_exeext" >&6; }
3175
3176 rm -f conftest.$ac_ext
3177 EXEEXT=$ac_cv_exeext
3178 ac_exeext=$EXEEXT
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3180 $as_echo_n "checking for suffix of object files... " >&6; }
3181 if test "${ac_cv_objext+set}" = set; then :
3182 $as_echo_n "(cached) " >&6
3183 else
3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3185 /* end confdefs.h. */
3186
3187 int
3188 main ()
3189 {
3190
3191 ;
3192 return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.o conftest.obj
3196 if { { ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compile") 2>&5
3204 ac_status=$?
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }; then :
3207 for ac_file in conftest.o conftest.obj conftest.*; do
3208 test -f "$ac_file" || continue;
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3212 break;;
3213 esac
3214 done
3215 else
3216 $as_echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3221 as_fn_error "cannot compute suffix of object files: cannot compile
3222 See \`config.log' for more details." "$LINENO" 5; }
3223 fi
3224 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3225 fi
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3227 $as_echo "$ac_cv_objext" >&6; }
3228 OBJEXT=$ac_cv_objext
3229 ac_objext=$OBJEXT
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3231 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3232 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3234 else
3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236 /* end confdefs.h. */
3237
3238 int
3239 main ()
3240 {
3241 #ifndef __GNUC__
3242 choke me
3243 #endif
3244
3245 ;
3246 return 0;
3247 }
3248 _ACEOF
3249 if ac_fn_c_try_compile "$LINENO"; then :
3250 ac_compiler_gnu=yes
3251 else
3252 ac_compiler_gnu=no
3253 fi
3254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3256
3257 fi
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3259 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3260 if test $ac_compiler_gnu = yes; then
3261 GCC=yes
3262 else
3263 GCC=
3264 fi
3265 ac_test_CFLAGS=${CFLAGS+set}
3266 ac_save_CFLAGS=$CFLAGS
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3268 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3269 if test "${ac_cv_prog_cc_g+set}" = set; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 ac_save_c_werror_flag=$ac_c_werror_flag
3273 ac_c_werror_flag=yes
3274 ac_cv_prog_cc_g=no
3275 CFLAGS="-g"
3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3277 /* end confdefs.h. */
3278
3279 int
3280 main ()
3281 {
3282
3283 ;
3284 return 0;
3285 }
3286 _ACEOF
3287 if ac_fn_c_try_compile "$LINENO"; then :
3288 ac_cv_prog_cc_g=yes
3289 else
3290 CFLAGS=""
3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main ()
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303
3304 else
3305 ac_c_werror_flag=$ac_save_c_werror_flag
3306 CFLAGS="-g"
3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313
3314 ;
3315 return 0;
3316 }
3317 _ACEOF
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_cv_prog_cc_g=yes
3320 fi
3321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 fi
3323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324 fi
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3329 $as_echo "$ac_cv_prog_cc_g" >&6; }
3330 if test "$ac_test_CFLAGS" = set; then
3331 CFLAGS=$ac_save_CFLAGS
3332 elif test $ac_cv_prog_cc_g = yes; then
3333 if test "$GCC" = yes; then
3334 CFLAGS="-g -O2"
3335 else
3336 CFLAGS="-g"
3337 fi
3338 else
3339 if test "$GCC" = yes; then
3340 CFLAGS="-O2"
3341 else
3342 CFLAGS=
3343 fi
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3346 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3347 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 ac_cv_prog_cc_c89=no
3351 ac_save_CC=$CC
3352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 /* end confdefs.h. */
3354 #include <stdarg.h>
3355 #include <stdio.h>
3356 #include <sys/types.h>
3357 #include <sys/stat.h>
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3362 char **p;
3363 int i;
3364 {
3365 return p[i];
3366 }
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3368 {
3369 char *s;
3370 va_list v;
3371 va_start (v,p);
3372 s = g (p, va_arg (v,int));
3373 va_end (v);
3374 return s;
3375 }
3376
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3378 function prototypes and stuff, but not '\xHH' hex character constants.
3379 These don't provoke an error unfortunately, instead are silently treated
3380 as 'x'. The following induces an error, until -std is added to get
3381 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3382 array size at least. It's necessary to write '\x00'==0 to get something
3383 that's true only with -std. */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3385
3386 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3387 inside strings and character constants. */
3388 #define FOO(x) 'x'
3389 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3390
3391 int test (int i, double x);
3392 struct s1 {int (*f) (int a);};
3393 struct s2 {int (*f) (double a);};
3394 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3395 int argc;
3396 char **argv;
3397 int
3398 main ()
3399 {
3400 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3401 ;
3402 return 0;
3403 }
3404 _ACEOF
3405 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3406 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3407 do
3408 CC="$ac_save_CC $ac_arg"
3409 if ac_fn_c_try_compile "$LINENO"; then :
3410 ac_cv_prog_cc_c89=$ac_arg
3411 fi
3412 rm -f core conftest.err conftest.$ac_objext
3413 test "x$ac_cv_prog_cc_c89" != "xno" && break
3414 done
3415 rm -f conftest.$ac_ext
3416 CC=$ac_save_CC
3417
3418 fi
3419 # AC_CACHE_VAL
3420 case "x$ac_cv_prog_cc_c89" in
3421 x)
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3423 $as_echo "none needed" >&6; } ;;
3424 xno)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3426 $as_echo "unsupported" >&6; } ;;
3427 *)
3428 CC="$CC $ac_cv_prog_cc_c89"
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3430 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3431 esac
3432 if test "x$ac_cv_prog_cc_c89" != xno; then :
3433
3434 fi
3435
3436 ac_ext=c
3437 ac_cpp='$CPP $CPPFLAGS'
3438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
3442
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3444 $as_echo_n "checking for library containing strerror... " >&6; }
3445 if test "${ac_cv_search_strerror+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 ac_func_search_save_LIBS=$LIBS
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 /* Override any GCC internal prototype to avoid an error.
3453 Use char because int might match the return type of a GCC
3454 builtin and then its argument prototype would still apply. */
3455 #ifdef __cplusplus
3456 extern "C"
3457 #endif
3458 char strerror ();
3459 int
3460 main ()
3461 {
3462 return strerror ();
3463 ;
3464 return 0;
3465 }
3466 _ACEOF
3467 for ac_lib in '' cposix; do
3468 if test -z "$ac_lib"; then
3469 ac_res="none required"
3470 else
3471 ac_res=-l$ac_lib
3472 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3473 fi
3474 if ac_fn_c_try_link "$LINENO"; then :
3475 ac_cv_search_strerror=$ac_res
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext \
3478 conftest$ac_exeext
3479 if test "${ac_cv_search_strerror+set}" = set; then :
3480 break
3481 fi
3482 done
3483 if test "${ac_cv_search_strerror+set}" = set; then :
3484
3485 else
3486 ac_cv_search_strerror=no
3487 fi
3488 rm conftest.$ac_ext
3489 LIBS=$ac_func_search_save_LIBS
3490 fi
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3492 $as_echo "$ac_cv_search_strerror" >&6; }
3493 ac_res=$ac_cv_search_strerror
3494 if test "$ac_res" != no; then :
3495 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3496
3497 fi
3498
3499
3500 am__api_version='1.11'
3501
3502 # Find a good install program. We prefer a C program (faster),
3503 # so one script is as good as another. But avoid the broken or
3504 # incompatible versions:
3505 # SysV /etc/install, /usr/sbin/install
3506 # SunOS /usr/etc/install
3507 # IRIX /sbin/install
3508 # AIX /bin/install
3509 # AmigaOS /C/install, which installs bootblocks on floppy discs
3510 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3511 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3512 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3513 # OS/2's system install, which has a completely different semantic
3514 # ./install, which can be erroneously created by make from ./install.sh.
3515 # Reject install programs that cannot install multiple files.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3517 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3518 if test -z "$INSTALL"; then
3519 if test "${ac_cv_path_install+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525 IFS=$as_save_IFS
3526 test -z "$as_dir" && as_dir=.
3527 # Account for people who put trailing slashes in PATH elements.
3528 case $as_dir/ in #((
3529 ./ | .// | /[cC]/* | \
3530 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3531 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3532 /usr/ucb/* ) ;;
3533 *)
3534 # OSF1 and SCO ODT 3.0 have their own names for install.
3535 # Don't use installbsd from OSF since it installs stuff as root
3536 # by default.
3537 for ac_prog in ginstall scoinst install; do
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3540 if test $ac_prog = install &&
3541 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3542 # AIX install. It has an incompatible calling convention.
3543 :
3544 elif test $ac_prog = install &&
3545 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3546 # program-specific install script used by HP pwplus--don't use.
3547 :
3548 else
3549 rm -rf conftest.one conftest.two conftest.dir
3550 echo one > conftest.one
3551 echo two > conftest.two
3552 mkdir conftest.dir
3553 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3554 test -s conftest.one && test -s conftest.two &&
3555 test -s conftest.dir/conftest.one &&
3556 test -s conftest.dir/conftest.two
3557 then
3558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3559 break 3
3560 fi
3561 fi
3562 fi
3563 done
3564 done
3565 ;;
3566 esac
3567
3568 done
3569 IFS=$as_save_IFS
3570
3571 rm -rf conftest.one conftest.two conftest.dir
3572
3573 fi
3574 if test "${ac_cv_path_install+set}" = set; then
3575 INSTALL=$ac_cv_path_install
3576 else
3577 # As a last resort, use the slow shell script. Don't cache a
3578 # value for INSTALL within a source directory, because that will
3579 # break other packages using the cache if that directory is
3580 # removed, or if the value is a relative name.
3581 INSTALL=$ac_install_sh
3582 fi
3583 fi
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3585 $as_echo "$INSTALL" >&6; }
3586
3587 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3588 # It thinks the first close brace ends the variable substitution.
3589 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3590
3591 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3592
3593 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3594
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3596 $as_echo_n "checking whether build environment is sane... " >&6; }
3597 # Just in case
3598 sleep 1
3599 echo timestamp > conftest.file
3600 # Reject unsafe characters in $srcdir or the absolute working directory
3601 # name. Accept space and tab only in the latter.
3602 am_lf='
3603 '
3604 case `pwd` in
3605 *[\\\"\#\$\&\'\`$am_lf]*)
3606 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3607 esac
3608 case $srcdir in
3609 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3610 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3611 esac
3612
3613 # Do `set' in a subshell so we don't clobber the current shell's
3614 # arguments. Must try -L first in case configure is actually a
3615 # symlink; some systems play weird games with the mod time of symlinks
3616 # (eg FreeBSD returns the mod time of the symlink's containing
3617 # directory).
3618 if (
3619 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3620 if test "$*" = "X"; then
3621 # -L didn't work.
3622 set X `ls -t "$srcdir/configure" conftest.file`
3623 fi
3624 rm -f conftest.file
3625 if test "$*" != "X $srcdir/configure conftest.file" \
3626 && test "$*" != "X conftest.file $srcdir/configure"; then
3627
3628 # If neither matched, then we have a broken ls. This can happen
3629 # if, for instance, CONFIG_SHELL is bash and it inherits a
3630 # broken ls alias from the environment. This has actually
3631 # happened. Such a system could not be considered "sane".
3632 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3633 alias in your environment" "$LINENO" 5
3634 fi
3635
3636 test "$2" = conftest.file
3637 )
3638 then
3639 # Ok.
3640 :
3641 else
3642 as_fn_error "newly created file is older than distributed files!
3643 Check your system clock" "$LINENO" 5
3644 fi
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3646 $as_echo "yes" >&6; }
3647 test "$program_prefix" != NONE &&
3648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3649 # Use a double $ so make ignores it.
3650 test "$program_suffix" != NONE &&
3651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3652 # Double any \ or $.
3653 # By default was `s,x,x', remove it if useless.
3654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3656
3657 # expand $ac_aux_dir to an absolute path
3658 am_aux_dir=`cd $ac_aux_dir && pwd`
3659
3660 if test x"${MISSING+set}" != xset; then
3661 case $am_aux_dir in
3662 *\ * | *\ *)
3663 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3664 *)
3665 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3666 esac
3667 fi
3668 # Use eval to expand $SHELL
3669 if eval "$MISSING --run true"; then
3670 am_missing_run="$MISSING --run "
3671 else
3672 am_missing_run=
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3674 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3675 fi
3676
3677 if test x"${install_sh}" != xset; then
3678 case $am_aux_dir in
3679 *\ * | *\ *)
3680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3681 *)
3682 install_sh="\${SHELL} $am_aux_dir/install-sh"
3683 esac
3684 fi
3685
3686 # Installed binaries are usually stripped using `strip' when the user
3687 # run `make install-strip'. However `strip' might not be the right
3688 # tool to use in cross-compilation environments, therefore Automake
3689 # will honor the `STRIP' environment variable to overrule this program.
3690 if test "$cross_compiling" != no; then
3691 if test -n "$ac_tool_prefix"; then
3692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3693 set dummy ${ac_tool_prefix}strip; ac_word=$2
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 $as_echo_n "checking for $ac_word... " >&6; }
3696 if test "${ac_cv_prog_STRIP+set}" = set; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 if test -n "$STRIP"; then
3700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3701 else
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH
3704 do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 break 2
3712 fi
3713 done
3714 done
3715 IFS=$as_save_IFS
3716
3717 fi
3718 fi
3719 STRIP=$ac_cv_prog_STRIP
3720 if test -n "$STRIP"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3722 $as_echo "$STRIP" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3726 fi
3727
3728
3729 fi
3730 if test -z "$ac_cv_prog_STRIP"; then
3731 ac_ct_STRIP=$STRIP
3732 # Extract the first word of "strip", so it can be a program name with args.
3733 set dummy strip; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$ac_ct_STRIP"; then
3740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_ac_ct_STRIP="strip"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3760 if test -n "$ac_ct_STRIP"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3762 $as_echo "$ac_ct_STRIP" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768 if test "x$ac_ct_STRIP" = x; then
3769 STRIP=":"
3770 else
3771 case $cross_compiling:$ac_tool_warned in
3772 yes:)
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3775 ac_tool_warned=yes ;;
3776 esac
3777 STRIP=$ac_ct_STRIP
3778 fi
3779 else
3780 STRIP="$ac_cv_prog_STRIP"
3781 fi
3782
3783 fi
3784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3785
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3788 if test -z "$MKDIR_P"; then
3789 if test "${ac_cv_path_mkdir+set}" = set; then :
3790 $as_echo_n "(cached) " >&6
3791 else
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_prog in mkdir gmkdir; do
3798 for ac_exec_ext in '' $ac_executable_extensions; do
3799 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3801 'mkdir (GNU coreutils) '* | \
3802 'mkdir (coreutils) '* | \
3803 'mkdir (fileutils) '4.1*)
3804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3805 break 3;;
3806 esac
3807 done
3808 done
3809 done
3810 IFS=$as_save_IFS
3811
3812 fi
3813
3814 if test "${ac_cv_path_mkdir+set}" = set; then
3815 MKDIR_P="$ac_cv_path_mkdir -p"
3816 else
3817 # As a last resort, use the slow shell script. Don't cache a
3818 # value for MKDIR_P within a source directory, because that will
3819 # break other packages using the cache if that directory is
3820 # removed, or if the value is a relative name.
3821 test -d ./--version && rmdir ./--version
3822 MKDIR_P="$ac_install_sh -d"
3823 fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3826 $as_echo "$MKDIR_P" >&6; }
3827
3828 mkdir_p="$MKDIR_P"
3829 case $mkdir_p in
3830 [\\/$]* | ?:[\\/]*) ;;
3831 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3832 esac
3833
3834 for ac_prog in gawk mawk nawk awk
3835 do
3836 # Extract the first word of "$ac_prog", so it can be a program name with args.
3837 set dummy $ac_prog; ac_word=$2
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839 $as_echo_n "checking for $ac_word... " >&6; }
3840 if test "${ac_cv_prog_AWK+set}" = set; then :
3841 $as_echo_n "(cached) " >&6
3842 else
3843 if test -n "$AWK"; then
3844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3845 else
3846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847 for as_dir in $PATH
3848 do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
3851 for ac_exec_ext in '' $ac_executable_extensions; do
3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3853 ac_cv_prog_AWK="$ac_prog"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
3857 done
3858 done
3859 IFS=$as_save_IFS
3860
3861 fi
3862 fi
3863 AWK=$ac_cv_prog_AWK
3864 if test -n "$AWK"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3866 $as_echo "$AWK" >&6; }
3867 else
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3870 fi
3871
3872
3873 test -n "$AWK" && break
3874 done
3875
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3877 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3878 set x ${MAKE-make}
3879 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3880 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3881 $as_echo_n "(cached) " >&6
3882 else
3883 cat >conftest.make <<\_ACEOF
3884 SHELL = /bin/sh
3885 all:
3886 @echo '@@@%%%=$(MAKE)=@@@%%%'
3887 _ACEOF
3888 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3889 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3890 *@@@%%%=?*=@@@%%%*)
3891 eval ac_cv_prog_make_${ac_make}_set=yes;;
3892 *)
3893 eval ac_cv_prog_make_${ac_make}_set=no;;
3894 esac
3895 rm -f conftest.make
3896 fi
3897 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3899 $as_echo "yes" >&6; }
3900 SET_MAKE=
3901 else
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903 $as_echo "no" >&6; }
3904 SET_MAKE="MAKE=${MAKE-make}"
3905 fi
3906
3907 rm -rf .tst 2>/dev/null
3908 mkdir .tst 2>/dev/null
3909 if test -d .tst; then
3910 am__leading_dot=.
3911 else
3912 am__leading_dot=_
3913 fi
3914 rmdir .tst 2>/dev/null
3915
3916 DEPDIR="${am__leading_dot}deps"
3917
3918 ac_config_commands="$ac_config_commands depfiles"
3919
3920
3921 am_make=${MAKE-make}
3922 cat > confinc << 'END'
3923 am__doit:
3924 @echo this is the am__doit target
3925 .PHONY: am__doit
3926 END
3927 # If we don't find an include directive, just comment out the code.
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3929 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3930 am__include="#"
3931 am__quote=
3932 _am_result=none
3933 # First try GNU make style include.
3934 echo "include confinc" > confmf
3935 # Ignore all kinds of additional output from `make'.
3936 case `$am_make -s -f confmf 2> /dev/null` in #(
3937 *the\ am__doit\ target*)
3938 am__include=include
3939 am__quote=
3940 _am_result=GNU
3941 ;;
3942 esac
3943 # Now try BSD make style include.
3944 if test "$am__include" = "#"; then
3945 echo '.include "confinc"' > confmf
3946 case `$am_make -s -f confmf 2> /dev/null` in #(
3947 *the\ am__doit\ target*)
3948 am__include=.include
3949 am__quote="\""
3950 _am_result=BSD
3951 ;;
3952 esac
3953 fi
3954
3955
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3957 $as_echo "$_am_result" >&6; }
3958 rm -f confinc confmf
3959
3960 # Check whether --enable-dependency-tracking was given.
3961 if test "${enable_dependency_tracking+set}" = set; then :
3962 enableval=$enable_dependency_tracking;
3963 fi
3964
3965 if test "x$enable_dependency_tracking" != xno; then
3966 am_depcomp="$ac_aux_dir/depcomp"
3967 AMDEPBACKSLASH='\'
3968 am__nodep='_no'
3969 fi
3970 if test "x$enable_dependency_tracking" != xno; then
3971 AMDEP_TRUE=
3972 AMDEP_FALSE='#'
3973 else
3974 AMDEP_TRUE='#'
3975 AMDEP_FALSE=
3976 fi
3977
3978
3979 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3980 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3981 # is not polluted with repeated "-I."
3982 am__isrc=' -I$(srcdir)'
3983 # test to see if srcdir already configured
3984 if test -f $srcdir/config.status; then
3985 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3986 fi
3987 fi
3988
3989 # test whether we have cygpath
3990 if test -z "$CYGPATH_W"; then
3991 if (cygpath --version) >/dev/null 2>/dev/null; then
3992 CYGPATH_W='cygpath -w'
3993 else
3994 CYGPATH_W=echo
3995 fi
3996 fi
3997
3998
3999 # Define the identity of the package.
4000 PACKAGE='bfd'
4001 VERSION='2.28.51'
4002
4003
4004 cat >>confdefs.h <<_ACEOF
4005 #define PACKAGE "$PACKAGE"
4006 _ACEOF
4007
4008
4009 cat >>confdefs.h <<_ACEOF
4010 #define VERSION "$VERSION"
4011 _ACEOF
4012
4013 # Some tools Automake needs.
4014
4015 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4016
4017
4018 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4019
4020
4021 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4022
4023
4024 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4025
4026
4027 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4028
4029 # We need awk for the "check" target. The system "awk" is bad on
4030 # some platforms.
4031 # Always define AMTAR for backward compatibility. Yes, it's still used
4032 # in the wild :-( We should find a proper way to deprecate it ...
4033 AMTAR='$${TAR-tar}'
4034
4035 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4036
4037
4038
4039
4040 depcc="$CC" am_compiler_list=
4041
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4043 $as_echo_n "checking dependency style of $depcc... " >&6; }
4044 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4048 # We make a subdir and do the tests there. Otherwise we can end up
4049 # making bogus files that we don't know about and never remove. For
4050 # instance it was reported that on HP-UX the gcc test will end up
4051 # making a dummy file named `D' -- because `-MD' means `put the output
4052 # in D'.
4053 rm -rf conftest.dir
4054 mkdir conftest.dir
4055 # Copy depcomp to subdir because otherwise we won't find it if we're
4056 # using a relative directory.
4057 cp "$am_depcomp" conftest.dir
4058 cd conftest.dir
4059 # We will build objects and dependencies in a subdirectory because
4060 # it helps to detect inapplicable dependency modes. For instance
4061 # both Tru64's cc and ICC support -MD to output dependencies as a
4062 # side effect of compilation, but ICC will put the dependencies in
4063 # the current directory while Tru64 will put them in the object
4064 # directory.
4065 mkdir sub
4066
4067 am_cv_CC_dependencies_compiler_type=none
4068 if test "$am_compiler_list" = ""; then
4069 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4070 fi
4071 am__universal=false
4072 case " $depcc " in #(
4073 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4074 esac
4075
4076 for depmode in $am_compiler_list; do
4077 # Setup a source with many dependencies, because some compilers
4078 # like to wrap large dependency lists on column 80 (with \), and
4079 # we should not choose a depcomp mode which is confused by this.
4080 #
4081 # We need to recreate these files for each test, as the compiler may
4082 # overwrite some of them when testing with obscure command lines.
4083 # This happens at least with the AIX C compiler.
4084 : > sub/conftest.c
4085 for i in 1 2 3 4 5 6; do
4086 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4087 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4088 # Solaris 8's {/usr,}/bin/sh.
4089 touch sub/conftst$i.h
4090 done
4091 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4092
4093 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4094 # mode. It turns out that the SunPro C++ compiler does not properly
4095 # handle `-M -o', and we need to detect this. Also, some Intel
4096 # versions had trouble with output in subdirs
4097 am__obj=sub/conftest.${OBJEXT-o}
4098 am__minus_obj="-o $am__obj"
4099 case $depmode in
4100 gcc)
4101 # This depmode causes a compiler race in universal mode.
4102 test "$am__universal" = false || continue
4103 ;;
4104 nosideeffect)
4105 # after this tag, mechanisms are not by side-effect, so they'll
4106 # only be used when explicitly requested
4107 if test "x$enable_dependency_tracking" = xyes; then
4108 continue
4109 else
4110 break
4111 fi
4112 ;;
4113 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4114 # This compiler won't grok `-c -o', but also, the minuso test has
4115 # not run yet. These depmodes are late enough in the game, and
4116 # so weak that their functioning should not be impacted.
4117 am__obj=conftest.${OBJEXT-o}
4118 am__minus_obj=
4119 ;;
4120 none) break ;;
4121 esac
4122 if depmode=$depmode \
4123 source=sub/conftest.c object=$am__obj \
4124 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4125 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4126 >/dev/null 2>conftest.err &&
4127 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4128 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4129 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4130 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4131 # icc doesn't choke on unknown options, it will just issue warnings
4132 # or remarks (even with -Werror). So we grep stderr for any message
4133 # that says an option was ignored or not supported.
4134 # When given -MP, icc 7.0 and 7.1 complain thusly:
4135 # icc: Command line warning: ignoring option '-M'; no argument required
4136 # The diagnosis changed in icc 8.0:
4137 # icc: Command line remark: option '-MP' not supported
4138 if (grep 'ignoring option' conftest.err ||
4139 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4140 am_cv_CC_dependencies_compiler_type=$depmode
4141 break
4142 fi
4143 fi
4144 done
4145
4146 cd ..
4147 rm -rf conftest.dir
4148 else
4149 am_cv_CC_dependencies_compiler_type=none
4150 fi
4151
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4154 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4156
4157 if
4158 test "x$enable_dependency_tracking" != xno \
4159 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4160 am__fastdepCC_TRUE=
4161 am__fastdepCC_FALSE='#'
4162 else
4163 am__fastdepCC_TRUE='#'
4164 am__fastdepCC_FALSE=
4165 fi
4166
4167
4168
4169
4170 if test -n "$ac_tool_prefix"; then
4171 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4172 set dummy ${ac_tool_prefix}ar; ac_word=$2
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4174 $as_echo_n "checking for $ac_word... " >&6; }
4175 if test "${ac_cv_prog_AR+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4177 else
4178 if test -n "$AR"; then
4179 ac_cv_prog_AR="$AR" # Let the user override the test.
4180 else
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184 IFS=$as_save_IFS
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4188 ac_cv_prog_AR="${ac_tool_prefix}ar"
4189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 break 2
4191 fi
4192 done
4193 done
4194 IFS=$as_save_IFS
4195
4196 fi
4197 fi
4198 AR=$ac_cv_prog_AR
4199 if test -n "$AR"; then
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4201 $as_echo "$AR" >&6; }
4202 else
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4204 $as_echo "no" >&6; }
4205 fi
4206
4207
4208 fi
4209 if test -z "$ac_cv_prog_AR"; then
4210 ac_ct_AR=$AR
4211 # Extract the first word of "ar", so it can be a program name with args.
4212 set dummy ar; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$ac_ct_AR"; then
4219 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_ac_ct_AR="ar"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4239 if test -n "$ac_ct_AR"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4241 $as_echo "$ac_ct_AR" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247 if test "x$ac_ct_AR" = x; then
4248 AR=""
4249 else
4250 case $cross_compiling:$ac_tool_warned in
4251 yes:)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4255 esac
4256 AR=$ac_ct_AR
4257 fi
4258 else
4259 AR="$ac_cv_prog_AR"
4260 fi
4261
4262 if test -n "$ac_tool_prefix"; then
4263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4269 else
4270 if test -n "$RANLIB"; then
4271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4283 fi
4284 done
4285 done
4286 IFS=$as_save_IFS
4287
4288 fi
4289 fi
4290 RANLIB=$ac_cv_prog_RANLIB
4291 if test -n "$RANLIB"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4293 $as_echo "$RANLIB" >&6; }
4294 else
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4297 fi
4298
4299
4300 fi
4301 if test -z "$ac_cv_prog_RANLIB"; then
4302 ac_ct_RANLIB=$RANLIB
4303 # Extract the first word of "ranlib", so it can be a program name with args.
4304 set dummy ranlib; ac_word=$2
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4306 $as_echo_n "checking for $ac_word... " >&6; }
4307 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4308 $as_echo_n "(cached) " >&6
4309 else
4310 if test -n "$ac_ct_RANLIB"; then
4311 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_prog_ac_ct_RANLIB="ranlib"
4321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 break 2
4323 fi
4324 done
4325 done
4326 IFS=$as_save_IFS
4327
4328 fi
4329 fi
4330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4331 if test -n "$ac_ct_RANLIB"; then
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4333 $as_echo "$ac_ct_RANLIB" >&6; }
4334 else
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4336 $as_echo "no" >&6; }
4337 fi
4338
4339 if test "x$ac_ct_RANLIB" = x; then
4340 RANLIB=":"
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 RANLIB=$ac_ct_RANLIB
4349 fi
4350 else
4351 RANLIB="$ac_cv_prog_RANLIB"
4352 fi
4353
4354
4355 # Check whether --enable-shared was given.
4356 if test "${enable_shared+set}" = set; then :
4357 enableval=$enable_shared; p=${PACKAGE-default}
4358 case $enableval in
4359 yes) enable_shared=yes ;;
4360 no) enable_shared=no ;;
4361 *)
4362 enable_shared=no
4363 # Look at the argument we got. We use all the common list separators.
4364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4365 for pkg in $enableval; do
4366 IFS="$lt_save_ifs"
4367 if test "X$pkg" = "X$p"; then
4368 enable_shared=yes
4369 fi
4370 done
4371 IFS="$lt_save_ifs"
4372 ;;
4373 esac
4374 else
4375 enable_shared=no
4376 fi
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 ac_ext=c
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 if test -n "$ac_tool_prefix"; then
4393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if test "${ac_cv_prog_CC+set}" = set; then :
4398 $as_echo_n "(cached) " >&6
4399 else
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4402 else
4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4404 for as_dir in $PATH
4405 do
4406 IFS=$as_save_IFS
4407 test -z "$as_dir" && as_dir=.
4408 for ac_exec_ext in '' $ac_executable_extensions; do
4409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 break 2
4413 fi
4414 done
4415 done
4416 IFS=$as_save_IFS
4417
4418 fi
4419 fi
4420 CC=$ac_cv_prog_CC
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4427 fi
4428
4429
4430 fi
4431 if test -z "$ac_cv_prog_CC"; then
4432 ac_ct_CC=$CC
4433 # Extract the first word of "gcc", so it can be a program name with args.
4434 set dummy gcc; ac_word=$2
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4436 $as_echo_n "checking for $ac_word... " >&6; }
4437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -n "$ac_ct_CC"; then
4441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4442 else
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4450 ac_cv_prog_ac_ct_CC="gcc"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4453 fi
4454 done
4455 done
4456 IFS=$as_save_IFS
4457
4458 fi
4459 fi
4460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4461 if test -n "$ac_ct_CC"; then
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4463 $as_echo "$ac_ct_CC" >&6; }
4464 else
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468
4469 if test "x$ac_ct_CC" = x; then
4470 CC=""
4471 else
4472 case $cross_compiling:$ac_tool_warned in
4473 yes:)
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4476 ac_tool_warned=yes ;;
4477 esac
4478 CC=$ac_ct_CC
4479 fi
4480 else
4481 CC="$ac_cv_prog_CC"
4482 fi
4483
4484 if test -z "$CC"; then
4485 if test -n "$ac_tool_prefix"; then
4486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4487 set dummy ${ac_tool_prefix}cc; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if test "${ac_cv_prog_CC+set}" = set; then :
4491 $as_echo_n "(cached) " >&6
4492 else
4493 if test -n "$CC"; then
4494 ac_cv_prog_CC="$CC" # Let the user override the test.
4495 else
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 for as_dir in $PATH
4498 do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_exec_ext in '' $ac_executable_extensions; do
4502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4503 ac_cv_prog_CC="${ac_tool_prefix}cc"
4504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4505 break 2
4506 fi
4507 done
4508 done
4509 IFS=$as_save_IFS
4510
4511 fi
4512 fi
4513 CC=$ac_cv_prog_CC
4514 if test -n "$CC"; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4516 $as_echo "$CC" >&6; }
4517 else
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4519 $as_echo "no" >&6; }
4520 fi
4521
4522
4523 fi
4524 fi
4525 if test -z "$CC"; then
4526 # Extract the first word of "cc", so it can be a program name with args.
4527 set dummy cc; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if test "${ac_cv_prog_CC+set}" = set; then :
4531 $as_echo_n "(cached) " >&6
4532 else
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4535 else
4536 ac_prog_rejected=no
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4545 ac_prog_rejected=yes
4546 continue
4547 fi
4548 ac_cv_prog_CC="cc"
4549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 break 2
4551 fi
4552 done
4553 done
4554 IFS=$as_save_IFS
4555
4556 if test $ac_prog_rejected = yes; then
4557 # We found a bogon in the path, so make sure we never use it.
4558 set dummy $ac_cv_prog_CC
4559 shift
4560 if test $# != 0; then
4561 # We chose a different compiler from the bogus one.
4562 # However, it has the same basename, so the bogon will be chosen
4563 # first if we set CC to just the basename; use the full file name.
4564 shift
4565 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4566 fi
4567 fi
4568 fi
4569 fi
4570 CC=$ac_cv_prog_CC
4571 if test -n "$CC"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4573 $as_echo "$CC" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4577 fi
4578
4579
4580 fi
4581 if test -z "$CC"; then
4582 if test -n "$ac_tool_prefix"; then
4583 for ac_prog in cl.exe
4584 do
4585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if test "${ac_cv_prog_CC+set}" = set; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$CC"; then
4593 ac_cv_prog_CC="$CC" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 CC=$ac_cv_prog_CC
4613 if test -n "$CC"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4615 $as_echo "$CC" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 test -n "$CC" && break
4623 done
4624 fi
4625 if test -z "$CC"; then
4626 ac_ct_CC=$CC
4627 for ac_prog in cl.exe
4628 do
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_CC"; then
4637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_ac_ct_CC="$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4657 if test -n "$ac_ct_CC"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4659 $as_echo "$ac_ct_CC" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666 test -n "$ac_ct_CC" && break
4667 done
4668
4669 if test "x$ac_ct_CC" = x; then
4670 CC=""
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 CC=$ac_ct_CC
4679 fi
4680 fi
4681
4682 fi
4683
4684
4685 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4687 as_fn_error "no acceptable C compiler found in \$PATH
4688 See \`config.log' for more details." "$LINENO" 5; }
4689
4690 # Provide some information about the compiler.
4691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4692 set X $ac_compile
4693 ac_compiler=$2
4694 for ac_option in --version -v -V -qversion; do
4695 { { ac_try="$ac_compiler $ac_option >&5"
4696 case "(($ac_try" in
4697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4699 esac
4700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701 $as_echo "$ac_try_echo"; } >&5
4702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4703 ac_status=$?
4704 if test -s conftest.err; then
4705 sed '10a\
4706 ... rest of stderr output deleted ...
4707 10q' conftest.err >conftest.er1
4708 cat conftest.er1 >&5
4709 rm -f conftest.er1 conftest.err
4710 fi
4711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4712 test $ac_status = 0; }
4713 done
4714
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4716 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4717 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726 #ifndef __GNUC__
4727 choke me
4728 #endif
4729
4730 ;
4731 return 0;
4732 }
4733 _ACEOF
4734 if ac_fn_c_try_compile "$LINENO"; then :
4735 ac_compiler_gnu=yes
4736 else
4737 ac_compiler_gnu=no
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741
4742 fi
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4744 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4745 if test $ac_compiler_gnu = yes; then
4746 GCC=yes
4747 else
4748 GCC=
4749 fi
4750 ac_test_CFLAGS=${CFLAGS+set}
4751 ac_save_CFLAGS=$CFLAGS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4753 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4754 if test "${ac_cv_prog_cc_g+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4756 else
4757 ac_save_c_werror_flag=$ac_c_werror_flag
4758 ac_c_werror_flag=yes
4759 ac_cv_prog_cc_g=no
4760 CFLAGS="-g"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763
4764 int
4765 main ()
4766 {
4767
4768 ;
4769 return 0;
4770 }
4771 _ACEOF
4772 if ac_fn_c_try_compile "$LINENO"; then :
4773 ac_cv_prog_cc_g=yes
4774 else
4775 CFLAGS=""
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778
4779 int
4780 main ()
4781 {
4782
4783 ;
4784 return 0;
4785 }
4786 _ACEOF
4787 if ac_fn_c_try_compile "$LINENO"; then :
4788
4789 else
4790 ac_c_werror_flag=$ac_save_c_werror_flag
4791 CFLAGS="-g"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794
4795 int
4796 main ()
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_cv_prog_cc_g=yes
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4811 ac_c_werror_flag=$ac_save_c_werror_flag
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4814 $as_echo "$ac_cv_prog_cc_g" >&6; }
4815 if test "$ac_test_CFLAGS" = set; then
4816 CFLAGS=$ac_save_CFLAGS
4817 elif test $ac_cv_prog_cc_g = yes; then
4818 if test "$GCC" = yes; then
4819 CFLAGS="-g -O2"
4820 else
4821 CFLAGS="-g"
4822 fi
4823 else
4824 if test "$GCC" = yes; then
4825 CFLAGS="-O2"
4826 else
4827 CFLAGS=
4828 fi
4829 fi
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4831 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4832 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 ac_cv_prog_cc_c89=no
4836 ac_save_CC=$CC
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #include <stdarg.h>
4840 #include <stdio.h>
4841 #include <sys/types.h>
4842 #include <sys/stat.h>
4843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4844 struct buf { int x; };
4845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4846 static char *e (p, i)
4847 char **p;
4848 int i;
4849 {
4850 return p[i];
4851 }
4852 static char *f (char * (*g) (char **, int), char **p, ...)
4853 {
4854 char *s;
4855 va_list v;
4856 va_start (v,p);
4857 s = g (p, va_arg (v,int));
4858 va_end (v);
4859 return s;
4860 }
4861
4862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4863 function prototypes and stuff, but not '\xHH' hex character constants.
4864 These don't provoke an error unfortunately, instead are silently treated
4865 as 'x'. The following induces an error, until -std is added to get
4866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4867 array size at least. It's necessary to write '\x00'==0 to get something
4868 that's true only with -std. */
4869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4870
4871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4872 inside strings and character constants. */
4873 #define FOO(x) 'x'
4874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4875
4876 int test (int i, double x);
4877 struct s1 {int (*f) (int a);};
4878 struct s2 {int (*f) (double a);};
4879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4880 int argc;
4881 char **argv;
4882 int
4883 main ()
4884 {
4885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4886 ;
4887 return 0;
4888 }
4889 _ACEOF
4890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4892 do
4893 CC="$ac_save_CC $ac_arg"
4894 if ac_fn_c_try_compile "$LINENO"; then :
4895 ac_cv_prog_cc_c89=$ac_arg
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext
4898 test "x$ac_cv_prog_cc_c89" != "xno" && break
4899 done
4900 rm -f conftest.$ac_ext
4901 CC=$ac_save_CC
4902
4903 fi
4904 # AC_CACHE_VAL
4905 case "x$ac_cv_prog_cc_c89" in
4906 x)
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4908 $as_echo "none needed" >&6; } ;;
4909 xno)
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4911 $as_echo "unsupported" >&6; } ;;
4912 *)
4913 CC="$CC $ac_cv_prog_cc_c89"
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4915 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4916 esac
4917 if test "x$ac_cv_prog_cc_c89" != xno; then :
4918
4919 fi
4920
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927 ac_ext=c
4928 ac_cpp='$CPP $CPPFLAGS'
4929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4933 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4934 # On Suns, sometimes $CPP names a directory.
4935 if test -n "$CPP" && test -d "$CPP"; then
4936 CPP=
4937 fi
4938 if test -z "$CPP"; then
4939 if test "${ac_cv_prog_CPP+set}" = set; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 # Double quotes because CPP needs to be expanded
4943 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4944 do
4945 ac_preproc_ok=false
4946 for ac_c_preproc_warn_flag in '' yes
4947 do
4948 # Use a header file that comes with gcc, so configuring glibc
4949 # with a fresh cross-compiler works.
4950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4951 # <limits.h> exists even on freestanding compilers.
4952 # On the NeXT, cc -E runs the code through the compiler's parser,
4953 # not just through cpp. "Syntax error" is here to catch this case.
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 #ifdef __STDC__
4957 # include <limits.h>
4958 #else
4959 # include <assert.h>
4960 #endif
4961 Syntax error
4962 _ACEOF
4963 if ac_fn_c_try_cpp "$LINENO"; then :
4964
4965 else
4966 # Broken: fails on valid input.
4967 continue
4968 fi
4969 rm -f conftest.err conftest.$ac_ext
4970
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4974 /* end confdefs.h. */
4975 #include <ac_nonexistent.h>
4976 _ACEOF
4977 if ac_fn_c_try_cpp "$LINENO"; then :
4978 # Broken: success on invalid input.
4979 continue
4980 else
4981 # Passes both tests.
4982 ac_preproc_ok=:
4983 break
4984 fi
4985 rm -f conftest.err conftest.$ac_ext
4986
4987 done
4988 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989 rm -f conftest.err conftest.$ac_ext
4990 if $ac_preproc_ok; then :
4991 break
4992 fi
4993
4994 done
4995 ac_cv_prog_CPP=$CPP
4996
4997 fi
4998 CPP=$ac_cv_prog_CPP
4999 else
5000 ac_cv_prog_CPP=$CPP
5001 fi
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5003 $as_echo "$CPP" >&6; }
5004 ac_preproc_ok=false
5005 for ac_c_preproc_warn_flag in '' yes
5006 do
5007 # Use a header file that comes with gcc, so configuring glibc
5008 # with a fresh cross-compiler works.
5009 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5010 # <limits.h> exists even on freestanding compilers.
5011 # On the NeXT, cc -E runs the code through the compiler's parser,
5012 # not just through cpp. "Syntax error" is here to catch this case.
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 #ifdef __STDC__
5016 # include <limits.h>
5017 #else
5018 # include <assert.h>
5019 #endif
5020 Syntax error
5021 _ACEOF
5022 if ac_fn_c_try_cpp "$LINENO"; then :
5023
5024 else
5025 # Broken: fails on valid input.
5026 continue
5027 fi
5028 rm -f conftest.err conftest.$ac_ext
5029
5030 # OK, works on sane cases. Now check whether nonexistent headers
5031 # can be detected and how.
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5033 /* end confdefs.h. */
5034 #include <ac_nonexistent.h>
5035 _ACEOF
5036 if ac_fn_c_try_cpp "$LINENO"; then :
5037 # Broken: success on invalid input.
5038 continue
5039 else
5040 # Passes both tests.
5041 ac_preproc_ok=:
5042 break
5043 fi
5044 rm -f conftest.err conftest.$ac_ext
5045
5046 done
5047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5048 rm -f conftest.err conftest.$ac_ext
5049 if $ac_preproc_ok; then :
5050
5051 else
5052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5053 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5054 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5055 See \`config.log' for more details." "$LINENO" 5; }
5056 fi
5057
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5063
5064
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5066 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5067 if test "${ac_cv_path_GREP+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -z "$GREP"; then
5071 ac_path_GREP_found=false
5072 # Loop through the user's path and test for each of PROGNAME-LIST
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_prog in grep ggrep; do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5081 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5082 # Check for GNU ac_path_GREP and select it if it is found.
5083 # Check for GNU $ac_path_GREP
5084 case `"$ac_path_GREP" --version 2>&1` in
5085 *GNU*)
5086 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5087 *)
5088 ac_count=0
5089 $as_echo_n 0123456789 >"conftest.in"
5090 while :
5091 do
5092 cat "conftest.in" "conftest.in" >"conftest.tmp"
5093 mv "conftest.tmp" "conftest.in"
5094 cp "conftest.in" "conftest.nl"
5095 $as_echo 'GREP' >> "conftest.nl"
5096 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098 as_fn_arith $ac_count + 1 && ac_count=$as_val
5099 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5100 # Best one so far, save it but keep looking for a better one
5101 ac_cv_path_GREP="$ac_path_GREP"
5102 ac_path_GREP_max=$ac_count
5103 fi
5104 # 10*(2^10) chars as input seems more than enough
5105 test $ac_count -gt 10 && break
5106 done
5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108 esac
5109
5110 $ac_path_GREP_found && break 3
5111 done
5112 done
5113 done
5114 IFS=$as_save_IFS
5115 if test -z "$ac_cv_path_GREP"; then
5116 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 fi
5118 else
5119 ac_cv_path_GREP=$GREP
5120 fi
5121
5122 fi
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5124 $as_echo "$ac_cv_path_GREP" >&6; }
5125 GREP="$ac_cv_path_GREP"
5126
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5129 $as_echo_n "checking for egrep... " >&6; }
5130 if test "${ac_cv_path_EGREP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5134 then ac_cv_path_EGREP="$GREP -E"
5135 else
5136 if test -z "$EGREP"; then
5137 ac_path_EGREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in egrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5147 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5148 # Check for GNU ac_path_EGREP and select it if it is found.
5149 # Check for GNU $ac_path_EGREP
5150 case `"$ac_path_EGREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5153 *)
5154 ac_count=0
5155 $as_echo_n 0123456789 >"conftest.in"
5156 while :
5157 do
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 $as_echo 'EGREP' >> "conftest.nl"
5162 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 as_fn_arith $ac_count + 1 && ac_count=$as_val
5165 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_EGREP="$ac_path_EGREP"
5168 ac_path_EGREP_max=$ac_count
5169 fi
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5175
5176 $ac_path_EGREP_found && break 3
5177 done
5178 done
5179 done
5180 IFS=$as_save_IFS
5181 if test -z "$ac_cv_path_EGREP"; then
5182 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 fi
5184 else
5185 ac_cv_path_EGREP=$EGREP
5186 fi
5187
5188 fi
5189 fi
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5191 $as_echo "$ac_cv_path_EGREP" >&6; }
5192 EGREP="$ac_cv_path_EGREP"
5193
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5196 $as_echo_n "checking for ANSI C header files... " >&6; }
5197 if test "${ac_cv_header_stdc+set}" = set; then :
5198 $as_echo_n "(cached) " >&6
5199 else
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 #include <stdlib.h>
5203 #include <stdarg.h>
5204 #include <string.h>
5205 #include <float.h>
5206
5207 int
5208 main ()
5209 {
5210
5211 ;
5212 return 0;
5213 }
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"; then :
5216 ac_cv_header_stdc=yes
5217 else
5218 ac_cv_header_stdc=no
5219 fi
5220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5221
5222 if test $ac_cv_header_stdc = yes; then
5223 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <string.h>
5227
5228 _ACEOF
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "memchr" >/dev/null 2>&1; then :
5231
5232 else
5233 ac_cv_header_stdc=no
5234 fi
5235 rm -f conftest*
5236
5237 fi
5238
5239 if test $ac_cv_header_stdc = yes; then
5240 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5243 #include <stdlib.h>
5244
5245 _ACEOF
5246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5247 $EGREP "free" >/dev/null 2>&1; then :
5248
5249 else
5250 ac_cv_header_stdc=no
5251 fi
5252 rm -f conftest*
5253
5254 fi
5255
5256 if test $ac_cv_header_stdc = yes; then
5257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5258 if test "$cross_compiling" = yes; then :
5259 :
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5263 #include <ctype.h>
5264 #include <stdlib.h>
5265 #if ((' ' & 0x0FF) == 0x020)
5266 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5267 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5268 #else
5269 # define ISLOWER(c) \
5270 (('a' <= (c) && (c) <= 'i') \
5271 || ('j' <= (c) && (c) <= 'r') \
5272 || ('s' <= (c) && (c) <= 'z'))
5273 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5274 #endif
5275
5276 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5277 int
5278 main ()
5279 {
5280 int i;
5281 for (i = 0; i < 256; i++)
5282 if (XOR (islower (i), ISLOWER (i))
5283 || toupper (i) != TOUPPER (i))
5284 return 2;
5285 return 0;
5286 }
5287 _ACEOF
5288 if ac_fn_c_try_run "$LINENO"; then :
5289
5290 else
5291 ac_cv_header_stdc=no
5292 fi
5293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5294 conftest.$ac_objext conftest.beam conftest.$ac_ext
5295 fi
5296
5297 fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5300 $as_echo "$ac_cv_header_stdc" >&6; }
5301 if test $ac_cv_header_stdc = yes; then
5302
5303 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5304
5305 fi
5306
5307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5308 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5309 inttypes.h stdint.h unistd.h
5310 do :
5311 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5312 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5313 "
5314 eval as_val=\$$as_ac_Header
5315 if test "x$as_val" = x""yes; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5318 _ACEOF
5319
5320 fi
5321
5322 done
5323
5324
5325
5326 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5327 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5328 MINIX=yes
5329 else
5330 MINIX=
5331 fi
5332
5333
5334 if test "$MINIX" = yes; then
5335
5336 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5337
5338
5339 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5340
5341
5342 $as_echo "#define _MINIX 1" >>confdefs.h
5343
5344 fi
5345
5346
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5348 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5349 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354
5355 # define __EXTENSIONS__ 1
5356 $ac_includes_default
5357 int
5358 main ()
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5366 ac_cv_safe_to_define___extensions__=yes
5367 else
5368 ac_cv_safe_to_define___extensions__=no
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5371 fi
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5373 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5374 test $ac_cv_safe_to_define___extensions__ = yes &&
5375 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5376
5377 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5378
5379 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5380
5381 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5382
5383 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5384
5385
5386
5387
5388
5389 case `pwd` in
5390 *\ * | *\ *)
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5392 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5393 esac
5394
5395
5396
5397 macro_version='2.2.7a'
5398 macro_revision='1.3134'
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 ltmain="$ac_aux_dir/ltmain.sh"
5413
5414 # Backslashify metacharacters that are still active within
5415 # double-quoted strings.
5416 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5417
5418 # Same as above, but do not quote variable references.
5419 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5420
5421 # Sed substitution to delay expansion of an escaped shell variable in a
5422 # double_quote_subst'ed string.
5423 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5424
5425 # Sed substitution to delay expansion of an escaped single quote.
5426 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5427
5428 # Sed substitution to avoid accidental globbing in evaled expressions
5429 no_glob_subst='s/\*/\\\*/g'
5430
5431 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5434
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5436 $as_echo_n "checking how to print strings... " >&6; }
5437 # Test print first, because it will be a builtin if present.
5438 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5439 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5440 ECHO='print -r --'
5441 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5442 ECHO='printf %s\n'
5443 else
5444 # Use this function as a fallback that always works.
5445 func_fallback_echo ()
5446 {
5447 eval 'cat <<_LTECHO_EOF
5448 $1
5449 _LTECHO_EOF'
5450 }
5451 ECHO='func_fallback_echo'
5452 fi
5453
5454 # func_echo_all arg...
5455 # Invoke $ECHO with all args, space-separated.
5456 func_echo_all ()
5457 {
5458 $ECHO ""
5459 }
5460
5461 case "$ECHO" in
5462 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5463 $as_echo "printf" >&6; } ;;
5464 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5465 $as_echo "print -r" >&6; } ;;
5466 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5467 $as_echo "cat" >&6; } ;;
5468 esac
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5484 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5485 if test "${ac_cv_path_SED+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5489 for ac_i in 1 2 3 4 5 6 7; do
5490 ac_script="$ac_script$as_nl$ac_script"
5491 done
5492 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5493 { ac_script=; unset ac_script;}
5494 if test -z "$SED"; then
5495 ac_path_SED_found=false
5496 # Loop through the user's path and test for each of PROGNAME-LIST
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_prog in sed gsed; do
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5505 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5506 # Check for GNU ac_path_SED and select it if it is found.
5507 # Check for GNU $ac_path_SED
5508 case `"$ac_path_SED" --version 2>&1` in
5509 *GNU*)
5510 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5511 *)
5512 ac_count=0
5513 $as_echo_n 0123456789 >"conftest.in"
5514 while :
5515 do
5516 cat "conftest.in" "conftest.in" >"conftest.tmp"
5517 mv "conftest.tmp" "conftest.in"
5518 cp "conftest.in" "conftest.nl"
5519 $as_echo '' >> "conftest.nl"
5520 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5522 as_fn_arith $ac_count + 1 && ac_count=$as_val
5523 if test $ac_count -gt ${ac_path_SED_max-0}; then
5524 # Best one so far, save it but keep looking for a better one
5525 ac_cv_path_SED="$ac_path_SED"
5526 ac_path_SED_max=$ac_count
5527 fi
5528 # 10*(2^10) chars as input seems more than enough
5529 test $ac_count -gt 10 && break
5530 done
5531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5532 esac
5533
5534 $ac_path_SED_found && break 3
5535 done
5536 done
5537 done
5538 IFS=$as_save_IFS
5539 if test -z "$ac_cv_path_SED"; then
5540 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5541 fi
5542 else
5543 ac_cv_path_SED=$SED
5544 fi
5545
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5548 $as_echo "$ac_cv_path_SED" >&6; }
5549 SED="$ac_cv_path_SED"
5550 rm -f conftest.sed
5551
5552 test -z "$SED" && SED=sed
5553 Xsed="$SED -e 1s/^X//"
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5566 $as_echo_n "checking for fgrep... " >&6; }
5567 if test "${ac_cv_path_FGREP+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5571 then ac_cv_path_FGREP="$GREP -F"
5572 else
5573 if test -z "$FGREP"; then
5574 ac_path_FGREP_found=false
5575 # Loop through the user's path and test for each of PROGNAME-LIST
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5578 do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_prog in fgrep; do
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5584 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5585 # Check for GNU ac_path_FGREP and select it if it is found.
5586 # Check for GNU $ac_path_FGREP
5587 case `"$ac_path_FGREP" --version 2>&1` in
5588 *GNU*)
5589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5590 *)
5591 ac_count=0
5592 $as_echo_n 0123456789 >"conftest.in"
5593 while :
5594 do
5595 cat "conftest.in" "conftest.in" >"conftest.tmp"
5596 mv "conftest.tmp" "conftest.in"
5597 cp "conftest.in" "conftest.nl"
5598 $as_echo 'FGREP' >> "conftest.nl"
5599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5601 as_fn_arith $ac_count + 1 && ac_count=$as_val
5602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5603 # Best one so far, save it but keep looking for a better one
5604 ac_cv_path_FGREP="$ac_path_FGREP"
5605 ac_path_FGREP_max=$ac_count
5606 fi
5607 # 10*(2^10) chars as input seems more than enough
5608 test $ac_count -gt 10 && break
5609 done
5610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5611 esac
5612
5613 $ac_path_FGREP_found && break 3
5614 done
5615 done
5616 done
5617 IFS=$as_save_IFS
5618 if test -z "$ac_cv_path_FGREP"; then
5619 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5620 fi
5621 else
5622 ac_cv_path_FGREP=$FGREP
5623 fi
5624
5625 fi
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5628 $as_echo "$ac_cv_path_FGREP" >&6; }
5629 FGREP="$ac_cv_path_FGREP"
5630
5631
5632 test -z "$GREP" && GREP=grep
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652 # Check whether --with-gnu-ld was given.
5653 if test "${with_gnu_ld+set}" = set; then :
5654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5655 else
5656 with_gnu_ld=no
5657 fi
5658
5659 ac_prog=ld
5660 if test "$GCC" = yes; then
5661 # Check if gcc -print-prog-name=ld gives a path.
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5663 $as_echo_n "checking for ld used by $CC... " >&6; }
5664 case $host in
5665 *-*-mingw*)
5666 # gcc leaves a trailing carriage return which upsets mingw
5667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5668 *)
5669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5670 esac
5671 case $ac_prog in
5672 # Accept absolute paths.
5673 [\\/]* | ?:[\\/]*)
5674 re_direlt='/[^/][^/]*/\.\./'
5675 # Canonicalize the pathname of ld
5676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5679 done
5680 test -z "$LD" && LD="$ac_prog"
5681 ;;
5682 "")
5683 # If it fails, then pretend we aren't using GCC.
5684 ac_prog=ld
5685 ;;
5686 *)
5687 # If it is relative, then search for the first ld in PATH.
5688 with_gnu_ld=unknown
5689 ;;
5690 esac
5691 elif test "$with_gnu_ld" = yes; then
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5693 $as_echo_n "checking for GNU ld... " >&6; }
5694 else
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5696 $as_echo_n "checking for non-GNU ld... " >&6; }
5697 fi
5698 if test "${lt_cv_path_LD+set}" = set; then :
5699 $as_echo_n "(cached) " >&6
5700 else
5701 if test -z "$LD"; then
5702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5703 for ac_dir in $PATH; do
5704 IFS="$lt_save_ifs"
5705 test -z "$ac_dir" && ac_dir=.
5706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5707 lt_cv_path_LD="$ac_dir/$ac_prog"
5708 # Check to see if the program is GNU ld. I'd rather use --version,
5709 # but apparently some variants of GNU ld only accept -v.
5710 # Break only if it was the GNU/non-GNU ld that we prefer.
5711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5712 *GNU* | *'with BFD'*)
5713 test "$with_gnu_ld" != no && break
5714 ;;
5715 *)
5716 test "$with_gnu_ld" != yes && break
5717 ;;
5718 esac
5719 fi
5720 done
5721 IFS="$lt_save_ifs"
5722 else
5723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5724 fi
5725 fi
5726
5727 LD="$lt_cv_path_LD"
5728 if test -n "$LD"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5730 $as_echo "$LD" >&6; }
5731 else
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5737 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5738 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5742 case `$LD -v 2>&1 </dev/null` in
5743 *GNU* | *'with BFD'*)
5744 lt_cv_prog_gnu_ld=yes
5745 ;;
5746 *)
5747 lt_cv_prog_gnu_ld=no
5748 ;;
5749 esac
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5752 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5753 with_gnu_ld=$lt_cv_prog_gnu_ld
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5764 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5765 if test "${lt_cv_path_NM+set}" = set; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$NM"; then
5769 # Let the user override the test.
5770 lt_cv_path_NM="$NM"
5771 else
5772 lt_nm_to_check="${ac_tool_prefix}nm"
5773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5774 lt_nm_to_check="$lt_nm_to_check nm"
5775 fi
5776 for lt_tmp_nm in $lt_nm_to_check; do
5777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5779 IFS="$lt_save_ifs"
5780 test -z "$ac_dir" && ac_dir=.
5781 tmp_nm="$ac_dir/$lt_tmp_nm"
5782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5783 # Check to see if the nm accepts a BSD-compat flag.
5784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5785 # nm: unknown option "B" ignored
5786 # Tru64's nm complains that /dev/null is an invalid object file
5787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5788 */dev/null* | *'Invalid file or object type'*)
5789 lt_cv_path_NM="$tmp_nm -B"
5790 break
5791 ;;
5792 *)
5793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5794 */dev/null*)
5795 lt_cv_path_NM="$tmp_nm -p"
5796 break
5797 ;;
5798 *)
5799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5800 continue # so that we can try to find one that supports BSD flags
5801 ;;
5802 esac
5803 ;;
5804 esac
5805 fi
5806 done
5807 IFS="$lt_save_ifs"
5808 done
5809 : ${lt_cv_path_NM=no}
5810 fi
5811 fi
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5813 $as_echo "$lt_cv_path_NM" >&6; }
5814 if test "$lt_cv_path_NM" != "no"; then
5815 NM="$lt_cv_path_NM"
5816 else
5817 # Didn't find any BSD compatible name lister, look for dumpbin.
5818 if test -n "$DUMPBIN"; then :
5819 # Let the user override the test.
5820 else
5821 if test -n "$ac_tool_prefix"; then
5822 for ac_prog in dumpbin "link -dump"
5823 do
5824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827 $as_echo_n "checking for $ac_word... " >&6; }
5828 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test -n "$DUMPBIN"; then
5832 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5833 else
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835 for as_dir in $PATH
5836 do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845 done
5846 done
5847 IFS=$as_save_IFS
5848
5849 fi
5850 fi
5851 DUMPBIN=$ac_cv_prog_DUMPBIN
5852 if test -n "$DUMPBIN"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5854 $as_echo "$DUMPBIN" >&6; }
5855 else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857 $as_echo "no" >&6; }
5858 fi
5859
5860
5861 test -n "$DUMPBIN" && break
5862 done
5863 fi
5864 if test -z "$DUMPBIN"; then
5865 ac_ct_DUMPBIN=$DUMPBIN
5866 for ac_prog in dumpbin "link -dump"
5867 do
5868 # Extract the first word of "$ac_prog", so it can be a program name with args.
5869 set dummy $ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 if test -n "$ac_ct_DUMPBIN"; then
5876 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881 IFS=$as_save_IFS
5882 test -z "$as_dir" && as_dir=.
5883 for ac_exec_ext in '' $ac_executable_extensions; do
5884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887 break 2
5888 fi
5889 done
5890 done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5896 if test -n "$ac_ct_DUMPBIN"; then
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5898 $as_echo "$ac_ct_DUMPBIN" >&6; }
5899 else
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905 test -n "$ac_ct_DUMPBIN" && break
5906 done
5907
5908 if test "x$ac_ct_DUMPBIN" = x; then
5909 DUMPBIN=":"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 DUMPBIN=$ac_ct_DUMPBIN
5918 fi
5919 fi
5920
5921 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5922 *COFF*)
5923 DUMPBIN="$DUMPBIN -symbols"
5924 ;;
5925 *)
5926 DUMPBIN=:
5927 ;;
5928 esac
5929 fi
5930
5931 if test "$DUMPBIN" != ":"; then
5932 NM="$DUMPBIN"
5933 fi
5934 fi
5935 test -z "$NM" && NM=nm
5936
5937
5938
5939
5940
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5943 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5944 if test "${lt_cv_nm_interface+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 lt_cv_nm_interface="BSD nm"
5948 echo "int some_variable = 0;" > conftest.$ac_ext
5949 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5950 (eval "$ac_compile" 2>conftest.err)
5951 cat conftest.err >&5
5952 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5953 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5954 cat conftest.err >&5
5955 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5956 cat conftest.out >&5
5957 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5958 lt_cv_nm_interface="MS dumpbin"
5959 fi
5960 rm -f conftest*
5961 fi
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5963 $as_echo "$lt_cv_nm_interface" >&6; }
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5966 $as_echo_n "checking whether ln -s works... " >&6; }
5967 LN_S=$as_ln_s
5968 if test "$LN_S" = "ln -s"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5970 $as_echo "yes" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5973 $as_echo "no, using $LN_S" >&6; }
5974 fi
5975
5976 # find the maximum length of command line arguments
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5978 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5979 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5980 $as_echo_n "(cached) " >&6
5981 else
5982 i=0
5983 teststring="ABCD"
5984
5985 case $build_os in
5986 msdosdjgpp*)
5987 # On DJGPP, this test can blow up pretty badly due to problems in libc
5988 # (any single argument exceeding 2000 bytes causes a buffer overrun
5989 # during glob expansion). Even if it were fixed, the result of this
5990 # check would be larger than it should be.
5991 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5992 ;;
5993
5994 gnu*)
5995 # Under GNU Hurd, this test is not required because there is
5996 # no limit to the length of command line arguments.
5997 # Libtool will interpret -1 as no limit whatsoever
5998 lt_cv_sys_max_cmd_len=-1;
5999 ;;
6000
6001 cygwin* | mingw* | cegcc*)
6002 # On Win9x/ME, this test blows up -- it succeeds, but takes
6003 # about 5 minutes as the teststring grows exponentially.
6004 # Worse, since 9x/ME are not pre-emptively multitasking,
6005 # you end up with a "frozen" computer, even though with patience
6006 # the test eventually succeeds (with a max line length of 256k).
6007 # Instead, let's just punt: use the minimum linelength reported by
6008 # all of the supported platforms: 8192 (on NT/2K/XP).
6009 lt_cv_sys_max_cmd_len=8192;
6010 ;;
6011
6012 mint*)
6013 # On MiNT this can take a long time and run out of memory.
6014 lt_cv_sys_max_cmd_len=8192;
6015 ;;
6016
6017 amigaos*)
6018 # On AmigaOS with pdksh, this test takes hours, literally.
6019 # So we just punt and use a minimum line length of 8192.
6020 lt_cv_sys_max_cmd_len=8192;
6021 ;;
6022
6023 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6024 # This has been around since 386BSD, at least. Likely further.
6025 if test -x /sbin/sysctl; then
6026 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6027 elif test -x /usr/sbin/sysctl; then
6028 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6029 else
6030 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6031 fi
6032 # And add a safety zone
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6034 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6035 ;;
6036
6037 interix*)
6038 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6039 lt_cv_sys_max_cmd_len=196608
6040 ;;
6041
6042 osf*)
6043 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6044 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6045 # nice to cause kernel panics so lets avoid the loop below.
6046 # First set a reasonable default.
6047 lt_cv_sys_max_cmd_len=16384
6048 #
6049 if test -x /sbin/sysconfig; then
6050 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6051 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6052 esac
6053 fi
6054 ;;
6055 sco3.2v5*)
6056 lt_cv_sys_max_cmd_len=102400
6057 ;;
6058 sysv5* | sco5v6* | sysv4.2uw2*)
6059 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6060 if test -n "$kargmax"; then
6061 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6062 else
6063 lt_cv_sys_max_cmd_len=32768
6064 fi
6065 ;;
6066 *)
6067 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6068 if test -n "$lt_cv_sys_max_cmd_len"; then
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6070 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6071 else
6072 # Make teststring a little bigger before we do anything with it.
6073 # a 1K string should be a reasonable start.
6074 for i in 1 2 3 4 5 6 7 8 ; do
6075 teststring=$teststring$teststring
6076 done
6077 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6078 # If test is not a shell built-in, we'll probably end up computing a
6079 # maximum length that is only half of the actual maximum length, but
6080 # we can't tell.
6081 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6082 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6083 test $i != 17 # 1/2 MB should be enough
6084 do
6085 i=`expr $i + 1`
6086 teststring=$teststring$teststring
6087 done
6088 # Only check the string length outside the loop.
6089 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6090 teststring=
6091 # Add a significant safety factor because C++ compilers can tack on
6092 # massive amounts of additional arguments before passing them to the
6093 # linker. It appears as though 1/2 is a usable value.
6094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6095 fi
6096 ;;
6097 esac
6098
6099 fi
6100
6101 if test -n $lt_cv_sys_max_cmd_len ; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6103 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6104 else
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6106 $as_echo "none" >&6; }
6107 fi
6108 max_cmd_len=$lt_cv_sys_max_cmd_len
6109
6110
6111
6112
6113
6114
6115 : ${CP="cp -f"}
6116 : ${MV="mv -f"}
6117 : ${RM="rm -f"}
6118
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6120 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6121 # Try some XSI features
6122 xsi_shell=no
6123 ( _lt_dummy="a/b/c"
6124 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6125 = c,a/b,, \
6126 && eval 'test $(( 1 + 1 )) -eq 2 \
6127 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6128 && xsi_shell=yes
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6130 $as_echo "$xsi_shell" >&6; }
6131
6132
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6134 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6135 lt_shell_append=no
6136 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6137 >/dev/null 2>&1 \
6138 && lt_shell_append=yes
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6140 $as_echo "$lt_shell_append" >&6; }
6141
6142
6143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6144 lt_unset=unset
6145 else
6146 lt_unset=false
6147 fi
6148
6149
6150
6151
6152
6153 # test EBCDIC or ASCII
6154 case `echo X|tr X '\101'` in
6155 A) # ASCII based system
6156 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6157 lt_SP2NL='tr \040 \012'
6158 lt_NL2SP='tr \015\012 \040\040'
6159 ;;
6160 *) # EBCDIC based system
6161 lt_SP2NL='tr \100 \n'
6162 lt_NL2SP='tr \r\n \100\100'
6163 ;;
6164 esac
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6175 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6176 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 lt_cv_ld_reload_flag='-r'
6180 fi
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6182 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6183 reload_flag=$lt_cv_ld_reload_flag
6184 case $reload_flag in
6185 "" | " "*) ;;
6186 *) reload_flag=" $reload_flag" ;;
6187 esac
6188 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6189 case $host_os in
6190 darwin*)
6191 if test "$GCC" = yes; then
6192 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6193 else
6194 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6195 fi
6196 ;;
6197 esac
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207 if test -n "$ac_tool_prefix"; then
6208 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6209 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 $as_echo_n "checking for $ac_word... " >&6; }
6212 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 if test -n "$OBJDUMP"; then
6216 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6217 else
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6219 for as_dir in $PATH
6220 do
6221 IFS=$as_save_IFS
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6225 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6227 break 2
6228 fi
6229 done
6230 done
6231 IFS=$as_save_IFS
6232
6233 fi
6234 fi
6235 OBJDUMP=$ac_cv_prog_OBJDUMP
6236 if test -n "$OBJDUMP"; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6238 $as_echo "$OBJDUMP" >&6; }
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 fi
6243
6244
6245 fi
6246 if test -z "$ac_cv_prog_OBJDUMP"; then
6247 ac_ct_OBJDUMP=$OBJDUMP
6248 # Extract the first word of "objdump", so it can be a program name with args.
6249 set dummy objdump; ac_word=$2
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6251 $as_echo_n "checking for $ac_word... " >&6; }
6252 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6254 else
6255 if test -n "$ac_ct_OBJDUMP"; then
6256 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6257 else
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259 for as_dir in $PATH
6260 do
6261 IFS=$as_save_IFS
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 break 2
6268 fi
6269 done
6270 done
6271 IFS=$as_save_IFS
6272
6273 fi
6274 fi
6275 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6276 if test -n "$ac_ct_OBJDUMP"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6278 $as_echo "$ac_ct_OBJDUMP" >&6; }
6279 else
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6281 $as_echo "no" >&6; }
6282 fi
6283
6284 if test "x$ac_ct_OBJDUMP" = x; then
6285 OBJDUMP="false"
6286 else
6287 case $cross_compiling:$ac_tool_warned in
6288 yes:)
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6291 ac_tool_warned=yes ;;
6292 esac
6293 OBJDUMP=$ac_ct_OBJDUMP
6294 fi
6295 else
6296 OBJDUMP="$ac_cv_prog_OBJDUMP"
6297 fi
6298
6299 test -z "$OBJDUMP" && OBJDUMP=objdump
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6310 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6311 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 lt_cv_file_magic_cmd='$MAGIC_CMD'
6315 lt_cv_file_magic_test_file=
6316 lt_cv_deplibs_check_method='unknown'
6317 # Need to set the preceding variable on all platforms that support
6318 # interlibrary dependencies.
6319 # 'none' -- dependencies not supported.
6320 # `unknown' -- same as none, but documents that we really don't know.
6321 # 'pass_all' -- all dependencies passed with no checks.
6322 # 'test_compile' -- check by making test program.
6323 # 'file_magic [[regex]]' -- check by looking for files in library path
6324 # which responds to the $file_magic_cmd with a given extended regex.
6325 # If you have `file' or equivalent on your system and you're not sure
6326 # whether `pass_all' will *always* work, you probably want this one.
6327
6328 case $host_os in
6329 aix[4-9]*)
6330 lt_cv_deplibs_check_method=pass_all
6331 ;;
6332
6333 beos*)
6334 lt_cv_deplibs_check_method=pass_all
6335 ;;
6336
6337 bsdi[45]*)
6338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6339 lt_cv_file_magic_cmd='/usr/bin/file -L'
6340 lt_cv_file_magic_test_file=/shlib/libc.so
6341 ;;
6342
6343 cygwin*)
6344 # func_win32_libid is a shell function defined in ltmain.sh
6345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6346 lt_cv_file_magic_cmd='func_win32_libid'
6347 ;;
6348
6349 mingw* | pw32*)
6350 # Base MSYS/MinGW do not provide the 'file' command needed by
6351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6352 # unless we find 'file', for example because we are cross-compiling.
6353 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6354 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6355 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6356 lt_cv_file_magic_cmd='func_win32_libid'
6357 else
6358 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6359 lt_cv_file_magic_cmd='$OBJDUMP -f'
6360 fi
6361 ;;
6362
6363 cegcc*)
6364 # use the weaker test based on 'objdump'. See mingw*.
6365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6366 lt_cv_file_magic_cmd='$OBJDUMP -f'
6367 ;;
6368
6369 darwin* | rhapsody*)
6370 lt_cv_deplibs_check_method=pass_all
6371 ;;
6372
6373 freebsd* | dragonfly*)
6374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6375 case $host_cpu in
6376 i*86 )
6377 # Not sure whether the presence of OpenBSD here was a mistake.
6378 # Let's accept both of them until this is cleared up.
6379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6380 lt_cv_file_magic_cmd=/usr/bin/file
6381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6382 ;;
6383 esac
6384 else
6385 lt_cv_deplibs_check_method=pass_all
6386 fi
6387 ;;
6388
6389 gnu*)
6390 lt_cv_deplibs_check_method=pass_all
6391 ;;
6392
6393 haiku*)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396
6397 hpux10.20* | hpux11*)
6398 lt_cv_file_magic_cmd=/usr/bin/file
6399 case $host_cpu in
6400 ia64*)
6401 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6402 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6403 ;;
6404 hppa*64*)
6405 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]'
6406 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6407 ;;
6408 *)
6409 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6410 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6411 ;;
6412 esac
6413 ;;
6414
6415 interix[3-9]*)
6416 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6418 ;;
6419
6420 irix5* | irix6* | nonstopux*)
6421 case $LD in
6422 *-32|*"-32 ") libmagic=32-bit;;
6423 *-n32|*"-n32 ") libmagic=N32;;
6424 *-64|*"-64 ") libmagic=64-bit;;
6425 *) libmagic=never-match;;
6426 esac
6427 lt_cv_deplibs_check_method=pass_all
6428 ;;
6429
6430 # This must be Linux ELF.
6431 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6432 lt_cv_deplibs_check_method=pass_all
6433 ;;
6434
6435 netbsd*)
6436 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6438 else
6439 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6440 fi
6441 ;;
6442
6443 newos6*)
6444 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6445 lt_cv_file_magic_cmd=/usr/bin/file
6446 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6447 ;;
6448
6449 *nto* | *qnx*)
6450 lt_cv_deplibs_check_method=pass_all
6451 ;;
6452
6453 openbsd*)
6454 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6456 else
6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6458 fi
6459 ;;
6460
6461 osf3* | osf4* | osf5*)
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 rdos*)
6466 lt_cv_deplibs_check_method=pass_all
6467 ;;
6468
6469 solaris*)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472
6473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 sysv4 | sysv4.3*)
6478 case $host_vendor in
6479 motorola)
6480 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]'
6481 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6482 ;;
6483 ncr)
6484 lt_cv_deplibs_check_method=pass_all
6485 ;;
6486 sequent)
6487 lt_cv_file_magic_cmd='/bin/file'
6488 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6489 ;;
6490 sni)
6491 lt_cv_file_magic_cmd='/bin/file'
6492 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6493 lt_cv_file_magic_test_file=/lib/libc.so
6494 ;;
6495 siemens)
6496 lt_cv_deplibs_check_method=pass_all
6497 ;;
6498 pc)
6499 lt_cv_deplibs_check_method=pass_all
6500 ;;
6501 esac
6502 ;;
6503
6504 tpf*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507 esac
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6511 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6512 file_magic_cmd=$lt_cv_file_magic_cmd
6513 deplibs_check_method=$lt_cv_deplibs_check_method
6514 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6529 set dummy ${ac_tool_prefix}ar; ac_word=$2
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531 $as_echo_n "checking for $ac_word... " >&6; }
6532 if test "${ac_cv_prog_AR+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 if test -n "$AR"; then
6536 ac_cv_prog_AR="$AR" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
6543 for ac_exec_ext in '' $ac_executable_extensions; do
6544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6545 ac_cv_prog_AR="${ac_tool_prefix}ar"
6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6547 break 2
6548 fi
6549 done
6550 done
6551 IFS=$as_save_IFS
6552
6553 fi
6554 fi
6555 AR=$ac_cv_prog_AR
6556 if test -n "$AR"; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6558 $as_echo "$AR" >&6; }
6559 else
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563
6564
6565 fi
6566 if test -z "$ac_cv_prog_AR"; then
6567 ac_ct_AR=$AR
6568 # Extract the first word of "ar", so it can be a program name with args.
6569 set dummy ar; ac_word=$2
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571 $as_echo_n "checking for $ac_word... " >&6; }
6572 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6573 $as_echo_n "(cached) " >&6
6574 else
6575 if test -n "$ac_ct_AR"; then
6576 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6577 else
6578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579 for as_dir in $PATH
6580 do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
6583 for ac_exec_ext in '' $ac_executable_extensions; do
6584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6585 ac_cv_prog_ac_ct_AR="ar"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589 done
6590 done
6591 IFS=$as_save_IFS
6592
6593 fi
6594 fi
6595 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6596 if test -n "$ac_ct_AR"; then
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6598 $as_echo "$ac_ct_AR" >&6; }
6599 else
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601 $as_echo "no" >&6; }
6602 fi
6603
6604 if test "x$ac_ct_AR" = x; then
6605 AR="false"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608 yes:)
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611 ac_tool_warned=yes ;;
6612 esac
6613 AR=$ac_ct_AR
6614 fi
6615 else
6616 AR="$ac_cv_prog_AR"
6617 fi
6618
6619 test -z "$AR" && AR=ar
6620 test -z "$AR_FLAGS" && AR_FLAGS=cru
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}strip; ac_word=$2
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6636 $as_echo_n "checking for $ac_word... " >&6; }
6637 if test "${ac_cv_prog_STRIP+set}" = set; then :
6638 $as_echo_n "(cached) " >&6
6639 else
6640 if test -n "$STRIP"; then
6641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6642 else
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6644 for as_dir in $PATH
6645 do
6646 IFS=$as_save_IFS
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 STRIP=$ac_cv_prog_STRIP
6661 if test -n "$STRIP"; then
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6663 $as_echo "$STRIP" >&6; }
6664 else
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_STRIP"; then
6672 ac_ct_STRIP=$STRIP
6673 # Extract the first word of "strip", so it can be a program name with args.
6674 set dummy strip; ac_word=$2
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 $as_echo_n "checking for $ac_word... " >&6; }
6677 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6678 $as_echo_n "(cached) " >&6
6679 else
6680 if test -n "$ac_ct_STRIP"; then
6681 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6682 else
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6684 for as_dir in $PATH
6685 do
6686 IFS=$as_save_IFS
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_STRIP="strip"
6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6692 break 2
6693 fi
6694 done
6695 done
6696 IFS=$as_save_IFS
6697
6698 fi
6699 fi
6700 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6701 if test -n "$ac_ct_STRIP"; then
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6703 $as_echo "$ac_ct_STRIP" >&6; }
6704 else
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6706 $as_echo "no" >&6; }
6707 fi
6708
6709 if test "x$ac_ct_STRIP" = x; then
6710 STRIP=":"
6711 else
6712 case $cross_compiling:$ac_tool_warned in
6713 yes:)
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6715 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6716 ac_tool_warned=yes ;;
6717 esac
6718 STRIP=$ac_ct_STRIP
6719 fi
6720 else
6721 STRIP="$ac_cv_prog_STRIP"
6722 fi
6723
6724 test -z "$STRIP" && STRIP=:
6725
6726
6727
6728
6729
6730
6731 if test -n "$ac_tool_prefix"; then
6732 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6733 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$RANLIB"; then
6740 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6744 do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753 done
6754 done
6755 IFS=$as_save_IFS
6756
6757 fi
6758 fi
6759 RANLIB=$ac_cv_prog_RANLIB
6760 if test -n "$RANLIB"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6762 $as_echo "$RANLIB" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6766 fi
6767
6768
6769 fi
6770 if test -z "$ac_cv_prog_RANLIB"; then
6771 ac_ct_RANLIB=$RANLIB
6772 # Extract the first word of "ranlib", so it can be a program name with args.
6773 set dummy ranlib; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$ac_ct_RANLIB"; then
6780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6789 ac_cv_prog_ac_ct_RANLIB="ranlib"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6800 if test -n "$ac_ct_RANLIB"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6802 $as_echo "$ac_ct_RANLIB" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808 if test "x$ac_ct_RANLIB" = x; then
6809 RANLIB=":"
6810 else
6811 case $cross_compiling:$ac_tool_warned in
6812 yes:)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6815 ac_tool_warned=yes ;;
6816 esac
6817 RANLIB=$ac_ct_RANLIB
6818 fi
6819 else
6820 RANLIB="$ac_cv_prog_RANLIB"
6821 fi
6822
6823 test -z "$RANLIB" && RANLIB=:
6824
6825
6826
6827
6828
6829
6830 # Determine commands to create old-style static archives.
6831 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6832 old_postinstall_cmds='chmod 644 $oldlib'
6833 old_postuninstall_cmds=
6834
6835 if test -n "$RANLIB"; then
6836 case $host_os in
6837 openbsd*)
6838 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6839 ;;
6840 *)
6841 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6842 ;;
6843 esac
6844 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6845 fi
6846
6847 case $host_os in
6848 darwin*)
6849 lock_old_archive_extraction=yes ;;
6850 *)
6851 lock_old_archive_extraction=no ;;
6852 esac
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 # If no C compiler was specified, use CC.
6893 LTCC=${LTCC-"$CC"}
6894
6895 # If no C compiler flags were specified, use CFLAGS.
6896 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6897
6898 # Allow CC to be a program name with arguments.
6899 compiler=$CC
6900
6901
6902 # Check for command to grab the raw symbol name followed by C symbol from nm.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6904 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6905 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908
6909 # These are sane defaults that work on at least a few old systems.
6910 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6911
6912 # Character class describing NM global symbol codes.
6913 symcode='[BCDEGRST]'
6914
6915 # Regexp to match symbols that can be accessed directly from C.
6916 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6917
6918 # Define system-specific variables.
6919 case $host_os in
6920 aix*)
6921 symcode='[BCDT]'
6922 ;;
6923 cygwin* | mingw* | pw32* | cegcc*)
6924 symcode='[ABCDGISTW]'
6925 ;;
6926 hpux*)
6927 if test "$host_cpu" = ia64; then
6928 symcode='[ABCDEGRST]'
6929 fi
6930 ;;
6931 irix* | nonstopux*)
6932 symcode='[BCDEGRST]'
6933 ;;
6934 osf*)
6935 symcode='[BCDEGQRST]'
6936 ;;
6937 solaris*)
6938 symcode='[BDRT]'
6939 ;;
6940 sco3.2v5*)
6941 symcode='[DT]'
6942 ;;
6943 sysv4.2uw2*)
6944 symcode='[DT]'
6945 ;;
6946 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6947 symcode='[ABDT]'
6948 ;;
6949 sysv4)
6950 symcode='[DFNSTU]'
6951 ;;
6952 esac
6953
6954 # If we're using GNU nm, then use its standard symbol codes.
6955 case `$NM -V 2>&1` in
6956 *GNU* | *'with BFD'*)
6957 symcode='[ABCDGIRSTW]' ;;
6958 esac
6959
6960 # Transform an extracted symbol line into a proper C declaration.
6961 # Some systems (esp. on ia64) link data and code symbols differently,
6962 # so use this general approach.
6963 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6964
6965 # Transform an extracted symbol line into symbol name and symbol address
6966 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6967 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'"
6968
6969 # Handle CRLF in mingw tool chain
6970 opt_cr=
6971 case $build_os in
6972 mingw*)
6973 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6974 ;;
6975 esac
6976
6977 # Try without a prefix underscore, then with it.
6978 for ac_symprfx in "" "_"; do
6979
6980 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6981 symxfrm="\\1 $ac_symprfx\\2 \\2"
6982
6983 # Write the raw and C identifiers.
6984 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6985 # Fake it for dumpbin and say T for any non-static function
6986 # and D for any global variable.
6987 # Also find C++ and __fastcall symbols from MSVC++,
6988 # which start with @ or ?.
6989 lt_cv_sys_global_symbol_pipe="$AWK '"\
6990 " {last_section=section; section=\$ 3};"\
6991 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6992 " \$ 0!~/External *\|/{next};"\
6993 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6994 " {if(hide[section]) next};"\
6995 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6996 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6997 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6998 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6999 " ' prfx=^$ac_symprfx"
7000 else
7001 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7002 fi
7003
7004 # Check to see that the pipe works correctly.
7005 pipe_works=no
7006
7007 rm -f conftest*
7008 cat > conftest.$ac_ext <<_LT_EOF
7009 #ifdef __cplusplus
7010 extern "C" {
7011 #endif
7012 char nm_test_var;
7013 void nm_test_func(void);
7014 void nm_test_func(void){}
7015 #ifdef __cplusplus
7016 }
7017 #endif
7018 int main(){nm_test_var='a';nm_test_func();return(0);}
7019 _LT_EOF
7020
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 # Now try to grab the symbols.
7027 nlist=conftest.nm
7028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7029 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7030 ac_status=$?
7031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7032 test $ac_status = 0; } && test -s "$nlist"; then
7033 # Try sorting and uniquifying the output.
7034 if sort "$nlist" | uniq > "$nlist"T; then
7035 mv -f "$nlist"T "$nlist"
7036 else
7037 rm -f "$nlist"T
7038 fi
7039
7040 # Make sure that we snagged all the symbols we need.
7041 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7042 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7043 cat <<_LT_EOF > conftest.$ac_ext
7044 #ifdef __cplusplus
7045 extern "C" {
7046 #endif
7047
7048 _LT_EOF
7049 # Now generate the symbol file.
7050 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7051
7052 cat <<_LT_EOF >> conftest.$ac_ext
7053
7054 /* The mapping between symbol names and symbols. */
7055 const struct {
7056 const char *name;
7057 void *address;
7058 }
7059 lt__PROGRAM__LTX_preloaded_symbols[] =
7060 {
7061 { "@PROGRAM@", (void *) 0 },
7062 _LT_EOF
7063 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7064 cat <<\_LT_EOF >> conftest.$ac_ext
7065 {0, (void *) 0}
7066 };
7067
7068 /* This works around a problem in FreeBSD linker */
7069 #ifdef FREEBSD_WORKAROUND
7070 static const void *lt_preloaded_setup() {
7071 return lt__PROGRAM__LTX_preloaded_symbols;
7072 }
7073 #endif
7074
7075 #ifdef __cplusplus
7076 }
7077 #endif
7078 _LT_EOF
7079 # Now try linking the two files.
7080 mv conftest.$ac_objext conftstm.$ac_objext
7081 lt_save_LIBS="$LIBS"
7082 lt_save_CFLAGS="$CFLAGS"
7083 LIBS="conftstm.$ac_objext"
7084 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7086 (eval $ac_link) 2>&5
7087 ac_status=$?
7088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7089 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7090 pipe_works=yes
7091 fi
7092 LIBS="$lt_save_LIBS"
7093 CFLAGS="$lt_save_CFLAGS"
7094 else
7095 echo "cannot find nm_test_func in $nlist" >&5
7096 fi
7097 else
7098 echo "cannot find nm_test_var in $nlist" >&5
7099 fi
7100 else
7101 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7102 fi
7103 else
7104 echo "$progname: failed program was:" >&5
7105 cat conftest.$ac_ext >&5
7106 fi
7107 rm -rf conftest* conftst*
7108
7109 # Do not use the global_symbol_pipe unless it works.
7110 if test "$pipe_works" = yes; then
7111 break
7112 else
7113 lt_cv_sys_global_symbol_pipe=
7114 fi
7115 done
7116
7117 fi
7118
7119 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7120 lt_cv_sys_global_symbol_to_cdecl=
7121 fi
7122 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7124 $as_echo "failed" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7127 $as_echo "ok" >&6; }
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151 # Check whether --enable-libtool-lock was given.
7152 if test "${enable_libtool_lock+set}" = set; then :
7153 enableval=$enable_libtool_lock;
7154 fi
7155
7156 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7157
7158 # Some flags need to be propagated to the compiler or linker for good
7159 # libtool support.
7160 case $host in
7161 ia64-*-hpux*)
7162 # Find out which ABI we are using.
7163 echo 'int i;' > conftest.$ac_ext
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165 (eval $ac_compile) 2>&5
7166 ac_status=$?
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; }; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *ELF-32*)
7171 HPUX_IA64_MODE="32"
7172 ;;
7173 *ELF-64*)
7174 HPUX_IA64_MODE="64"
7175 ;;
7176 esac
7177 fi
7178 rm -rf conftest*
7179 ;;
7180 *-*-irix6*)
7181 # Find out which ABI we are using.
7182 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7184 (eval $ac_compile) 2>&5
7185 ac_status=$?
7186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7187 test $ac_status = 0; }; then
7188 if test "$lt_cv_prog_gnu_ld" = yes; then
7189 case `/usr/bin/file conftest.$ac_objext` in
7190 *32-bit*)
7191 LD="${LD-ld} -melf32bsmip"
7192 ;;
7193 *N32*)
7194 LD="${LD-ld} -melf32bmipn32"
7195 ;;
7196 *64-bit*)
7197 LD="${LD-ld} -melf64bmip"
7198 ;;
7199 esac
7200 else
7201 case `/usr/bin/file conftest.$ac_objext` in
7202 *32-bit*)
7203 LD="${LD-ld} -32"
7204 ;;
7205 *N32*)
7206 LD="${LD-ld} -n32"
7207 ;;
7208 *64-bit*)
7209 LD="${LD-ld} -64"
7210 ;;
7211 esac
7212 fi
7213 fi
7214 rm -rf conftest*
7215 ;;
7216
7217 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7218 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7219 # Find out which ABI we are using.
7220 echo 'int i;' > conftest.$ac_ext
7221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7222 (eval $ac_compile) 2>&5
7223 ac_status=$?
7224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7225 test $ac_status = 0; }; then
7226 case `/usr/bin/file conftest.o` in
7227 *32-bit*)
7228 case $host in
7229 x86_64-*kfreebsd*-gnu)
7230 LD="${LD-ld} -m elf_i386_fbsd"
7231 ;;
7232 x86_64-*linux*)
7233 case `/usr/bin/file conftest.o` in
7234 *x86-64*)
7235 LD="${LD-ld} -m elf32_x86_64"
7236 ;;
7237 *)
7238 LD="${LD-ld} -m elf_i386"
7239 ;;
7240 esac
7241 ;;
7242 powerpc64le-*linux*)
7243 LD="${LD-ld} -m elf32lppclinux"
7244 ;;
7245 powerpc64-*linux*)
7246 LD="${LD-ld} -m elf32ppclinux"
7247 ;;
7248 s390x-*linux*)
7249 LD="${LD-ld} -m elf_s390"
7250 ;;
7251 sparc64-*linux*)
7252 LD="${LD-ld} -m elf32_sparc"
7253 ;;
7254 esac
7255 ;;
7256 *64-bit*)
7257 case $host in
7258 x86_64-*kfreebsd*-gnu)
7259 LD="${LD-ld} -m elf_x86_64_fbsd"
7260 ;;
7261 x86_64-*linux*)
7262 LD="${LD-ld} -m elf_x86_64"
7263 ;;
7264 powerpcle-*linux*)
7265 LD="${LD-ld} -m elf64lppc"
7266 ;;
7267 powerpc-*linux*)
7268 LD="${LD-ld} -m elf64ppc"
7269 ;;
7270 s390*-*linux*|s390*-*tpf*)
7271 LD="${LD-ld} -m elf64_s390"
7272 ;;
7273 sparc*-*linux*)
7274 LD="${LD-ld} -m elf64_sparc"
7275 ;;
7276 esac
7277 ;;
7278 esac
7279 fi
7280 rm -rf conftest*
7281 ;;
7282
7283 *-*-sco3.2v5*)
7284 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7285 SAVE_CFLAGS="$CFLAGS"
7286 CFLAGS="$CFLAGS -belf"
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7289 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 ac_ext=c
7293 ac_cpp='$CPP $CPPFLAGS'
7294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7297
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300
7301 int
7302 main ()
7303 {
7304
7305 ;
7306 return 0;
7307 }
7308 _ACEOF
7309 if ac_fn_c_try_link "$LINENO"; then :
7310 lt_cv_cc_needs_belf=yes
7311 else
7312 lt_cv_cc_needs_belf=no
7313 fi
7314 rm -f core conftest.err conftest.$ac_objext \
7315 conftest$ac_exeext conftest.$ac_ext
7316 ac_ext=c
7317 ac_cpp='$CPP $CPPFLAGS'
7318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7321
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7325 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7326 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7327 CFLAGS="$SAVE_CFLAGS"
7328 fi
7329 ;;
7330 sparc*-*solaris*)
7331 # Find out which ABI we are using.
7332 echo 'int i;' > conftest.$ac_ext
7333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7334 (eval $ac_compile) 2>&5
7335 ac_status=$?
7336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337 test $ac_status = 0; }; then
7338 case `/usr/bin/file conftest.o` in
7339 *64-bit*)
7340 case $lt_cv_prog_gnu_ld in
7341 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7342 *)
7343 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7344 LD="${LD-ld} -64"
7345 fi
7346 ;;
7347 esac
7348 ;;
7349 esac
7350 fi
7351 rm -rf conftest*
7352 ;;
7353 esac
7354
7355 need_locks="$enable_libtool_lock"
7356
7357
7358 case $host_os in
7359 rhapsody* | darwin*)
7360 if test -n "$ac_tool_prefix"; then
7361 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7362 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7364 $as_echo_n "checking for $ac_word... " >&6; }
7365 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7366 $as_echo_n "(cached) " >&6
7367 else
7368 if test -n "$DSYMUTIL"; then
7369 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7370 else
7371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374 IFS=$as_save_IFS
7375 test -z "$as_dir" && as_dir=.
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7380 break 2
7381 fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386 fi
7387 fi
7388 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7389 if test -n "$DSYMUTIL"; then
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7391 $as_echo "$DSYMUTIL" >&6; }
7392 else
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7394 $as_echo "no" >&6; }
7395 fi
7396
7397
7398 fi
7399 if test -z "$ac_cv_prog_DSYMUTIL"; then
7400 ac_ct_DSYMUTIL=$DSYMUTIL
7401 # Extract the first word of "dsymutil", so it can be a program name with args.
7402 set dummy dsymutil; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$ac_ct_DSYMUTIL"; then
7409 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7413 do
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7418 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7421 fi
7422 done
7423 done
7424 IFS=$as_save_IFS
7425
7426 fi
7427 fi
7428 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7429 if test -n "$ac_ct_DSYMUTIL"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7431 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7435 fi
7436
7437 if test "x$ac_ct_DSYMUTIL" = x; then
7438 DSYMUTIL=":"
7439 else
7440 case $cross_compiling:$ac_tool_warned in
7441 yes:)
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7444 ac_tool_warned=yes ;;
7445 esac
7446 DSYMUTIL=$ac_ct_DSYMUTIL
7447 fi
7448 else
7449 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7450 fi
7451
7452 if test -n "$ac_tool_prefix"; then
7453 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7454 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7456 $as_echo_n "checking for $ac_word... " >&6; }
7457 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 if test -n "$NMEDIT"; then
7461 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7462 else
7463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466 IFS=$as_save_IFS
7467 test -z "$as_dir" && as_dir=.
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7470 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472 break 2
7473 fi
7474 done
7475 done
7476 IFS=$as_save_IFS
7477
7478 fi
7479 fi
7480 NMEDIT=$ac_cv_prog_NMEDIT
7481 if test -n "$NMEDIT"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7483 $as_echo "$NMEDIT" >&6; }
7484 else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486 $as_echo "no" >&6; }
7487 fi
7488
7489
7490 fi
7491 if test -z "$ac_cv_prog_NMEDIT"; then
7492 ac_ct_NMEDIT=$NMEDIT
7493 # Extract the first word of "nmedit", so it can be a program name with args.
7494 set dummy nmedit; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7498 $as_echo_n "(cached) " >&6
7499 else
7500 if test -n "$ac_ct_NMEDIT"; then
7501 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506 IFS=$as_save_IFS
7507 test -z "$as_dir" && as_dir=.
7508 for ac_exec_ext in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 break 2
7513 fi
7514 done
7515 done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7521 if test -n "$ac_ct_NMEDIT"; then
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7523 $as_echo "$ac_ct_NMEDIT" >&6; }
7524 else
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529 if test "x$ac_ct_NMEDIT" = x; then
7530 NMEDIT=":"
7531 else
7532 case $cross_compiling:$ac_tool_warned in
7533 yes:)
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7536 ac_tool_warned=yes ;;
7537 esac
7538 NMEDIT=$ac_ct_NMEDIT
7539 fi
7540 else
7541 NMEDIT="$ac_cv_prog_NMEDIT"
7542 fi
7543
7544 if test -n "$ac_tool_prefix"; then
7545 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7546 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7548 $as_echo_n "checking for $ac_word... " >&6; }
7549 if test "${ac_cv_prog_LIPO+set}" = set; then :
7550 $as_echo_n "(cached) " >&6
7551 else
7552 if test -n "$LIPO"; then
7553 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7554 else
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566 done
7567 done
7568 IFS=$as_save_IFS
7569
7570 fi
7571 fi
7572 LIPO=$ac_cv_prog_LIPO
7573 if test -n "$LIPO"; then
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7575 $as_echo "$LIPO" >&6; }
7576 else
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578 $as_echo "no" >&6; }
7579 fi
7580
7581
7582 fi
7583 if test -z "$ac_cv_prog_LIPO"; then
7584 ac_ct_LIPO=$LIPO
7585 # Extract the first word of "lipo", so it can be a program name with args.
7586 set dummy lipo; ac_word=$2
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7588 $as_echo_n "checking for $ac_word... " >&6; }
7589 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7590 $as_echo_n "(cached) " >&6
7591 else
7592 if test -n "$ac_ct_LIPO"; then
7593 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7594 else
7595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 for as_dir in $PATH
7597 do
7598 IFS=$as_save_IFS
7599 test -z "$as_dir" && as_dir=.
7600 for ac_exec_ext in '' $ac_executable_extensions; do
7601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7602 ac_cv_prog_ac_ct_LIPO="lipo"
7603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7604 break 2
7605 fi
7606 done
7607 done
7608 IFS=$as_save_IFS
7609
7610 fi
7611 fi
7612 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7613 if test -n "$ac_ct_LIPO"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7615 $as_echo "$ac_ct_LIPO" >&6; }
7616 else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620
7621 if test "x$ac_ct_LIPO" = x; then
7622 LIPO=":"
7623 else
7624 case $cross_compiling:$ac_tool_warned in
7625 yes:)
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7628 ac_tool_warned=yes ;;
7629 esac
7630 LIPO=$ac_ct_LIPO
7631 fi
7632 else
7633 LIPO="$ac_cv_prog_LIPO"
7634 fi
7635
7636 if test -n "$ac_tool_prefix"; then
7637 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7638 set dummy ${ac_tool_prefix}otool; ac_word=$2
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640 $as_echo_n "checking for $ac_word... " >&6; }
7641 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 if test -n "$OTOOL"; then
7645 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7646 else
7647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 for as_dir in $PATH
7649 do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7654 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7656 break 2
7657 fi
7658 done
7659 done
7660 IFS=$as_save_IFS
7661
7662 fi
7663 fi
7664 OTOOL=$ac_cv_prog_OTOOL
7665 if test -n "$OTOOL"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7667 $as_echo "$OTOOL" >&6; }
7668 else
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7671 fi
7672
7673
7674 fi
7675 if test -z "$ac_cv_prog_OTOOL"; then
7676 ac_ct_OTOOL=$OTOOL
7677 # Extract the first word of "otool", so it can be a program name with args.
7678 set dummy otool; ac_word=$2
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680 $as_echo_n "checking for $ac_word... " >&6; }
7681 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
7683 else
7684 if test -n "$ac_ct_OTOOL"; then
7685 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7686 else
7687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688 for as_dir in $PATH
7689 do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7694 ac_cv_prog_ac_ct_OTOOL="otool"
7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7696 break 2
7697 fi
7698 done
7699 done
7700 IFS=$as_save_IFS
7701
7702 fi
7703 fi
7704 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7705 if test -n "$ac_ct_OTOOL"; then
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7707 $as_echo "$ac_ct_OTOOL" >&6; }
7708 else
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710 $as_echo "no" >&6; }
7711 fi
7712
7713 if test "x$ac_ct_OTOOL" = x; then
7714 OTOOL=":"
7715 else
7716 case $cross_compiling:$ac_tool_warned in
7717 yes:)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7720 ac_tool_warned=yes ;;
7721 esac
7722 OTOOL=$ac_ct_OTOOL
7723 fi
7724 else
7725 OTOOL="$ac_cv_prog_OTOOL"
7726 fi
7727
7728 if test -n "$ac_tool_prefix"; then
7729 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7730 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732 $as_echo_n "checking for $ac_word... " >&6; }
7733 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 if test -n "$OTOOL64"; then
7737 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7738 else
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 fi
7755 fi
7756 OTOOL64=$ac_cv_prog_OTOOL64
7757 if test -n "$OTOOL64"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7759 $as_echo "$OTOOL64" >&6; }
7760 else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 $as_echo "no" >&6; }
7763 fi
7764
7765
7766 fi
7767 if test -z "$ac_cv_prog_OTOOL64"; then
7768 ac_ct_OTOOL64=$OTOOL64
7769 # Extract the first word of "otool64", so it can be a program name with args.
7770 set dummy otool64; ac_word=$2
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772 $as_echo_n "checking for $ac_word... " >&6; }
7773 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
7775 else
7776 if test -n "$ac_ct_OTOOL64"; then
7777 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7778 else
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7786 ac_cv_prog_ac_ct_OTOOL64="otool64"
7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788 break 2
7789 fi
7790 done
7791 done
7792 IFS=$as_save_IFS
7793
7794 fi
7795 fi
7796 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7797 if test -n "$ac_ct_OTOOL64"; then
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7799 $as_echo "$ac_ct_OTOOL64" >&6; }
7800 else
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804
7805 if test "x$ac_ct_OTOOL64" = x; then
7806 OTOOL64=":"
7807 else
7808 case $cross_compiling:$ac_tool_warned in
7809 yes:)
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7812 ac_tool_warned=yes ;;
7813 esac
7814 OTOOL64=$ac_ct_OTOOL64
7815 fi
7816 else
7817 OTOOL64="$ac_cv_prog_OTOOL64"
7818 fi
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7847 $as_echo_n "checking for -single_module linker flag... " >&6; }
7848 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_apple_cc_single_mod=no
7852 if test -z "${LT_MULTI_MODULE}"; then
7853 # By default we will add the -single_module flag. You can override
7854 # by either setting the environment variable LT_MULTI_MODULE
7855 # non-empty at configure time, or by adding -multi_module to the
7856 # link flags.
7857 rm -rf libconftest.dylib*
7858 echo "int foo(void){return 1;}" > conftest.c
7859 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7860 -dynamiclib -Wl,-single_module conftest.c" >&5
7861 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7862 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7863 _lt_result=$?
7864 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7865 lt_cv_apple_cc_single_mod=yes
7866 else
7867 cat conftest.err >&5
7868 fi
7869 rm -rf libconftest.dylib*
7870 rm -f conftest.*
7871 fi
7872 fi
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7874 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7876 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7877 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 lt_cv_ld_exported_symbols_list=no
7881 save_LDFLAGS=$LDFLAGS
7882 echo "_main" > conftest.sym
7883 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7886
7887 int
7888 main ()
7889 {
7890
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 if ac_fn_c_try_link "$LINENO"; then :
7896 lt_cv_ld_exported_symbols_list=yes
7897 else
7898 lt_cv_ld_exported_symbols_list=no
7899 fi
7900 rm -f core conftest.err conftest.$ac_objext \
7901 conftest$ac_exeext conftest.$ac_ext
7902 LDFLAGS="$save_LDFLAGS"
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7906 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7908 $as_echo_n "checking for -force_load linker flag... " >&6; }
7909 if test "${lt_cv_ld_force_load+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_ld_force_load=no
7913 cat > conftest.c << _LT_EOF
7914 int forced_loaded() { return 2;}
7915 _LT_EOF
7916 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7917 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7918 echo "$AR cru libconftest.a conftest.o" >&5
7919 $AR cru libconftest.a conftest.o 2>&5
7920 cat > conftest.c << _LT_EOF
7921 int main() { return 0;}
7922 _LT_EOF
7923 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7924 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7925 _lt_result=$?
7926 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7927 lt_cv_ld_force_load=yes
7928 else
7929 cat conftest.err >&5
7930 fi
7931 rm -f conftest.err libconftest.a conftest conftest.c
7932 rm -rf conftest.dSYM
7933
7934 fi
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7936 $as_echo "$lt_cv_ld_force_load" >&6; }
7937 case $host_os in
7938 rhapsody* | darwin1.[012])
7939 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7940 darwin1.*)
7941 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7942 darwin*) # darwin 5.x on
7943 # if running on 10.5 or later, the deployment target defaults
7944 # to the OS version, if on x86, and 10.4, the deployment
7945 # target defaults to 10.4. Don't you love it?
7946 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7947 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7949 10.[012][,.]*)
7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7951 10.*)
7952 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7953 esac
7954 ;;
7955 esac
7956 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7957 _lt_dar_single_mod='$single_module'
7958 fi
7959 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7960 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7961 else
7962 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7963 fi
7964 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7965 _lt_dsymutil='~$DSYMUTIL $lib || :'
7966 else
7967 _lt_dsymutil=
7968 fi
7969 ;;
7970 esac
7971
7972 for ac_header in dlfcn.h
7973 do :
7974 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7975 "
7976 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DLFCN_H 1
7979 _ACEOF
7980
7981 fi
7982
7983 done
7984
7985
7986
7987
7988
7989 # Set options
7990 enable_dlopen=yes
7991
7992
7993
7994
7995 enable_win32_dll=no
7996
7997
7998
7999 # Check whether --enable-static was given.
8000 if test "${enable_static+set}" = set; then :
8001 enableval=$enable_static; p=${PACKAGE-default}
8002 case $enableval in
8003 yes) enable_static=yes ;;
8004 no) enable_static=no ;;
8005 *)
8006 enable_static=no
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8009 for pkg in $enableval; do
8010 IFS="$lt_save_ifs"
8011 if test "X$pkg" = "X$p"; then
8012 enable_static=yes
8013 fi
8014 done
8015 IFS="$lt_save_ifs"
8016 ;;
8017 esac
8018 else
8019 enable_static=yes
8020 fi
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031 # Check whether --with-pic was given.
8032 if test "${with_pic+set}" = set; then :
8033 withval=$with_pic; pic_mode="$withval"
8034 else
8035 pic_mode=default
8036 fi
8037
8038
8039 test -z "$pic_mode" && pic_mode=default
8040
8041
8042
8043
8044
8045
8046
8047 # Check whether --enable-fast-install was given.
8048 if test "${enable_fast_install+set}" = set; then :
8049 enableval=$enable_fast_install; p=${PACKAGE-default}
8050 case $enableval in
8051 yes) enable_fast_install=yes ;;
8052 no) enable_fast_install=no ;;
8053 *)
8054 enable_fast_install=no
8055 # Look at the argument we got. We use all the common list separators.
8056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8057 for pkg in $enableval; do
8058 IFS="$lt_save_ifs"
8059 if test "X$pkg" = "X$p"; then
8060 enable_fast_install=yes
8061 fi
8062 done
8063 IFS="$lt_save_ifs"
8064 ;;
8065 esac
8066 else
8067 enable_fast_install=yes
8068 fi
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 # This can be used to rebuild libtool when needed
8081 LIBTOOL_DEPS="$ltmain"
8082
8083 # Always use our own libtool.
8084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111 test -z "$LN_S" && LN_S="ln -s"
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 if test -n "${ZSH_VERSION+set}" ; then
8127 setopt NO_GLOB_SUBST
8128 fi
8129
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8131 $as_echo_n "checking for objdir... " >&6; }
8132 if test "${lt_cv_objdir+set}" = set; then :
8133 $as_echo_n "(cached) " >&6
8134 else
8135 rm -f .libs 2>/dev/null
8136 mkdir .libs 2>/dev/null
8137 if test -d .libs; then
8138 lt_cv_objdir=.libs
8139 else
8140 # MS-DOS does not allow filenames that begin with a dot.
8141 lt_cv_objdir=_libs
8142 fi
8143 rmdir .libs 2>/dev/null
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8146 $as_echo "$lt_cv_objdir" >&6; }
8147 objdir=$lt_cv_objdir
8148
8149
8150
8151
8152
8153 cat >>confdefs.h <<_ACEOF
8154 #define LT_OBJDIR "$lt_cv_objdir/"
8155 _ACEOF
8156
8157
8158
8159
8160 case $host_os in
8161 aix3*)
8162 # AIX sometimes has problems with the GCC collect2 program. For some
8163 # reason, if we set the COLLECT_NAMES environment variable, the problems
8164 # vanish in a puff of smoke.
8165 if test "X${COLLECT_NAMES+set}" != Xset; then
8166 COLLECT_NAMES=
8167 export COLLECT_NAMES
8168 fi
8169 ;;
8170 esac
8171
8172 # Global variables:
8173 ofile=libtool
8174 can_build_shared=yes
8175
8176 # All known linkers require a `.a' archive for static linking (except MSVC,
8177 # which needs '.lib').
8178 libext=a
8179
8180 with_gnu_ld="$lt_cv_prog_gnu_ld"
8181
8182 old_CC="$CC"
8183 old_CFLAGS="$CFLAGS"
8184
8185 # Set sane defaults for various variables
8186 test -z "$CC" && CC=cc
8187 test -z "$LTCC" && LTCC=$CC
8188 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8189 test -z "$LD" && LD=ld
8190 test -z "$ac_objext" && ac_objext=o
8191
8192 for cc_temp in $compiler""; do
8193 case $cc_temp in
8194 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8195 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8196 \-*) ;;
8197 *) break;;
8198 esac
8199 done
8200 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8201
8202
8203 # Only perform the check for file, if the check method requires it
8204 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8205 case $deplibs_check_method in
8206 file_magic*)
8207 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8209 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8210 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 case $MAGIC_CMD in
8214 [\\/*] | ?:[\\/]*)
8215 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8216 ;;
8217 *)
8218 lt_save_MAGIC_CMD="$MAGIC_CMD"
8219 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8221 for ac_dir in $ac_dummy; do
8222 IFS="$lt_save_ifs"
8223 test -z "$ac_dir" && ac_dir=.
8224 if test -f $ac_dir/${ac_tool_prefix}file; then
8225 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8226 if test -n "$file_magic_test_file"; then
8227 case $deplibs_check_method in
8228 "file_magic "*)
8229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8230 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8232 $EGREP "$file_magic_regex" > /dev/null; then
8233 :
8234 else
8235 cat <<_LT_EOF 1>&2
8236
8237 *** Warning: the command libtool uses to detect shared libraries,
8238 *** $file_magic_cmd, produces output that libtool cannot recognize.
8239 *** The result is that libtool may fail to recognize shared libraries
8240 *** as such. This will affect the creation of libtool libraries that
8241 *** depend on shared libraries, but programs linked with such libtool
8242 *** libraries will work regardless of this problem. Nevertheless, you
8243 *** may want to report the problem to your system manager and/or to
8244 *** bug-libtool@gnu.org
8245
8246 _LT_EOF
8247 fi ;;
8248 esac
8249 fi
8250 break
8251 fi
8252 done
8253 IFS="$lt_save_ifs"
8254 MAGIC_CMD="$lt_save_MAGIC_CMD"
8255 ;;
8256 esac
8257 fi
8258
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if test -n "$MAGIC_CMD"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8262 $as_echo "$MAGIC_CMD" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8266 fi
8267
8268
8269
8270
8271
8272 if test -z "$lt_cv_path_MAGIC_CMD"; then
8273 if test -n "$ac_tool_prefix"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8275 $as_echo_n "checking for file... " >&6; }
8276 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 case $MAGIC_CMD in
8280 [\\/*] | ?:[\\/]*)
8281 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8282 ;;
8283 *)
8284 lt_save_MAGIC_CMD="$MAGIC_CMD"
8285 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8286 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8287 for ac_dir in $ac_dummy; do
8288 IFS="$lt_save_ifs"
8289 test -z "$ac_dir" && ac_dir=.
8290 if test -f $ac_dir/file; then
8291 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8292 if test -n "$file_magic_test_file"; then
8293 case $deplibs_check_method in
8294 "file_magic "*)
8295 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8296 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8297 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8298 $EGREP "$file_magic_regex" > /dev/null; then
8299 :
8300 else
8301 cat <<_LT_EOF 1>&2
8302
8303 *** Warning: the command libtool uses to detect shared libraries,
8304 *** $file_magic_cmd, produces output that libtool cannot recognize.
8305 *** The result is that libtool may fail to recognize shared libraries
8306 *** as such. This will affect the creation of libtool libraries that
8307 *** depend on shared libraries, but programs linked with such libtool
8308 *** libraries will work regardless of this problem. Nevertheless, you
8309 *** may want to report the problem to your system manager and/or to
8310 *** bug-libtool@gnu.org
8311
8312 _LT_EOF
8313 fi ;;
8314 esac
8315 fi
8316 break
8317 fi
8318 done
8319 IFS="$lt_save_ifs"
8320 MAGIC_CMD="$lt_save_MAGIC_CMD"
8321 ;;
8322 esac
8323 fi
8324
8325 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8326 if test -n "$MAGIC_CMD"; then
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8328 $as_echo "$MAGIC_CMD" >&6; }
8329 else
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8331 $as_echo "no" >&6; }
8332 fi
8333
8334
8335 else
8336 MAGIC_CMD=:
8337 fi
8338 fi
8339
8340 fi
8341 ;;
8342 esac
8343
8344 # Use C for the default configuration in the libtool script
8345
8346 lt_save_CC="$CC"
8347 ac_ext=c
8348 ac_cpp='$CPP $CPPFLAGS'
8349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8352
8353
8354 # Source file extension for C test sources.
8355 ac_ext=c
8356
8357 # Object file extension for compiled C test sources.
8358 objext=o
8359 objext=$objext
8360
8361 # Code to be used in simple compile tests
8362 lt_simple_compile_test_code="int some_variable = 0;"
8363
8364 # Code to be used in simple link tests
8365 lt_simple_link_test_code='int main(){return(0);}'
8366
8367
8368
8369
8370
8371
8372
8373 # If no C compiler was specified, use CC.
8374 LTCC=${LTCC-"$CC"}
8375
8376 # If no C compiler flags were specified, use CFLAGS.
8377 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8378
8379 # Allow CC to be a program name with arguments.
8380 compiler=$CC
8381
8382 # Save the default compiler, since it gets overwritten when the other
8383 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8384 compiler_DEFAULT=$CC
8385
8386 # save warnings/boilerplate of simple test code
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_compiler_boilerplate=`cat conftest.err`
8391 $RM conftest*
8392
8393 ac_outfile=conftest.$ac_objext
8394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8396 _lt_linker_boilerplate=`cat conftest.err`
8397 $RM -r conftest*
8398
8399
8400 ## CAVEAT EMPTOR:
8401 ## There is no encapsulation within the following macros, do not change
8402 ## the running order or otherwise move them around unless you know exactly
8403 ## what you are doing...
8404 if test -n "$compiler"; then
8405
8406 lt_prog_compiler_no_builtin_flag=
8407
8408 if test "$GCC" = yes; then
8409 case $cc_basename in
8410 nvcc*)
8411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8412 *)
8413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8414 esac
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8418 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_prog_compiler_rtti_exceptions=no
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424 lt_compiler_flag="-fno-rtti -fno-exceptions"
8425 # Insert the option either (1) after the last *FLAGS variable, or
8426 # (2) before a word containing "conftest.", or (3) at the end.
8427 # Note that $ac_compile itself does not contain backslashes and begins
8428 # with a dollar sign (not a hyphen), so the echo should work correctly.
8429 # The option is referenced via a variable to avoid confusing sed.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>conftest.err)
8436 ac_status=$?
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s "$ac_outfile"; then
8440 # The compiler can only warn and ignore the option if not recognized
8441 # So say no if there are warnings other than the usual output.
8442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_cv_prog_compiler_rtti_exceptions=yes
8446 fi
8447 fi
8448 $RM conftest*
8449
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8453
8454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8456 else
8457 :
8458 fi
8459
8460 fi
8461
8462
8463
8464
8465
8466
8467 lt_prog_compiler_wl=
8468 lt_prog_compiler_pic=
8469 lt_prog_compiler_static=
8470
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8472 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8473
8474 if test "$GCC" = yes; then
8475 lt_prog_compiler_wl='-Wl,'
8476 lt_prog_compiler_static='-static'
8477
8478 case $host_os in
8479 aix*)
8480 # All AIX code is PIC.
8481 if test "$host_cpu" = ia64; then
8482 # AIX 5 now supports IA64 processor
8483 lt_prog_compiler_static='-Bstatic'
8484 fi
8485 lt_prog_compiler_pic='-fPIC'
8486 ;;
8487
8488 amigaos*)
8489 case $host_cpu in
8490 powerpc)
8491 # see comment about AmigaOS4 .so support
8492 lt_prog_compiler_pic='-fPIC'
8493 ;;
8494 m68k)
8495 # FIXME: we need at least 68020 code to build shared libraries, but
8496 # adding the `-m68020' flag to GCC prevents building anything better,
8497 # like `-m68040'.
8498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8499 ;;
8500 esac
8501 ;;
8502
8503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8504 # PIC is the default for these OSes.
8505 ;;
8506
8507 mingw* | cygwin* | pw32* | os2* | cegcc*)
8508 # This hack is so that the source file can tell whether it is being
8509 # built for inclusion in a dll (and should export symbols for example).
8510 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8511 # (--disable-auto-import) libraries
8512 lt_prog_compiler_pic='-DDLL_EXPORT'
8513 ;;
8514
8515 darwin* | rhapsody*)
8516 # PIC is the default on this platform
8517 # Common symbols not allowed in MH_DYLIB files
8518 lt_prog_compiler_pic='-fno-common'
8519 ;;
8520
8521 haiku*)
8522 # PIC is the default for Haiku.
8523 # The "-static" flag exists, but is broken.
8524 lt_prog_compiler_static=
8525 ;;
8526
8527 hpux*)
8528 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8529 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8530 # sets the default TLS model and affects inlining.
8531 case $host_cpu in
8532 hppa*64*)
8533 # +Z the default
8534 ;;
8535 *)
8536 lt_prog_compiler_pic='-fPIC'
8537 ;;
8538 esac
8539 ;;
8540
8541 interix[3-9]*)
8542 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8543 # Instead, we relocate shared libraries at runtime.
8544 ;;
8545
8546 msdosdjgpp*)
8547 # Just because we use GCC doesn't mean we suddenly get shared libraries
8548 # on systems that don't support them.
8549 lt_prog_compiler_can_build_shared=no
8550 enable_shared=no
8551 ;;
8552
8553 *nto* | *qnx*)
8554 # QNX uses GNU C++, but need to define -shared option too, otherwise
8555 # it will coredump.
8556 lt_prog_compiler_pic='-fPIC -shared'
8557 ;;
8558
8559 sysv4*MP*)
8560 if test -d /usr/nec; then
8561 lt_prog_compiler_pic=-Kconform_pic
8562 fi
8563 ;;
8564
8565 *)
8566 lt_prog_compiler_pic='-fPIC'
8567 ;;
8568 esac
8569
8570 case $cc_basename in
8571 nvcc*) # Cuda Compiler Driver 2.2
8572 lt_prog_compiler_wl='-Xlinker '
8573 lt_prog_compiler_pic='-Xcompiler -fPIC'
8574 ;;
8575 esac
8576 else
8577 # PORTME Check for flag to pass linker flags through the system compiler.
8578 case $host_os in
8579 aix*)
8580 lt_prog_compiler_wl='-Wl,'
8581 if test "$host_cpu" = ia64; then
8582 # AIX 5 now supports IA64 processor
8583 lt_prog_compiler_static='-Bstatic'
8584 else
8585 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8586 fi
8587 ;;
8588
8589 mingw* | cygwin* | pw32* | os2* | cegcc*)
8590 # This hack is so that the source file can tell whether it is being
8591 # built for inclusion in a dll (and should export symbols for example).
8592 lt_prog_compiler_pic='-DDLL_EXPORT'
8593 ;;
8594
8595 hpux9* | hpux10* | hpux11*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8598 # not for PA HP-UX.
8599 case $host_cpu in
8600 hppa*64*|ia64*)
8601 # +Z the default
8602 ;;
8603 *)
8604 lt_prog_compiler_pic='+Z'
8605 ;;
8606 esac
8607 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8608 lt_prog_compiler_static='${wl}-a ${wl}archive'
8609 ;;
8610
8611 irix5* | irix6* | nonstopux*)
8612 lt_prog_compiler_wl='-Wl,'
8613 # PIC (with -KPIC) is the default.
8614 lt_prog_compiler_static='-non_shared'
8615 ;;
8616
8617 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8618 case $cc_basename in
8619 # old Intel for x86_64 which still supported -KPIC.
8620 ecc*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-static'
8624 ;;
8625 # icc used to be incompatible with GCC.
8626 # ICC 10 doesn't accept -KPIC any more.
8627 icc* | ifort*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-fPIC'
8630 lt_prog_compiler_static='-static'
8631 ;;
8632 # Lahey Fortran 8.1.
8633 lf95*)
8634 lt_prog_compiler_wl='-Wl,'
8635 lt_prog_compiler_pic='--shared'
8636 lt_prog_compiler_static='--static'
8637 ;;
8638 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8639 # Portland Group compilers (*not* the Pentium gcc compiler,
8640 # which looks to be a dead project)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='-fpic'
8643 lt_prog_compiler_static='-Bstatic'
8644 ;;
8645 ccc*)
8646 lt_prog_compiler_wl='-Wl,'
8647 # All Alpha code is PIC.
8648 lt_prog_compiler_static='-non_shared'
8649 ;;
8650 xl* | bgxl* | bgf* | mpixl*)
8651 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-qpic'
8654 lt_prog_compiler_static='-qstaticlink'
8655 ;;
8656 *)
8657 case `$CC -V 2>&1 | sed 5q` in
8658 *Sun\ F* | *Sun*Fortran*)
8659 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 lt_prog_compiler_wl=''
8663 ;;
8664 *Sun\ C*)
8665 # Sun C 5.9
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 lt_prog_compiler_wl='-Wl,'
8669 ;;
8670 esac
8671 ;;
8672 esac
8673 ;;
8674
8675 newsos6)
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 ;;
8679
8680 *nto* | *qnx*)
8681 # QNX uses GNU C++, but need to define -shared option too, otherwise
8682 # it will coredump.
8683 lt_prog_compiler_pic='-fPIC -shared'
8684 ;;
8685
8686 osf3* | osf4* | osf5*)
8687 lt_prog_compiler_wl='-Wl,'
8688 # All OSF/1 code is PIC.
8689 lt_prog_compiler_static='-non_shared'
8690 ;;
8691
8692 rdos*)
8693 lt_prog_compiler_static='-non_shared'
8694 ;;
8695
8696 solaris*)
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8699 case $cc_basename in
8700 f77* | f90* | f95*)
8701 lt_prog_compiler_wl='-Qoption ld ';;
8702 *)
8703 lt_prog_compiler_wl='-Wl,';;
8704 esac
8705 ;;
8706
8707 sunos4*)
8708 lt_prog_compiler_wl='-Qoption ld '
8709 lt_prog_compiler_pic='-PIC'
8710 lt_prog_compiler_static='-Bstatic'
8711 ;;
8712
8713 sysv4 | sysv4.2uw2* | sysv4.3*)
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_pic='-KPIC'
8716 lt_prog_compiler_static='-Bstatic'
8717 ;;
8718
8719 sysv4*MP*)
8720 if test -d /usr/nec ;then
8721 lt_prog_compiler_pic='-Kconform_pic'
8722 lt_prog_compiler_static='-Bstatic'
8723 fi
8724 ;;
8725
8726 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8727 lt_prog_compiler_wl='-Wl,'
8728 lt_prog_compiler_pic='-KPIC'
8729 lt_prog_compiler_static='-Bstatic'
8730 ;;
8731
8732 unicos*)
8733 lt_prog_compiler_wl='-Wl,'
8734 lt_prog_compiler_can_build_shared=no
8735 ;;
8736
8737 uts4*)
8738 lt_prog_compiler_pic='-pic'
8739 lt_prog_compiler_static='-Bstatic'
8740 ;;
8741
8742 *)
8743 lt_prog_compiler_can_build_shared=no
8744 ;;
8745 esac
8746 fi
8747
8748 case $host_os in
8749 # For platforms which do not support PIC, -DPIC is meaningless:
8750 *djgpp*)
8751 lt_prog_compiler_pic=
8752 ;;
8753 *)
8754 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8755 ;;
8756 esac
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8758 $as_echo "$lt_prog_compiler_pic" >&6; }
8759
8760
8761
8762
8763
8764
8765 #
8766 # Check to make sure the PIC flag actually works.
8767 #
8768 if test -n "$lt_prog_compiler_pic"; then
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8770 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8771 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8772 $as_echo_n "(cached) " >&6
8773 else
8774 lt_cv_prog_compiler_pic_works=no
8775 ac_outfile=conftest.$ac_objext
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8777 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8778 # Insert the option either (1) after the last *FLAGS variable, or
8779 # (2) before a word containing "conftest.", or (3) at the end.
8780 # Note that $ac_compile itself does not contain backslashes and begins
8781 # with a dollar sign (not a hyphen), so the echo should work correctly.
8782 # The option is referenced via a variable to avoid confusing sed.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>conftest.err)
8789 ac_status=$?
8790 cat conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s "$ac_outfile"; then
8793 # The compiler can only warn and ignore the option if not recognized
8794 # So say no if there are warnings other than the usual output.
8795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8798 lt_cv_prog_compiler_pic_works=yes
8799 fi
8800 fi
8801 $RM conftest*
8802
8803 fi
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8805 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8806
8807 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8808 case $lt_prog_compiler_pic in
8809 "" | " "*) ;;
8810 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8811 esac
8812 else
8813 lt_prog_compiler_pic=
8814 lt_prog_compiler_can_build_shared=no
8815 fi
8816
8817 fi
8818
8819
8820
8821
8822
8823
8824 #
8825 # Check to make sure the static flag actually works.
8826 #
8827 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8829 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8830 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 lt_cv_prog_compiler_static_works=no
8834 save_LDFLAGS="$LDFLAGS"
8835 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8836 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8837 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8838 # The linker can only warn and ignore the option if not recognized
8839 # So say no if there are warnings
8840 if test -s conftest.err; then
8841 # Append any errors to the config.log.
8842 cat conftest.err 1>&5
8843 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8844 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8845 if diff conftest.exp conftest.er2 >/dev/null; then
8846 lt_cv_prog_compiler_static_works=yes
8847 fi
8848 else
8849 lt_cv_prog_compiler_static_works=yes
8850 fi
8851 fi
8852 $RM -r conftest*
8853 LDFLAGS="$save_LDFLAGS"
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8857 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8858
8859 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8860 :
8861 else
8862 lt_prog_compiler_static=
8863 fi
8864
8865
8866
8867
8868
8869
8870
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8872 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8873 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 lt_cv_prog_compiler_c_o=no
8877 $RM -r conftest 2>/dev/null
8878 mkdir conftest
8879 cd conftest
8880 mkdir out
8881 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8882
8883 lt_compiler_flag="-o out/conftest2.$ac_objext"
8884 # Insert the option either (1) after the last *FLAGS variable, or
8885 # (2) before a word containing "conftest.", or (3) at the end.
8886 # Note that $ac_compile itself does not contain backslashes and begins
8887 # with a dollar sign (not a hyphen), so the echo should work correctly.
8888 lt_compile=`echo "$ac_compile" | $SED \
8889 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8890 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8891 -e 's:$: $lt_compiler_flag:'`
8892 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8893 (eval "$lt_compile" 2>out/conftest.err)
8894 ac_status=$?
8895 cat out/conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8898 then
8899 # The compiler can only warn and ignore the option if not recognized
8900 # So say no if there are warnings
8901 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8902 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8903 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8904 lt_cv_prog_compiler_c_o=yes
8905 fi
8906 fi
8907 chmod u+w . 2>&5
8908 $RM conftest*
8909 # SGI C++ compiler will create directory out/ii_files/ for
8910 # template instantiation
8911 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8912 $RM out/* && rmdir out
8913 cd ..
8914 $RM -r conftest
8915 $RM conftest*
8916
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8919 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8920
8921
8922
8923
8924
8925
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8927 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8928 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 lt_cv_prog_compiler_c_o=no
8932 $RM -r conftest 2>/dev/null
8933 mkdir conftest
8934 cd conftest
8935 mkdir out
8936 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8937
8938 lt_compiler_flag="-o out/conftest2.$ac_objext"
8939 # Insert the option either (1) after the last *FLAGS variable, or
8940 # (2) before a word containing "conftest.", or (3) at the end.
8941 # Note that $ac_compile itself does not contain backslashes and begins
8942 # with a dollar sign (not a hyphen), so the echo should work correctly.
8943 lt_compile=`echo "$ac_compile" | $SED \
8944 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8946 -e 's:$: $lt_compiler_flag:'`
8947 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8948 (eval "$lt_compile" 2>out/conftest.err)
8949 ac_status=$?
8950 cat out/conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8953 then
8954 # The compiler can only warn and ignore the option if not recognized
8955 # So say no if there are warnings
8956 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8957 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8958 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8959 lt_cv_prog_compiler_c_o=yes
8960 fi
8961 fi
8962 chmod u+w . 2>&5
8963 $RM conftest*
8964 # SGI C++ compiler will create directory out/ii_files/ for
8965 # template instantiation
8966 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8967 $RM out/* && rmdir out
8968 cd ..
8969 $RM -r conftest
8970 $RM conftest*
8971
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8974 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8975
8976
8977
8978
8979 hard_links="nottested"
8980 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8981 # do not overwrite the value of need_locks provided by the user
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8983 $as_echo_n "checking if we can lock with hard links... " >&6; }
8984 hard_links=yes
8985 $RM conftest*
8986 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8987 touch conftest.a
8988 ln conftest.a conftest.b 2>&5 || hard_links=no
8989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8991 $as_echo "$hard_links" >&6; }
8992 if test "$hard_links" = no; then
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8994 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8995 need_locks=warn
8996 fi
8997 else
8998 need_locks=no
8999 fi
9000
9001
9002
9003
9004
9005
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9008
9009 runpath_var=
9010 allow_undefined_flag=
9011 always_export_symbols=no
9012 archive_cmds=
9013 archive_expsym_cmds=
9014 compiler_needs_object=no
9015 enable_shared_with_static_runtimes=no
9016 export_dynamic_flag_spec=
9017 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9018 hardcode_automatic=no
9019 hardcode_direct=no
9020 hardcode_direct_absolute=no
9021 hardcode_libdir_flag_spec=
9022 hardcode_libdir_flag_spec_ld=
9023 hardcode_libdir_separator=
9024 hardcode_minus_L=no
9025 hardcode_shlibpath_var=unsupported
9026 inherit_rpath=no
9027 link_all_deplibs=unknown
9028 module_cmds=
9029 module_expsym_cmds=
9030 old_archive_from_new_cmds=
9031 old_archive_from_expsyms_cmds=
9032 thread_safe_flag_spec=
9033 whole_archive_flag_spec=
9034 # include_expsyms should be a list of space-separated symbols to be *always*
9035 # included in the symbol list
9036 include_expsyms=
9037 # exclude_expsyms can be an extended regexp of symbols to exclude
9038 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9039 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9040 # as well as any symbol that contains `d'.
9041 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9042 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9043 # platforms (ab)use it in PIC code, but their linkers get confused if
9044 # the symbol is explicitly referenced. Since portable code cannot
9045 # rely on this symbol name, it's probably fine to never include it in
9046 # preloaded symbol tables.
9047 # Exclude shared library initialization/finalization symbols.
9048 extract_expsyms_cmds=
9049
9050 case $host_os in
9051 cygwin* | mingw* | pw32* | cegcc*)
9052 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9053 # When not using gcc, we currently assume that we are using
9054 # Microsoft Visual C++.
9055 if test "$GCC" != yes; then
9056 with_gnu_ld=no
9057 fi
9058 ;;
9059 interix*)
9060 # we just hope/assume this is gcc and not c89 (= MSVC++)
9061 with_gnu_ld=yes
9062 ;;
9063 openbsd*)
9064 with_gnu_ld=no
9065 ;;
9066 esac
9067
9068 ld_shlibs=yes
9069
9070 # On some targets, GNU ld is compatible enough with the native linker
9071 # that we're better off using the native interface for both.
9072 lt_use_gnu_ld_interface=no
9073 if test "$with_gnu_ld" = yes; then
9074 case $host_os in
9075 aix*)
9076 # The AIX port of GNU ld has always aspired to compatibility
9077 # with the native linker. However, as the warning in the GNU ld
9078 # block says, versions before 2.19.5* couldn't really create working
9079 # shared libraries, regardless of the interface used.
9080 case `$LD -v 2>&1` in
9081 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9082 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9083 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9084 *)
9085 lt_use_gnu_ld_interface=yes
9086 ;;
9087 esac
9088 ;;
9089 *)
9090 lt_use_gnu_ld_interface=yes
9091 ;;
9092 esac
9093 fi
9094
9095 if test "$lt_use_gnu_ld_interface" = yes; then
9096 # If archive_cmds runs LD, not CC, wlarc should be empty
9097 wlarc='${wl}'
9098
9099 # Set some defaults for GNU ld with shared library support. These
9100 # are reset later if shared libraries are not supported. Putting them
9101 # here allows them to be overridden if necessary.
9102 runpath_var=LD_RUN_PATH
9103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9104 export_dynamic_flag_spec='${wl}--export-dynamic'
9105 # ancient GNU ld didn't support --whole-archive et. al.
9106 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9107 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9108 else
9109 whole_archive_flag_spec=
9110 fi
9111 supports_anon_versioning=no
9112 case `$LD -v 2>&1` in
9113 *GNU\ gold*) supports_anon_versioning=yes ;;
9114 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9115 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9116 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9117 *\ 2.11.*) ;; # other 2.11 versions
9118 *) supports_anon_versioning=yes ;;
9119 esac
9120
9121 # See if GNU ld supports shared libraries.
9122 case $host_os in
9123 aix[3-9]*)
9124 # On AIX/PPC, the GNU linker is very broken
9125 if test "$host_cpu" != ia64; then
9126 ld_shlibs=no
9127 cat <<_LT_EOF 1>&2
9128
9129 *** Warning: the GNU linker, at least up to release 2.19, is reported
9130 *** to be unable to reliably create shared libraries on AIX.
9131 *** Therefore, libtool is disabling shared libraries support. If you
9132 *** really care for shared libraries, you may want to install binutils
9133 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9134 *** You will then need to restart the configuration process.
9135
9136 _LT_EOF
9137 fi
9138 ;;
9139
9140 amigaos*)
9141 case $host_cpu in
9142 powerpc)
9143 # see comment about AmigaOS4 .so support
9144 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9145 archive_expsym_cmds=''
9146 ;;
9147 m68k)
9148 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)'
9149 hardcode_libdir_flag_spec='-L$libdir'
9150 hardcode_minus_L=yes
9151 ;;
9152 esac
9153 ;;
9154
9155 beos*)
9156 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9157 allow_undefined_flag=unsupported
9158 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9159 # support --undefined. This deserves some investigation. FIXME
9160 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9161 else
9162 ld_shlibs=no
9163 fi
9164 ;;
9165
9166 cygwin* | mingw* | pw32* | cegcc*)
9167 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9168 # as there is no search path for DLLs.
9169 hardcode_libdir_flag_spec='-L$libdir'
9170 export_dynamic_flag_spec='${wl}--export-all-symbols'
9171 allow_undefined_flag=unsupported
9172 always_export_symbols=no
9173 enable_shared_with_static_runtimes=yes
9174 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9175
9176 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9177 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9178 # If the export-symbols file already is a .def file (1st line
9179 # is EXPORTS), use it as is; otherwise, prepend...
9180 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9181 cp $export_symbols $output_objdir/$soname.def;
9182 else
9183 echo EXPORTS > $output_objdir/$soname.def;
9184 cat $export_symbols >> $output_objdir/$soname.def;
9185 fi~
9186 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9187 else
9188 ld_shlibs=no
9189 fi
9190 ;;
9191
9192 haiku*)
9193 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9194 link_all_deplibs=yes
9195 ;;
9196
9197 interix[3-9]*)
9198 hardcode_direct=no
9199 hardcode_shlibpath_var=no
9200 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9201 export_dynamic_flag_spec='${wl}-E'
9202 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9203 # Instead, shared libraries are loaded at an image base (0x10000000 by
9204 # default) and relocated if they conflict, which is a slow very memory
9205 # consuming and fragmenting process. To avoid this, we pick a random,
9206 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9207 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9208 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9209 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'
9210 ;;
9211
9212 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9213 tmp_diet=no
9214 if test "$host_os" = linux-dietlibc; then
9215 case $cc_basename in
9216 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9217 esac
9218 fi
9219 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9220 && test "$tmp_diet" = no
9221 then
9222 tmp_addflag=' $pic_flag'
9223 tmp_sharedflag='-shared'
9224 case $cc_basename,$host_cpu in
9225 pgcc*) # Portland Group C compiler
9226 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'
9227 tmp_addflag=' $pic_flag'
9228 ;;
9229 pgf77* | pgf90* | pgf95* | pgfortran*)
9230 # Portland Group f77 and f90 compilers
9231 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'
9232 tmp_addflag=' $pic_flag -Mnomain' ;;
9233 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9234 tmp_addflag=' -i_dynamic' ;;
9235 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9236 tmp_addflag=' -i_dynamic -nofor_main' ;;
9237 ifc* | ifort*) # Intel Fortran compiler
9238 tmp_addflag=' -nofor_main' ;;
9239 lf95*) # Lahey Fortran 8.1
9240 whole_archive_flag_spec=
9241 tmp_sharedflag='--shared' ;;
9242 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9243 tmp_sharedflag='-qmkshrobj'
9244 tmp_addflag= ;;
9245 nvcc*) # Cuda Compiler Driver 2.2
9246 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'
9247 compiler_needs_object=yes
9248 ;;
9249 esac
9250 case `$CC -V 2>&1 | sed 5q` in
9251 *Sun\ C*) # Sun C 5.9
9252 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'
9253 compiler_needs_object=yes
9254 tmp_sharedflag='-G' ;;
9255 *Sun\ F*) # Sun Fortran 8.3
9256 tmp_sharedflag='-G' ;;
9257 esac
9258 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9259
9260 if test "x$supports_anon_versioning" = xyes; then
9261 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9262 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9263 echo "local: *; };" >> $output_objdir/$libname.ver~
9264 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9265 fi
9266
9267 case $cc_basename in
9268 xlf* | bgf* | bgxlf* | mpixlf*)
9269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9270 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9271 hardcode_libdir_flag_spec=
9272 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9273 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9274 if test "x$supports_anon_versioning" = xyes; then
9275 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9276 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9277 echo "local: *; };" >> $output_objdir/$libname.ver~
9278 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9279 fi
9280 ;;
9281 esac
9282 else
9283 ld_shlibs=no
9284 fi
9285 ;;
9286
9287 netbsd*)
9288 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9289 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9290 wlarc=
9291 else
9292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294 fi
9295 ;;
9296
9297 solaris*)
9298 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9299 ld_shlibs=no
9300 cat <<_LT_EOF 1>&2
9301
9302 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9303 *** create shared libraries on Solaris systems. Therefore, libtool
9304 *** is disabling shared libraries support. We urge you to upgrade GNU
9305 *** binutils to release 2.9.1 or newer. Another option is to modify
9306 *** your PATH or compiler configuration so that the native linker is
9307 *** used, and then restart.
9308
9309 _LT_EOF
9310 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317
9318 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9319 case `$LD -v 2>&1` in
9320 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9325 *** reliably create shared libraries on SCO systems. Therefore, libtool
9326 *** is disabling shared libraries support. We urge you to upgrade GNU
9327 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9328 *** your PATH or compiler configuration so that the native linker is
9329 *** used, and then restart.
9330
9331 _LT_EOF
9332 ;;
9333 *)
9334 # For security reasons, it is highly recommended that you always
9335 # use absolute paths for naming shared libraries, and exclude the
9336 # DT_RUNPATH tag from executables and libraries. But doing so
9337 # requires that you compile everything twice, which is a pain.
9338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9342 else
9343 ld_shlibs=no
9344 fi
9345 ;;
9346 esac
9347 ;;
9348
9349 sunos4*)
9350 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9351 wlarc=
9352 hardcode_direct=yes
9353 hardcode_shlibpath_var=no
9354 ;;
9355
9356 *)
9357 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9358 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360 else
9361 ld_shlibs=no
9362 fi
9363 ;;
9364 esac
9365
9366 if test "$ld_shlibs" = no; then
9367 runpath_var=
9368 hardcode_libdir_flag_spec=
9369 export_dynamic_flag_spec=
9370 whole_archive_flag_spec=
9371 fi
9372 else
9373 # PORTME fill in a description of your system's linker (not GNU ld)
9374 case $host_os in
9375 aix3*)
9376 allow_undefined_flag=unsupported
9377 always_export_symbols=yes
9378 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'
9379 # Note: this linker hardcodes the directories in LIBPATH if there
9380 # are no directories specified by -L.
9381 hardcode_minus_L=yes
9382 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9383 # Neither direct hardcoding nor static linking is supported with a
9384 # broken collect2.
9385 hardcode_direct=unsupported
9386 fi
9387 ;;
9388
9389 aix[4-9]*)
9390 if test "$host_cpu" = ia64; then
9391 # On IA64, the linker does run time linking by default, so we don't
9392 # have to do anything special.
9393 aix_use_runtimelinking=no
9394 exp_sym_flag='-Bexport'
9395 no_entry_flag=""
9396 else
9397 # If we're using GNU nm, then we don't want the "-C" option.
9398 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9399 # Also, AIX nm treats weak defined symbols like other global
9400 # defined symbols, whereas GNU nm marks them as "W".
9401 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9402 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'
9403 else
9404 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'
9405 fi
9406 aix_use_runtimelinking=no
9407
9408 # Test if we are trying to use run time linking or normal
9409 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9410 # need to do runtime linking.
9411 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9412 for ld_flag in $LDFLAGS; do
9413 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9414 aix_use_runtimelinking=yes
9415 break
9416 fi
9417 done
9418 ;;
9419 esac
9420
9421 exp_sym_flag='-bexport'
9422 no_entry_flag='-bnoentry'
9423 fi
9424
9425 # When large executables or shared objects are built, AIX ld can
9426 # have problems creating the table of contents. If linking a library
9427 # or program results in "error TOC overflow" add -mminimal-toc to
9428 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9429 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9430
9431 archive_cmds=''
9432 hardcode_direct=yes
9433 hardcode_direct_absolute=yes
9434 hardcode_libdir_separator=':'
9435 link_all_deplibs=yes
9436 file_list_spec='${wl}-f,'
9437
9438 if test "$GCC" = yes; then
9439 case $host_os in aix4.[012]|aix4.[012].*)
9440 # We only want to do this on AIX 4.2 and lower, the check
9441 # below for broken collect2 doesn't work under 4.3+
9442 collect2name=`${CC} -print-prog-name=collect2`
9443 if test -f "$collect2name" &&
9444 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9445 then
9446 # We have reworked collect2
9447 :
9448 else
9449 # We have old collect2
9450 hardcode_direct=unsupported
9451 # It fails to find uninstalled libraries when the uninstalled
9452 # path is not listed in the libpath. Setting hardcode_minus_L
9453 # to unsupported forces relinking
9454 hardcode_minus_L=yes
9455 hardcode_libdir_flag_spec='-L$libdir'
9456 hardcode_libdir_separator=
9457 fi
9458 ;;
9459 esac
9460 shared_flag='-shared'
9461 if test "$aix_use_runtimelinking" = yes; then
9462 shared_flag="$shared_flag "'${wl}-G'
9463 fi
9464 else
9465 # not using gcc
9466 if test "$host_cpu" = ia64; then
9467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9468 # chokes on -Wl,-G. The following line is correct:
9469 shared_flag='-G'
9470 else
9471 if test "$aix_use_runtimelinking" = yes; then
9472 shared_flag='${wl}-G'
9473 else
9474 shared_flag='${wl}-bM:SRE'
9475 fi
9476 fi
9477 fi
9478
9479 export_dynamic_flag_spec='${wl}-bexpall'
9480 # It seems that -bexpall does not export symbols beginning with
9481 # underscore (_), so it is better to generate a list of symbols to export.
9482 always_export_symbols=yes
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # Warning - without using the other runtime loading flags (-brtl),
9485 # -berok will link without error, but may produce a broken library.
9486 allow_undefined_flag='-berok'
9487 # Determine the default libpath from the value encoded in an
9488 # empty executable.
9489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9490 /* end confdefs.h. */
9491
9492 int
9493 main ()
9494 {
9495
9496 ;
9497 return 0;
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_link "$LINENO"; then :
9501
9502 lt_aix_libpath_sed='
9503 /Import File Strings/,/^$/ {
9504 /^0/ {
9505 s/^0 *\(.*\)$/\1/
9506 p
9507 }
9508 }'
9509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510 # Check for a 64-bit object if we didn't find anything.
9511 if test -z "$aix_libpath"; then
9512 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 fi
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9518
9519 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9520 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"
9521 else
9522 if test "$host_cpu" = ia64; then
9523 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9524 allow_undefined_flag="-z nodefs"
9525 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"
9526 else
9527 # Determine the default libpath from the value encoded in an
9528 # empty executable.
9529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h. */
9531
9532 int
9533 main ()
9534 {
9535
9536 ;
9537 return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541
9542 lt_aix_libpath_sed='
9543 /Import File Strings/,/^$/ {
9544 /^0/ {
9545 s/^0 *\(.*\)$/\1/
9546 p
9547 }
9548 }'
9549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550 # Check for a 64-bit object if we didn't find anything.
9551 if test -z "$aix_libpath"; then
9552 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553 fi
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556 conftest$ac_exeext conftest.$ac_ext
9557 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9558
9559 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560 # Warning - without using the other run time loading flags,
9561 # -berok will link without error, but may produce a broken library.
9562 no_undefined_flag=' ${wl}-bernotok'
9563 allow_undefined_flag=' ${wl}-berok'
9564 if test "$with_gnu_ld" = yes; then
9565 # We only use this code for GNU lds that support --whole-archive.
9566 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9567 else
9568 # Exported symbols can be pulled into shared objects from archives
9569 whole_archive_flag_spec='$convenience'
9570 fi
9571 archive_cmds_need_lc=yes
9572 # This is similar to how AIX traditionally builds its shared libraries.
9573 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'
9574 fi
9575 fi
9576 ;;
9577
9578 amigaos*)
9579 case $host_cpu in
9580 powerpc)
9581 # see comment about AmigaOS4 .so support
9582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 archive_expsym_cmds=''
9584 ;;
9585 m68k)
9586 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)'
9587 hardcode_libdir_flag_spec='-L$libdir'
9588 hardcode_minus_L=yes
9589 ;;
9590 esac
9591 ;;
9592
9593 bsdi[45]*)
9594 export_dynamic_flag_spec=-rdynamic
9595 ;;
9596
9597 cygwin* | mingw* | pw32* | cegcc*)
9598 # When not using gcc, we currently assume that we are using
9599 # Microsoft Visual C++.
9600 # hardcode_libdir_flag_spec is actually meaningless, as there is
9601 # no search path for DLLs.
9602 hardcode_libdir_flag_spec=' '
9603 allow_undefined_flag=unsupported
9604 # Tell ltmain to make .lib files, not .a files.
9605 libext=lib
9606 # Tell ltmain to make .dll files, not .so files.
9607 shrext_cmds=".dll"
9608 # FIXME: Setting linknames here is a bad hack.
9609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9610 # The linker will automatically build a .lib file if we build a DLL.
9611 old_archive_from_new_cmds='true'
9612 # FIXME: Should let the user specify the lib program.
9613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9614 fix_srcfile_path='`cygpath -w "$srcfile"`'
9615 enable_shared_with_static_runtimes=yes
9616 ;;
9617
9618 darwin* | rhapsody*)
9619
9620
9621 archive_cmds_need_lc=no
9622 hardcode_direct=no
9623 hardcode_automatic=yes
9624 hardcode_shlibpath_var=unsupported
9625 if test "$lt_cv_ld_force_load" = "yes"; then
9626 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\"`'
9627 else
9628 whole_archive_flag_spec=''
9629 fi
9630 link_all_deplibs=yes
9631 allow_undefined_flag="$_lt_dar_allow_undefined"
9632 case $cc_basename in
9633 ifort*) _lt_dar_can_shared=yes ;;
9634 *) _lt_dar_can_shared=$GCC ;;
9635 esac
9636 if test "$_lt_dar_can_shared" = "yes"; then
9637 output_verbose_link_cmd=func_echo_all
9638 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9639 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9640 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}"
9641 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}"
9642
9643 else
9644 ld_shlibs=no
9645 fi
9646
9647 ;;
9648
9649 dgux*)
9650 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9651 hardcode_libdir_flag_spec='-L$libdir'
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9656 # support. Future versions do this automatically, but an explicit c++rt0.o
9657 # does not break anything, and helps significantly (at the cost of a little
9658 # extra space).
9659 freebsd2.2*)
9660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_direct=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9667 freebsd2.*)
9668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_direct=yes
9670 hardcode_minus_L=yes
9671 hardcode_shlibpath_var=no
9672 ;;
9673
9674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9675 freebsd* | dragonfly*)
9676 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9677 hardcode_libdir_flag_spec='-R$libdir'
9678 hardcode_direct=yes
9679 hardcode_shlibpath_var=no
9680 ;;
9681
9682 hpux9*)
9683 if test "$GCC" = yes; then
9684 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'
9685 else
9686 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'
9687 fi
9688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9689 hardcode_libdir_separator=:
9690 hardcode_direct=yes
9691
9692 # hardcode_minus_L: Not really in the search PATH,
9693 # but as the default location of the library.
9694 hardcode_minus_L=yes
9695 export_dynamic_flag_spec='${wl}-E'
9696 ;;
9697
9698 hpux10*)
9699 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9701 else
9702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9703 fi
9704 if test "$with_gnu_ld" = no; then
9705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9706 hardcode_libdir_flag_spec_ld='+b $libdir'
9707 hardcode_libdir_separator=:
9708 hardcode_direct=yes
9709 hardcode_direct_absolute=yes
9710 export_dynamic_flag_spec='${wl}-E'
9711 # hardcode_minus_L: Not really in the search PATH,
9712 # but as the default location of the library.
9713 hardcode_minus_L=yes
9714 fi
9715 ;;
9716
9717 hpux11*)
9718 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9719 case $host_cpu in
9720 hppa*64*)
9721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 ;;
9723 ia64*)
9724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9725 ;;
9726 *)
9727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9728 ;;
9729 esac
9730 else
9731 case $host_cpu in
9732 hppa*64*)
9733 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 ;;
9735 ia64*)
9736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9737 ;;
9738 *)
9739
9740 # Older versions of the 11.00 compiler do not understand -b yet
9741 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9743 $as_echo_n "checking if $CC understands -b... " >&6; }
9744 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9745 $as_echo_n "(cached) " >&6
9746 else
9747 lt_cv_prog_compiler__b=no
9748 save_LDFLAGS="$LDFLAGS"
9749 LDFLAGS="$LDFLAGS -b"
9750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9752 # The linker can only warn and ignore the option if not recognized
9753 # So say no if there are warnings
9754 if test -s conftest.err; then
9755 # Append any errors to the config.log.
9756 cat conftest.err 1>&5
9757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9759 if diff conftest.exp conftest.er2 >/dev/null; then
9760 lt_cv_prog_compiler__b=yes
9761 fi
9762 else
9763 lt_cv_prog_compiler__b=yes
9764 fi
9765 fi
9766 $RM -r conftest*
9767 LDFLAGS="$save_LDFLAGS"
9768
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9771 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9772
9773 if test x"$lt_cv_prog_compiler__b" = xyes; then
9774 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9775 else
9776 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9777 fi
9778
9779 ;;
9780 esac
9781 fi
9782 if test "$with_gnu_ld" = no; then
9783 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9784 hardcode_libdir_separator=:
9785
9786 case $host_cpu in
9787 hppa*64*|ia64*)
9788 hardcode_direct=no
9789 hardcode_shlibpath_var=no
9790 ;;
9791 *)
9792 hardcode_direct=yes
9793 hardcode_direct_absolute=yes
9794 export_dynamic_flag_spec='${wl}-E'
9795
9796 # hardcode_minus_L: Not really in the search PATH,
9797 # but as the default location of the library.
9798 hardcode_minus_L=yes
9799 ;;
9800 esac
9801 fi
9802 ;;
9803
9804 irix5* | irix6* | nonstopux*)
9805 if test "$GCC" = yes; then
9806 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'
9807 # Try to use the -exported_symbol ld option, if it does not
9808 # work, assume that -exports_file does not work either and
9809 # implicitly export all symbols.
9810 save_LDFLAGS="$LDFLAGS"
9811 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9814 int foo(void) {}
9815 _ACEOF
9816 if ac_fn_c_try_link "$LINENO"; then :
9817 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'
9818
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext \
9821 conftest$ac_exeext conftest.$ac_ext
9822 LDFLAGS="$save_LDFLAGS"
9823 else
9824 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'
9825 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'
9826 fi
9827 archive_cmds_need_lc='no'
9828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9829 hardcode_libdir_separator=:
9830 inherit_rpath=yes
9831 link_all_deplibs=yes
9832 ;;
9833
9834 netbsd*)
9835 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9836 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9837 else
9838 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9839 fi
9840 hardcode_libdir_flag_spec='-R$libdir'
9841 hardcode_direct=yes
9842 hardcode_shlibpath_var=no
9843 ;;
9844
9845 newsos6)
9846 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9847 hardcode_direct=yes
9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9849 hardcode_libdir_separator=:
9850 hardcode_shlibpath_var=no
9851 ;;
9852
9853 *nto* | *qnx*)
9854 ;;
9855
9856 openbsd*)
9857 if test -f /usr/libexec/ld.so; then
9858 hardcode_direct=yes
9859 hardcode_shlibpath_var=no
9860 hardcode_direct_absolute=yes
9861 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9863 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9864 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9865 export_dynamic_flag_spec='${wl}-E'
9866 else
9867 case $host_os in
9868 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9870 hardcode_libdir_flag_spec='-R$libdir'
9871 ;;
9872 *)
9873 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9874 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875 ;;
9876 esac
9877 fi
9878 else
9879 ld_shlibs=no
9880 fi
9881 ;;
9882
9883 os2*)
9884 hardcode_libdir_flag_spec='-L$libdir'
9885 hardcode_minus_L=yes
9886 allow_undefined_flag=unsupported
9887 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'
9888 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9889 ;;
9890
9891 osf3*)
9892 if test "$GCC" = yes; then
9893 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9894 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'
9895 else
9896 allow_undefined_flag=' -expect_unresolved \*'
9897 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'
9898 fi
9899 archive_cmds_need_lc='no'
9900 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9901 hardcode_libdir_separator=:
9902 ;;
9903
9904 osf4* | osf5*) # as osf3* with the addition of -msym flag
9905 if test "$GCC" = yes; then
9906 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9907 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'
9908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9909 else
9910 allow_undefined_flag=' -expect_unresolved \*'
9911 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'
9912 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~
9913 $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'
9914
9915 # Both c and cxx compiler support -rpath directly
9916 hardcode_libdir_flag_spec='-rpath $libdir'
9917 fi
9918 archive_cmds_need_lc='no'
9919 hardcode_libdir_separator=:
9920 ;;
9921
9922 solaris*)
9923 no_undefined_flag=' -z defs'
9924 if test "$GCC" = yes; then
9925 wlarc='${wl}'
9926 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9927 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9928 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9929 else
9930 case `$CC -V 2>&1` in
9931 *"Compilers 5.0"*)
9932 wlarc=''
9933 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9936 ;;
9937 *)
9938 wlarc='${wl}'
9939 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9940 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9941 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9942 ;;
9943 esac
9944 fi
9945 hardcode_libdir_flag_spec='-R$libdir'
9946 hardcode_shlibpath_var=no
9947 case $host_os in
9948 solaris2.[0-5] | solaris2.[0-5].*) ;;
9949 *)
9950 # The compiler driver will combine and reorder linker options,
9951 # but understands `-z linker_flag'. GCC discards it without `$wl',
9952 # but is careful enough not to reorder.
9953 # Supported since Solaris 2.6 (maybe 2.5.1?)
9954 if test "$GCC" = yes; then
9955 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9956 else
9957 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9958 fi
9959 ;;
9960 esac
9961 link_all_deplibs=yes
9962 ;;
9963
9964 sunos4*)
9965 if test "x$host_vendor" = xsequent; then
9966 # Use $CC to link under sequent, because it throws in some extra .o
9967 # files that make .init and .fini sections work.
9968 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9969 else
9970 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9971 fi
9972 hardcode_libdir_flag_spec='-L$libdir'
9973 hardcode_direct=yes
9974 hardcode_minus_L=yes
9975 hardcode_shlibpath_var=no
9976 ;;
9977
9978 sysv4)
9979 case $host_vendor in
9980 sni)
9981 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9982 hardcode_direct=yes # is this really true???
9983 ;;
9984 siemens)
9985 ## LD is ld it makes a PLAMLIB
9986 ## CC just makes a GrossModule.
9987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9988 reload_cmds='$CC -r -o $output$reload_objs'
9989 hardcode_direct=no
9990 ;;
9991 motorola)
9992 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9993 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9994 ;;
9995 esac
9996 runpath_var='LD_RUN_PATH'
9997 hardcode_shlibpath_var=no
9998 ;;
9999
10000 sysv4.3*)
10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10002 hardcode_shlibpath_var=no
10003 export_dynamic_flag_spec='-Bexport'
10004 ;;
10005
10006 sysv4*MP*)
10007 if test -d /usr/nec; then
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 runpath_var=LD_RUN_PATH
10011 hardcode_runpath_var=yes
10012 ld_shlibs=yes
10013 fi
10014 ;;
10015
10016 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10017 no_undefined_flag='${wl}-z,text'
10018 archive_cmds_need_lc=no
10019 hardcode_shlibpath_var=no
10020 runpath_var='LD_RUN_PATH'
10021
10022 if test "$GCC" = yes; then
10023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 else
10026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028 fi
10029 ;;
10030
10031 sysv5* | sco3.2v5* | sco5v6*)
10032 # Note: We can NOT use -z defs as we might desire, because we do not
10033 # link with -lc, and that would cause any symbols used from libc to
10034 # always be unresolved, which means just about no library would
10035 # ever link correctly. If we're not using GNU ld we use -z text
10036 # though, which does catch some bad symbols but isn't as heavy-handed
10037 # as -z defs.
10038 no_undefined_flag='${wl}-z,text'
10039 allow_undefined_flag='${wl}-z,nodefs'
10040 archive_cmds_need_lc=no
10041 hardcode_shlibpath_var=no
10042 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10043 hardcode_libdir_separator=':'
10044 link_all_deplibs=yes
10045 export_dynamic_flag_spec='${wl}-Bexport'
10046 runpath_var='LD_RUN_PATH'
10047
10048 if test "$GCC" = yes; then
10049 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 else
10052 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10053 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 fi
10055 ;;
10056
10057 uts4*)
10058 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_libdir_flag_spec='-L$libdir'
10060 hardcode_shlibpath_var=no
10061 ;;
10062
10063 *)
10064 ld_shlibs=no
10065 ;;
10066 esac
10067
10068 if test x$host_vendor = xsni; then
10069 case $host in
10070 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10071 export_dynamic_flag_spec='${wl}-Blargedynsym'
10072 ;;
10073 esac
10074 fi
10075 fi
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10078 $as_echo "$ld_shlibs" >&6; }
10079 test "$ld_shlibs" = no && can_build_shared=no
10080
10081 with_gnu_ld=$with_gnu_ld
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097 #
10098 # Do we need to explicitly link libc?
10099 #
10100 case "x$archive_cmds_need_lc" in
10101 x|xyes)
10102 # Assume -lc should be added
10103 archive_cmds_need_lc=yes
10104
10105 if test "$enable_shared" = yes && test "$GCC" = yes; then
10106 case $archive_cmds in
10107 *'~'*)
10108 # FIXME: we may have to deal with multi-command sequences.
10109 ;;
10110 '$CC '*)
10111 # Test whether the compiler implicitly links with -lc since on some
10112 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10113 # to ld, don't add -lc before -lgcc.
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10115 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10116 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 $RM conftest*
10120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10121
10122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10123 (eval $ac_compile) 2>&5
10124 ac_status=$?
10125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10126 test $ac_status = 0; } 2>conftest.err; then
10127 soname=conftest
10128 lib=conftest
10129 libobjs=conftest.$ac_objext
10130 deplibs=
10131 wl=$lt_prog_compiler_wl
10132 pic_flag=$lt_prog_compiler_pic
10133 compiler_flags=-v
10134 linker_flags=-v
10135 verstring=
10136 output_objdir=.
10137 libname=conftest
10138 lt_save_allow_undefined_flag=$allow_undefined_flag
10139 allow_undefined_flag=
10140 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10141 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10142 ac_status=$?
10143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10144 test $ac_status = 0; }
10145 then
10146 lt_cv_archive_cmds_need_lc=no
10147 else
10148 lt_cv_archive_cmds_need_lc=yes
10149 fi
10150 allow_undefined_flag=$lt_save_allow_undefined_flag
10151 else
10152 cat conftest.err 1>&5
10153 fi
10154 $RM conftest*
10155
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10158 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10159 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10160 ;;
10161 esac
10162 fi
10163 ;;
10164 esac
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10323 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10324
10325 if test "$GCC" = yes; then
10326 case $host_os in
10327 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10328 *) lt_awk_arg="/^libraries:/" ;;
10329 esac
10330 case $host_os in
10331 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10332 *) lt_sed_strip_eq="s,=/,/,g" ;;
10333 esac
10334 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10335 case $lt_search_path_spec in
10336 *\;*)
10337 # if the path contains ";" then we assume it to be the separator
10338 # otherwise default to the standard path separator (i.e. ":") - it is
10339 # assumed that no part of a normal pathname contains ";" but that should
10340 # okay in the real world where ";" in dirpaths is itself problematic.
10341 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10342 ;;
10343 *)
10344 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10345 ;;
10346 esac
10347 # Ok, now we have the path, separated by spaces, we can step through it
10348 # and add multilib dir if necessary.
10349 lt_tmp_lt_search_path_spec=
10350 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10351 for lt_sys_path in $lt_search_path_spec; do
10352 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10353 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10354 else
10355 test -d "$lt_sys_path" && \
10356 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10357 fi
10358 done
10359 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10360 BEGIN {RS=" "; FS="/|\n";} {
10361 lt_foo="";
10362 lt_count=0;
10363 for (lt_i = NF; lt_i > 0; lt_i--) {
10364 if ($lt_i != "" && $lt_i != ".") {
10365 if ($lt_i == "..") {
10366 lt_count++;
10367 } else {
10368 if (lt_count == 0) {
10369 lt_foo="/" $lt_i lt_foo;
10370 } else {
10371 lt_count--;
10372 }
10373 }
10374 }
10375 }
10376 if (lt_foo != "") { lt_freq[lt_foo]++; }
10377 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10378 }'`
10379 # AWK program above erroneously prepends '/' to C:/dos/paths
10380 # for these hosts.
10381 case $host_os in
10382 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10383 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10384 esac
10385 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10386 else
10387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10388 fi
10389 library_names_spec=
10390 libname_spec='lib$name'
10391 soname_spec=
10392 shrext_cmds=".so"
10393 postinstall_cmds=
10394 postuninstall_cmds=
10395 finish_cmds=
10396 finish_eval=
10397 shlibpath_var=
10398 shlibpath_overrides_runpath=unknown
10399 version_type=none
10400 dynamic_linker="$host_os ld.so"
10401 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10402 need_lib_prefix=unknown
10403 hardcode_into_libs=no
10404
10405 # when you set need_version to no, make sure it does not cause -set_version
10406 # flags to be left without arguments
10407 need_version=unknown
10408
10409 case $host_os in
10410 aix3*)
10411 version_type=linux
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10413 shlibpath_var=LIBPATH
10414
10415 # AIX 3 has no versioning support, so we append a major version to the name.
10416 soname_spec='${libname}${release}${shared_ext}$major'
10417 ;;
10418
10419 aix[4-9]*)
10420 version_type=linux
10421 need_lib_prefix=no
10422 need_version=no
10423 hardcode_into_libs=yes
10424 if test "$host_cpu" = ia64; then
10425 # AIX 5 supports IA64
10426 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10427 shlibpath_var=LD_LIBRARY_PATH
10428 else
10429 # With GCC up to 2.95.x, collect2 would create an import file
10430 # for dependence libraries. The import file would start with
10431 # the line `#! .'. This would cause the generated library to
10432 # depend on `.', always an invalid library. This was fixed in
10433 # development snapshots of GCC prior to 3.0.
10434 case $host_os in
10435 aix4 | aix4.[01] | aix4.[01].*)
10436 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10437 echo ' yes '
10438 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10439 :
10440 else
10441 can_build_shared=no
10442 fi
10443 ;;
10444 esac
10445 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10446 # soname into executable. Probably we can add versioning support to
10447 # collect2, so additional links can be useful in future.
10448 if test "$aix_use_runtimelinking" = yes; then
10449 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10450 # instead of lib<name>.a to let people know that these are not
10451 # typical AIX shared libraries.
10452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10453 else
10454 # We preserve .a as extension for shared libraries through AIX4.2
10455 # and later when we are not doing run time linking.
10456 library_names_spec='${libname}${release}.a $libname.a'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 fi
10459 shlibpath_var=LIBPATH
10460 fi
10461 ;;
10462
10463 amigaos*)
10464 case $host_cpu in
10465 powerpc)
10466 # Since July 2007 AmigaOS4 officially supports .so libraries.
10467 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469 ;;
10470 m68k)
10471 library_names_spec='$libname.ixlibrary $libname.a'
10472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10473 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'
10474 ;;
10475 esac
10476 ;;
10477
10478 beos*)
10479 library_names_spec='${libname}${shared_ext}'
10480 dynamic_linker="$host_os ld.so"
10481 shlibpath_var=LIBRARY_PATH
10482 ;;
10483
10484 bsdi[45]*)
10485 version_type=linux
10486 need_version=no
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10490 shlibpath_var=LD_LIBRARY_PATH
10491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10493 # the default ld.so.conf also contains /usr/contrib/lib and
10494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10495 # libtool to hard-code these into programs
10496 ;;
10497
10498 cygwin* | mingw* | pw32* | cegcc*)
10499 version_type=windows
10500 shrext_cmds=".dll"
10501 need_version=no
10502 need_lib_prefix=no
10503
10504 case $GCC,$host_os in
10505 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10506 library_names_spec='$libname.dll.a'
10507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10508 postinstall_cmds='base_file=`basename \${file}`~
10509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10510 dldir=$destdir/`dirname \$dlpath`~
10511 test -d \$dldir || mkdir -p \$dldir~
10512 $install_prog $dir/$dlname \$dldir/$dlname~
10513 chmod a+x \$dldir/$dlname~
10514 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10515 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10516 fi'
10517 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10518 dlpath=$dir/\$dldll~
10519 $RM \$dlpath'
10520 shlibpath_overrides_runpath=yes
10521
10522 case $host_os in
10523 cygwin*)
10524 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10525 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526
10527 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10528 ;;
10529 mingw* | cegcc*)
10530 # MinGW DLLs use traditional 'lib' prefix
10531 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10532 ;;
10533 pw32*)
10534 # pw32 DLLs use 'pw' prefix rather than 'lib'
10535 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10536 ;;
10537 esac
10538 ;;
10539
10540 *)
10541 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10542 ;;
10543 esac
10544 dynamic_linker='Win32 ld.exe'
10545 # FIXME: first we should search . and the directory the executable is in
10546 shlibpath_var=PATH
10547 ;;
10548
10549 darwin* | rhapsody*)
10550 dynamic_linker="$host_os dyld"
10551 version_type=darwin
10552 need_lib_prefix=no
10553 need_version=no
10554 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10555 soname_spec='${libname}${release}${major}$shared_ext'
10556 shlibpath_overrides_runpath=yes
10557 shlibpath_var=DYLD_LIBRARY_PATH
10558 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10559
10560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10561 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10562 ;;
10563
10564 dgux*)
10565 version_type=linux
10566 need_lib_prefix=no
10567 need_version=no
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10569 soname_spec='${libname}${release}${shared_ext}$major'
10570 shlibpath_var=LD_LIBRARY_PATH
10571 ;;
10572
10573 freebsd* | dragonfly*)
10574 # DragonFly does not have aout. When/if they implement a new
10575 # versioning mechanism, adjust this.
10576 if test -x /usr/bin/objformat; then
10577 objformat=`/usr/bin/objformat`
10578 else
10579 case $host_os in
10580 freebsd[23].*) objformat=aout ;;
10581 *) objformat=elf ;;
10582 esac
10583 fi
10584 version_type=freebsd-$objformat
10585 case $version_type in
10586 freebsd-elf*)
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10588 need_version=no
10589 need_lib_prefix=no
10590 ;;
10591 freebsd-*)
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10593 need_version=yes
10594 ;;
10595 esac
10596 shlibpath_var=LD_LIBRARY_PATH
10597 case $host_os in
10598 freebsd2.*)
10599 shlibpath_overrides_runpath=yes
10600 ;;
10601 freebsd3.[01]* | freebsdelf3.[01]*)
10602 shlibpath_overrides_runpath=yes
10603 hardcode_into_libs=yes
10604 ;;
10605 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10606 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10607 shlibpath_overrides_runpath=no
10608 hardcode_into_libs=yes
10609 ;;
10610 *) # from 4.6 on, and DragonFly
10611 shlibpath_overrides_runpath=yes
10612 hardcode_into_libs=yes
10613 ;;
10614 esac
10615 ;;
10616
10617 gnu*)
10618 version_type=linux
10619 need_lib_prefix=no
10620 need_version=no
10621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 shlibpath_var=LD_LIBRARY_PATH
10624 hardcode_into_libs=yes
10625 ;;
10626
10627 haiku*)
10628 version_type=linux
10629 need_lib_prefix=no
10630 need_version=no
10631 dynamic_linker="$host_os runtime_loader"
10632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10633 soname_spec='${libname}${release}${shared_ext}$major'
10634 shlibpath_var=LIBRARY_PATH
10635 shlibpath_overrides_runpath=yes
10636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10637 hardcode_into_libs=yes
10638 ;;
10639
10640 hpux9* | hpux10* | hpux11*)
10641 # Give a soname corresponding to the major version so that dld.sl refuses to
10642 # link against other versions.
10643 version_type=sunos
10644 need_lib_prefix=no
10645 need_version=no
10646 case $host_cpu in
10647 ia64*)
10648 shrext_cmds='.so'
10649 hardcode_into_libs=yes
10650 dynamic_linker="$host_os dld.so"
10651 shlibpath_var=LD_LIBRARY_PATH
10652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654 soname_spec='${libname}${release}${shared_ext}$major'
10655 if test "X$HPUX_IA64_MODE" = X32; then
10656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10657 else
10658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10659 fi
10660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10661 ;;
10662 hppa*64*)
10663 shrext_cmds='.sl'
10664 hardcode_into_libs=yes
10665 dynamic_linker="$host_os dld.sl"
10666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669 soname_spec='${libname}${release}${shared_ext}$major'
10670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10672 ;;
10673 *)
10674 shrext_cmds='.sl'
10675 dynamic_linker="$host_os dld.sl"
10676 shlibpath_var=SHLIB_PATH
10677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679 soname_spec='${libname}${release}${shared_ext}$major'
10680 ;;
10681 esac
10682 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10683 postinstall_cmds='chmod 555 $lib'
10684 # or fails outright, so override atomically:
10685 install_override_mode=555
10686 ;;
10687
10688 interix[3-9]*)
10689 version_type=linux
10690 need_lib_prefix=no
10691 need_version=no
10692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10693 soname_spec='${libname}${release}${shared_ext}$major'
10694 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10695 shlibpath_var=LD_LIBRARY_PATH
10696 shlibpath_overrides_runpath=no
10697 hardcode_into_libs=yes
10698 ;;
10699
10700 irix5* | irix6* | nonstopux*)
10701 case $host_os in
10702 nonstopux*) version_type=nonstopux ;;
10703 *)
10704 if test "$lt_cv_prog_gnu_ld" = yes; then
10705 version_type=linux
10706 else
10707 version_type=irix
10708 fi ;;
10709 esac
10710 need_lib_prefix=no
10711 need_version=no
10712 soname_spec='${libname}${release}${shared_ext}$major'
10713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10714 case $host_os in
10715 irix5* | nonstopux*)
10716 libsuff= shlibsuff=
10717 ;;
10718 *)
10719 case $LD in # libtool.m4 will add one of these switches to LD
10720 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10721 libsuff= shlibsuff= libmagic=32-bit;;
10722 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10723 libsuff=32 shlibsuff=N32 libmagic=N32;;
10724 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10725 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10726 *) libsuff= shlibsuff= libmagic=never-match;;
10727 esac
10728 ;;
10729 esac
10730 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10731 shlibpath_overrides_runpath=no
10732 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10733 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10734 hardcode_into_libs=yes
10735 ;;
10736
10737 # No shared lib support for Linux oldld, aout, or coff.
10738 linux*oldld* | linux*aout* | linux*coff*)
10739 dynamic_linker=no
10740 ;;
10741
10742 # This must be Linux ELF.
10743 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10744 version_type=linux
10745 need_lib_prefix=no
10746 need_version=no
10747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10748 soname_spec='${libname}${release}${shared_ext}$major'
10749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=no
10752
10753 # Some binutils ld are patched to set DT_RUNPATH
10754 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 lt_cv_shlibpath_overrides_runpath=no
10758 save_LDFLAGS=$LDFLAGS
10759 save_libdir=$libdir
10760 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10761 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764
10765 int
10766 main ()
10767 {
10768
10769 ;
10770 return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"; then :
10774 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10775 lt_cv_shlibpath_overrides_runpath=yes
10776 fi
10777 fi
10778 rm -f core conftest.err conftest.$ac_objext \
10779 conftest$ac_exeext conftest.$ac_ext
10780 LDFLAGS=$save_LDFLAGS
10781 libdir=$save_libdir
10782
10783 fi
10784
10785 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10786
10787 # This implies no fast_install, which is unacceptable.
10788 # Some rework will be needed to allow for fast_install
10789 # before this can be enabled.
10790 hardcode_into_libs=yes
10791
10792 # Append ld.so.conf contents to the search path
10793 if test -f /etc/ld.so.conf; then
10794 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' ' '`
10795 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10796 fi
10797
10798 # We used to test for /lib/ld.so.1 and disable shared libraries on
10799 # powerpc, because MkLinux only supported shared libraries with the
10800 # GNU dynamic linker. Since this was broken with cross compilers,
10801 # most powerpc-linux boxes support dynamic linking these days and
10802 # people can always --disable-shared, the test was removed, and we
10803 # assume the GNU/Linux dynamic linker is in use.
10804 dynamic_linker='GNU/Linux ld.so'
10805 ;;
10806
10807 netbsd*)
10808 version_type=sunos
10809 need_lib_prefix=no
10810 need_version=no
10811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10814 dynamic_linker='NetBSD (a.out) ld.so'
10815 else
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10817 soname_spec='${libname}${release}${shared_ext}$major'
10818 dynamic_linker='NetBSD ld.elf_so'
10819 fi
10820 shlibpath_var=LD_LIBRARY_PATH
10821 shlibpath_overrides_runpath=yes
10822 hardcode_into_libs=yes
10823 ;;
10824
10825 newsos6)
10826 version_type=linux
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 shlibpath_var=LD_LIBRARY_PATH
10829 shlibpath_overrides_runpath=yes
10830 ;;
10831
10832 *nto* | *qnx*)
10833 version_type=qnx
10834 need_lib_prefix=no
10835 need_version=no
10836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837 soname_spec='${libname}${release}${shared_ext}$major'
10838 shlibpath_var=LD_LIBRARY_PATH
10839 shlibpath_overrides_runpath=no
10840 hardcode_into_libs=yes
10841 dynamic_linker='ldqnx.so'
10842 ;;
10843
10844 openbsd*)
10845 version_type=sunos
10846 sys_lib_dlsearch_path_spec="/usr/lib"
10847 need_lib_prefix=no
10848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10849 case $host_os in
10850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10851 *) need_version=no ;;
10852 esac
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10857 case $host_os in
10858 openbsd2.[89] | openbsd2.[89].*)
10859 shlibpath_overrides_runpath=no
10860 ;;
10861 *)
10862 shlibpath_overrides_runpath=yes
10863 ;;
10864 esac
10865 else
10866 shlibpath_overrides_runpath=yes
10867 fi
10868 ;;
10869
10870 os2*)
10871 libname_spec='$name'
10872 shrext_cmds=".dll"
10873 need_lib_prefix=no
10874 library_names_spec='$libname${shared_ext} $libname.a'
10875 dynamic_linker='OS/2 ld.exe'
10876 shlibpath_var=LIBPATH
10877 ;;
10878
10879 osf3* | osf4* | osf5*)
10880 version_type=osf
10881 need_lib_prefix=no
10882 need_version=no
10883 soname_spec='${libname}${release}${shared_ext}$major'
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10888 ;;
10889
10890 rdos*)
10891 dynamic_linker=no
10892 ;;
10893
10894 solaris*)
10895 version_type=linux
10896 need_lib_prefix=no
10897 need_version=no
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=yes
10902 hardcode_into_libs=yes
10903 # ldd complains unless libraries are executable
10904 postinstall_cmds='chmod +x $lib'
10905 ;;
10906
10907 sunos4*)
10908 version_type=sunos
10909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 if test "$with_gnu_ld" = yes; then
10914 need_lib_prefix=no
10915 fi
10916 need_version=yes
10917 ;;
10918
10919 sysv4 | sysv4.3*)
10920 version_type=linux
10921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922 soname_spec='${libname}${release}${shared_ext}$major'
10923 shlibpath_var=LD_LIBRARY_PATH
10924 case $host_vendor in
10925 sni)
10926 shlibpath_overrides_runpath=no
10927 need_lib_prefix=no
10928 runpath_var=LD_RUN_PATH
10929 ;;
10930 siemens)
10931 need_lib_prefix=no
10932 ;;
10933 motorola)
10934 need_lib_prefix=no
10935 need_version=no
10936 shlibpath_overrides_runpath=no
10937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10938 ;;
10939 esac
10940 ;;
10941
10942 sysv4*MP*)
10943 if test -d /usr/nec ;then
10944 version_type=linux
10945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10946 soname_spec='$libname${shared_ext}.$major'
10947 shlibpath_var=LD_LIBRARY_PATH
10948 fi
10949 ;;
10950
10951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10952 version_type=freebsd-elf
10953 need_lib_prefix=no
10954 need_version=no
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10958 shlibpath_overrides_runpath=yes
10959 hardcode_into_libs=yes
10960 if test "$with_gnu_ld" = yes; then
10961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10962 else
10963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10964 case $host_os in
10965 sco3.2v5*)
10966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10967 ;;
10968 esac
10969 fi
10970 sys_lib_dlsearch_path_spec='/usr/lib'
10971 ;;
10972
10973 tpf*)
10974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10975 version_type=linux
10976 need_lib_prefix=no
10977 need_version=no
10978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10979 shlibpath_var=LD_LIBRARY_PATH
10980 shlibpath_overrides_runpath=no
10981 hardcode_into_libs=yes
10982 ;;
10983
10984 uts4*)
10985 version_type=linux
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 ;;
10990
10991 *)
10992 dynamic_linker=no
10993 ;;
10994 esac
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10996 $as_echo "$dynamic_linker" >&6; }
10997 test "$dynamic_linker" = no && can_build_shared=no
10998
10999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11000 if test "$GCC" = yes; then
11001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11002 fi
11003
11004 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11006 fi
11007 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11103 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11104 hardcode_action=
11105 if test -n "$hardcode_libdir_flag_spec" ||
11106 test -n "$runpath_var" ||
11107 test "X$hardcode_automatic" = "Xyes" ; then
11108
11109 # We can hardcode non-existent directories.
11110 if test "$hardcode_direct" != no &&
11111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11112 # have to relink, otherwise we might link with an installed library
11113 # when we should be linking with a yet-to-be-installed one
11114 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11115 test "$hardcode_minus_L" != no; then
11116 # Linking always hardcodes the temporary library directory.
11117 hardcode_action=relink
11118 else
11119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11120 hardcode_action=immediate
11121 fi
11122 else
11123 # We cannot hardcode anything, or else we can only hardcode existing
11124 # directories.
11125 hardcode_action=unsupported
11126 fi
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11128 $as_echo "$hardcode_action" >&6; }
11129
11130 if test "$hardcode_action" = relink ||
11131 test "$inherit_rpath" = yes; then
11132 # Fast installation is not supported
11133 enable_fast_install=no
11134 elif test "$shlibpath_overrides_runpath" = yes ||
11135 test "$enable_shared" = no; then
11136 # Fast installation is not necessary
11137 enable_fast_install=needless
11138 fi
11139
11140
11141
11142
11143
11144
11145 if test "x$enable_dlopen" != xyes; then
11146 enable_dlopen=unknown
11147 enable_dlopen_self=unknown
11148 enable_dlopen_self_static=unknown
11149 else
11150 lt_cv_dlopen=no
11151 lt_cv_dlopen_libs=
11152
11153 case $host_os in
11154 beos*)
11155 lt_cv_dlopen="load_add_on"
11156 lt_cv_dlopen_libs=
11157 lt_cv_dlopen_self=yes
11158 ;;
11159
11160 mingw* | pw32* | cegcc*)
11161 lt_cv_dlopen="LoadLibrary"
11162 lt_cv_dlopen_libs=
11163 ;;
11164
11165 cygwin*)
11166 lt_cv_dlopen="dlopen"
11167 lt_cv_dlopen_libs=
11168 ;;
11169
11170 darwin*)
11171 # if libdl is installed we need to link against it
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11173 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
11176 else
11177 ac_check_lib_save_LIBS=$LIBS
11178 LIBS="-ldl $LIBS"
11179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h. */
11181
11182 /* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185 #ifdef __cplusplus
11186 extern "C"
11187 #endif
11188 char dlopen ();
11189 int
11190 main ()
11191 {
11192 return dlopen ();
11193 ;
11194 return 0;
11195 }
11196 _ACEOF
11197 if ac_fn_c_try_link "$LINENO"; then :
11198 ac_cv_lib_dl_dlopen=yes
11199 else
11200 ac_cv_lib_dl_dlopen=no
11201 fi
11202 rm -f core conftest.err conftest.$ac_objext \
11203 conftest$ac_exeext conftest.$ac_ext
11204 LIBS=$ac_check_lib_save_LIBS
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11207 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11208 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11209 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11210 else
11211
11212 lt_cv_dlopen="dyld"
11213 lt_cv_dlopen_libs=
11214 lt_cv_dlopen_self=yes
11215
11216 fi
11217
11218 ;;
11219
11220 *)
11221 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11222 if test "x$ac_cv_func_shl_load" = x""yes; then :
11223 lt_cv_dlopen="shl_load"
11224 else
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11226 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldld $LIBS"
11232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11234
11235 /* Override any GCC internal prototype to avoid an error.
11236 Use char because int might match the return type of a GCC
11237 builtin and then its argument prototype would still apply. */
11238 #ifdef __cplusplus
11239 extern "C"
11240 #endif
11241 char shl_load ();
11242 int
11243 main ()
11244 {
11245 return shl_load ();
11246 ;
11247 return 0;
11248 }
11249 _ACEOF
11250 if ac_fn_c_try_link "$LINENO"; then :
11251 ac_cv_lib_dld_shl_load=yes
11252 else
11253 ac_cv_lib_dld_shl_load=no
11254 fi
11255 rm -f core conftest.err conftest.$ac_objext \
11256 conftest$ac_exeext conftest.$ac_ext
11257 LIBS=$ac_check_lib_save_LIBS
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11260 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11261 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11263 else
11264 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11265 if test "x$ac_cv_func_dlopen" = x""yes; then :
11266 lt_cv_dlopen="dlopen"
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11269 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11270 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11271 $as_echo_n "(cached) " >&6
11272 else
11273 ac_check_lib_save_LIBS=$LIBS
11274 LIBS="-ldl $LIBS"
11275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11276 /* end confdefs.h. */
11277
11278 /* Override any GCC internal prototype to avoid an error.
11279 Use char because int might match the return type of a GCC
11280 builtin and then its argument prototype would still apply. */
11281 #ifdef __cplusplus
11282 extern "C"
11283 #endif
11284 char dlopen ();
11285 int
11286 main ()
11287 {
11288 return dlopen ();
11289 ;
11290 return 0;
11291 }
11292 _ACEOF
11293 if ac_fn_c_try_link "$LINENO"; then :
11294 ac_cv_lib_dl_dlopen=yes
11295 else
11296 ac_cv_lib_dl_dlopen=no
11297 fi
11298 rm -f core conftest.err conftest.$ac_objext \
11299 conftest$ac_exeext conftest.$ac_ext
11300 LIBS=$ac_check_lib_save_LIBS
11301 fi
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11303 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11304 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11305 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11306 else
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11308 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11309 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
11311 else
11312 ac_check_lib_save_LIBS=$LIBS
11313 LIBS="-lsvld $LIBS"
11314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315 /* end confdefs.h. */
11316
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char dlopen ();
11324 int
11325 main ()
11326 {
11327 return dlopen ();
11328 ;
11329 return 0;
11330 }
11331 _ACEOF
11332 if ac_fn_c_try_link "$LINENO"; then :
11333 ac_cv_lib_svld_dlopen=yes
11334 else
11335 ac_cv_lib_svld_dlopen=no
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11339 LIBS=$ac_check_lib_save_LIBS
11340 fi
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11342 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11343 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11347 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11348 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351 ac_check_lib_save_LIBS=$LIBS
11352 LIBS="-ldld $LIBS"
11353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11359 #ifdef __cplusplus
11360 extern "C"
11361 #endif
11362 char dld_link ();
11363 int
11364 main ()
11365 {
11366 return dld_link ();
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 if ac_fn_c_try_link "$LINENO"; then :
11372 ac_cv_lib_dld_dld_link=yes
11373 else
11374 ac_cv_lib_dld_dld_link=no
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext \
11377 conftest$ac_exeext conftest.$ac_ext
11378 LIBS=$ac_check_lib_save_LIBS
11379 fi
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11381 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11382 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11383 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11384 fi
11385
11386
11387 fi
11388
11389
11390 fi
11391
11392
11393 fi
11394
11395
11396 fi
11397
11398
11399 fi
11400
11401 ;;
11402 esac
11403
11404 if test "x$lt_cv_dlopen" != xno; then
11405 enable_dlopen=yes
11406 else
11407 enable_dlopen=no
11408 fi
11409
11410 case $lt_cv_dlopen in
11411 dlopen)
11412 save_CPPFLAGS="$CPPFLAGS"
11413 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11414
11415 save_LDFLAGS="$LDFLAGS"
11416 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11417
11418 save_LIBS="$LIBS"
11419 LIBS="$lt_cv_dlopen_libs $LIBS"
11420
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11422 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11423 if test "${lt_cv_dlopen_self+set}" = set; then :
11424 $as_echo_n "(cached) " >&6
11425 else
11426 if test "$cross_compiling" = yes; then :
11427 lt_cv_dlopen_self=cross
11428 else
11429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11430 lt_status=$lt_dlunknown
11431 cat > conftest.$ac_ext <<_LT_EOF
11432 #line 11431 "configure"
11433 #include "confdefs.h"
11434
11435 #if HAVE_DLFCN_H
11436 #include <dlfcn.h>
11437 #endif
11438
11439 #include <stdio.h>
11440
11441 #ifdef RTLD_GLOBAL
11442 # define LT_DLGLOBAL RTLD_GLOBAL
11443 #else
11444 # ifdef DL_GLOBAL
11445 # define LT_DLGLOBAL DL_GLOBAL
11446 # else
11447 # define LT_DLGLOBAL 0
11448 # endif
11449 #endif
11450
11451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11452 find out it does not work in some platform. */
11453 #ifndef LT_DLLAZY_OR_NOW
11454 # ifdef RTLD_LAZY
11455 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11456 # else
11457 # ifdef DL_LAZY
11458 # define LT_DLLAZY_OR_NOW DL_LAZY
11459 # else
11460 # ifdef RTLD_NOW
11461 # define LT_DLLAZY_OR_NOW RTLD_NOW
11462 # else
11463 # ifdef DL_NOW
11464 # define LT_DLLAZY_OR_NOW DL_NOW
11465 # else
11466 # define LT_DLLAZY_OR_NOW 0
11467 # endif
11468 # endif
11469 # endif
11470 # endif
11471 #endif
11472
11473 /* When -fvisbility=hidden is used, assume the code has been annotated
11474 correspondingly for the symbols needed. */
11475 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11476 void fnord () __attribute__((visibility("default")));
11477 #endif
11478
11479 void fnord () { int i=42; }
11480 int main ()
11481 {
11482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11483 int status = $lt_dlunknown;
11484
11485 if (self)
11486 {
11487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11488 else
11489 {
11490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11491 else puts (dlerror ());
11492 }
11493 /* dlclose (self); */
11494 }
11495 else
11496 puts (dlerror ());
11497
11498 return status;
11499 }
11500 _LT_EOF
11501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11502 (eval $ac_link) 2>&5
11503 ac_status=$?
11504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11505 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11506 (./conftest; exit; ) >&5 2>/dev/null
11507 lt_status=$?
11508 case x$lt_status in
11509 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11510 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11511 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11512 esac
11513 else :
11514 # compilation failed
11515 lt_cv_dlopen_self=no
11516 fi
11517 fi
11518 rm -fr conftest*
11519
11520
11521 fi
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11523 $as_echo "$lt_cv_dlopen_self" >&6; }
11524
11525 if test "x$lt_cv_dlopen_self" = xyes; then
11526 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11528 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11529 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11530 $as_echo_n "(cached) " >&6
11531 else
11532 if test "$cross_compiling" = yes; then :
11533 lt_cv_dlopen_self_static=cross
11534 else
11535 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11536 lt_status=$lt_dlunknown
11537 cat > conftest.$ac_ext <<_LT_EOF
11538 #line 11537 "configure"
11539 #include "confdefs.h"
11540
11541 #if HAVE_DLFCN_H
11542 #include <dlfcn.h>
11543 #endif
11544
11545 #include <stdio.h>
11546
11547 #ifdef RTLD_GLOBAL
11548 # define LT_DLGLOBAL RTLD_GLOBAL
11549 #else
11550 # ifdef DL_GLOBAL
11551 # define LT_DLGLOBAL DL_GLOBAL
11552 # else
11553 # define LT_DLGLOBAL 0
11554 # endif
11555 #endif
11556
11557 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11558 find out it does not work in some platform. */
11559 #ifndef LT_DLLAZY_OR_NOW
11560 # ifdef RTLD_LAZY
11561 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11562 # else
11563 # ifdef DL_LAZY
11564 # define LT_DLLAZY_OR_NOW DL_LAZY
11565 # else
11566 # ifdef RTLD_NOW
11567 # define LT_DLLAZY_OR_NOW RTLD_NOW
11568 # else
11569 # ifdef DL_NOW
11570 # define LT_DLLAZY_OR_NOW DL_NOW
11571 # else
11572 # define LT_DLLAZY_OR_NOW 0
11573 # endif
11574 # endif
11575 # endif
11576 # endif
11577 #endif
11578
11579 /* When -fvisbility=hidden is used, assume the code has been annotated
11580 correspondingly for the symbols needed. */
11581 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11582 void fnord () __attribute__((visibility("default")));
11583 #endif
11584
11585 void fnord () { int i=42; }
11586 int main ()
11587 {
11588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11589 int status = $lt_dlunknown;
11590
11591 if (self)
11592 {
11593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11594 else
11595 {
11596 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11597 else puts (dlerror ());
11598 }
11599 /* dlclose (self); */
11600 }
11601 else
11602 puts (dlerror ());
11603
11604 return status;
11605 }
11606 _LT_EOF
11607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11608 (eval $ac_link) 2>&5
11609 ac_status=$?
11610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11612 (./conftest; exit; ) >&5 2>/dev/null
11613 lt_status=$?
11614 case x$lt_status in
11615 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11616 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11617 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11618 esac
11619 else :
11620 # compilation failed
11621 lt_cv_dlopen_self_static=no
11622 fi
11623 fi
11624 rm -fr conftest*
11625
11626
11627 fi
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11629 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11630 fi
11631
11632 CPPFLAGS="$save_CPPFLAGS"
11633 LDFLAGS="$save_LDFLAGS"
11634 LIBS="$save_LIBS"
11635 ;;
11636 esac
11637
11638 case $lt_cv_dlopen_self in
11639 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11640 *) enable_dlopen_self=unknown ;;
11641 esac
11642
11643 case $lt_cv_dlopen_self_static in
11644 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11645 *) enable_dlopen_self_static=unknown ;;
11646 esac
11647 fi
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665 striplib=
11666 old_striplib=
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11668 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11669 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11670 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11671 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11673 $as_echo "yes" >&6; }
11674 else
11675 # FIXME - insert some real tests, host_os isn't really good enough
11676 case $host_os in
11677 darwin*)
11678 if test -n "$STRIP" ; then
11679 striplib="$STRIP -x"
11680 old_striplib="$STRIP -S"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 fi
11687 ;;
11688 *)
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690 $as_echo "no" >&6; }
11691 ;;
11692 esac
11693 fi
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706 # Report which library types will actually be built
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11708 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11710 $as_echo "$can_build_shared" >&6; }
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11713 $as_echo_n "checking whether to build shared libraries... " >&6; }
11714 test "$can_build_shared" = "no" && enable_shared=no
11715
11716 # On AIX, shared libraries and static libraries use the same namespace, and
11717 # are all built from PIC.
11718 case $host_os in
11719 aix3*)
11720 test "$enable_shared" = yes && enable_static=no
11721 if test -n "$RANLIB"; then
11722 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11723 postinstall_cmds='$RANLIB $lib'
11724 fi
11725 ;;
11726
11727 aix[4-9]*)
11728 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11729 test "$enable_shared" = yes && enable_static=no
11730 fi
11731 ;;
11732 esac
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11734 $as_echo "$enable_shared" >&6; }
11735
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11737 $as_echo_n "checking whether to build static libraries... " >&6; }
11738 # Make sure either enable_shared or enable_static is yes.
11739 test "$enable_shared" = yes || enable_static=yes
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11741 $as_echo "$enable_static" >&6; }
11742
11743
11744
11745
11746 fi
11747 ac_ext=c
11748 ac_cpp='$CPP $CPPFLAGS'
11749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11752
11753 CC="$lt_save_CC"
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 ac_config_commands="$ac_config_commands libtool"
11768
11769
11770
11771
11772 # Only expand once:
11773
11774
11775
11776 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11777
11778 # The tests for host and target for $enable_largefile require
11779 # canonical names.
11780
11781
11782
11783 # As the $enable_largefile decision depends on --enable-plugins we must set it
11784 # even in directories otherwise not depending on the $plugins option.
11785
11786
11787 maybe_plugins=no
11788 for ac_header in dlfcn.h
11789 do :
11790 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11791 "
11792 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DLFCN_H 1
11795 _ACEOF
11796 maybe_plugins=yes
11797 fi
11798
11799 done
11800
11801 for ac_header in windows.h
11802 do :
11803 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11804 "
11805 if test "x$ac_cv_header_windows_h" = x""yes; then :
11806 cat >>confdefs.h <<_ACEOF
11807 #define HAVE_WINDOWS_H 1
11808 _ACEOF
11809 maybe_plugins=yes
11810 fi
11811
11812 done
11813
11814
11815 # Check whether --enable-plugins was given.
11816 if test "${enable_plugins+set}" = set; then :
11817 enableval=$enable_plugins; case "${enableval}" in
11818 no) plugins=no ;;
11819 *) plugins=yes
11820 if test "$maybe_plugins" != "yes" ; then
11821 as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11822 fi ;;
11823 esac
11824 else
11825 plugins=$maybe_plugins
11826
11827 fi
11828
11829 if test "$plugins" = "yes"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11831 $as_echo_n "checking for library containing dlopen... " >&6; }
11832 if test "${ac_cv_search_dlopen+set}" = set; then :
11833 $as_echo_n "(cached) " >&6
11834 else
11835 ac_func_search_save_LIBS=$LIBS
11836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11837 /* end confdefs.h. */
11838
11839 /* Override any GCC internal prototype to avoid an error.
11840 Use char because int might match the return type of a GCC
11841 builtin and then its argument prototype would still apply. */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char dlopen ();
11846 int
11847 main ()
11848 {
11849 return dlopen ();
11850 ;
11851 return 0;
11852 }
11853 _ACEOF
11854 for ac_lib in '' dl; do
11855 if test -z "$ac_lib"; then
11856 ac_res="none required"
11857 else
11858 ac_res=-l$ac_lib
11859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11860 fi
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 ac_cv_search_dlopen=$ac_res
11863 fi
11864 rm -f core conftest.err conftest.$ac_objext \
11865 conftest$ac_exeext
11866 if test "${ac_cv_search_dlopen+set}" = set; then :
11867 break
11868 fi
11869 done
11870 if test "${ac_cv_search_dlopen+set}" = set; then :
11871
11872 else
11873 ac_cv_search_dlopen=no
11874 fi
11875 rm conftest.$ac_ext
11876 LIBS=$ac_func_search_save_LIBS
11877 fi
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11879 $as_echo "$ac_cv_search_dlopen" >&6; }
11880 ac_res=$ac_cv_search_dlopen
11881 if test "$ac_res" != no; then :
11882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11883
11884 fi
11885
11886 fi
11887
11888
11889 case "${host}" in
11890 sparc-*-solaris*|i[3-7]86-*-solaris*)
11891 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11892 # are mutually exclusive; and without procfs support, the bfd/ elf module
11893 # cannot provide certain routines such as elfcore_write_prpsinfo
11894 # or elfcore_write_prstatus. So unless the user explicitly requested
11895 # large-file support through the --enable-largefile switch, disable
11896 # large-file support in favor of procfs support.
11897 test "${target}" = "${host}" -a "x$plugins" = xno \
11898 && : ${enable_largefile="no"}
11899 ;;
11900 esac
11901
11902 # Check whether --enable-largefile was given.
11903 if test "${enable_largefile+set}" = set; then :
11904 enableval=$enable_largefile;
11905 fi
11906
11907 if test "$enable_largefile" != no; then
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11910 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11911 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
11913 else
11914 ac_cv_sys_largefile_CC=no
11915 if test "$GCC" != yes; then
11916 ac_save_CC=$CC
11917 while :; do
11918 # IRIX 6.2 and later do not support large files by default,
11919 # so use the C compiler's -n32 option if that helps.
11920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <sys/types.h>
11923 /* Check that off_t can represent 2**63 - 1 correctly.
11924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11925 since some C++ compilers masquerading as C compilers
11926 incorrectly reject 9223372036854775807. */
11927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11929 && LARGE_OFF_T % 2147483647 == 1)
11930 ? 1 : -1];
11931 int
11932 main ()
11933 {
11934
11935 ;
11936 return 0;
11937 }
11938 _ACEOF
11939 if ac_fn_c_try_compile "$LINENO"; then :
11940 break
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext
11943 CC="$CC -n32"
11944 if ac_fn_c_try_compile "$LINENO"; then :
11945 ac_cv_sys_largefile_CC=' -n32'; break
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext
11948 break
11949 done
11950 CC=$ac_save_CC
11951 rm -f conftest.$ac_ext
11952 fi
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11955 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11956 if test "$ac_cv_sys_largefile_CC" != no; then
11957 CC=$CC$ac_cv_sys_largefile_CC
11958 fi
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11961 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11962 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965 while :; do
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <sys/types.h>
11969 /* Check that off_t can represent 2**63 - 1 correctly.
11970 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11971 since some C++ compilers masquerading as C compilers
11972 incorrectly reject 9223372036854775807. */
11973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11974 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11975 && LARGE_OFF_T % 2147483647 == 1)
11976 ? 1 : -1];
11977 int
11978 main ()
11979 {
11980
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_compile "$LINENO"; then :
11986 ac_cv_sys_file_offset_bits=no; break
11987 fi
11988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990 /* end confdefs.h. */
11991 #define _FILE_OFFSET_BITS 64
11992 #include <sys/types.h>
11993 /* Check that off_t can represent 2**63 - 1 correctly.
11994 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11995 since some C++ compilers masquerading as C compilers
11996 incorrectly reject 9223372036854775807. */
11997 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11998 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11999 && LARGE_OFF_T % 2147483647 == 1)
12000 ? 1 : -1];
12001 int
12002 main ()
12003 {
12004
12005 ;
12006 return 0;
12007 }
12008 _ACEOF
12009 if ac_fn_c_try_compile "$LINENO"; then :
12010 ac_cv_sys_file_offset_bits=64; break
12011 fi
12012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12013 ac_cv_sys_file_offset_bits=unknown
12014 break
12015 done
12016 fi
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12018 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12019 case $ac_cv_sys_file_offset_bits in #(
12020 no | unknown) ;;
12021 *)
12022 cat >>confdefs.h <<_ACEOF
12023 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12024 _ACEOF
12025 ;;
12026 esac
12027 rm -rf conftest*
12028 if test $ac_cv_sys_file_offset_bits = unknown; then
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12030 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12031 if test "${ac_cv_sys_large_files+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
12033 else
12034 while :; do
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 #include <sys/types.h>
12038 /* Check that off_t can represent 2**63 - 1 correctly.
12039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12040 since some C++ compilers masquerading as C compilers
12041 incorrectly reject 9223372036854775807. */
12042 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12044 && LARGE_OFF_T % 2147483647 == 1)
12045 ? 1 : -1];
12046 int
12047 main ()
12048 {
12049
12050 ;
12051 return 0;
12052 }
12053 _ACEOF
12054 if ac_fn_c_try_compile "$LINENO"; then :
12055 ac_cv_sys_large_files=no; break
12056 fi
12057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060 #define _LARGE_FILES 1
12061 #include <sys/types.h>
12062 /* Check that off_t can represent 2**63 - 1 correctly.
12063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12064 since some C++ compilers masquerading as C compilers
12065 incorrectly reject 9223372036854775807. */
12066 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12068 && LARGE_OFF_T % 2147483647 == 1)
12069 ? 1 : -1];
12070 int
12071 main ()
12072 {
12073
12074 ;
12075 return 0;
12076 }
12077 _ACEOF
12078 if ac_fn_c_try_compile "$LINENO"; then :
12079 ac_cv_sys_large_files=1; break
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12082 ac_cv_sys_large_files=unknown
12083 break
12084 done
12085 fi
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12087 $as_echo "$ac_cv_sys_large_files" >&6; }
12088 case $ac_cv_sys_large_files in #(
12089 no | unknown) ;;
12090 *)
12091 cat >>confdefs.h <<_ACEOF
12092 #define _LARGE_FILES $ac_cv_sys_large_files
12093 _ACEOF
12094 ;;
12095 esac
12096 rm -rf conftest*
12097 fi
12098 fi
12099
12100
12101
12102 if test "$plugins" = "yes"; then
12103 PLUGINS_TRUE=
12104 PLUGINS_FALSE='#'
12105 else
12106 PLUGINS_TRUE='#'
12107 PLUGINS_FALSE=
12108 fi
12109
12110
12111 if test "$plugins" = "yes"; then
12112 enable_targets="$enable_targets plugin"
12113 fi
12114
12115 # Check whether --enable-64-bit-bfd was given.
12116 if test "${enable_64_bit_bfd+set}" = set; then :
12117 enableval=$enable_64_bit_bfd; case "${enableval}" in
12118 yes) want64=true ;;
12119 no) want64=false ;;
12120 *) as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12121 esac
12122 else
12123 want64=false
12124 fi
12125
12126 # Check whether --enable-targets was given.
12127 if test "${enable_targets+set}" = set; then :
12128 enableval=$enable_targets; case "${enableval}" in
12129 yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12130 ;;
12131 no) enable_targets= ;;
12132 *) enable_targets=$enableval ;;
12133 esac
12134 fi
12135
12136 # Check whether --enable-64_bit_archive was given.
12137 if test "${enable_64_bit_archive+set}" = set; then :
12138 enableval=$enable_64_bit_archive; case "${enableval}" in
12139 yes) want_64_bit_archive=true ;;
12140 no) want_64_bit_archive=false ;;
12141 *) as_fn_error "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12142 esac
12143 else
12144 want_64_bit_archive=unset
12145 fi
12146
12147
12148 # Check whether --with-mmap was given.
12149 if test "${with_mmap+set}" = set; then :
12150 withval=$with_mmap; case "${withval}" in
12151 yes) want_mmap=true ;;
12152 no) want_mmap=false ;;
12153 *) as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12154 esac
12155 else
12156 want_mmap=false
12157 fi
12158
12159 # Check whether --enable-secureplt was given.
12160 if test "${enable_secureplt+set}" = set; then :
12161 enableval=$enable_secureplt; case "${enableval}" in
12162 yes) use_secureplt=true ;;
12163 no) use_secureplt=false ;;
12164 *) as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12165 esac
12166 else
12167 use_secureplt=false
12168 fi
12169 if test $use_secureplt = true; then
12170
12171 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12172
12173 fi
12174
12175 # Check whether --enable-leading-mingw64-underscores was given.
12176 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12177 enableval=$enable_leading_mingw64_underscores;
12178 fi
12179
12180 if test x"$enable_leading_mingw64_underscores" = xyes ; then :
12181
12182 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12183
12184 fi
12185
12186 DEBUGDIR=${libdir}/debug
12187
12188 # Check whether --with-separate-debug-dir was given.
12189 if test "${with_separate_debug_dir+set}" = set; then :
12190 withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12191 fi
12192
12193
12194
12195
12196
12197 # Check whether --with-pkgversion was given.
12198 if test "${with_pkgversion+set}" = set; then :
12199 withval=$with_pkgversion; case "$withval" in
12200 yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12201 no) PKGVERSION= ;;
12202 *) PKGVERSION="($withval) " ;;
12203 esac
12204 else
12205 PKGVERSION="(GNU Binutils) "
12206
12207 fi
12208
12209
12210
12211
12212
12213 # Check whether --with-bugurl was given.
12214 if test "${with_bugurl+set}" = set; then :
12215 withval=$with_bugurl; case "$withval" in
12216 yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12217 no) BUGURL=
12218 ;;
12219 *) BUGURL="$withval"
12220 ;;
12221 esac
12222 else
12223 BUGURL="http://www.sourceware.org/bugzilla/"
12224
12225 fi
12226
12227 case ${BUGURL} in
12228 "")
12229 REPORT_BUGS_TO=
12230 REPORT_BUGS_TEXI=
12231 ;;
12232 *)
12233 REPORT_BUGS_TO="<$BUGURL>"
12234 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12235 ;;
12236 esac;
12237
12238
12239
12240
12241
12242 # Set the 'development' global.
12243 . $srcdir/../bfd/development.sh
12244
12245 # Set acp_cpp_for_build variable
12246 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12247
12248 # Default set of GCC warnings to enable.
12249 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12250 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12251
12252 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12254 /* end confdefs.h. */
12255 __GNUC__
12256 _ACEOF
12257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12258 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12259
12260 else
12261 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12262 fi
12263 rm -f conftest*
12264
12265
12266 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269 __GNUC__
12270 _ACEOF
12271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12272 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12273
12274 else
12275 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12276 fi
12277 rm -f conftest*
12278
12279
12280 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12281 WARN_WRITE_STRINGS=""
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284 __GNUC__
12285 _ACEOF
12286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12287 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12288
12289 else
12290 WARN_WRITE_STRINGS="-Wwrite-strings"
12291 fi
12292 rm -f conftest*
12293
12294
12295 # Verify CC_FOR_BUILD to be compatible with warning flags
12296
12297 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299 /* end confdefs.h. */
12300 __GNUC__
12301 _ACEOF
12302 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12303 $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12304
12305 else
12306 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12307 fi
12308 rm -f conftest*
12309
12310
12311 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314 __GNUC__
12315 _ACEOF
12316 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12317 $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12318
12319 else
12320 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12321 fi
12322 rm -f conftest*
12323
12324
12325 # Check whether --enable-werror was given.
12326 if test "${enable_werror+set}" = set; then :
12327 enableval=$enable_werror; case "${enableval}" in
12328 yes | y) ERROR_ON_WARNING="yes" ;;
12329 no | n) ERROR_ON_WARNING="no" ;;
12330 *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12331 esac
12332 fi
12333
12334
12335 # Disable -Wformat by default when using gcc on mingw
12336 case "${host}" in
12337 *-*-mingw32*)
12338 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12339 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12340 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12341 fi
12342 ;;
12343 *) ;;
12344 esac
12345
12346 # Enable -Werror by default when using gcc. Turn it off for releases.
12347 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12348 ERROR_ON_WARNING=yes
12349 fi
12350
12351 NO_WERROR=
12352 if test "${ERROR_ON_WARNING}" = yes ; then
12353 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12354 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12355 NO_WERROR="-Wno-error"
12356 fi
12357
12358 if test "${GCC}" = yes ; then
12359 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12360 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12361 fi
12362
12363 # Check whether --enable-build-warnings was given.
12364 if test "${enable_build_warnings+set}" = set; then :
12365 enableval=$enable_build_warnings; case "${enableval}" in
12366 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12367 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12368 no) if test "${GCC}" = yes ; then
12369 WARN_CFLAGS="-w"
12370 WARN_CFLAGS_FOR_BUILD="-w"
12371 fi;;
12372 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12373 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12374 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12375 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
12376 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12377 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12378 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12379 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12380 esac
12381 fi
12382
12383
12384 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12385 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12386 fi
12387
12388
12389
12390
12391
12392
12393
12394 ac_config_headers="$ac_config_headers config.h:config.in"
12395
12396
12397 # PR 14072
12398
12399
12400 if test -z "$target" ; then
12401 as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12402 fi
12403
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12406 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12407 # Check whether --enable-maintainer-mode was given.
12408 if test "${enable_maintainer_mode+set}" = set; then :
12409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12410 else
12411 USE_MAINTAINER_MODE=no
12412 fi
12413
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12415 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12416 if test $USE_MAINTAINER_MODE = yes; then
12417 MAINTAINER_MODE_TRUE=
12418 MAINTAINER_MODE_FALSE='#'
12419 else
12420 MAINTAINER_MODE_TRUE='#'
12421 MAINTAINER_MODE_FALSE=
12422 fi
12423
12424 MAINT=$MAINTAINER_MODE_TRUE
12425
12426
12427 if false; then
12428 GENINSRC_NEVER_TRUE=
12429 GENINSRC_NEVER_FALSE='#'
12430 else
12431 GENINSRC_NEVER_TRUE='#'
12432 GENINSRC_NEVER_FALSE=
12433 fi
12434
12435 case ${build_alias} in
12436 "") build_noncanonical=${build} ;;
12437 *) build_noncanonical=${build_alias} ;;
12438 esac
12439
12440 case ${host_alias} in
12441 "") host_noncanonical=${build_noncanonical} ;;
12442 *) host_noncanonical=${host_alias} ;;
12443 esac
12444
12445 case ${target_alias} in
12446 "") target_noncanonical=${host_noncanonical} ;;
12447 *) target_noncanonical=${target_alias} ;;
12448 esac
12449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12451 $as_echo_n "checking whether to install libbfd... " >&6; }
12452 # Check whether --enable-install-libbfd was given.
12453 if test "${enable_install_libbfd+set}" = set; then :
12454 enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12455 else
12456 if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12457 install_libbfd_p=yes
12458 else
12459 install_libbfd_p=no
12460 fi
12461 fi
12462
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12464 $as_echo "$install_libbfd_p" >&6; }
12465 if test $install_libbfd_p = yes; then
12466 INSTALL_LIBBFD_TRUE=
12467 INSTALL_LIBBFD_FALSE='#'
12468 else
12469 INSTALL_LIBBFD_TRUE='#'
12470 INSTALL_LIBBFD_FALSE=
12471 fi
12472
12473 # Need _noncanonical variables for this.
12474
12475
12476
12477
12478 # libbfd.a is a host library containing target dependent code
12479 bfdlibdir='$(libdir)'
12480 bfdincludedir='$(includedir)'
12481 if test "${host}" != "${target}"; then
12482 bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12483 bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12484 fi
12485
12486
12487
12488
12489
12490
12491
12492
12493 host64=false
12494 target64=false
12495 bfd_default_target_size=32
12496
12497 # host stuff:
12498
12499 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk sr"
12500 # If we haven't got the data from the intl directory,
12501 # assume NLS is disabled.
12502 USE_NLS=no
12503 LIBINTL=
12504 LIBINTL_DEP=
12505 INCINTL=
12506 XGETTEXT=
12507 GMSGFMT=
12508 POSUB=
12509
12510 if test -f ../intl/config.intl; then
12511 . ../intl/config.intl
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12514 $as_echo_n "checking whether NLS is requested... " >&6; }
12515 if test x"$USE_NLS" != xyes; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12520 $as_echo "yes" >&6; }
12521
12522 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12523
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12526 $as_echo_n "checking for catalogs to be installed... " >&6; }
12527 # Look for .po and .gmo files in the source directory.
12528 CATALOGS=
12529 XLINGUAS=
12530 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12531 # If there aren't any .gmo files the shell will give us the
12532 # literal string "../path/to/srcdir/po/*.gmo" which has to be
12533 # weeded out.
12534 case "$cat" in *\**)
12535 continue;;
12536 esac
12537 # The quadruple backslash is collapsed to a double backslash
12538 # by the backticks, then collapsed again by the double quotes,
12539 # leaving us with one backslash in the sed expression (right
12540 # before the dot that mustn't act as a wildcard).
12541 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12542 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12543 # The user is allowed to set LINGUAS to a list of languages to
12544 # install catalogs for. If it's empty that means "all of them."
12545 if test "x$LINGUAS" = x; then
12546 CATALOGS="$CATALOGS $cat"
12547 XLINGUAS="$XLINGUAS $lang"
12548 else
12549 case "$LINGUAS" in *$lang*)
12550 CATALOGS="$CATALOGS $cat"
12551 XLINGUAS="$XLINGUAS $lang"
12552 ;;
12553 esac
12554 fi
12555 done
12556 LINGUAS="$XLINGUAS"
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12558 $as_echo "$LINGUAS" >&6; }
12559
12560
12561 DATADIRNAME=share
12562
12563 INSTOBJEXT=.mo
12564
12565 GENCAT=gencat
12566
12567 CATOBJEXT=.gmo
12568
12569 fi
12570
12571 MKINSTALLDIRS=
12572 if test -n "$ac_aux_dir"; then
12573 case "$ac_aux_dir" in
12574 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12575 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12576 esac
12577 fi
12578 if test -z "$MKINSTALLDIRS"; then
12579 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12580 fi
12581
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12585 $as_echo_n "checking whether NLS is requested... " >&6; }
12586 # Check whether --enable-nls was given.
12587 if test "${enable_nls+set}" = set; then :
12588 enableval=$enable_nls; USE_NLS=$enableval
12589 else
12590 USE_NLS=yes
12591 fi
12592
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12594 $as_echo "$USE_NLS" >&6; }
12595
12596
12597
12598
12599
12600
12601 # Prepare PATH_SEPARATOR.
12602 # The user is always right.
12603 if test "${PATH_SEPARATOR+set}" != set; then
12604 echo "#! /bin/sh" >conf$$.sh
12605 echo "exit 0" >>conf$$.sh
12606 chmod +x conf$$.sh
12607 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12608 PATH_SEPARATOR=';'
12609 else
12610 PATH_SEPARATOR=:
12611 fi
12612 rm -f conf$$.sh
12613 fi
12614
12615 # Find out how to test for executable files. Don't use a zero-byte file,
12616 # as systems may use methods other than mode bits to determine executability.
12617 cat >conf$$.file <<_ASEOF
12618 #! /bin/sh
12619 exit 0
12620 _ASEOF
12621 chmod +x conf$$.file
12622 if test -x conf$$.file >/dev/null 2>&1; then
12623 ac_executable_p="test -x"
12624 else
12625 ac_executable_p="test -f"
12626 fi
12627 rm -f conf$$.file
12628
12629 # Extract the first word of "msgfmt", so it can be a program name with args.
12630 set dummy msgfmt; ac_word=$2
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632 $as_echo_n "checking for $ac_word... " >&6; }
12633 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 case "$MSGFMT" in
12637 [\\/]* | ?:[\\/]*)
12638 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12639 ;;
12640 *)
12641 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12642 for ac_dir in $PATH; do
12643 IFS="$ac_save_IFS"
12644 test -z "$ac_dir" && ac_dir=.
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12647 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12648 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12649 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12650 break 2
12651 fi
12652 fi
12653 done
12654 done
12655 IFS="$ac_save_IFS"
12656 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12657 ;;
12658 esac
12659 fi
12660 MSGFMT="$ac_cv_path_MSGFMT"
12661 if test "$MSGFMT" != ":"; then
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12663 $as_echo "$MSGFMT" >&6; }
12664 else
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666 $as_echo "no" >&6; }
12667 fi
12668
12669 # Extract the first word of "gmsgfmt", so it can be a program name with args.
12670 set dummy gmsgfmt; ac_word=$2
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12672 $as_echo_n "checking for $ac_word... " >&6; }
12673 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 case $GMSGFMT in
12677 [\\/]* | ?:[\\/]*)
12678 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12679 ;;
12680 *)
12681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12682 for as_dir in $PATH
12683 do
12684 IFS=$as_save_IFS
12685 test -z "$as_dir" && as_dir=.
12686 for ac_exec_ext in '' $ac_executable_extensions; do
12687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12688 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12690 break 2
12691 fi
12692 done
12693 done
12694 IFS=$as_save_IFS
12695
12696 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12697 ;;
12698 esac
12699 fi
12700 GMSGFMT=$ac_cv_path_GMSGFMT
12701 if test -n "$GMSGFMT"; then
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12703 $as_echo "$GMSGFMT" >&6; }
12704 else
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12706 $as_echo "no" >&6; }
12707 fi
12708
12709
12710
12711
12712 # Prepare PATH_SEPARATOR.
12713 # The user is always right.
12714 if test "${PATH_SEPARATOR+set}" != set; then
12715 echo "#! /bin/sh" >conf$$.sh
12716 echo "exit 0" >>conf$$.sh
12717 chmod +x conf$$.sh
12718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12719 PATH_SEPARATOR=';'
12720 else
12721 PATH_SEPARATOR=:
12722 fi
12723 rm -f conf$$.sh
12724 fi
12725
12726 # Find out how to test for executable files. Don't use a zero-byte file,
12727 # as systems may use methods other than mode bits to determine executability.
12728 cat >conf$$.file <<_ASEOF
12729 #! /bin/sh
12730 exit 0
12731 _ASEOF
12732 chmod +x conf$$.file
12733 if test -x conf$$.file >/dev/null 2>&1; then
12734 ac_executable_p="test -x"
12735 else
12736 ac_executable_p="test -f"
12737 fi
12738 rm -f conf$$.file
12739
12740 # Extract the first word of "xgettext", so it can be a program name with args.
12741 set dummy xgettext; ac_word=$2
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12743 $as_echo_n "checking for $ac_word... " >&6; }
12744 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12745 $as_echo_n "(cached) " >&6
12746 else
12747 case "$XGETTEXT" in
12748 [\\/]* | ?:[\\/]*)
12749 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12750 ;;
12751 *)
12752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12753 for ac_dir in $PATH; do
12754 IFS="$ac_save_IFS"
12755 test -z "$ac_dir" && ac_dir=.
12756 for ac_exec_ext in '' $ac_executable_extensions; do
12757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12758 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12759 (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
12760 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12761 break 2
12762 fi
12763 fi
12764 done
12765 done
12766 IFS="$ac_save_IFS"
12767 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12768 ;;
12769 esac
12770 fi
12771 XGETTEXT="$ac_cv_path_XGETTEXT"
12772 if test "$XGETTEXT" != ":"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12774 $as_echo "$XGETTEXT" >&6; }
12775 else
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778 fi
12779
12780 rm -f messages.po
12781
12782
12783 # Prepare PATH_SEPARATOR.
12784 # The user is always right.
12785 if test "${PATH_SEPARATOR+set}" != set; then
12786 echo "#! /bin/sh" >conf$$.sh
12787 echo "exit 0" >>conf$$.sh
12788 chmod +x conf$$.sh
12789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12790 PATH_SEPARATOR=';'
12791 else
12792 PATH_SEPARATOR=:
12793 fi
12794 rm -f conf$$.sh
12795 fi
12796
12797 # Find out how to test for executable files. Don't use a zero-byte file,
12798 # as systems may use methods other than mode bits to determine executability.
12799 cat >conf$$.file <<_ASEOF
12800 #! /bin/sh
12801 exit 0
12802 _ASEOF
12803 chmod +x conf$$.file
12804 if test -x conf$$.file >/dev/null 2>&1; then
12805 ac_executable_p="test -x"
12806 else
12807 ac_executable_p="test -f"
12808 fi
12809 rm -f conf$$.file
12810
12811 # Extract the first word of "msgmerge", so it can be a program name with args.
12812 set dummy msgmerge; ac_word=$2
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814 $as_echo_n "checking for $ac_word... " >&6; }
12815 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 case "$MSGMERGE" in
12819 [\\/]* | ?:[\\/]*)
12820 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12821 ;;
12822 *)
12823 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12824 for ac_dir in $PATH; do
12825 IFS="$ac_save_IFS"
12826 test -z "$ac_dir" && ac_dir=.
12827 for ac_exec_ext in '' $ac_executable_extensions; do
12828 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12829 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12830 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12831 break 2
12832 fi
12833 fi
12834 done
12835 done
12836 IFS="$ac_save_IFS"
12837 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12838 ;;
12839 esac
12840 fi
12841 MSGMERGE="$ac_cv_path_MSGMERGE"
12842 if test "$MSGMERGE" != ":"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12844 $as_echo "$MSGMERGE" >&6; }
12845 else
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12848 fi
12849
12850
12851 if test "$GMSGFMT" != ":"; then
12852 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12853 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12854 : ;
12855 else
12856 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12858 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12859 GMSGFMT=":"
12860 fi
12861 fi
12862
12863 if test "$XGETTEXT" != ":"; then
12864 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12865 (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
12866 : ;
12867 else
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12869 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12870 XGETTEXT=":"
12871 fi
12872 rm -f messages.po
12873 fi
12874
12875 ac_config_commands="$ac_config_commands default-1"
12876
12877
12878
12879 # Permit host specific settings.
12880 . ${srcdir}/configure.host
12881
12882
12883
12884
12885 BFD_HOST_64BIT_LONG=0
12886 BFD_HOST_64BIT_LONG_LONG=0
12887 BFD_HOST_64_BIT_DEFINED=0
12888 BFD_HOST_64_BIT=
12889 BFD_HOST_U_64_BIT=
12890 BFD_HOSTPTR_T="unsigned long"
12891
12892 # The cast to long int works around a bug in the HP C Compiler
12893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12895 # This bug is HP SR number 8606223364.
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12897 $as_echo_n "checking size of long long... " >&6; }
12898 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
12900 else
12901 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12902
12903 else
12904 if test "$ac_cv_type_long_long" = yes; then
12905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12907 { as_fn_set_status 77
12908 as_fn_error "cannot compute sizeof (long long)
12909 See \`config.log' for more details." "$LINENO" 5; }; }
12910 else
12911 ac_cv_sizeof_long_long=0
12912 fi
12913 fi
12914
12915 fi
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12917 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12918
12919
12920
12921 cat >>confdefs.h <<_ACEOF
12922 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12923 _ACEOF
12924
12925
12926 # The cast to long int works around a bug in the HP C Compiler
12927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12929 # This bug is HP SR number 8606223364.
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12931 $as_echo_n "checking size of void *... " >&6; }
12932 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
12934 else
12935 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
12936
12937 else
12938 if test "$ac_cv_type_void_p" = yes; then
12939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12941 { as_fn_set_status 77
12942 as_fn_error "cannot compute sizeof (void *)
12943 See \`config.log' for more details." "$LINENO" 5; }; }
12944 else
12945 ac_cv_sizeof_void_p=0
12946 fi
12947 fi
12948
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12951 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12952
12953
12954
12955 cat >>confdefs.h <<_ACEOF
12956 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12957 _ACEOF
12958
12959
12960 # The cast to long int works around a bug in the HP C Compiler
12961 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12962 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12963 # This bug is HP SR number 8606223364.
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12965 $as_echo_n "checking size of long... " >&6; }
12966 if test "${ac_cv_sizeof_long+set}" = set; then :
12967 $as_echo_n "(cached) " >&6
12968 else
12969 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12970
12971 else
12972 if test "$ac_cv_type_long" = yes; then
12973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12975 { as_fn_set_status 77
12976 as_fn_error "cannot compute sizeof (long)
12977 See \`config.log' for more details." "$LINENO" 5; }; }
12978 else
12979 ac_cv_sizeof_long=0
12980 fi
12981 fi
12982
12983 fi
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12985 $as_echo "$ac_cv_sizeof_long" >&6; }
12986
12987
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define SIZEOF_LONG $ac_cv_sizeof_long
12991 _ACEOF
12992
12993
12994
12995 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12996 host64=true
12997 fi
12998
12999 if test "x${ac_cv_sizeof_long}" = "x8"; then
13000 BFD_HOST_64BIT_LONG=1
13001 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13002 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13003 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13004 BFD_HOST_64BIT_LONG_LONG=1
13005 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13006 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13007 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13008 BFD_HOSTPTR_T="unsigned long long"
13009 fi
13010 fi
13011
13012 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13013 BFD_HOST_64_BIT_DEFINED=1
13014 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13015 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13016 fi
13017
13018
13019
13020
13021
13022
13023
13024
13025 # Put a plausible default for CC_FOR_BUILD in Makefile.
13026 if test -z "$CC_FOR_BUILD"; then
13027 if test "x$cross_compiling" = "xno"; then
13028 CC_FOR_BUILD='$(CC)'
13029 else
13030 CC_FOR_BUILD=gcc
13031 fi
13032 fi
13033
13034 # Also set EXEEXT_FOR_BUILD.
13035 if test "x$cross_compiling" = "xno"; then
13036 EXEEXT_FOR_BUILD='$(EXEEXT)'
13037 else
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13039 $as_echo_n "checking for build system executable suffix... " >&6; }
13040 if test "${bfd_cv_build_exeext+set}" = set; then :
13041 $as_echo_n "(cached) " >&6
13042 else
13043 rm -f conftest*
13044 echo 'int main () { return 0; }' > conftest.c
13045 bfd_cv_build_exeext=
13046 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13047 for file in conftest.*; do
13048 case $file in
13049 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13050 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13051 esac
13052 done
13053 rm -f conftest*
13054 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13055 fi
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13057 $as_echo "$bfd_cv_build_exeext" >&6; }
13058 EXEEXT_FOR_BUILD=""
13059 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13060 fi
13061
13062
13063 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
13064 do :
13065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13066 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13067 eval as_val=\$$as_ac_Header
13068 if test "x$as_val" = x""yes; then :
13069 cat >>confdefs.h <<_ACEOF
13070 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13071 _ACEOF
13072
13073 fi
13074
13075 done
13076
13077 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
13078 do :
13079 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13080 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13081 eval as_val=\$$as_ac_Header
13082 if test "x$as_val" = x""yes; then :
13083 cat >>confdefs.h <<_ACEOF
13084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13085 _ACEOF
13086
13087 fi
13088
13089 done
13090
13091
13092
13093 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
13094
13095 acx_cv_header_stdint=stddef.h
13096 acx_cv_header_stdint_kind="(already complete)"
13097 for i in stdint.h $inttype_headers; do
13098 unset ac_cv_type_uintptr_t
13099 unset ac_cv_type_uintmax_t
13100 unset ac_cv_type_int_least32_t
13101 unset ac_cv_type_int_fast32_t
13102 unset ac_cv_type_uint64_t
13103 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13104 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13105 #include <$i>
13106 "
13107 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13108 acx_cv_header_stdint=$i
13109 else
13110 continue
13111 fi
13112
13113 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13114 #include <$i>
13115 "
13116 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13117
13118 else
13119 acx_cv_header_stdint_kind="(mostly complete)"
13120 fi
13121
13122 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13123 #include <$i>
13124 "
13125 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13126
13127 else
13128 acx_cv_header_stdint_kind="(mostly complete)"
13129 fi
13130
13131 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13132 #include <$i>
13133 "
13134 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
13135
13136 else
13137 acx_cv_header_stdint_kind="(mostly complete)"
13138 fi
13139
13140 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13141 #include <$i>
13142 "
13143 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13144
13145 else
13146 acx_cv_header_stdint_kind="(lacks uint64_t)"
13147 fi
13148
13149 break
13150 done
13151 if test "$acx_cv_header_stdint" = stddef.h; then
13152 acx_cv_header_stdint_kind="(lacks uintmax_t)"
13153 for i in stdint.h $inttype_headers; do
13154 unset ac_cv_type_uintptr_t
13155 unset ac_cv_type_uint32_t
13156 unset ac_cv_type_uint64_t
13157 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13158 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13159 #include <$i>
13160 "
13161 if test "x$ac_cv_type_uint32_t" = x""yes; then :
13162 acx_cv_header_stdint=$i
13163 else
13164 continue
13165 fi
13166
13167 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13168 #include <$i>
13169 "
13170 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13171
13172 fi
13173
13174 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13175 #include <$i>
13176 "
13177 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13178
13179 fi
13180
13181 break
13182 done
13183 fi
13184 if test "$acx_cv_header_stdint" = stddef.h; then
13185 acx_cv_header_stdint_kind="(u_intXX_t style)"
13186 for i in sys/types.h $inttype_headers; do
13187 unset ac_cv_type_u_int32_t
13188 unset ac_cv_type_u_int64_t
13189 $as_echo_n "looking for u_intXX_t types in $i, " >&6
13190 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13191 #include <$i>
13192 "
13193 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13194 acx_cv_header_stdint=$i
13195 else
13196 continue
13197 fi
13198
13199 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13200 #include <$i>
13201 "
13202 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
13203
13204 fi
13205
13206 break
13207 done
13208 fi
13209 if test "$acx_cv_header_stdint" = stddef.h; then
13210 acx_cv_header_stdint_kind="(using manual detection)"
13211 fi
13212
13213 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13214 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13215 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13216 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13217 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13218
13219 # ----------------- Summarize what we found so far
13220
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13222 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13223
13224 case `$as_basename -- bfd_stdint.h ||
13225 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13226 Xbfd_stdint.h : 'X\(//\)$' \| \
13227 Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13228 $as_echo X/bfd_stdint.h |
13229 sed '/^.*\/\([^/][^/]*\)\/*$/{
13230 s//\1/
13231 q
13232 }
13233 /^X\/\(\/\/\)$/{
13234 s//\1/
13235 q
13236 }
13237 /^X\/\(\/\).*/{
13238 s//\1/
13239 q
13240 }
13241 s/.*/./; q'` in
13242 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13243 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13244 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13245 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13246 *) ;;
13247 esac
13248
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13250 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13251
13252 # ----------------- done included file, check C basic types --------
13253
13254 # Lacking an uintptr_t? Test size of void *
13255 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13256 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13257 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13258 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13259 # This bug is HP SR number 8606223364.
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13261 $as_echo_n "checking size of void *... " >&6; }
13262 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13263 $as_echo_n "(cached) " >&6
13264 else
13265 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
13266
13267 else
13268 if test "$ac_cv_type_void_p" = yes; then
13269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13271 { as_fn_set_status 77
13272 as_fn_error "cannot compute sizeof (void *)
13273 See \`config.log' for more details." "$LINENO" 5; }; }
13274 else
13275 ac_cv_sizeof_void_p=0
13276 fi
13277 fi
13278
13279 fi
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13281 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13282
13283
13284
13285 cat >>confdefs.h <<_ACEOF
13286 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13287 _ACEOF
13288
13289 ;;
13290 esac
13291
13292 # Lacking an uint64_t? Test size of long
13293 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13294 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13297 # This bug is HP SR number 8606223364.
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13299 $as_echo_n "checking size of long... " >&6; }
13300 if test "${ac_cv_sizeof_long+set}" = set; then :
13301 $as_echo_n "(cached) " >&6
13302 else
13303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13304
13305 else
13306 if test "$ac_cv_type_long" = yes; then
13307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13309 { as_fn_set_status 77
13310 as_fn_error "cannot compute sizeof (long)
13311 See \`config.log' for more details." "$LINENO" 5; }; }
13312 else
13313 ac_cv_sizeof_long=0
13314 fi
13315 fi
13316
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13319 $as_echo "$ac_cv_sizeof_long" >&6; }
13320
13321
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define SIZEOF_LONG $ac_cv_sizeof_long
13325 _ACEOF
13326
13327 ;;
13328 esac
13329
13330 if test $acx_cv_header_stdint = stddef.h; then
13331 # Lacking a good header? Test size of everything and deduce all types.
13332 # The cast to long int works around a bug in the HP C Compiler
13333 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13334 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13335 # This bug is HP SR number 8606223364.
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13337 $as_echo_n "checking size of int... " >&6; }
13338 if test "${ac_cv_sizeof_int+set}" = set; then :
13339 $as_echo_n "(cached) " >&6
13340 else
13341 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13342
13343 else
13344 if test "$ac_cv_type_int" = yes; then
13345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13347 { as_fn_set_status 77
13348 as_fn_error "cannot compute sizeof (int)
13349 See \`config.log' for more details." "$LINENO" 5; }; }
13350 else
13351 ac_cv_sizeof_int=0
13352 fi
13353 fi
13354
13355 fi
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13357 $as_echo "$ac_cv_sizeof_int" >&6; }
13358
13359
13360
13361 cat >>confdefs.h <<_ACEOF
13362 #define SIZEOF_INT $ac_cv_sizeof_int
13363 _ACEOF
13364
13365
13366 # The cast to long int works around a bug in the HP C Compiler
13367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13369 # This bug is HP SR number 8606223364.
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13371 $as_echo_n "checking size of short... " >&6; }
13372 if test "${ac_cv_sizeof_short+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
13374 else
13375 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13376
13377 else
13378 if test "$ac_cv_type_short" = yes; then
13379 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13381 { as_fn_set_status 77
13382 as_fn_error "cannot compute sizeof (short)
13383 See \`config.log' for more details." "$LINENO" 5; }; }
13384 else
13385 ac_cv_sizeof_short=0
13386 fi
13387 fi
13388
13389 fi
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13391 $as_echo "$ac_cv_sizeof_short" >&6; }
13392
13393
13394
13395 cat >>confdefs.h <<_ACEOF
13396 #define SIZEOF_SHORT $ac_cv_sizeof_short
13397 _ACEOF
13398
13399
13400 # The cast to long int works around a bug in the HP C Compiler
13401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13403 # This bug is HP SR number 8606223364.
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13405 $as_echo_n "checking size of char... " >&6; }
13406 if test "${ac_cv_sizeof_char+set}" = set; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13410
13411 else
13412 if test "$ac_cv_type_char" = yes; then
13413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13415 { as_fn_set_status 77
13416 as_fn_error "cannot compute sizeof (char)
13417 See \`config.log' for more details." "$LINENO" 5; }; }
13418 else
13419 ac_cv_sizeof_char=0
13420 fi
13421 fi
13422
13423 fi
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13425 $as_echo "$ac_cv_sizeof_char" >&6; }
13426
13427
13428
13429 cat >>confdefs.h <<_ACEOF
13430 #define SIZEOF_CHAR $ac_cv_sizeof_char
13431 _ACEOF
13432
13433
13434
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13436 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13437 case "$ac_cv_sizeof_char" in
13438 1) acx_cv_type_int8_t=char ;;
13439 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
13440 esac
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13442 $as_echo "$acx_cv_type_int8_t" >&6; }
13443
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13445 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13446 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13447 2:*) acx_cv_type_int16_t=int ;;
13448 *:2) acx_cv_type_int16_t=short ;;
13449 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
13450 esac
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13452 $as_echo "$acx_cv_type_int16_t" >&6; }
13453
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13455 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13456 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13457 4:*) acx_cv_type_int32_t=int ;;
13458 *:4) acx_cv_type_int32_t=long ;;
13459 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
13460 esac
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13462 $as_echo "$acx_cv_type_int32_t" >&6; }
13463 fi
13464
13465 # These tests are here to make the output prettier
13466
13467 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13468 case "$ac_cv_sizeof_long" in
13469 8) acx_cv_type_int64_t=long ;;
13470 esac
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13472 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13474 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13475 fi
13476
13477 # Now we can use the above types
13478
13479 if test "$ac_cv_type_uintptr_t" != yes; then
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13481 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13482 case $ac_cv_sizeof_void_p in
13483 2) acx_cv_type_intptr_t=int16_t ;;
13484 4) acx_cv_type_intptr_t=int32_t ;;
13485 8) acx_cv_type_intptr_t=int64_t ;;
13486 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13487 esac
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13489 $as_echo "$acx_cv_type_intptr_t" >&6; }
13490 fi
13491
13492 # ----------------- done all checks, emit header -------------
13493 ac_config_commands="$ac_config_commands bfd_stdint.h"
13494
13495
13496
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13498 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13499 if test "${ac_cv_header_time+set}" = set; then :
13500 $as_echo_n "(cached) " >&6
13501 else
13502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13503 /* end confdefs.h. */
13504 #include <sys/types.h>
13505 #include <sys/time.h>
13506 #include <time.h>
13507
13508 int
13509 main ()
13510 {
13511 if ((struct tm *) 0)
13512 return 0;
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_compile "$LINENO"; then :
13518 ac_cv_header_time=yes
13519 else
13520 ac_cv_header_time=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13525 $as_echo "$ac_cv_header_time" >&6; }
13526 if test $ac_cv_header_time = yes; then
13527
13528 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13529
13530 fi
13531
13532 ac_header_dirent=no
13533 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13534 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13536 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13538 $as_echo_n "(cached) " >&6
13539 else
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #include <sys/types.h>
13543 #include <$ac_hdr>
13544
13545 int
13546 main ()
13547 {
13548 if ((DIR *) 0)
13549 return 0;
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555 eval "$as_ac_Header=yes"
13556 else
13557 eval "$as_ac_Header=no"
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 eval ac_res=\$$as_ac_Header
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13563 $as_echo "$ac_res" >&6; }
13564 eval as_val=\$$as_ac_Header
13565 if test "x$as_val" = x""yes; then :
13566 cat >>confdefs.h <<_ACEOF
13567 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13568 _ACEOF
13569
13570 ac_header_dirent=$ac_hdr; break
13571 fi
13572
13573 done
13574 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13575 if test $ac_header_dirent = dirent.h; then
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13577 $as_echo_n "checking for library containing opendir... " >&6; }
13578 if test "${ac_cv_search_opendir+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581 ac_func_search_save_LIBS=$LIBS
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584
13585 /* Override any GCC internal prototype to avoid an error.
13586 Use char because int might match the return type of a GCC
13587 builtin and then its argument prototype would still apply. */
13588 #ifdef __cplusplus
13589 extern "C"
13590 #endif
13591 char opendir ();
13592 int
13593 main ()
13594 {
13595 return opendir ();
13596 ;
13597 return 0;
13598 }
13599 _ACEOF
13600 for ac_lib in '' dir; do
13601 if test -z "$ac_lib"; then
13602 ac_res="none required"
13603 else
13604 ac_res=-l$ac_lib
13605 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13606 fi
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 ac_cv_search_opendir=$ac_res
13609 fi
13610 rm -f core conftest.err conftest.$ac_objext \
13611 conftest$ac_exeext
13612 if test "${ac_cv_search_opendir+set}" = set; then :
13613 break
13614 fi
13615 done
13616 if test "${ac_cv_search_opendir+set}" = set; then :
13617
13618 else
13619 ac_cv_search_opendir=no
13620 fi
13621 rm conftest.$ac_ext
13622 LIBS=$ac_func_search_save_LIBS
13623 fi
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13625 $as_echo "$ac_cv_search_opendir" >&6; }
13626 ac_res=$ac_cv_search_opendir
13627 if test "$ac_res" != no; then :
13628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13629
13630 fi
13631
13632 else
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13634 $as_echo_n "checking for library containing opendir... " >&6; }
13635 if test "${ac_cv_search_opendir+set}" = set; then :
13636 $as_echo_n "(cached) " >&6
13637 else
13638 ac_func_search_save_LIBS=$LIBS
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641
13642 /* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645 #ifdef __cplusplus
13646 extern "C"
13647 #endif
13648 char opendir ();
13649 int
13650 main ()
13651 {
13652 return opendir ();
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 for ac_lib in '' x; do
13658 if test -z "$ac_lib"; then
13659 ac_res="none required"
13660 else
13661 ac_res=-l$ac_lib
13662 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13663 fi
13664 if ac_fn_c_try_link "$LINENO"; then :
13665 ac_cv_search_opendir=$ac_res
13666 fi
13667 rm -f core conftest.err conftest.$ac_objext \
13668 conftest$ac_exeext
13669 if test "${ac_cv_search_opendir+set}" = set; then :
13670 break
13671 fi
13672 done
13673 if test "${ac_cv_search_opendir+set}" = set; then :
13674
13675 else
13676 ac_cv_search_opendir=no
13677 fi
13678 rm conftest.$ac_ext
13679 LIBS=$ac_func_search_save_LIBS
13680 fi
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13682 $as_echo "$ac_cv_search_opendir" >&6; }
13683 ac_res=$ac_cv_search_opendir
13684 if test "$ac_res" != no; then :
13685 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13686
13687 fi
13688
13689 fi
13690
13691
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13693 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13694 if test "${gcc_cv_header_string+set}" = set; then :
13695 $as_echo_n "(cached) " >&6
13696 else
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13699 #include <string.h>
13700 #include <strings.h>
13701 int
13702 main ()
13703 {
13704
13705 ;
13706 return 0;
13707 }
13708 _ACEOF
13709 if ac_fn_c_try_compile "$LINENO"; then :
13710 gcc_cv_header_string=yes
13711 else
13712 gcc_cv_header_string=no
13713 fi
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 fi
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13717 $as_echo "$gcc_cv_header_string" >&6; }
13718 if test $gcc_cv_header_string = yes; then
13719
13720 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13721
13722 fi
13723
13724 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13725 do :
13726 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13727 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13728 eval as_val=\$$as_ac_var
13729 if test "x$as_val" = x""yes; then :
13730 cat >>confdefs.h <<_ACEOF
13731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13732 _ACEOF
13733
13734 fi
13735 done
13736
13737 for ac_func in strtoull getrlimit
13738 do :
13739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13740 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13741 eval as_val=\$$as_ac_var
13742 if test "x$as_val" = x""yes; then :
13743 cat >>confdefs.h <<_ACEOF
13744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13745 _ACEOF
13746
13747 fi
13748 done
13749
13750
13751 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13752 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13753 ac_have_decl=1
13754 else
13755 ac_have_decl=0
13756 fi
13757
13758 cat >>confdefs.h <<_ACEOF
13759 #define HAVE_DECL_BASENAME $ac_have_decl
13760 _ACEOF
13761
13762 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13763 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13764 ac_have_decl=1
13765 else
13766 ac_have_decl=0
13767 fi
13768
13769 cat >>confdefs.h <<_ACEOF
13770 #define HAVE_DECL_FTELLO $ac_have_decl
13771 _ACEOF
13772
13773 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13774 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13775 ac_have_decl=1
13776 else
13777 ac_have_decl=0
13778 fi
13779
13780 cat >>confdefs.h <<_ACEOF
13781 #define HAVE_DECL_FTELLO64 $ac_have_decl
13782 _ACEOF
13783
13784 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13785 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13786 ac_have_decl=1
13787 else
13788 ac_have_decl=0
13789 fi
13790
13791 cat >>confdefs.h <<_ACEOF
13792 #define HAVE_DECL_FSEEKO $ac_have_decl
13793 _ACEOF
13794
13795 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13796 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13797 ac_have_decl=1
13798 else
13799 ac_have_decl=0
13800 fi
13801
13802 cat >>confdefs.h <<_ACEOF
13803 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13804 _ACEOF
13805
13806
13807
13808 case "${host}" in
13809 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13810
13811 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13812 ;;
13813 esac
13814
13815 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13816 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13817 ac_have_decl=1
13818 else
13819 ac_have_decl=0
13820 fi
13821
13822 cat >>confdefs.h <<_ACEOF
13823 #define HAVE_DECL_FFS $ac_have_decl
13824 _ACEOF
13825
13826 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13827 if test "x$ac_cv_have_decl_free" = x""yes; then :
13828 ac_have_decl=1
13829 else
13830 ac_have_decl=0
13831 fi
13832
13833 cat >>confdefs.h <<_ACEOF
13834 #define HAVE_DECL_FREE $ac_have_decl
13835 _ACEOF
13836
13837 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13838 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13839 ac_have_decl=1
13840 else
13841 ac_have_decl=0
13842 fi
13843
13844 cat >>confdefs.h <<_ACEOF
13845 #define HAVE_DECL_GETENV $ac_have_decl
13846 _ACEOF
13847
13848 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13849 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13850 ac_have_decl=1
13851 else
13852 ac_have_decl=0
13853 fi
13854
13855 cat >>confdefs.h <<_ACEOF
13856 #define HAVE_DECL_MALLOC $ac_have_decl
13857 _ACEOF
13858
13859 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13860 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13861 ac_have_decl=1
13862 else
13863 ac_have_decl=0
13864 fi
13865
13866 cat >>confdefs.h <<_ACEOF
13867 #define HAVE_DECL_REALLOC $ac_have_decl
13868 _ACEOF
13869
13870 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13871 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13872 ac_have_decl=1
13873 else
13874 ac_have_decl=0
13875 fi
13876
13877 cat >>confdefs.h <<_ACEOF
13878 #define HAVE_DECL_STPCPY $ac_have_decl
13879 _ACEOF
13880
13881 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13882 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13883 ac_have_decl=1
13884 else
13885 ac_have_decl=0
13886 fi
13887
13888 cat >>confdefs.h <<_ACEOF
13889 #define HAVE_DECL_STRSTR $ac_have_decl
13890 _ACEOF
13891
13892 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13893 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
13894 ac_have_decl=1
13895 else
13896 ac_have_decl=0
13897 fi
13898
13899 cat >>confdefs.h <<_ACEOF
13900 #define HAVE_DECL_ASPRINTF $ac_have_decl
13901 _ACEOF
13902
13903 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13904 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
13905 ac_have_decl=1
13906 else
13907 ac_have_decl=0
13908 fi
13909
13910 cat >>confdefs.h <<_ACEOF
13911 #define HAVE_DECL_VASPRINTF $ac_have_decl
13912 _ACEOF
13913
13914 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13915 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13916 ac_have_decl=1
13917 else
13918 ac_have_decl=0
13919 fi
13920
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_DECL_SNPRINTF $ac_have_decl
13923 _ACEOF
13924
13925 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13926 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13927 ac_have_decl=1
13928 else
13929 ac_have_decl=0
13930 fi
13931
13932 cat >>confdefs.h <<_ACEOF
13933 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13934 _ACEOF
13935
13936 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
13937 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
13938 ac_have_decl=1
13939 else
13940 ac_have_decl=0
13941 fi
13942
13943 cat >>confdefs.h <<_ACEOF
13944 #define HAVE_DECL_STRNLEN $ac_have_decl
13945 _ACEOF
13946
13947
13948 # Link in zlib if we can. This allows us to read compressed debug sections.
13949 # This is used only by compress.c.
13950
13951 # Use the system's zlib library.
13952 zlibdir="-L\$(top_builddir)/../zlib"
13953 zlibinc="-I\$(top_srcdir)/../zlib"
13954
13955 # Check whether --with-system-zlib was given.
13956 if test "${with_system_zlib+set}" = set; then :
13957 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
13958 zlibdir=
13959 zlibinc=
13960 fi
13961
13962 fi
13963
13964
13965
13966
13967
13968 # Check if linker supports --as-needed and --no-as-needed options
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
13970 $as_echo_n "checking linker --as-needed support... " >&6; }
13971 if test "${bfd_cv_ld_as_needed+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974 bfd_cv_ld_as_needed=no
13975 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
13976 bfd_cv_ld_as_needed=yes
13977 fi
13978
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
13981 $as_echo "$bfd_cv_ld_as_needed" >&6; }
13982
13983 LIBM=
13984 case $host in
13985 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
13986 # These system don't have libm, or don't need it
13987 ;;
13988 *-ncr-sysv4.3*)
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
13990 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
13991 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
13992 $as_echo_n "(cached) " >&6
13993 else
13994 ac_check_lib_save_LIBS=$LIBS
13995 LIBS="-lmw $LIBS"
13996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h. */
13998
13999 /* Override any GCC internal prototype to avoid an error.
14000 Use char because int might match the return type of a GCC
14001 builtin and then its argument prototype would still apply. */
14002 #ifdef __cplusplus
14003 extern "C"
14004 #endif
14005 char _mwvalidcheckl ();
14006 int
14007 main ()
14008 {
14009 return _mwvalidcheckl ();
14010 ;
14011 return 0;
14012 }
14013 _ACEOF
14014 if ac_fn_c_try_link "$LINENO"; then :
14015 ac_cv_lib_mw__mwvalidcheckl=yes
14016 else
14017 ac_cv_lib_mw__mwvalidcheckl=no
14018 fi
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14024 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14025 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14026 LIBM="-lmw"
14027 fi
14028
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14030 $as_echo_n "checking for cos in -lm... " >&6; }
14031 if test "${ac_cv_lib_m_cos+set}" = set; then :
14032 $as_echo_n "(cached) " >&6
14033 else
14034 ac_check_lib_save_LIBS=$LIBS
14035 LIBS="-lm $LIBS"
14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14037 /* end confdefs.h. */
14038
14039 /* Override any GCC internal prototype to avoid an error.
14040 Use char because int might match the return type of a GCC
14041 builtin and then its argument prototype would still apply. */
14042 #ifdef __cplusplus
14043 extern "C"
14044 #endif
14045 char cos ();
14046 int
14047 main ()
14048 {
14049 return cos ();
14050 ;
14051 return 0;
14052 }
14053 _ACEOF
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 ac_cv_lib_m_cos=yes
14056 else
14057 ac_cv_lib_m_cos=no
14058 fi
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LIBS=$ac_check_lib_save_LIBS
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14064 $as_echo "$ac_cv_lib_m_cos" >&6; }
14065 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14066 LIBM="$LIBM -lm"
14067 fi
14068
14069 ;;
14070 *)
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14072 $as_echo_n "checking for cos in -lm... " >&6; }
14073 if test "${ac_cv_lib_m_cos+set}" = set; then :
14074 $as_echo_n "(cached) " >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lm $LIBS"
14078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14079 /* end confdefs.h. */
14080
14081 /* Override any GCC internal prototype to avoid an error.
14082 Use char because int might match the return type of a GCC
14083 builtin and then its argument prototype would still apply. */
14084 #ifdef __cplusplus
14085 extern "C"
14086 #endif
14087 char cos ();
14088 int
14089 main ()
14090 {
14091 return cos ();
14092 ;
14093 return 0;
14094 }
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 ac_cv_lib_m_cos=yes
14098 else
14099 ac_cv_lib_m_cos=no
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14106 $as_echo "$ac_cv_lib_m_cos" >&6; }
14107 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14108 LIBM="-lm"
14109 fi
14110
14111 ;;
14112 esac
14113
14114
14115
14116 # When building a shared libbfd, link against the pic version of libiberty
14117 # so that apps that use libbfd won't need libiberty just to satisfy any
14118 # libbfd references.
14119 # We can't do that if a pic libiberty is unavailable since including non-pic
14120 # code would insert text relocations into libbfd.
14121 SHARED_LIBADD=
14122 SHARED_LDFLAGS=
14123 if test "$enable_shared" = "yes"; then
14124 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14125 if test -n "$x"; then
14126 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14127 fi
14128
14129 # More hacks to build DLLs on Windows.
14130 case "${host}" in
14131 *-*-cygwin*)
14132 SHARED_LDFLAGS="-no-undefined"
14133 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14134 ;;
14135
14136 # Hack to build or1k-src on OSX
14137 or1k*-*-darwin*)
14138 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14139 ;;
14140 esac
14141
14142 if test -n "$SHARED_LIBADD"; then
14143 if test -n "$LIBM"; then
14144 if test x"$bfd_cv_ld_as_needed" = xyes; then
14145 # Link against libm only when needed. Put -lc, -lm inside -Wl
14146 # to stop libtool reordering these options.
14147 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14148 else
14149 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14150 fi
14151 fi
14152 fi
14153 fi
14154
14155
14156
14157 # target stuff:
14158
14159 # Canonicalize the secondary target names.
14160 if test -n "$enable_targets" ; then
14161 for targ in `echo $enable_targets | sed 's/,/ /g'`
14162 do
14163 result=`$ac_config_sub $targ 2>/dev/null`
14164 if test -n "$result" ; then
14165 canon_targets="$canon_targets $result"
14166 else
14167 # Allow targets that config.sub doesn't recognize, like "all".
14168 canon_targets="$canon_targets $targ"
14169 fi
14170 done
14171 fi
14172
14173 all_targets=false
14174 defvec=
14175 selvecs=
14176 assocvecs=
14177 selarchs=
14178 TDEFINES=
14179 for targ in $target $canon_targets
14180 do
14181 if test "x$targ" = "xall"; then
14182 all_targets=true
14183 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14184 else
14185 . $srcdir/config.bfd
14186 if test "x$targ" = "x$target"; then
14187 defvec=$targ_defvec
14188 fi
14189 selvecs="$selvecs $targ_defvec $targ_selvecs"
14190 selarchs="$selarchs $targ_archs"
14191 TDEFINES="$TDEFINES $targ_cflags"
14192 fi
14193 done
14194
14195
14196 # This processing still needs to be done if we're to decide properly whether
14197 # 64-bit support needs to be compiled in. Currently, it will be included if
14198 # the default or any other explicitly requested target requires it; it
14199 # will not be included on a 32-bit host if no 64-bit target is requested, and
14200 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14201 # used.
14202
14203 # uniq the default and selected vectors in all the configured targets.
14204 f=""
14205 for i in $selvecs ; do
14206 case " $f " in
14207 *" $i "*) ;;
14208 *) f="$f $i" ;;
14209 esac
14210 done
14211 selvecs="$f"
14212
14213
14214 # uniq the associated vectors in all the configured targets.
14215 f=""
14216 for i in $assocvecs ; do
14217 case " $f " in
14218 *" $i "*) ;;
14219 *) f="$f $i" ;;
14220 esac
14221 done
14222 assocvecs="$f"
14223
14224
14225 # uniq the architectures in all the configured targets.
14226 f=""
14227 for i in $selarchs ; do
14228 case " $f " in
14229 *" $i "*) ;;
14230 *) f="$f $i" ;;
14231 esac
14232 done
14233 selarchs="$f"
14234
14235 # Target backend .o files.
14236 tb=
14237
14238 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
14239 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14240 coffgen="coffgen.lo dwarf2.lo"
14241 coff="cofflink.lo $coffgen"
14242 ecoff="ecofflink.lo $coffgen"
14243 xcoff="xcofflink.lo $coffgen"
14244
14245 for vec in $selvecs
14246 do
14247 target_size=32
14248 case "$vec" in
14249 # This list is alphabetized to make it easy to compare
14250 # with the two vector lists in targets.c. For the same reason,
14251 # use one entry per line, even though this leads to long lines.
14252 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14253 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14254 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14255 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14256 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14257 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14258 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
14259 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
14260 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14261 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14262 alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
14263 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14264 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
14265 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14266 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
14267 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14268 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
14269 aout_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
14270 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14271 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14272 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14273 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
14274 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
14275 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
14276 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
14277 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
14278 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14279 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14280 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14281 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14282 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14283 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14284 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14285 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14286 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14287 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
14288 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14289 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
14290 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14291 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14292 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14293 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
14294 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14295 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
14296 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14297 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14298 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
14299 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14300 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14301 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14302 bout_be_vec) tb="$tb bout.lo aout32.lo" ;;
14303 bout_le_vec) tb="$tb bout.lo aout32.lo" ;;
14304 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14305 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14306 cris_aout_vec) tb="$tb aout-cris.lo" ;;
14307 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14308 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14309 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14310 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14311 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14312 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14313 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14314 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14315 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14316 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14317 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14318 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14319 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14320 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14321 h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;;
14322 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14323 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14324 h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;;
14325 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14326 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14327 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14328 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14329 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14330 hppa_som_vec) tb="$tb som.lo" ;;
14331 i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
14332 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
14333 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
14334 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
14335 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
14336 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
14337 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14338 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
14339 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
14340 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
14341 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
14342 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
14343 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
14344 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
14345 i386_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14346 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14347 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14348 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14349 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14350 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
14351 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
14352 i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
14353 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
14354 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
14355 iamcu_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14356 i860_coff_vec) tb="$tb coff-i860.lo $coff" ;;
14357 i860_elf32_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14358 i860_elf32_le_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
14359 i960_elf32_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
14360 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14361 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14362 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14363 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14364 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14365 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 ;;
14366 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
14367 icoff_be_vec) tb="$tb coff-i960.lo $coff" ;;
14368 icoff_le_vec) tb="$tb coff-i960.lo $coff" ;;
14369 ieee_vec) tb="$tb ieee.lo" ;;
14370 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14371 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14372 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14373 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14374 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14375 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14376 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14377 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14378 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14379 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14380 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14381 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14382 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14383 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14384 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14385 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
14386 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
14387 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
14388 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
14389 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
14390 m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
14391 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;;
14392 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;;
14393 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;;
14394 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;;
14395 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;;
14396 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14397 m68k_versados_vec) tb="$tb versados.lo" ;;
14398 m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
14399 m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
14400 m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;;
14401 m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
14402 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14403 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14404 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
14405 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14406 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14407 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14408 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14409 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14410 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14411 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14412 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14413 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
14414 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14415 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14416 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14417 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14418 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14419 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14420 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14421 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14422 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14423 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14424 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14425 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14426 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14427 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14428 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14429 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14430 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14431 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14432 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14433 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14434 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14435 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 ;;
14436 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 ;;
14437 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 ;;
14438 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 ;;
14439 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
14440 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
14441 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14442 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
14443 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14444 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14445 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14446 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14447 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14448 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14449 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14450 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14451 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14452 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14453 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14454 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14455 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14456 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14457 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
14458 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
14459 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
14460 pef_vec) tb="$tb pef.lo" ;;
14461 pef_xlib_vec) tb="$tb pef.lo" ;;
14462 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14463 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14464 plugin_vec) tb="$tb plugin.lo" ;;
14465 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
14466 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14467 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14468 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14469 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14470 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14471 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14472 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14473 powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
14474 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14475 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14476 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14477 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14478 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
14479 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
14480 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14481 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
14482 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
14483 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14484 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14485 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
14486 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14487 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14488 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14489 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14490 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
14491 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14492 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14493 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14494 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14495 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14496 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
14497 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
14498 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
14499 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14500 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14501 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14502 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14503 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14504 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
14505 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
14506 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
14507 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
14508 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
14509 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14510 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14511 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14512 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14513 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14514 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14515 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14516 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14517 sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14518 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14519 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14520 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14521 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
14522 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
14523 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
14524 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
14525 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
14526 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
14527 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
14528 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
14529 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14530 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14531 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14532 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14533 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14534 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14535 sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
14536 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14537 sym_vec) tb="$tb xsym.lo" ;;
14538 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
14539 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
14540 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14541 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14542 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14543 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14544 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14545 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
14546 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14547 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14548 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14549 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14550 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14551 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
14552 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14553 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14554 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14555 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14556 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14557 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14558 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
14559 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14560 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14561 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14562 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14563 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14564 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14565 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14566 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
14567 vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
14568 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
14569 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14570 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
14571 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
14572 w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
14573 wasm_vec) tb="$tb wasm-module.lo" ;;
14574 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
14575 we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
14576 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
14577 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14578 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14579 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14580 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14581 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14582 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14583 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14584 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
14585 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14586 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14587 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14588 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14589 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14590 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14591 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14592 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14593 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14594 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
14595
14596 # These appear out of order in targets.c
14597 srec_vec) tb="$tb srec.lo" ;;
14598 symbolsrec_vec) tb="$tb srec.lo" ;;
14599 tekhex_vec) tb="$tb tekhex.lo" ;;
14600 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
14601 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
14602
14603 "") ;;
14604 *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14605 esac
14606
14607 if test ${target_size} = 64; then
14608 target64=true
14609 fi
14610 if test x"${vec}" = x"${defvec}"; then
14611 bfd_default_target_size=${target_size}
14612 fi
14613 done
14614
14615 # Target architecture .o files.
14616 # A couple of CPUs use shorter file names to avoid problems on DOS
14617 # filesystems.
14618 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14619
14620 # Weed out duplicate .o files.
14621 f=""
14622 for i in $tb ; do
14623 case " $f " in
14624 *" $i "*) ;;
14625 *) f="$f $i" ;;
14626 esac
14627 done
14628 tb="$f"
14629
14630 f=""
14631 for i in $ta ; do
14632 case " $f " in
14633 *" $i "*) ;;
14634 *) f="$f $i" ;;
14635 esac
14636 done
14637 ta="$f"
14638
14639 bfd_backends="$tb"
14640 bfd_machines="$ta"
14641
14642 if test x${all_targets} = xtrue ; then
14643 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14644 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14645 selvecs=
14646 havevecs=-DHAVE_all_vecs
14647 selarchs=
14648 test -n "$assocvecs" &&
14649 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14650 else # all_targets is true
14651 # Only set these if they will be nonempty, for the clever echo.
14652 havevecs=
14653 assocvecs=
14654 test -n "$selvecs" &&
14655 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14656 test -n "$selvecs" &&
14657 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14658 test -n "$selarchs" &&
14659 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14660 fi # all_targets is true
14661
14662 # 64-bit archives need a 64-bit bfd_vma.
14663 if test "x$want_64_bit_archive" = xtrue; then
14664 want64=true
14665
14666 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14667
14668 fi
14669
14670 case ${host64}-${target64}-${want64} in
14671 *true*)
14672 wordsize=64
14673 bfd64_libs='$(BFD64_LIBS)'
14674 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14675 if test $BFD_HOST_64_BIT_DEFINED = 0; then
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14677 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14679 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14680 fi
14681 if test -n "$GCC" ; then
14682 bad_64bit_gcc=no;
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14684 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14685 # Add more tests for gcc versions with non-working 64-bit support here.
14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h. */
14688 :__GNUC__:__GNUC_MINOR__:__i386__:
14689 _ACEOF
14690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14691 $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14692 bad_64bit_gcc=yes;
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14694 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14695 else
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14697 $as_echo "no" >&6; }
14698 fi
14699 rm -f conftest*
14700
14701 if test $bad_64bit_gcc = yes ; then
14702 as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14703 fi
14704 fi
14705 ;;
14706 false-false-false)
14707 wordsize=32
14708 all_backends='$(BFD32_BACKENDS)'
14709 ;;
14710 esac
14711
14712 tdefaults=""
14713 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14714 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14715 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14716 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727 # If we are configured native, pick a core file support file.
14728 COREFILE=
14729 COREFLAG=
14730 CORE_HEADER=
14731 TRAD_HEADER=
14732 if test "${target}" = "${host}"; then
14733 case "${host}" in
14734 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14735 COREFILE=''
14736 ;;
14737 alpha*-*-linux-*)
14738 COREFILE=trad-core.lo
14739 TRAD_HEADER='"hosts/alphalinux.h"'
14740 ;;
14741 alpha*-*-netbsd* | alpha*-*-openbsd*)
14742 COREFILE=netbsd-core.lo
14743 ;;
14744 alpha*-*-*)
14745 COREFILE=osf-core.lo
14746 ;;
14747 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14748 COREFILE='' ;;
14749 arm*-*-netbsd* | arm-*-openbsd*)
14750 COREFILE=netbsd-core.lo
14751 ;;
14752 arm-*-riscix) COREFILE=trad-core.lo ;;
14753 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
14754 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
14755 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
14756 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
14757 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14758 hppa*-*-netbsd* | hppa*-*-openbsd*)
14759 COREFILE=netbsd-core.lo
14760 ;;
14761
14762 i370-*-*)
14763 COREFILE=trad-core.lo
14764 TRAD_HEADER='"hosts/i370linux.h"'
14765 ;;
14766
14767 i[3-7]86-sequent-bsd*)
14768 COREFILE=trad-core.lo
14769 TRAD_HEADER='"hosts/symmetry.h"'
14770 ;;
14771 i[3-7]86-sequent-sysv4*) ;;
14772 i[3-7]86-sequent-sysv*)
14773 COREFILE=trad-core.lo
14774 TRAD_HEADER='"hosts/symmetry.h"'
14775 ;;
14776 i[3-7]86-*-bsdi)
14777 COREFILE=
14778 ;;
14779 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*)
14780 COREFILE=trad-core.lo
14781 TRAD_HEADER='"hosts/i386bsd.h"'
14782 ;;
14783 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14784 COREFILE=''
14785 TRAD_HEADER='"hosts/i386bsd.h"'
14786 ;;
14787 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14788 COREFILE=netbsd-core.lo
14789 ;;
14790 i[3-7]86-esix-sysv3*)
14791 COREFILE=trad-core.lo
14792 TRAD_HEADER='"hosts/esix.h"'
14793 ;;
14794 i[3-7]86-*-sco3.2v5*)
14795 COREFILE=sco5-core.lo
14796 ;;
14797 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14798 COREFILE=trad-core.lo
14799 TRAD_HEADER='"hosts/i386sco.h"'
14800 ;;
14801 i[3-7]86-*-mach3*)
14802 COREFILE=trad-core.lo
14803 TRAD_HEADER='"hosts/i386mach3.h"'
14804 ;;
14805 i[3-7]86-*-linux-*)
14806 COREFILE=trad-core.lo
14807 TRAD_HEADER='"hosts/i386linux.h"'
14808 case "$enable_targets"-"$want64" in
14809 *x86_64-*linux*|*-true)
14810 CORE_HEADER='"hosts/x86-64linux.h"'
14811 esac
14812 ;;
14813 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
14814 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
14815 i860-*-mach3* | i860-*-osf1*)
14816 COREFILE=trad-core.lo
14817 TRAD_HEADER='"hosts/i860mach3.h"'
14818 ;;
14819 mips*-*-netbsd* | mips*-*-openbsd*)
14820 COREFILE=netbsd-core.lo
14821 ;;
14822 mips-dec-*)
14823 COREFILE=trad-core.lo
14824 TRAD_HEADER='"hosts/decstation.h"'
14825 ;;
14826 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
14827 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
14828 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
14829 mips-*-sysv4*) ;;
14830 mips-*-sysv* | mips-*-riscos*)
14831 COREFILE=trad-core.lo
14832 TRAD_HEADER='"hosts/riscos.h"'
14833 ;;
14834 mips-sony-bsd*)
14835 COREFILE=trad-core.lo
14836 TRAD_HEADER='"hosts/news-mips.h"'
14837 ;;
14838 m68*-bull*-sysv*)
14839 COREFILE=trad-core.lo
14840 TRAD_HEADER='"hosts/dpx2.h"'
14841 ;;
14842 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
14843 m68*-hp-bsd*)
14844 COREFILE=trad-core.lo
14845 TRAD_HEADER='"hosts/hp300bsd.h"'
14846 ;;
14847 m68*-*-linux-*)
14848 COREFILE=trad-core.lo
14849 TRAD_HEADER='"hosts/m68klinux.h"'
14850 ;;
14851 m68*-motorola-sysv*)
14852 COREFILE=trad-core.lo
14853 TRAD_HEADER='"hosts/delta68.h"'
14854 ;;
14855 m68*-sony-*)
14856 COREFILE=trad-core.lo
14857 TRAD_HEADER='"hosts/news.h"'
14858 ;;
14859 m68*-*-netbsd* | m68*-*-openbsd*)
14860 COREFILE=netbsd-core.lo
14861 ;;
14862 m68*-apple-aux*)
14863 COREFILE=trad-core.lo
14864 TRAD_HEADER='"hosts/m68kaux.h"'
14865 ;;
14866 m88*-*-sysv4*)
14867 ;;
14868 m88*-motorola-sysv*)
14869 COREFILE=ptrace-core.lo
14870 ;;
14871 m88*-*-mach3*)
14872 COREFILE=trad-core.lo
14873 TRAD_HEADER='"hosts/m88kmach3.h"'
14874 ;;
14875 m88*-*-openbsd*)
14876 COREFILE=netbsd-core.lo
14877 ;;
14878 ns32k-pc532-mach)
14879 COREFILE=trad-core.lo
14880 TRAD_HEADER='"hosts/pc532mach.h"'
14881 ;;
14882 ns32k-*-netbsd* | ns32k-*-openbsd*)
14883 COREFILE=netbsd-core.lo
14884 ;;
14885 rs6000-*-lynx*)
14886 COREFILE=lynx-core.lo
14887 ;;
14888 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14889 COREFILE=rs6000-core.lo
14890 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14891 ;;
14892 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14893 COREFILE=rs6000-core.lo
14894 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14895 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14896 # have c_impl as a member of struct core_dumpx
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14898 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #include <core.h>
14902 int
14903 main ()
14904 {
14905 struct core_dumpx c; c.c_impl = 0;
14906 ;
14907 return 0;
14908 }
14909 _ACEOF
14910 if ac_fn_c_try_compile "$LINENO"; then :
14911
14912 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14913
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14915 $as_echo "yes" >&6; }
14916 else
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14918 $as_echo "no" >&6; }
14919 fi
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 ;;
14922 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
14923 rs6000-*-*) COREFILE=rs6000-core.lo ;;
14924 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
14925 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
14926 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
14927 powerpc-*-beos*) ;;
14928 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14929 COREFILE='' ;;
14930 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
14931 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
14932 s390*-*-*) COREFILE=trad-core.lo ;;
14933 sh*-*-netbsd* | sh*-*-openbsd*)
14934 COREFILE=netbsd-core.lo
14935 ;;
14936 sparc-*-netbsd* | sparc*-*-openbsd*)
14937 COREFILE=netbsd-core.lo
14938 ;;
14939 tahoe-*-*)
14940 COREFILE=trad-core.lo
14941 TRAD_HEADER='"hosts/tahoe.h"'
14942 ;;
14943 vax-*-netbsd* | vax-*-openbsd*)
14944 COREFILE=netbsd-core.lo
14945 ;;
14946 vax-*-ultrix2*)
14947 COREFILE=trad-core.lo
14948 TRAD_HEADER='"hosts/vaxult2.h"'
14949 ;;
14950 vax-*-ultrix*)
14951 COREFILE=trad-core.lo
14952 TRAD_HEADER='"hosts/vaxult2.h"'
14953 ;;
14954 vax-*-linux-*)
14955 COREFILE=trad-core.lo
14956 TRAD_HEADER='"hosts/vaxlinux.h"'
14957 ;;
14958 vax-*-*)
14959 COREFILE=trad-core.lo
14960 TRAD_HEADER='"hosts/vaxbsd.h"'
14961 ;;
14962 x86_64-*-linux*)
14963 CORE_HEADER='"hosts/x86-64linux.h"'
14964 ;;
14965 x86_64-*-netbsd* | x86_64-*-openbsd*)
14966 COREFILE=netbsd-core.lo
14967 ;;
14968 esac
14969
14970 case "$COREFILE" in
14971 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
14972 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
14973 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
14974 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
14975 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
14976 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
14977 osf-core.lo) COREFLAG=-DOSF_CORE ;;
14978 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
14979 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
14980 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14981 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14982 esac
14983
14984 # ELF corefile support has several flavors, but all of
14985 # them use something called <sys/procfs.h>
14986 for ac_header in sys/procfs.h
14987 do :
14988 ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14989 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14990 cat >>confdefs.h <<_ACEOF
14991 #define HAVE_SYS_PROCFS_H 1
14992 _ACEOF
14993
14994 fi
14995
14996 done
14997
14998 if test "$ac_cv_header_sys_procfs_h" = yes; then
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
15000 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
15001 if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
15002 $as_echo_n "(cached) " >&6
15003 else
15004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15005 /* end confdefs.h. */
15006
15007 #define _SYSCALL32
15008 /* Needed for new procfs interface on sparc-solaris. */
15009 #define _STRUCTURED_PROC 1
15010 #include <sys/procfs.h>
15011 int
15012 main ()
15013 {
15014 prstatus_t avar
15015 ;
15016 return 0;
15017 }
15018 _ACEOF
15019 if ac_fn_c_try_compile "$LINENO"; then :
15020 bfd_cv_have_sys_procfs_type_prstatus_t=yes
15021 else
15022 bfd_cv_have_sys_procfs_type_prstatus_t=no
15023
15024 fi
15025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15026 fi
15027
15028 if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
15029
15030 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
15031
15032 fi
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
15034 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
15035
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
15037 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
15038 if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15042 /* end confdefs.h. */
15043
15044 #define _SYSCALL32
15045 /* Needed for new procfs interface on sparc-solaris. */
15046 #define _STRUCTURED_PROC 1
15047 #include <sys/procfs.h>
15048 int
15049 main ()
15050 {
15051 prstatus32_t avar
15052 ;
15053 return 0;
15054 }
15055 _ACEOF
15056 if ac_fn_c_try_compile "$LINENO"; then :
15057 bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15058 else
15059 bfd_cv_have_sys_procfs_type_prstatus32_t=no
15060
15061 fi
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063 fi
15064
15065 if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15066
15067 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15068
15069 fi
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15071 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15072
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15074 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15075 if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15076 $as_echo_n "(cached) " >&6
15077 else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15079 /* end confdefs.h. */
15080
15081 #define _SYSCALL32
15082 /* Needed for new procfs interface on sparc-solaris. */
15083 #define _STRUCTURED_PROC 1
15084 #include <sys/procfs.h>
15085 int
15086 main ()
15087 {
15088 prstatus_t avar; void* aref = (void*) &avar.pr_who
15089 ;
15090 return 0;
15091 }
15092 _ACEOF
15093 if ac_fn_c_try_compile "$LINENO"; then :
15094 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15095 else
15096 bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15097
15098 fi
15099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15100 fi
15101
15102 if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15103
15104 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15105
15106 fi
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15108 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15109
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15111 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15112 if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15113 $as_echo_n "(cached) " >&6
15114 else
15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15116 /* end confdefs.h. */
15117
15118 #define _SYSCALL32
15119 /* Needed for new procfs interface on sparc-solaris. */
15120 #define _STRUCTURED_PROC 1
15121 #include <sys/procfs.h>
15122 int
15123 main ()
15124 {
15125 prstatus32_t avar; void* aref = (void*) &avar.pr_who
15126 ;
15127 return 0;
15128 }
15129 _ACEOF
15130 if ac_fn_c_try_compile "$LINENO"; then :
15131 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15132 else
15133 bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15134
15135 fi
15136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137 fi
15138
15139 if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15140
15141 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15142
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15145 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15148 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15149 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15150 $as_echo_n "(cached) " >&6
15151 else
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154
15155 #define _SYSCALL32
15156 /* Needed for new procfs interface on sparc-solaris. */
15157 #define _STRUCTURED_PROC 1
15158 #include <sys/procfs.h>
15159 int
15160 main ()
15161 {
15162 pstatus_t avar
15163 ;
15164 return 0;
15165 }
15166 _ACEOF
15167 if ac_fn_c_try_compile "$LINENO"; then :
15168 bfd_cv_have_sys_procfs_type_pstatus_t=yes
15169 else
15170 bfd_cv_have_sys_procfs_type_pstatus_t=no
15171
15172 fi
15173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15174 fi
15175
15176 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15177
15178 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15179
15180 fi
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15182 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15183
15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15185 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15186 if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15187 $as_echo_n "(cached) " >&6
15188 else
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191
15192 #define _SYSCALL32
15193 /* Needed for new procfs interface on sparc-solaris. */
15194 #define _STRUCTURED_PROC 1
15195 #include <sys/procfs.h>
15196 int
15197 main ()
15198 {
15199 pxstatus_t avar
15200 ;
15201 return 0;
15202 }
15203 _ACEOF
15204 if ac_fn_c_try_compile "$LINENO"; then :
15205 bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15206 else
15207 bfd_cv_have_sys_procfs_type_pxstatus_t=no
15208
15209 fi
15210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15211 fi
15212
15213 if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15214
15215 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15216
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15219 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15220
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15222 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15223 if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15224 $as_echo_n "(cached) " >&6
15225 else
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228
15229 #define _SYSCALL32
15230 /* Needed for new procfs interface on sparc-solaris. */
15231 #define _STRUCTURED_PROC 1
15232 #include <sys/procfs.h>
15233 int
15234 main ()
15235 {
15236 pstatus32_t avar
15237 ;
15238 return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_compile "$LINENO"; then :
15242 bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15243 else
15244 bfd_cv_have_sys_procfs_type_pstatus32_t=no
15245
15246 fi
15247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15248 fi
15249
15250 if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15251
15252 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15253
15254 fi
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15256 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15257
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15259 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15260 if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15261 $as_echo_n "(cached) " >&6
15262 else
15263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15264 /* end confdefs.h. */
15265
15266 #define _SYSCALL32
15267 /* Needed for new procfs interface on sparc-solaris. */
15268 #define _STRUCTURED_PROC 1
15269 #include <sys/procfs.h>
15270 int
15271 main ()
15272 {
15273 prpsinfo_t avar
15274 ;
15275 return 0;
15276 }
15277 _ACEOF
15278 if ac_fn_c_try_compile "$LINENO"; then :
15279 bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15280 else
15281 bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15282
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15285 fi
15286
15287 if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15288
15289 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15290
15291 fi
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15293 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15294
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15296 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15297 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15298 $as_echo_n "(cached) " >&6
15299 else
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301 /* end confdefs.h. */
15302
15303 #define _SYSCALL32
15304 /* Needed for new procfs interface on sparc-solaris. */
15305 #define _STRUCTURED_PROC 1
15306 #include <sys/procfs.h>
15307 int
15308 main ()
15309 {
15310 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15311 ;
15312 return 0;
15313 }
15314 _ACEOF
15315 if ac_fn_c_try_compile "$LINENO"; then :
15316 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15317 else
15318 bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15319
15320 fi
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 fi
15323
15324 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15325
15326 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15327
15328 fi
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15330 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15331
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15333 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15334 if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15335 $as_echo_n "(cached) " >&6
15336 else
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338 /* end confdefs.h. */
15339
15340 #define _SYSCALL32
15341 /* Needed for new procfs interface on sparc-solaris. */
15342 #define _STRUCTURED_PROC 1
15343 #include <sys/procfs.h>
15344 int
15345 main ()
15346 {
15347 prpsinfo32_t avar
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15354 else
15355 bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15356
15357 fi
15358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15359 fi
15360
15361 if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15362
15363 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15364
15365 fi
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15367 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15370 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15371 if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15372 $as_echo_n "(cached) " >&6
15373 else
15374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375 /* end confdefs.h. */
15376
15377 #define _SYSCALL32
15378 /* Needed for new procfs interface on sparc-solaris. */
15379 #define _STRUCTURED_PROC 1
15380 #include <sys/procfs.h>
15381 int
15382 main ()
15383 {
15384 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15385 ;
15386 return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_compile "$LINENO"; then :
15390 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15391 else
15392 bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15393
15394 fi
15395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15396 fi
15397
15398 if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15399
15400 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15401
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15404 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15405
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15407 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15408 if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15409 $as_echo_n "(cached) " >&6
15410 else
15411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15412 /* end confdefs.h. */
15413
15414 #define _SYSCALL32
15415 /* Needed for new procfs interface on sparc-solaris. */
15416 #define _STRUCTURED_PROC 1
15417 #include <sys/procfs.h>
15418 int
15419 main ()
15420 {
15421 psinfo_t avar
15422 ;
15423 return 0;
15424 }
15425 _ACEOF
15426 if ac_fn_c_try_compile "$LINENO"; then :
15427 bfd_cv_have_sys_procfs_type_psinfo_t=yes
15428 else
15429 bfd_cv_have_sys_procfs_type_psinfo_t=no
15430
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15433 fi
15434
15435 if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15436
15437 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15438
15439 fi
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15441 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15442
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15444 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15445 if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15446 $as_echo_n "(cached) " >&6
15447 else
15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15449 /* end confdefs.h. */
15450
15451 #define _SYSCALL32
15452 /* Needed for new procfs interface on sparc-solaris. */
15453 #define _STRUCTURED_PROC 1
15454 #include <sys/procfs.h>
15455 int
15456 main ()
15457 {
15458 psinfo_t avar; void* aref = (void*) &avar.pr_pid
15459 ;
15460 return 0;
15461 }
15462 _ACEOF
15463 if ac_fn_c_try_compile "$LINENO"; then :
15464 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15465 else
15466 bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15467
15468 fi
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15470 fi
15471
15472 if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15473
15474 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15475
15476 fi
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15478 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15479
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15481 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15482 if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15483 $as_echo_n "(cached) " >&6
15484 else
15485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486 /* end confdefs.h. */
15487
15488 #define _SYSCALL32
15489 /* Needed for new procfs interface on sparc-solaris. */
15490 #define _STRUCTURED_PROC 1
15491 #include <sys/procfs.h>
15492 int
15493 main ()
15494 {
15495 psinfo32_t avar
15496 ;
15497 return 0;
15498 }
15499 _ACEOF
15500 if ac_fn_c_try_compile "$LINENO"; then :
15501 bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15502 else
15503 bfd_cv_have_sys_procfs_type_psinfo32_t=no
15504
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15507 fi
15508
15509 if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15510
15511 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15512
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15515 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15516
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15518 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15519 if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15520 $as_echo_n "(cached) " >&6
15521 else
15522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15523 /* end confdefs.h. */
15524
15525 #define _SYSCALL32
15526 /* Needed for new procfs interface on sparc-solaris. */
15527 #define _STRUCTURED_PROC 1
15528 #include <sys/procfs.h>
15529 int
15530 main ()
15531 {
15532 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15533 ;
15534 return 0;
15535 }
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15539 else
15540 bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15541
15542 fi
15543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15544 fi
15545
15546 if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15547
15548 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15549
15550 fi
15551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15552 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15553
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15555 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15556 if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15557 $as_echo_n "(cached) " >&6
15558 else
15559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15560 /* end confdefs.h. */
15561
15562 #define _SYSCALL32
15563 /* Needed for new procfs interface on sparc-solaris. */
15564 #define _STRUCTURED_PROC 1
15565 #include <sys/procfs.h>
15566 int
15567 main ()
15568 {
15569 lwpstatus_t avar
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 if ac_fn_c_try_compile "$LINENO"; then :
15575 bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15576 else
15577 bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15578
15579 fi
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 fi
15582
15583 if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15584
15585 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15586
15587 fi
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15589 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15590
15591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15592 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15593 if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15594 $as_echo_n "(cached) " >&6
15595 else
15596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15597 /* end confdefs.h. */
15598
15599 #define _SYSCALL32
15600 /* Needed for new procfs interface on sparc-solaris. */
15601 #define _STRUCTURED_PROC 1
15602 #include <sys/procfs.h>
15603 int
15604 main ()
15605 {
15606 lwpxstatus_t avar
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_compile "$LINENO"; then :
15612 bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15613 else
15614 bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15615
15616 fi
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 fi
15619
15620 if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15621
15622 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
15623
15624 fi
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15626 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
15627
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15629 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15630 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15631 $as_echo_n "(cached) " >&6
15632 else
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635
15636 #define _SYSCALL32
15637 /* Needed for new procfs interface on sparc-solaris. */
15638 #define _STRUCTURED_PROC 1
15639 #include <sys/procfs.h>
15640 int
15641 main ()
15642 {
15643 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 if ac_fn_c_try_compile "$LINENO"; then :
15649 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15650 else
15651 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
15652
15653 fi
15654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15655 fi
15656
15657 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
15658
15659 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
15660
15661 fi
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15663 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
15664
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15666 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15667 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672
15673 #define _SYSCALL32
15674 /* Needed for new procfs interface on sparc-solaris. */
15675 #define _STRUCTURED_PROC 1
15676 #include <sys/procfs.h>
15677 int
15678 main ()
15679 {
15680 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 if ac_fn_c_try_compile "$LINENO"; then :
15686 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
15687 else
15688 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15689
15690 fi
15691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 fi
15693
15694 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15695
15696 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15697
15698 fi
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15700 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15701
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15703 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15704 if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15705 $as_echo_n "(cached) " >&6
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709
15710 #define _SYSCALL32
15711 /* Needed for new procfs interface on sparc-solaris. */
15712 #define _STRUCTURED_PROC 1
15713 #include <sys/procfs.h>
15714 int
15715 main ()
15716 {
15717 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15718 ;
15719 return 0;
15720 }
15721 _ACEOF
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15724 else
15725 bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15726
15727 fi
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 fi
15730
15731 if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
15732
15733 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15734
15735 fi
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15737 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15738
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15740 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15741 if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15745 /* end confdefs.h. */
15746
15747 #define _SYSCALL32
15748 /* Needed for new procfs interface on sparc-solaris. */
15749 #define _STRUCTURED_PROC 1
15750 #include <sys/procfs.h>
15751 int
15752 main ()
15753 {
15754 win32_pstatus_t avar
15755 ;
15756 return 0;
15757 }
15758 _ACEOF
15759 if ac_fn_c_try_compile "$LINENO"; then :
15760 bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15761 else
15762 bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15763
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 fi
15767
15768 if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15769
15770 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15771
15772 fi
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15774 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15775
15776 fi
15777 fi
15778
15779
15780 if test -n "$CORE_HEADER"; then
15781
15782 cat >>confdefs.h <<_ACEOF
15783 #define CORE_HEADER $CORE_HEADER
15784 _ACEOF
15785
15786 fi
15787 if test -n "$TRAD_HEADER"; then
15788
15789 cat >>confdefs.h <<_ACEOF
15790 #define TRAD_HEADER $TRAD_HEADER
15791 _ACEOF
15792
15793 fi
15794
15795 if test "$plugins" = "yes"; then
15796 supports_plugins=1
15797 else
15798 supports_plugins=0
15799 fi
15800
15801
15802
15803 # Determine the host dependent file_ptr a.k.a. off_t type. In order
15804 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15805 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
15806 # Hopefully a reasonable assumption since fseeko et.al. should be
15807 # upward compatible.
15808 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15809 do :
15810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15811 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15812 eval as_val=\$$as_ac_var
15813 if test "x$as_val" = x""yes; then :
15814 cat >>confdefs.h <<_ACEOF
15815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 _ACEOF
15817
15818 fi
15819 done
15820
15821 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15822 # The cast to long int works around a bug in the HP C Compiler
15823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15825 # This bug is HP SR number 8606223364.
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15827 $as_echo_n "checking size of off_t... " >&6; }
15828 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15829 $as_echo_n "(cached) " >&6
15830 else
15831 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
15832
15833 else
15834 if test "$ac_cv_type_off_t" = yes; then
15835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15837 { as_fn_set_status 77
15838 as_fn_error "cannot compute sizeof (off_t)
15839 See \`config.log' for more details." "$LINENO" 5; }; }
15840 else
15841 ac_cv_sizeof_off_t=0
15842 fi
15843 fi
15844
15845 fi
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15847 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15848
15849
15850
15851 cat >>confdefs.h <<_ACEOF
15852 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15853 _ACEOF
15854
15855
15856 fi
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15858 $as_echo_n "checking file_ptr type... " >&6; }
15859 bfd_file_ptr="long"
15860 bfd_ufile_ptr="unsigned long"
15861 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15862 -o x"${ac_cv_sizeof_off_t}" = x8; then
15863 bfd_file_ptr=BFD_HOST_64_BIT
15864 bfd_ufile_ptr=BFD_HOST_U_64_BIT
15865 fi
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15867 $as_echo "$bfd_file_ptr" >&6; }
15868
15869
15870
15871 for ac_header in stdlib.h unistd.h
15872 do :
15873 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15874 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15875 eval as_val=\$$as_ac_Header
15876 if test "x$as_val" = x""yes; then :
15877 cat >>confdefs.h <<_ACEOF
15878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882
15883 done
15884
15885 for ac_func in getpagesize
15886 do :
15887 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15888 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15889 cat >>confdefs.h <<_ACEOF
15890 #define HAVE_GETPAGESIZE 1
15891 _ACEOF
15892
15893 fi
15894 done
15895
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15897 $as_echo_n "checking for working mmap... " >&6; }
15898 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15899 $as_echo_n "(cached) " >&6
15900 else
15901 if test "$cross_compiling" = yes; then :
15902 ac_cv_func_mmap_fixed_mapped=no
15903 else
15904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15905 /* end confdefs.h. */
15906 $ac_includes_default
15907 /* malloc might have been renamed as rpl_malloc. */
15908 #undef malloc
15909
15910 /* Thanks to Mike Haertel and Jim Avera for this test.
15911 Here is a matrix of mmap possibilities:
15912 mmap private not fixed
15913 mmap private fixed at somewhere currently unmapped
15914 mmap private fixed at somewhere already mapped
15915 mmap shared not fixed
15916 mmap shared fixed at somewhere currently unmapped
15917 mmap shared fixed at somewhere already mapped
15918 For private mappings, we should verify that changes cannot be read()
15919 back from the file, nor mmap's back from the file at a different
15920 address. (There have been systems where private was not correctly
15921 implemented like the infamous i386 svr4.0, and systems where the
15922 VM page cache was not coherent with the file system buffer cache
15923 like early versions of FreeBSD and possibly contemporary NetBSD.)
15924 For shared mappings, we should conversely verify that changes get
15925 propagated back to all the places they're supposed to be.
15926
15927 Grep wants private fixed already mapped.
15928 The main things grep needs to know about mmap are:
15929 * does it exist and is it safe to write into the mmap'd area
15930 * how to use it (BSD variants) */
15931
15932 #include <fcntl.h>
15933 #include <sys/mman.h>
15934
15935 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15936 char *malloc ();
15937 #endif
15938
15939 /* This mess was copied from the GNU getpagesize.h. */
15940 #ifndef HAVE_GETPAGESIZE
15941 /* Assume that all systems that can run configure have sys/param.h. */
15942 # ifndef HAVE_SYS_PARAM_H
15943 # define HAVE_SYS_PARAM_H 1
15944 # endif
15945
15946 # ifdef _SC_PAGESIZE
15947 # define getpagesize() sysconf(_SC_PAGESIZE)
15948 # else /* no _SC_PAGESIZE */
15949 # ifdef HAVE_SYS_PARAM_H
15950 # include <sys/param.h>
15951 # ifdef EXEC_PAGESIZE
15952 # define getpagesize() EXEC_PAGESIZE
15953 # else /* no EXEC_PAGESIZE */
15954 # ifdef NBPG
15955 # define getpagesize() NBPG * CLSIZE
15956 # ifndef CLSIZE
15957 # define CLSIZE 1
15958 # endif /* no CLSIZE */
15959 # else /* no NBPG */
15960 # ifdef NBPC
15961 # define getpagesize() NBPC
15962 # else /* no NBPC */
15963 # ifdef PAGESIZE
15964 # define getpagesize() PAGESIZE
15965 # endif /* PAGESIZE */
15966 # endif /* no NBPC */
15967 # endif /* no NBPG */
15968 # endif /* no EXEC_PAGESIZE */
15969 # else /* no HAVE_SYS_PARAM_H */
15970 # define getpagesize() 8192 /* punt totally */
15971 # endif /* no HAVE_SYS_PARAM_H */
15972 # endif /* no _SC_PAGESIZE */
15973
15974 #endif /* no HAVE_GETPAGESIZE */
15975
15976 int
15977 main ()
15978 {
15979 char *data, *data2, *data3;
15980 int i, pagesize;
15981 int fd;
15982
15983 pagesize = getpagesize ();
15984
15985 /* First, make a file with some known garbage in it. */
15986 data = (char *) malloc (pagesize);
15987 if (!data)
15988 return 1;
15989 for (i = 0; i < pagesize; ++i)
15990 *(data + i) = rand ();
15991 umask (0);
15992 fd = creat ("conftest.mmap", 0600);
15993 if (fd < 0)
15994 return 1;
15995 if (write (fd, data, pagesize) != pagesize)
15996 return 1;
15997 close (fd);
15998
15999 /* Next, try to mmap the file at a fixed address which already has
16000 something else allocated at it. If we can, also make sure that
16001 we see the same garbage. */
16002 fd = open ("conftest.mmap", O_RDWR);
16003 if (fd < 0)
16004 return 1;
16005 data2 = (char *) malloc (2 * pagesize);
16006 if (!data2)
16007 return 1;
16008 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
16009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16011 return 1;
16012 for (i = 0; i < pagesize; ++i)
16013 if (*(data + i) != *(data2 + i))
16014 return 1;
16015
16016 /* Finally, make sure that changes to the mapped area do not
16017 percolate back to the file as seen by read(). (This is a bug on
16018 some variants of i386 svr4.0.) */
16019 for (i = 0; i < pagesize; ++i)
16020 *(data2 + i) = *(data2 + i) + 1;
16021 data3 = (char *) malloc (pagesize);
16022 if (!data3)
16023 return 1;
16024 if (read (fd, data3, pagesize) != pagesize)
16025 return 1;
16026 for (i = 0; i < pagesize; ++i)
16027 if (*(data + i) != *(data3 + i))
16028 return 1;
16029 close (fd);
16030 return 0;
16031 }
16032 _ACEOF
16033 if ac_fn_c_try_run "$LINENO"; then :
16034 ac_cv_func_mmap_fixed_mapped=yes
16035 else
16036 ac_cv_func_mmap_fixed_mapped=no
16037 fi
16038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16039 conftest.$ac_objext conftest.beam conftest.$ac_ext
16040 fi
16041
16042 fi
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
16044 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
16045 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16046
16047 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
16048
16049 fi
16050 rm -f conftest.mmap
16051
16052 for ac_func in madvise mprotect
16053 do :
16054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16055 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16056 eval as_val=\$$as_ac_var
16057 if test "x$as_val" = x""yes; then :
16058 cat >>confdefs.h <<_ACEOF
16059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16060 _ACEOF
16061
16062 fi
16063 done
16064
16065 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16066 true+yes )
16067 $as_echo "#define USE_MMAP 1" >>confdefs.h
16068 ;;
16069 esac
16070
16071 rm -f doc/config.status
16072 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
16073
16074
16075 ac_config_commands="$ac_config_commands default"
16076
16077
16078
16079
16080
16081
16082
16083 cat >confcache <<\_ACEOF
16084 # This file is a shell script that caches the results of configure
16085 # tests run on this system so they can be shared between configure
16086 # scripts and configure runs, see configure's option --config-cache.
16087 # It is not useful on other systems. If it contains results you don't
16088 # want to keep, you may remove or edit it.
16089 #
16090 # config.status only pays attention to the cache file if you give it
16091 # the --recheck option to rerun configure.
16092 #
16093 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16094 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16095 # following values.
16096
16097 _ACEOF
16098
16099 # The following way of writing the cache mishandles newlines in values,
16100 # but we know of no workaround that is simple, portable, and efficient.
16101 # So, we kill variables containing newlines.
16102 # Ultrix sh set writes to stderr and can't be redirected directly,
16103 # and sets the high bit in the cache file unless we assign to the vars.
16104 (
16105 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16106 eval ac_val=\$$ac_var
16107 case $ac_val in #(
16108 *${as_nl}*)
16109 case $ac_var in #(
16110 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16111 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16112 esac
16113 case $ac_var in #(
16114 _ | IFS | as_nl) ;; #(
16115 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16116 *) { eval $ac_var=; unset $ac_var;} ;;
16117 esac ;;
16118 esac
16119 done
16120
16121 (set) 2>&1 |
16122 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16123 *${as_nl}ac_space=\ *)
16124 # `set' does not quote correctly, so add quotes: double-quote
16125 # substitution turns \\\\ into \\, and sed turns \\ into \.
16126 sed -n \
16127 "s/'/'\\\\''/g;
16128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16129 ;; #(
16130 *)
16131 # `set' quotes correctly as required by POSIX, so do not add quotes.
16132 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16133 ;;
16134 esac |
16135 sort
16136 ) |
16137 sed '
16138 /^ac_cv_env_/b end
16139 t clear
16140 :clear
16141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16142 t end
16143 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16144 :end' >>confcache
16145 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16146 if test -w "$cache_file"; then
16147 test "x$cache_file" != "x/dev/null" &&
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16149 $as_echo "$as_me: updating cache $cache_file" >&6;}
16150 cat confcache >$cache_file
16151 else
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16153 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16154 fi
16155 fi
16156 rm -f confcache
16157
16158 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16159 # Let make expand exec_prefix.
16160 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16161
16162 DEFS=-DHAVE_CONFIG_H
16163
16164 ac_libobjs=
16165 ac_ltlibobjs=
16166 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16167 # 1. Remove the extension, and $U if already installed.
16168 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16169 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16171 # will be set to the directory where LIBOBJS objects are built.
16172 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16173 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16174 done
16175 LIBOBJS=$ac_libobjs
16176
16177 LTLIBOBJS=$ac_ltlibobjs
16178
16179
16180 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16181 as_fn_error "conditional \"AMDEP\" was never defined.
16182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16183 fi
16184 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16185 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16187 fi
16188 if test -n "$EXEEXT"; then
16189 am__EXEEXT_TRUE=
16190 am__EXEEXT_FALSE='#'
16191 else
16192 am__EXEEXT_TRUE='#'
16193 am__EXEEXT_FALSE=
16194 fi
16195
16196 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16197 as_fn_error "conditional \"PLUGINS\" was never defined.
16198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16199 fi
16200 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16201 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16203 fi
16204 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16205 as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16206 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16207 fi
16208 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
16209 as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16210 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16211 fi
16212
16213 : ${CONFIG_STATUS=./config.status}
16214 ac_write_fail=0
16215 ac_clean_files_save=$ac_clean_files
16216 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16218 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16219 as_write_fail=0
16220 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16221 #! $SHELL
16222 # Generated by $as_me.
16223 # Run this file to recreate the current configuration.
16224 # Compiler output produced by configure, useful for debugging
16225 # configure, is in config.log if it exists.
16226
16227 debug=false
16228 ac_cs_recheck=false
16229 ac_cs_silent=false
16230
16231 SHELL=\${CONFIG_SHELL-$SHELL}
16232 export SHELL
16233 _ASEOF
16234 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16235 ## -------------------- ##
16236 ## M4sh Initialization. ##
16237 ## -------------------- ##
16238
16239 # Be more Bourne compatible
16240 DUALCASE=1; export DUALCASE # for MKS sh
16241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16242 emulate sh
16243 NULLCMD=:
16244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16245 # is contrary to our usage. Disable this feature.
16246 alias -g '${1+"$@"}'='"$@"'
16247 setopt NO_GLOB_SUBST
16248 else
16249 case `(set -o) 2>/dev/null` in #(
16250 *posix*) :
16251 set -o posix ;; #(
16252 *) :
16253 ;;
16254 esac
16255 fi
16256
16257
16258 as_nl='
16259 '
16260 export as_nl
16261 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16262 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16263 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16265 # Prefer a ksh shell builtin over an external printf program on Solaris,
16266 # but without wasting forks for bash or zsh.
16267 if test -z "$BASH_VERSION$ZSH_VERSION" \
16268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16269 as_echo='print -r --'
16270 as_echo_n='print -rn --'
16271 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16272 as_echo='printf %s\n'
16273 as_echo_n='printf %s'
16274 else
16275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16277 as_echo_n='/usr/ucb/echo -n'
16278 else
16279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16280 as_echo_n_body='eval
16281 arg=$1;
16282 case $arg in #(
16283 *"$as_nl"*)
16284 expr "X$arg" : "X\\(.*\\)$as_nl";
16285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16286 esac;
16287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16288 '
16289 export as_echo_n_body
16290 as_echo_n='sh -c $as_echo_n_body as_echo'
16291 fi
16292 export as_echo_body
16293 as_echo='sh -c $as_echo_body as_echo'
16294 fi
16295
16296 # The user is always right.
16297 if test "${PATH_SEPARATOR+set}" != set; then
16298 PATH_SEPARATOR=:
16299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16301 PATH_SEPARATOR=';'
16302 }
16303 fi
16304
16305
16306 # IFS
16307 # We need space, tab and new line, in precisely that order. Quoting is
16308 # there to prevent editors from complaining about space-tab.
16309 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16310 # splitting by setting IFS to empty value.)
16311 IFS=" "" $as_nl"
16312
16313 # Find who we are. Look in the path if we contain no directory separator.
16314 case $0 in #((
16315 *[\\/]* ) as_myself=$0 ;;
16316 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16317 for as_dir in $PATH
16318 do
16319 IFS=$as_save_IFS
16320 test -z "$as_dir" && as_dir=.
16321 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16322 done
16323 IFS=$as_save_IFS
16324
16325 ;;
16326 esac
16327 # We did not find ourselves, most probably we were run as `sh COMMAND'
16328 # in which case we are not to be found in the path.
16329 if test "x$as_myself" = x; then
16330 as_myself=$0
16331 fi
16332 if test ! -f "$as_myself"; then
16333 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16334 exit 1
16335 fi
16336
16337 # Unset variables that we do not need and which cause bugs (e.g. in
16338 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16339 # suppresses any "Segmentation fault" message there. '((' could
16340 # trigger a bug in pdksh 5.2.14.
16341 for as_var in BASH_ENV ENV MAIL MAILPATH
16342 do eval test x\${$as_var+set} = xset \
16343 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16344 done
16345 PS1='$ '
16346 PS2='> '
16347 PS4='+ '
16348
16349 # NLS nuisances.
16350 LC_ALL=C
16351 export LC_ALL
16352 LANGUAGE=C
16353 export LANGUAGE
16354
16355 # CDPATH.
16356 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16357
16358
16359 # as_fn_error ERROR [LINENO LOG_FD]
16360 # ---------------------------------
16361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16363 # script with status $?, using 1 if that was 0.
16364 as_fn_error ()
16365 {
16366 as_status=$?; test $as_status -eq 0 && as_status=1
16367 if test "$3"; then
16368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16370 fi
16371 $as_echo "$as_me: error: $1" >&2
16372 as_fn_exit $as_status
16373 } # as_fn_error
16374
16375
16376 # as_fn_set_status STATUS
16377 # -----------------------
16378 # Set $? to STATUS, without forking.
16379 as_fn_set_status ()
16380 {
16381 return $1
16382 } # as_fn_set_status
16383
16384 # as_fn_exit STATUS
16385 # -----------------
16386 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16387 as_fn_exit ()
16388 {
16389 set +e
16390 as_fn_set_status $1
16391 exit $1
16392 } # as_fn_exit
16393
16394 # as_fn_unset VAR
16395 # ---------------
16396 # Portably unset VAR.
16397 as_fn_unset ()
16398 {
16399 { eval $1=; unset $1;}
16400 }
16401 as_unset=as_fn_unset
16402 # as_fn_append VAR VALUE
16403 # ----------------------
16404 # Append the text in VALUE to the end of the definition contained in VAR. Take
16405 # advantage of any shell optimizations that allow amortized linear growth over
16406 # repeated appends, instead of the typical quadratic growth present in naive
16407 # implementations.
16408 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16409 eval 'as_fn_append ()
16410 {
16411 eval $1+=\$2
16412 }'
16413 else
16414 as_fn_append ()
16415 {
16416 eval $1=\$$1\$2
16417 }
16418 fi # as_fn_append
16419
16420 # as_fn_arith ARG...
16421 # ------------------
16422 # Perform arithmetic evaluation on the ARGs, and store the result in the
16423 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16424 # must be portable across $(()) and expr.
16425 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16426 eval 'as_fn_arith ()
16427 {
16428 as_val=$(( $* ))
16429 }'
16430 else
16431 as_fn_arith ()
16432 {
16433 as_val=`expr "$@" || test $? -eq 1`
16434 }
16435 fi # as_fn_arith
16436
16437
16438 if expr a : '\(a\)' >/dev/null 2>&1 &&
16439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16440 as_expr=expr
16441 else
16442 as_expr=false
16443 fi
16444
16445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16446 as_basename=basename
16447 else
16448 as_basename=false
16449 fi
16450
16451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16452 as_dirname=dirname
16453 else
16454 as_dirname=false
16455 fi
16456
16457 as_me=`$as_basename -- "$0" ||
16458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16459 X"$0" : 'X\(//\)$' \| \
16460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16461 $as_echo X/"$0" |
16462 sed '/^.*\/\([^/][^/]*\)\/*$/{
16463 s//\1/
16464 q
16465 }
16466 /^X\/\(\/\/\)$/{
16467 s//\1/
16468 q
16469 }
16470 /^X\/\(\/\).*/{
16471 s//\1/
16472 q
16473 }
16474 s/.*/./; q'`
16475
16476 # Avoid depending upon Character Ranges.
16477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16480 as_cr_digits='0123456789'
16481 as_cr_alnum=$as_cr_Letters$as_cr_digits
16482
16483 ECHO_C= ECHO_N= ECHO_T=
16484 case `echo -n x` in #(((((
16485 -n*)
16486 case `echo 'xy\c'` in
16487 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16488 xy) ECHO_C='\c';;
16489 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16490 ECHO_T=' ';;
16491 esac;;
16492 *)
16493 ECHO_N='-n';;
16494 esac
16495
16496 rm -f conf$$ conf$$.exe conf$$.file
16497 if test -d conf$$.dir; then
16498 rm -f conf$$.dir/conf$$.file
16499 else
16500 rm -f conf$$.dir
16501 mkdir conf$$.dir 2>/dev/null
16502 fi
16503 if (echo >conf$$.file) 2>/dev/null; then
16504 if ln -s conf$$.file conf$$ 2>/dev/null; then
16505 as_ln_s='ln -s'
16506 # ... but there are two gotchas:
16507 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16508 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16509 # In both cases, we have to default to `cp -p'.
16510 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16511 as_ln_s='cp -p'
16512 elif ln conf$$.file conf$$ 2>/dev/null; then
16513 as_ln_s=ln
16514 else
16515 as_ln_s='cp -p'
16516 fi
16517 else
16518 as_ln_s='cp -p'
16519 fi
16520 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16521 rmdir conf$$.dir 2>/dev/null
16522
16523
16524 # as_fn_mkdir_p
16525 # -------------
16526 # Create "$as_dir" as a directory, including parents if necessary.
16527 as_fn_mkdir_p ()
16528 {
16529
16530 case $as_dir in #(
16531 -*) as_dir=./$as_dir;;
16532 esac
16533 test -d "$as_dir" || eval $as_mkdir_p || {
16534 as_dirs=
16535 while :; do
16536 case $as_dir in #(
16537 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16538 *) as_qdir=$as_dir;;
16539 esac
16540 as_dirs="'$as_qdir' $as_dirs"
16541 as_dir=`$as_dirname -- "$as_dir" ||
16542 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16543 X"$as_dir" : 'X\(//\)[^/]' \| \
16544 X"$as_dir" : 'X\(//\)$' \| \
16545 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16546 $as_echo X"$as_dir" |
16547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16548 s//\1/
16549 q
16550 }
16551 /^X\(\/\/\)[^/].*/{
16552 s//\1/
16553 q
16554 }
16555 /^X\(\/\/\)$/{
16556 s//\1/
16557 q
16558 }
16559 /^X\(\/\).*/{
16560 s//\1/
16561 q
16562 }
16563 s/.*/./; q'`
16564 test -d "$as_dir" && break
16565 done
16566 test -z "$as_dirs" || eval "mkdir $as_dirs"
16567 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16568
16569
16570 } # as_fn_mkdir_p
16571 if mkdir -p . 2>/dev/null; then
16572 as_mkdir_p='mkdir -p "$as_dir"'
16573 else
16574 test -d ./-p && rmdir ./-p
16575 as_mkdir_p=false
16576 fi
16577
16578 if test -x / >/dev/null 2>&1; then
16579 as_test_x='test -x'
16580 else
16581 if ls -dL / >/dev/null 2>&1; then
16582 as_ls_L_option=L
16583 else
16584 as_ls_L_option=
16585 fi
16586 as_test_x='
16587 eval sh -c '\''
16588 if test -d "$1"; then
16589 test -d "$1/.";
16590 else
16591 case $1 in #(
16592 -*)set "./$1";;
16593 esac;
16594 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16595 ???[sx]*):;;*)false;;esac;fi
16596 '\'' sh
16597 '
16598 fi
16599 as_executable_p=$as_test_x
16600
16601 # Sed expression to map a string onto a valid CPP name.
16602 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16603
16604 # Sed expression to map a string onto a valid variable name.
16605 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16606
16607
16608 exec 6>&1
16609 ## ----------------------------------- ##
16610 ## Main body of $CONFIG_STATUS script. ##
16611 ## ----------------------------------- ##
16612 _ASEOF
16613 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16614
16615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16616 # Save the log message, to keep $0 and so on meaningful, and to
16617 # report actual input values of CONFIG_FILES etc. instead of their
16618 # values after options handling.
16619 ac_log="
16620 This file was extended by bfd $as_me 2.28.51, which was
16621 generated by GNU Autoconf 2.64. Invocation command line was
16622
16623 CONFIG_FILES = $CONFIG_FILES
16624 CONFIG_HEADERS = $CONFIG_HEADERS
16625 CONFIG_LINKS = $CONFIG_LINKS
16626 CONFIG_COMMANDS = $CONFIG_COMMANDS
16627 $ $0 $@
16628
16629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16630 "
16631
16632 _ACEOF
16633
16634 case $ac_config_files in *"
16635 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16636 esac
16637
16638 case $ac_config_headers in *"
16639 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16640 esac
16641
16642
16643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16644 # Files that config.status was made for.
16645 config_files="$ac_config_files"
16646 config_headers="$ac_config_headers"
16647 config_commands="$ac_config_commands"
16648
16649 _ACEOF
16650
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 ac_cs_usage="\
16653 \`$as_me' instantiates files and other configuration actions
16654 from templates according to the current configuration. Unless the files
16655 and actions are specified as TAGs, all are instantiated by default.
16656
16657 Usage: $0 [OPTION]... [TAG]...
16658
16659 -h, --help print this help, then exit
16660 -V, --version print version number and configuration settings, then exit
16661 -q, --quiet, --silent
16662 do not print progress messages
16663 -d, --debug don't remove temporary files
16664 --recheck update $as_me by reconfiguring in the same conditions
16665 --file=FILE[:TEMPLATE]
16666 instantiate the configuration file FILE
16667 --header=FILE[:TEMPLATE]
16668 instantiate the configuration header FILE
16669
16670 Configuration files:
16671 $config_files
16672
16673 Configuration headers:
16674 $config_headers
16675
16676 Configuration commands:
16677 $config_commands
16678
16679 Report bugs to the package provider."
16680
16681 _ACEOF
16682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16683 ac_cs_version="\\
16684 bfd config.status 2.28.51
16685 configured by $0, generated by GNU Autoconf 2.64,
16686 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16687
16688 Copyright (C) 2009 Free Software Foundation, Inc.
16689 This config.status script is free software; the Free Software Foundation
16690 gives unlimited permission to copy, distribute and modify it."
16691
16692 ac_pwd='$ac_pwd'
16693 srcdir='$srcdir'
16694 INSTALL='$INSTALL'
16695 MKDIR_P='$MKDIR_P'
16696 AWK='$AWK'
16697 test -n "\$AWK" || AWK=awk
16698 _ACEOF
16699
16700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16701 # The default lists apply if the user does not specify any file.
16702 ac_need_defaults=:
16703 while test $# != 0
16704 do
16705 case $1 in
16706 --*=*)
16707 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16708 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16709 ac_shift=:
16710 ;;
16711 *)
16712 ac_option=$1
16713 ac_optarg=$2
16714 ac_shift=shift
16715 ;;
16716 esac
16717
16718 case $ac_option in
16719 # Handling of the options.
16720 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16721 ac_cs_recheck=: ;;
16722 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16723 $as_echo "$ac_cs_version"; exit ;;
16724 --debug | --debu | --deb | --de | --d | -d )
16725 debug=: ;;
16726 --file | --fil | --fi | --f )
16727 $ac_shift
16728 case $ac_optarg in
16729 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16730 esac
16731 as_fn_append CONFIG_FILES " '$ac_optarg'"
16732 ac_need_defaults=false;;
16733 --header | --heade | --head | --hea )
16734 $ac_shift
16735 case $ac_optarg in
16736 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16737 esac
16738 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16739 ac_need_defaults=false;;
16740 --he | --h)
16741 # Conflict between --help and --header
16742 as_fn_error "ambiguous option: \`$1'
16743 Try \`$0 --help' for more information.";;
16744 --help | --hel | -h )
16745 $as_echo "$ac_cs_usage"; exit ;;
16746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16748 ac_cs_silent=: ;;
16749
16750 # This is an error.
16751 -*) as_fn_error "unrecognized option: \`$1'
16752 Try \`$0 --help' for more information." ;;
16753
16754 *) as_fn_append ac_config_targets " $1"
16755 ac_need_defaults=false ;;
16756
16757 esac
16758 shift
16759 done
16760
16761 ac_configure_extra_args=
16762
16763 if $ac_cs_silent; then
16764 exec 6>/dev/null
16765 ac_configure_extra_args="$ac_configure_extra_args --silent"
16766 fi
16767
16768 _ACEOF
16769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16770 if \$ac_cs_recheck; then
16771 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16772 shift
16773 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16774 CONFIG_SHELL='$SHELL'
16775 export CONFIG_SHELL
16776 exec "\$@"
16777 fi
16778
16779 _ACEOF
16780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16781 exec 5>>config.log
16782 {
16783 echo
16784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16785 ## Running $as_me. ##
16786 _ASBOX
16787 $as_echo "$ac_log"
16788 } >&5
16789
16790 _ACEOF
16791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16792 #
16793 # INIT-COMMANDS
16794 #
16795 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16796
16797
16798 # The HP-UX ksh and POSIX shell print the target directory to stdout
16799 # if CDPATH is set.
16800 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16801
16802 sed_quote_subst='$sed_quote_subst'
16803 double_quote_subst='$double_quote_subst'
16804 delay_variable_subst='$delay_variable_subst'
16805 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16806 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16807 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16808 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16809 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16810 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16811 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16812 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16813 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16814 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16815 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16816 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16817 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16818 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16819 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16820 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16821 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16822 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16823 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16824 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16825 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16826 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16827 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16828 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16829 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16830 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16831 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16832 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16833 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16834 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16835 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16836 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16837 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16838 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16839 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16840 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16841 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16842 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16843 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16844 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16845 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16846 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16847 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16848 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16849 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16850 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16852 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16853 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"`'
16854 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16855 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16856 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16857 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16858 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16859 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16860 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16861 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16862 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16863 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16864 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16865 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16866 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16867 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16868 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16869 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16870 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16871 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16872 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16873 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16874 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16875 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16876 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16877 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16878 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16879 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16880 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16881 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16882 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16883 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16884 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16885 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16886 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16887 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16888 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16889 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16890 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16891 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16892 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16893 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16894 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16895 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16896 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16897 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16898 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16899 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16900 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16901 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16902 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16903 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16904 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16905 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16906 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16907 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16908 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16909 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16910 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16911 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16912 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16913 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16914 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16915 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16916 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16917 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16918 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16919 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16920 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16921 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16922 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16923 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16924 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16925
16926 LTCC='$LTCC'
16927 LTCFLAGS='$LTCFLAGS'
16928 compiler='$compiler_DEFAULT'
16929
16930 # A function that is used when there is no print builtin or printf.
16931 func_fallback_echo ()
16932 {
16933 eval 'cat <<_LTECHO_EOF
16934 \$1
16935 _LTECHO_EOF'
16936 }
16937
16938 # Quote evaled strings.
16939 for var in SHELL \
16940 ECHO \
16941 SED \
16942 GREP \
16943 EGREP \
16944 FGREP \
16945 LD \
16946 NM \
16947 LN_S \
16948 lt_SP2NL \
16949 lt_NL2SP \
16950 reload_flag \
16951 OBJDUMP \
16952 deplibs_check_method \
16953 file_magic_cmd \
16954 AR \
16955 AR_FLAGS \
16956 STRIP \
16957 RANLIB \
16958 CC \
16959 CFLAGS \
16960 compiler \
16961 lt_cv_sys_global_symbol_pipe \
16962 lt_cv_sys_global_symbol_to_cdecl \
16963 lt_cv_sys_global_symbol_to_c_name_address \
16964 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16965 lt_prog_compiler_no_builtin_flag \
16966 lt_prog_compiler_wl \
16967 lt_prog_compiler_pic \
16968 lt_prog_compiler_static \
16969 lt_cv_prog_compiler_c_o \
16970 need_locks \
16971 DSYMUTIL \
16972 NMEDIT \
16973 LIPO \
16974 OTOOL \
16975 OTOOL64 \
16976 shrext_cmds \
16977 export_dynamic_flag_spec \
16978 whole_archive_flag_spec \
16979 compiler_needs_object \
16980 with_gnu_ld \
16981 allow_undefined_flag \
16982 no_undefined_flag \
16983 hardcode_libdir_flag_spec \
16984 hardcode_libdir_flag_spec_ld \
16985 hardcode_libdir_separator \
16986 fix_srcfile_path \
16987 exclude_expsyms \
16988 include_expsyms \
16989 file_list_spec \
16990 variables_saved_for_relink \
16991 libname_spec \
16992 library_names_spec \
16993 soname_spec \
16994 install_override_mode \
16995 finish_eval \
16996 old_striplib \
16997 striplib; do
16998 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16999 *[\\\\\\\`\\"\\\$]*)
17000 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17001 ;;
17002 *)
17003 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17004 ;;
17005 esac
17006 done
17007
17008 # Double-quote double-evaled strings.
17009 for var in reload_cmds \
17010 old_postinstall_cmds \
17011 old_postuninstall_cmds \
17012 old_archive_cmds \
17013 extract_expsyms_cmds \
17014 old_archive_from_new_cmds \
17015 old_archive_from_expsyms_cmds \
17016 archive_cmds \
17017 archive_expsym_cmds \
17018 module_cmds \
17019 module_expsym_cmds \
17020 export_symbols_cmds \
17021 prelink_cmds \
17022 postinstall_cmds \
17023 postuninstall_cmds \
17024 finish_cmds \
17025 sys_lib_search_path_spec \
17026 sys_lib_dlsearch_path_spec; do
17027 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17028 *[\\\\\\\`\\"\\\$]*)
17029 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17030 ;;
17031 *)
17032 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17033 ;;
17034 esac
17035 done
17036
17037 ac_aux_dir='$ac_aux_dir'
17038 xsi_shell='$xsi_shell'
17039 lt_shell_append='$lt_shell_append'
17040
17041 # See if we are running on zsh, and set the options which allow our
17042 # commands through without removal of \ escapes INIT.
17043 if test -n "\${ZSH_VERSION+set}" ; then
17044 setopt NO_GLOB_SUBST
17045 fi
17046
17047
17048 PACKAGE='$PACKAGE'
17049 VERSION='$VERSION'
17050 TIMESTAMP='$TIMESTAMP'
17051 RM='$RM'
17052 ofile='$ofile'
17053
17054
17055
17056 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17057 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17058 # from automake.
17059 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17060 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17061 LINGUAS="${LINGUAS-%UNSET%}"
17062
17063
17064 GCC="$GCC"
17065 CC="$CC"
17066 acx_cv_header_stdint="$acx_cv_header_stdint"
17067 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17068 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17069 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17070 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17071 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17072 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17073 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17074 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17075 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17076 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17077 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17078 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17079 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17080
17081
17082
17083 _ACEOF
17084
17085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17086
17087 # Handling of arguments.
17088 for ac_config_target in $ac_config_targets
17089 do
17090 case $ac_config_target in
17091 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17092 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17093 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17094 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17095 "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17096 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17097 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17098 "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17099 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17100 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17101
17102 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17103 esac
17104 done
17105
17106
17107 # If the user did not use the arguments to specify the items to instantiate,
17108 # then the envvar interface is used. Set only those that are not.
17109 # We use the long form for the default assignment because of an extremely
17110 # bizarre bug on SunOS 4.1.3.
17111 if $ac_need_defaults; then
17112 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17113 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17114 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17115 fi
17116
17117 # Have a temporary directory for convenience. Make it in the build tree
17118 # simply because there is no reason against having it here, and in addition,
17119 # creating and moving files from /tmp can sometimes cause problems.
17120 # Hook for its removal unless debugging.
17121 # Note that there is a small window in which the directory will not be cleaned:
17122 # after its creation but before its name has been assigned to `$tmp'.
17123 $debug ||
17124 {
17125 tmp=
17126 trap 'exit_status=$?
17127 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17128 ' 0
17129 trap 'as_fn_exit 1' 1 2 13 15
17130 }
17131 # Create a (secure) tmp directory for tmp files.
17132
17133 {
17134 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17135 test -n "$tmp" && test -d "$tmp"
17136 } ||
17137 {
17138 tmp=./conf$$-$RANDOM
17139 (umask 077 && mkdir "$tmp")
17140 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17141
17142 # Set up the scripts for CONFIG_FILES section.
17143 # No need to generate them if there are no CONFIG_FILES.
17144 # This happens for instance with `./config.status config.h'.
17145 if test -n "$CONFIG_FILES"; then
17146
17147
17148 ac_cr=`echo X | tr X '\015'`
17149 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17150 # But we know of no other shell where ac_cr would be empty at this
17151 # point, so we can use a bashism as a fallback.
17152 if test "x$ac_cr" = x; then
17153 eval ac_cr=\$\'\\r\'
17154 fi
17155 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17156 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17157 ac_cs_awk_cr='\r'
17158 else
17159 ac_cs_awk_cr=$ac_cr
17160 fi
17161
17162 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17163 _ACEOF
17164
17165
17166 {
17167 echo "cat >conf$$subs.awk <<_ACEOF" &&
17168 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17169 echo "_ACEOF"
17170 } >conf$$subs.sh ||
17171 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17172 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17173 ac_delim='%!_!# '
17174 for ac_last_try in false false false false false :; do
17175 . ./conf$$subs.sh ||
17176 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17177
17178 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17179 if test $ac_delim_n = $ac_delim_num; then
17180 break
17181 elif $ac_last_try; then
17182 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17183 else
17184 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17185 fi
17186 done
17187 rm -f conf$$subs.sh
17188
17189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17190 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17191 _ACEOF
17192 sed -n '
17193 h
17194 s/^/S["/; s/!.*/"]=/
17195 p
17196 g
17197 s/^[^!]*!//
17198 :repl
17199 t repl
17200 s/'"$ac_delim"'$//
17201 t delim
17202 :nl
17203 h
17204 s/\(.\{148\}\).*/\1/
17205 t more1
17206 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17207 p
17208 n
17209 b repl
17210 :more1
17211 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17212 p
17213 g
17214 s/.\{148\}//
17215 t nl
17216 :delim
17217 h
17218 s/\(.\{148\}\).*/\1/
17219 t more2
17220 s/["\\]/\\&/g; s/^/"/; s/$/"/
17221 p
17222 b
17223 :more2
17224 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17225 p
17226 g
17227 s/.\{148\}//
17228 t delim
17229 ' <conf$$subs.awk | sed '
17230 /^[^""]/{
17231 N
17232 s/\n//
17233 }
17234 ' >>$CONFIG_STATUS || ac_write_fail=1
17235 rm -f conf$$subs.awk
17236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17237 _ACAWK
17238 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17239 for (key in S) S_is_set[key] = 1
17240 FS = ""
17241
17242 }
17243 {
17244 line = $ 0
17245 nfields = split(line, field, "@")
17246 substed = 0
17247 len = length(field[1])
17248 for (i = 2; i < nfields; i++) {
17249 key = field[i]
17250 keylen = length(key)
17251 if (S_is_set[key]) {
17252 value = S[key]
17253 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17254 len += length(value) + length(field[++i])
17255 substed = 1
17256 } else
17257 len += 1 + keylen
17258 }
17259
17260 print line
17261 }
17262
17263 _ACAWK
17264 _ACEOF
17265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17266 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17267 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17268 else
17269 cat
17270 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17271 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17272 _ACEOF
17273
17274 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17275 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17276 # trailing colons and then remove the whole line if VPATH becomes empty
17277 # (actually we leave an empty line to preserve line numbers).
17278 if test "x$srcdir" = x.; then
17279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17280 s/:*\$(srcdir):*/:/
17281 s/:*\${srcdir}:*/:/
17282 s/:*@srcdir@:*/:/
17283 s/^\([^=]*=[ ]*\):*/\1/
17284 s/:*$//
17285 s/^[^=]*=[ ]*$//
17286 }'
17287 fi
17288
17289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17290 fi # test -n "$CONFIG_FILES"
17291
17292 # Set up the scripts for CONFIG_HEADERS section.
17293 # No need to generate them if there are no CONFIG_HEADERS.
17294 # This happens for instance with `./config.status Makefile'.
17295 if test -n "$CONFIG_HEADERS"; then
17296 cat >"$tmp/defines.awk" <<\_ACAWK ||
17297 BEGIN {
17298 _ACEOF
17299
17300 # Transform confdefs.h into an awk script `defines.awk', embedded as
17301 # here-document in config.status, that substitutes the proper values into
17302 # config.h.in to produce config.h.
17303
17304 # Create a delimiter string that does not exist in confdefs.h, to ease
17305 # handling of long lines.
17306 ac_delim='%!_!# '
17307 for ac_last_try in false false :; do
17308 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17309 if test -z "$ac_t"; then
17310 break
17311 elif $ac_last_try; then
17312 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17313 else
17314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17315 fi
17316 done
17317
17318 # For the awk script, D is an array of macro values keyed by name,
17319 # likewise P contains macro parameters if any. Preserve backslash
17320 # newline sequences.
17321
17322 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17323 sed -n '
17324 s/.\{148\}/&'"$ac_delim"'/g
17325 t rset
17326 :rset
17327 s/^[ ]*#[ ]*define[ ][ ]*/ /
17328 t def
17329 d
17330 :def
17331 s/\\$//
17332 t bsnl
17333 s/["\\]/\\&/g
17334 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17335 D["\1"]=" \3"/p
17336 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17337 d
17338 :bsnl
17339 s/["\\]/\\&/g
17340 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17341 D["\1"]=" \3\\\\\\n"\\/p
17342 t cont
17343 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17344 t cont
17345 d
17346 :cont
17347 n
17348 s/.\{148\}/&'"$ac_delim"'/g
17349 t clear
17350 :clear
17351 s/\\$//
17352 t bsnlc
17353 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17354 d
17355 :bsnlc
17356 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17357 b cont
17358 ' <confdefs.h | sed '
17359 s/'"$ac_delim"'/"\\\
17360 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17361
17362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17363 for (key in D) D_is_set[key] = 1
17364 FS = ""
17365 }
17366 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17367 line = \$ 0
17368 split(line, arg, " ")
17369 if (arg[1] == "#") {
17370 defundef = arg[2]
17371 mac1 = arg[3]
17372 } else {
17373 defundef = substr(arg[1], 2)
17374 mac1 = arg[2]
17375 }
17376 split(mac1, mac2, "(") #)
17377 macro = mac2[1]
17378 prefix = substr(line, 1, index(line, defundef) - 1)
17379 if (D_is_set[macro]) {
17380 # Preserve the white space surrounding the "#".
17381 print prefix "define", macro P[macro] D[macro]
17382 next
17383 } else {
17384 # Replace #undef with comments. This is necessary, for example,
17385 # in the case of _POSIX_SOURCE, which is predefined and required
17386 # on some systems where configure will not decide to define it.
17387 if (defundef == "undef") {
17388 print "/*", prefix defundef, macro, "*/"
17389 next
17390 }
17391 }
17392 }
17393 { print }
17394 _ACAWK
17395 _ACEOF
17396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17397 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17398 fi # test -n "$CONFIG_HEADERS"
17399
17400
17401 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17402 shift
17403 for ac_tag
17404 do
17405 case $ac_tag in
17406 :[FHLC]) ac_mode=$ac_tag; continue;;
17407 esac
17408 case $ac_mode$ac_tag in
17409 :[FHL]*:*);;
17410 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17411 :[FH]-) ac_tag=-:-;;
17412 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17413 esac
17414 ac_save_IFS=$IFS
17415 IFS=:
17416 set x $ac_tag
17417 IFS=$ac_save_IFS
17418 shift
17419 ac_file=$1
17420 shift
17421
17422 case $ac_mode in
17423 :L) ac_source=$1;;
17424 :[FH])
17425 ac_file_inputs=
17426 for ac_f
17427 do
17428 case $ac_f in
17429 -) ac_f="$tmp/stdin";;
17430 *) # Look for the file first in the build tree, then in the source tree
17431 # (if the path is not absolute). The absolute path cannot be DOS-style,
17432 # because $ac_f cannot contain `:'.
17433 test -f "$ac_f" ||
17434 case $ac_f in
17435 [\\/$]*) false;;
17436 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17437 esac ||
17438 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17439 esac
17440 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17441 as_fn_append ac_file_inputs " '$ac_f'"
17442 done
17443
17444 # Let's still pretend it is `configure' which instantiates (i.e., don't
17445 # use $as_me), people would be surprised to read:
17446 # /* config.h. Generated by config.status. */
17447 configure_input='Generated from '`
17448 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17449 `' by configure.'
17450 if test x"$ac_file" != x-; then
17451 configure_input="$ac_file. $configure_input"
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17453 $as_echo "$as_me: creating $ac_file" >&6;}
17454 fi
17455 # Neutralize special characters interpreted by sed in replacement strings.
17456 case $configure_input in #(
17457 *\&* | *\|* | *\\* )
17458 ac_sed_conf_input=`$as_echo "$configure_input" |
17459 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17460 *) ac_sed_conf_input=$configure_input;;
17461 esac
17462
17463 case $ac_tag in
17464 *:-:* | *:-) cat >"$tmp/stdin" \
17465 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17466 esac
17467 ;;
17468 esac
17469
17470 ac_dir=`$as_dirname -- "$ac_file" ||
17471 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17472 X"$ac_file" : 'X\(//\)[^/]' \| \
17473 X"$ac_file" : 'X\(//\)$' \| \
17474 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17475 $as_echo X"$ac_file" |
17476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17477 s//\1/
17478 q
17479 }
17480 /^X\(\/\/\)[^/].*/{
17481 s//\1/
17482 q
17483 }
17484 /^X\(\/\/\)$/{
17485 s//\1/
17486 q
17487 }
17488 /^X\(\/\).*/{
17489 s//\1/
17490 q
17491 }
17492 s/.*/./; q'`
17493 as_dir="$ac_dir"; as_fn_mkdir_p
17494 ac_builddir=.
17495
17496 case "$ac_dir" in
17497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17498 *)
17499 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17500 # A ".." for each directory in $ac_dir_suffix.
17501 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17502 case $ac_top_builddir_sub in
17503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17505 esac ;;
17506 esac
17507 ac_abs_top_builddir=$ac_pwd
17508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17509 # for backward compatibility:
17510 ac_top_builddir=$ac_top_build_prefix
17511
17512 case $srcdir in
17513 .) # We are building in place.
17514 ac_srcdir=.
17515 ac_top_srcdir=$ac_top_builddir_sub
17516 ac_abs_top_srcdir=$ac_pwd ;;
17517 [\\/]* | ?:[\\/]* ) # Absolute name.
17518 ac_srcdir=$srcdir$ac_dir_suffix;
17519 ac_top_srcdir=$srcdir
17520 ac_abs_top_srcdir=$srcdir ;;
17521 *) # Relative name.
17522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17523 ac_top_srcdir=$ac_top_build_prefix$srcdir
17524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17525 esac
17526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17527
17528
17529 case $ac_mode in
17530 :F)
17531 #
17532 # CONFIG_FILE
17533 #
17534
17535 case $INSTALL in
17536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17538 esac
17539 ac_MKDIR_P=$MKDIR_P
17540 case $MKDIR_P in
17541 [\\/$]* | ?:[\\/]* ) ;;
17542 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17543 esac
17544 _ACEOF
17545
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547 # If the template does not know about datarootdir, expand it.
17548 # FIXME: This hack should be removed a few years after 2.60.
17549 ac_datarootdir_hack=; ac_datarootdir_seen=
17550 ac_sed_dataroot='
17551 /datarootdir/ {
17552 p
17553 q
17554 }
17555 /@datadir@/p
17556 /@docdir@/p
17557 /@infodir@/p
17558 /@localedir@/p
17559 /@mandir@/p'
17560 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17561 *datarootdir*) ac_datarootdir_seen=yes;;
17562 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17564 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17565 _ACEOF
17566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17567 ac_datarootdir_hack='
17568 s&@datadir@&$datadir&g
17569 s&@docdir@&$docdir&g
17570 s&@infodir@&$infodir&g
17571 s&@localedir@&$localedir&g
17572 s&@mandir@&$mandir&g
17573 s&\\\${datarootdir}&$datarootdir&g' ;;
17574 esac
17575 _ACEOF
17576
17577 # Neutralize VPATH when `$srcdir' = `.'.
17578 # Shell code in configure.ac might set extrasub.
17579 # FIXME: do we really want to maintain this feature?
17580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17581 ac_sed_extra="$ac_vpsub
17582 $extrasub
17583 _ACEOF
17584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17585 :t
17586 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17587 s|@configure_input@|$ac_sed_conf_input|;t t
17588 s&@top_builddir@&$ac_top_builddir_sub&;t t
17589 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17590 s&@srcdir@&$ac_srcdir&;t t
17591 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17592 s&@top_srcdir@&$ac_top_srcdir&;t t
17593 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17594 s&@builddir@&$ac_builddir&;t t
17595 s&@abs_builddir@&$ac_abs_builddir&;t t
17596 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17597 s&@INSTALL@&$ac_INSTALL&;t t
17598 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17599 $ac_datarootdir_hack
17600 "
17601 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17602 || as_fn_error "could not create $ac_file" "$LINENO" 5
17603
17604 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17605 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17606 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17608 which seems to be undefined. Please make sure it is defined." >&5
17609 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17610 which seems to be undefined. Please make sure it is defined." >&2;}
17611
17612 rm -f "$tmp/stdin"
17613 case $ac_file in
17614 -) cat "$tmp/out" && rm -f "$tmp/out";;
17615 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17616 esac \
17617 || as_fn_error "could not create $ac_file" "$LINENO" 5
17618 ;;
17619 :H)
17620 #
17621 # CONFIG_HEADER
17622 #
17623 if test x"$ac_file" != x-; then
17624 {
17625 $as_echo "/* $configure_input */" \
17626 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17627 } >"$tmp/config.h" \
17628 || as_fn_error "could not create $ac_file" "$LINENO" 5
17629 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17631 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17632 else
17633 rm -f "$ac_file"
17634 mv "$tmp/config.h" "$ac_file" \
17635 || as_fn_error "could not create $ac_file" "$LINENO" 5
17636 fi
17637 else
17638 $as_echo "/* $configure_input */" \
17639 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17640 || as_fn_error "could not create -" "$LINENO" 5
17641 fi
17642 # Compute "$ac_file"'s index in $config_headers.
17643 _am_arg="$ac_file"
17644 _am_stamp_count=1
17645 for _am_header in $config_headers :; do
17646 case $_am_header in
17647 $_am_arg | $_am_arg:* )
17648 break ;;
17649 * )
17650 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17651 esac
17652 done
17653 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17654 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17655 X"$_am_arg" : 'X\(//\)[^/]' \| \
17656 X"$_am_arg" : 'X\(//\)$' \| \
17657 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17658 $as_echo X"$_am_arg" |
17659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17660 s//\1/
17661 q
17662 }
17663 /^X\(\/\/\)[^/].*/{
17664 s//\1/
17665 q
17666 }
17667 /^X\(\/\/\)$/{
17668 s//\1/
17669 q
17670 }
17671 /^X\(\/\).*/{
17672 s//\1/
17673 q
17674 }
17675 s/.*/./; q'`/stamp-h$_am_stamp_count
17676 ;;
17677
17678 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17679 $as_echo "$as_me: executing $ac_file commands" >&6;}
17680 ;;
17681 esac
17682
17683
17684 case $ac_file$ac_mode in
17685 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17686 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17687 # are listed without --file. Let's play safe and only enable the eval
17688 # if we detect the quoting.
17689 case $CONFIG_FILES in
17690 *\'*) eval set x "$CONFIG_FILES" ;;
17691 *) set x $CONFIG_FILES ;;
17692 esac
17693 shift
17694 for mf
17695 do
17696 # Strip MF so we end up with the name of the file.
17697 mf=`echo "$mf" | sed -e 's/:.*$//'`
17698 # Check whether this is an Automake generated Makefile or not.
17699 # We used to match only the files named `Makefile.in', but
17700 # some people rename them; so instead we look at the file content.
17701 # Grep'ing the first line is not enough: some people post-process
17702 # each Makefile.in and add a new line on top of each file to say so.
17703 # Grep'ing the whole file is not good either: AIX grep has a line
17704 # limit of 2048, but all sed's we know have understand at least 4000.
17705 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17706 dirpart=`$as_dirname -- "$mf" ||
17707 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17708 X"$mf" : 'X\(//\)[^/]' \| \
17709 X"$mf" : 'X\(//\)$' \| \
17710 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17711 $as_echo X"$mf" |
17712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17713 s//\1/
17714 q
17715 }
17716 /^X\(\/\/\)[^/].*/{
17717 s//\1/
17718 q
17719 }
17720 /^X\(\/\/\)$/{
17721 s//\1/
17722 q
17723 }
17724 /^X\(\/\).*/{
17725 s//\1/
17726 q
17727 }
17728 s/.*/./; q'`
17729 else
17730 continue
17731 fi
17732 # Extract the definition of DEPDIR, am__include, and am__quote
17733 # from the Makefile without running `make'.
17734 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17735 test -z "$DEPDIR" && continue
17736 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17737 test -z "am__include" && continue
17738 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17739 # When using ansi2knr, U may be empty or an underscore; expand it
17740 U=`sed -n 's/^U = //p' < "$mf"`
17741 # Find all dependency output files, they are included files with
17742 # $(DEPDIR) in their names. We invoke sed twice because it is the
17743 # simplest approach to changing $(DEPDIR) to its actual value in the
17744 # expansion.
17745 for file in `sed -n "
17746 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17747 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17748 # Make sure the directory exists.
17749 test -f "$dirpart/$file" && continue
17750 fdir=`$as_dirname -- "$file" ||
17751 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17752 X"$file" : 'X\(//\)[^/]' \| \
17753 X"$file" : 'X\(//\)$' \| \
17754 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17755 $as_echo X"$file" |
17756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17757 s//\1/
17758 q
17759 }
17760 /^X\(\/\/\)[^/].*/{
17761 s//\1/
17762 q
17763 }
17764 /^X\(\/\/\)$/{
17765 s//\1/
17766 q
17767 }
17768 /^X\(\/\).*/{
17769 s//\1/
17770 q
17771 }
17772 s/.*/./; q'`
17773 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17774 # echo "creating $dirpart/$file"
17775 echo '# dummy' > "$dirpart/$file"
17776 done
17777 done
17778 }
17779 ;;
17780 "libtool":C)
17781
17782 # See if we are running on zsh, and set the options which allow our
17783 # commands through without removal of \ escapes.
17784 if test -n "${ZSH_VERSION+set}" ; then
17785 setopt NO_GLOB_SUBST
17786 fi
17787
17788 cfgfile="${ofile}T"
17789 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17790 $RM "$cfgfile"
17791
17792 cat <<_LT_EOF >> "$cfgfile"
17793 #! $SHELL
17794
17795 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17796 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17797 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17798 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17799 #
17800 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17801 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17802 # Written by Gordon Matzigkeit, 1996
17803 #
17804 # This file is part of GNU Libtool.
17805 #
17806 # GNU Libtool is free software; you can redistribute it and/or
17807 # modify it under the terms of the GNU General Public License as
17808 # published by the Free Software Foundation; either version 2 of
17809 # the License, or (at your option) any later version.
17810 #
17811 # As a special exception to the GNU General Public License,
17812 # if you distribute this file as part of a program or library that
17813 # is built using GNU Libtool, you may include this file under the
17814 # same distribution terms that you use for the rest of that program.
17815 #
17816 # GNU Libtool is distributed in the hope that it will be useful,
17817 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17818 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17819 # GNU General Public License for more details.
17820 #
17821 # You should have received a copy of the GNU General Public License
17822 # along with GNU Libtool; see the file COPYING. If not, a copy
17823 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17824 # obtained by writing to the Free Software Foundation, Inc.,
17825 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17826
17827
17828 # The names of the tagged configurations supported by this script.
17829 available_tags=""
17830
17831 # ### BEGIN LIBTOOL CONFIG
17832
17833 # Whether or not to build shared libraries.
17834 build_libtool_libs=$enable_shared
17835
17836 # Which release of libtool.m4 was used?
17837 macro_version=$macro_version
17838 macro_revision=$macro_revision
17839
17840 # Whether or not to build static libraries.
17841 build_old_libs=$enable_static
17842
17843 # What type of objects to build.
17844 pic_mode=$pic_mode
17845
17846 # Whether or not to optimize for fast installation.
17847 fast_install=$enable_fast_install
17848
17849 # Shell to use when invoking shell scripts.
17850 SHELL=$lt_SHELL
17851
17852 # An echo program that protects backslashes.
17853 ECHO=$lt_ECHO
17854
17855 # The host system.
17856 host_alias=$host_alias
17857 host=$host
17858 host_os=$host_os
17859
17860 # The build system.
17861 build_alias=$build_alias
17862 build=$build
17863 build_os=$build_os
17864
17865 # A sed program that does not truncate output.
17866 SED=$lt_SED
17867
17868 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17869 Xsed="\$SED -e 1s/^X//"
17870
17871 # A grep program that handles long lines.
17872 GREP=$lt_GREP
17873
17874 # An ERE matcher.
17875 EGREP=$lt_EGREP
17876
17877 # A literal string matcher.
17878 FGREP=$lt_FGREP
17879
17880 # A BSD- or MS-compatible name lister.
17881 NM=$lt_NM
17882
17883 # Whether we need soft or hard links.
17884 LN_S=$lt_LN_S
17885
17886 # What is the maximum length of a command?
17887 max_cmd_len=$max_cmd_len
17888
17889 # Object file suffix (normally "o").
17890 objext=$ac_objext
17891
17892 # Executable file suffix (normally "").
17893 exeext=$exeext
17894
17895 # whether the shell understands "unset".
17896 lt_unset=$lt_unset
17897
17898 # turn spaces into newlines.
17899 SP2NL=$lt_lt_SP2NL
17900
17901 # turn newlines into spaces.
17902 NL2SP=$lt_lt_NL2SP
17903
17904 # An object symbol dumper.
17905 OBJDUMP=$lt_OBJDUMP
17906
17907 # Method to check whether dependent libraries are shared objects.
17908 deplibs_check_method=$lt_deplibs_check_method
17909
17910 # Command to use when deplibs_check_method == "file_magic".
17911 file_magic_cmd=$lt_file_magic_cmd
17912
17913 # The archiver.
17914 AR=$lt_AR
17915 AR_FLAGS=$lt_AR_FLAGS
17916
17917 # A symbol stripping program.
17918 STRIP=$lt_STRIP
17919
17920 # Commands used to install an old-style archive.
17921 RANLIB=$lt_RANLIB
17922 old_postinstall_cmds=$lt_old_postinstall_cmds
17923 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17924
17925 # Whether to use a lock for old archive extraction.
17926 lock_old_archive_extraction=$lock_old_archive_extraction
17927
17928 # A C compiler.
17929 LTCC=$lt_CC
17930
17931 # LTCC compiler flags.
17932 LTCFLAGS=$lt_CFLAGS
17933
17934 # Take the output of nm and produce a listing of raw symbols and C names.
17935 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17936
17937 # Transform the output of nm in a proper C declaration.
17938 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17939
17940 # Transform the output of nm in a C name address pair.
17941 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17942
17943 # Transform the output of nm in a C name address pair when lib prefix is needed.
17944 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17945
17946 # The name of the directory that contains temporary libtool files.
17947 objdir=$objdir
17948
17949 # Used to examine libraries when file_magic_cmd begins with "file".
17950 MAGIC_CMD=$MAGIC_CMD
17951
17952 # Must we lock files when doing compilation?
17953 need_locks=$lt_need_locks
17954
17955 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17956 DSYMUTIL=$lt_DSYMUTIL
17957
17958 # Tool to change global to local symbols on Mac OS X.
17959 NMEDIT=$lt_NMEDIT
17960
17961 # Tool to manipulate fat objects and archives on Mac OS X.
17962 LIPO=$lt_LIPO
17963
17964 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17965 OTOOL=$lt_OTOOL
17966
17967 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17968 OTOOL64=$lt_OTOOL64
17969
17970 # Old archive suffix (normally "a").
17971 libext=$libext
17972
17973 # Shared library suffix (normally ".so").
17974 shrext_cmds=$lt_shrext_cmds
17975
17976 # The commands to extract the exported symbol list from a shared archive.
17977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17978
17979 # Variables whose values should be saved in libtool wrapper scripts and
17980 # restored at link time.
17981 variables_saved_for_relink=$lt_variables_saved_for_relink
17982
17983 # Do we need the "lib" prefix for modules?
17984 need_lib_prefix=$need_lib_prefix
17985
17986 # Do we need a version for libraries?
17987 need_version=$need_version
17988
17989 # Library versioning type.
17990 version_type=$version_type
17991
17992 # Shared library runtime path variable.
17993 runpath_var=$runpath_var
17994
17995 # Shared library path variable.
17996 shlibpath_var=$shlibpath_var
17997
17998 # Is shlibpath searched before the hard-coded library search path?
17999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18000
18001 # Format of library name prefix.
18002 libname_spec=$lt_libname_spec
18003
18004 # List of archive names. First name is the real one, the rest are links.
18005 # The last name is the one that the linker finds with -lNAME
18006 library_names_spec=$lt_library_names_spec
18007
18008 # The coded name of the library, if different from the real name.
18009 soname_spec=$lt_soname_spec
18010
18011 # Permission mode override for installation of shared libraries.
18012 install_override_mode=$lt_install_override_mode
18013
18014 # Command to use after installation of a shared archive.
18015 postinstall_cmds=$lt_postinstall_cmds
18016
18017 # Command to use after uninstallation of a shared archive.
18018 postuninstall_cmds=$lt_postuninstall_cmds
18019
18020 # Commands used to finish a libtool library installation in a directory.
18021 finish_cmds=$lt_finish_cmds
18022
18023 # As "finish_cmds", except a single script fragment to be evaled but
18024 # not shown.
18025 finish_eval=$lt_finish_eval
18026
18027 # Whether we should hardcode library paths into libraries.
18028 hardcode_into_libs=$hardcode_into_libs
18029
18030 # Compile-time system search path for libraries.
18031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18032
18033 # Run-time system search path for libraries.
18034 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18035
18036 # Whether dlopen is supported.
18037 dlopen_support=$enable_dlopen
18038
18039 # Whether dlopen of programs is supported.
18040 dlopen_self=$enable_dlopen_self
18041
18042 # Whether dlopen of statically linked programs is supported.
18043 dlopen_self_static=$enable_dlopen_self_static
18044
18045 # Commands to strip libraries.
18046 old_striplib=$lt_old_striplib
18047 striplib=$lt_striplib
18048
18049
18050 # The linker used to build libraries.
18051 LD=$lt_LD
18052
18053 # How to create reloadable object files.
18054 reload_flag=$lt_reload_flag
18055 reload_cmds=$lt_reload_cmds
18056
18057 # Commands used to build an old-style archive.
18058 old_archive_cmds=$lt_old_archive_cmds
18059
18060 # A language specific compiler.
18061 CC=$lt_compiler
18062
18063 # Is the compiler the GNU compiler?
18064 with_gcc=$GCC
18065
18066 # Compiler flag to turn off builtin functions.
18067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18068
18069 # How to pass a linker flag through the compiler.
18070 wl=$lt_lt_prog_compiler_wl
18071
18072 # Additional compiler flags for building library objects.
18073 pic_flag=$lt_lt_prog_compiler_pic
18074
18075 # Compiler flag to prevent dynamic linking.
18076 link_static_flag=$lt_lt_prog_compiler_static
18077
18078 # Does compiler simultaneously support -c and -o options?
18079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18080
18081 # Whether or not to add -lc for building shared libraries.
18082 build_libtool_need_lc=$archive_cmds_need_lc
18083
18084 # Whether or not to disallow shared libs when runtime libs are static.
18085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18086
18087 # Compiler flag to allow reflexive dlopens.
18088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18089
18090 # Compiler flag to generate shared objects directly from archives.
18091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18092
18093 # Whether the compiler copes with passing no objects directly.
18094 compiler_needs_object=$lt_compiler_needs_object
18095
18096 # Create an old-style archive from a shared archive.
18097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18098
18099 # Create a temporary old-style archive to link instead of a shared archive.
18100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18101
18102 # Commands used to build a shared archive.
18103 archive_cmds=$lt_archive_cmds
18104 archive_expsym_cmds=$lt_archive_expsym_cmds
18105
18106 # Commands used to build a loadable module if different from building
18107 # a shared archive.
18108 module_cmds=$lt_module_cmds
18109 module_expsym_cmds=$lt_module_expsym_cmds
18110
18111 # Whether we are building with GNU ld or not.
18112 with_gnu_ld=$lt_with_gnu_ld
18113
18114 # Flag that allows shared libraries with undefined symbols to be built.
18115 allow_undefined_flag=$lt_allow_undefined_flag
18116
18117 # Flag that enforces no undefined symbols.
18118 no_undefined_flag=$lt_no_undefined_flag
18119
18120 # Flag to hardcode \$libdir into a binary during linking.
18121 # This must work even if \$libdir does not exist
18122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18123
18124 # If ld is used when linking, flag to hardcode \$libdir into a binary
18125 # during linking. This must work even if \$libdir does not exist.
18126 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18127
18128 # Whether we need a single "-rpath" flag with a separated argument.
18129 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18130
18131 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18132 # DIR into the resulting binary.
18133 hardcode_direct=$hardcode_direct
18134
18135 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18136 # DIR into the resulting binary and the resulting library dependency is
18137 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18138 # library is relocated.
18139 hardcode_direct_absolute=$hardcode_direct_absolute
18140
18141 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18142 # into the resulting binary.
18143 hardcode_minus_L=$hardcode_minus_L
18144
18145 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18146 # into the resulting binary.
18147 hardcode_shlibpath_var=$hardcode_shlibpath_var
18148
18149 # Set to "yes" if building a shared library automatically hardcodes DIR
18150 # into the library and all subsequent libraries and executables linked
18151 # against it.
18152 hardcode_automatic=$hardcode_automatic
18153
18154 # Set to yes if linker adds runtime paths of dependent libraries
18155 # to runtime path list.
18156 inherit_rpath=$inherit_rpath
18157
18158 # Whether libtool must link a program against all its dependency libraries.
18159 link_all_deplibs=$link_all_deplibs
18160
18161 # Fix the shell variable \$srcfile for the compiler.
18162 fix_srcfile_path=$lt_fix_srcfile_path
18163
18164 # Set to "yes" if exported symbols are required.
18165 always_export_symbols=$always_export_symbols
18166
18167 # The commands to list exported symbols.
18168 export_symbols_cmds=$lt_export_symbols_cmds
18169
18170 # Symbols that should not be listed in the preloaded symbols.
18171 exclude_expsyms=$lt_exclude_expsyms
18172
18173 # Symbols that must always be exported.
18174 include_expsyms=$lt_include_expsyms
18175
18176 # Commands necessary for linking programs (against libraries) with templates.
18177 prelink_cmds=$lt_prelink_cmds
18178
18179 # Specify filename containing input files.
18180 file_list_spec=$lt_file_list_spec
18181
18182 # How to hardcode a shared library path into an executable.
18183 hardcode_action=$hardcode_action
18184
18185 # ### END LIBTOOL CONFIG
18186
18187 _LT_EOF
18188
18189 case $host_os in
18190 aix3*)
18191 cat <<\_LT_EOF >> "$cfgfile"
18192 # AIX sometimes has problems with the GCC collect2 program. For some
18193 # reason, if we set the COLLECT_NAMES environment variable, the problems
18194 # vanish in a puff of smoke.
18195 if test "X${COLLECT_NAMES+set}" != Xset; then
18196 COLLECT_NAMES=
18197 export COLLECT_NAMES
18198 fi
18199 _LT_EOF
18200 ;;
18201 esac
18202
18203
18204 ltmain="$ac_aux_dir/ltmain.sh"
18205
18206
18207 # We use sed instead of cat because bash on DJGPP gets confused if
18208 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18209 # text mode, it properly converts lines to CR/LF. This bash problem
18210 # is reportedly fixed, but why not run on old versions too?
18211 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18212 || (rm -f "$cfgfile"; exit 1)
18213
18214 case $xsi_shell in
18215 yes)
18216 cat << \_LT_EOF >> "$cfgfile"
18217
18218 # func_dirname file append nondir_replacement
18219 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18220 # otherwise set result to NONDIR_REPLACEMENT.
18221 func_dirname ()
18222 {
18223 case ${1} in
18224 */*) func_dirname_result="${1%/*}${2}" ;;
18225 * ) func_dirname_result="${3}" ;;
18226 esac
18227 }
18228
18229 # func_basename file
18230 func_basename ()
18231 {
18232 func_basename_result="${1##*/}"
18233 }
18234
18235 # func_dirname_and_basename file append nondir_replacement
18236 # perform func_basename and func_dirname in a single function
18237 # call:
18238 # dirname: Compute the dirname of FILE. If nonempty,
18239 # add APPEND to the result, otherwise set result
18240 # to NONDIR_REPLACEMENT.
18241 # value returned in "$func_dirname_result"
18242 # basename: Compute filename of FILE.
18243 # value retuned in "$func_basename_result"
18244 # Implementation must be kept synchronized with func_dirname
18245 # and func_basename. For efficiency, we do not delegate to
18246 # those functions but instead duplicate the functionality here.
18247 func_dirname_and_basename ()
18248 {
18249 case ${1} in
18250 */*) func_dirname_result="${1%/*}${2}" ;;
18251 * ) func_dirname_result="${3}" ;;
18252 esac
18253 func_basename_result="${1##*/}"
18254 }
18255
18256 # func_stripname prefix suffix name
18257 # strip PREFIX and SUFFIX off of NAME.
18258 # PREFIX and SUFFIX must not contain globbing or regex special
18259 # characters, hashes, percent signs, but SUFFIX may contain a leading
18260 # dot (in which case that matches only a dot).
18261 func_stripname ()
18262 {
18263 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18264 # positional parameters, so assign one to ordinary parameter first.
18265 func_stripname_result=${3}
18266 func_stripname_result=${func_stripname_result#"${1}"}
18267 func_stripname_result=${func_stripname_result%"${2}"}
18268 }
18269
18270 # func_opt_split
18271 func_opt_split ()
18272 {
18273 func_opt_split_opt=${1%%=*}
18274 func_opt_split_arg=${1#*=}
18275 }
18276
18277 # func_lo2o object
18278 func_lo2o ()
18279 {
18280 case ${1} in
18281 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18282 *) func_lo2o_result=${1} ;;
18283 esac
18284 }
18285
18286 # func_xform libobj-or-source
18287 func_xform ()
18288 {
18289 func_xform_result=${1%.*}.lo
18290 }
18291
18292 # func_arith arithmetic-term...
18293 func_arith ()
18294 {
18295 func_arith_result=$(( $* ))
18296 }
18297
18298 # func_len string
18299 # STRING may not start with a hyphen.
18300 func_len ()
18301 {
18302 func_len_result=${#1}
18303 }
18304
18305 _LT_EOF
18306 ;;
18307 *) # Bourne compatible functions.
18308 cat << \_LT_EOF >> "$cfgfile"
18309
18310 # func_dirname file append nondir_replacement
18311 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
18312 # otherwise set result to NONDIR_REPLACEMENT.
18313 func_dirname ()
18314 {
18315 # Extract subdirectory from the argument.
18316 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18317 if test "X$func_dirname_result" = "X${1}"; then
18318 func_dirname_result="${3}"
18319 else
18320 func_dirname_result="$func_dirname_result${2}"
18321 fi
18322 }
18323
18324 # func_basename file
18325 func_basename ()
18326 {
18327 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18328 }
18329
18330
18331 # func_stripname prefix suffix name
18332 # strip PREFIX and SUFFIX off of NAME.
18333 # PREFIX and SUFFIX must not contain globbing or regex special
18334 # characters, hashes, percent signs, but SUFFIX may contain a leading
18335 # dot (in which case that matches only a dot).
18336 # func_strip_suffix prefix name
18337 func_stripname ()
18338 {
18339 case ${2} in
18340 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18341 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18342 esac
18343 }
18344
18345 # sed scripts:
18346 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18347 my_sed_long_arg='1s/^-[^=]*=//'
18348
18349 # func_opt_split
18350 func_opt_split ()
18351 {
18352 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18353 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18354 }
18355
18356 # func_lo2o object
18357 func_lo2o ()
18358 {
18359 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18360 }
18361
18362 # func_xform libobj-or-source
18363 func_xform ()
18364 {
18365 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18366 }
18367
18368 # func_arith arithmetic-term...
18369 func_arith ()
18370 {
18371 func_arith_result=`expr "$@"`
18372 }
18373
18374 # func_len string
18375 # STRING may not start with a hyphen.
18376 func_len ()
18377 {
18378 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18379 }
18380
18381 _LT_EOF
18382 esac
18383
18384 case $lt_shell_append in
18385 yes)
18386 cat << \_LT_EOF >> "$cfgfile"
18387
18388 # func_append var value
18389 # Append VALUE to the end of shell variable VAR.
18390 func_append ()
18391 {
18392 eval "$1+=\$2"
18393 }
18394 _LT_EOF
18395 ;;
18396 *)
18397 cat << \_LT_EOF >> "$cfgfile"
18398
18399 # func_append var value
18400 # Append VALUE to the end of shell variable VAR.
18401 func_append ()
18402 {
18403 eval "$1=\$$1\$2"
18404 }
18405
18406 _LT_EOF
18407 ;;
18408 esac
18409
18410
18411 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18412 || (rm -f "$cfgfile"; exit 1)
18413
18414 mv -f "$cfgfile" "$ofile" ||
18415 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18416 chmod +x "$ofile"
18417
18418 ;;
18419 "default-1":C)
18420 for ac_file in $CONFIG_FILES; do
18421 # Support "outfile[:infile[:infile...]]"
18422 case "$ac_file" in
18423 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18424 esac
18425 # PO directories have a Makefile.in generated from Makefile.in.in.
18426 case "$ac_file" in */Makefile.in)
18427 # Adjust a relative srcdir.
18428 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18429 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18430 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18431 # In autoconf-2.13 it is called $ac_given_srcdir.
18432 # In autoconf-2.50 it is called $srcdir.
18433 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18434 case "$ac_given_srcdir" in
18435 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18436 /*) top_srcdir="$ac_given_srcdir" ;;
18437 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18438 esac
18439 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18440 rm -f "$ac_dir/POTFILES"
18441 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18442 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18443 POMAKEFILEDEPS="POTFILES.in"
18444 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18445 # on $ac_dir but don't depend on user-specified configuration
18446 # parameters.
18447 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18448 # The LINGUAS file contains the set of available languages.
18449 if test -n "$OBSOLETE_ALL_LINGUAS"; then
18450 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18451 fi
18452 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18453 # Hide the ALL_LINGUAS assigment from automake.
18454 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18455 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18456 else
18457 # The set of available languages was given in configure.ac.
18458 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18459 fi
18460 case "$ac_given_srcdir" in
18461 .) srcdirpre= ;;
18462 *) srcdirpre='$(srcdir)/' ;;
18463 esac
18464 POFILES=
18465 GMOFILES=
18466 UPDATEPOFILES=
18467 DUMMYPOFILES=
18468 for lang in $ALL_LINGUAS; do
18469 POFILES="$POFILES $srcdirpre$lang.po"
18470 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18471 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18472 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18473 done
18474 # CATALOGS depends on both $ac_dir and the user's LINGUAS
18475 # environment variable.
18476 INST_LINGUAS=
18477 if test -n "$ALL_LINGUAS"; then
18478 for presentlang in $ALL_LINGUAS; do
18479 useit=no
18480 if test "%UNSET%" != "$LINGUAS"; then
18481 desiredlanguages="$LINGUAS"
18482 else
18483 desiredlanguages="$ALL_LINGUAS"
18484 fi
18485 for desiredlang in $desiredlanguages; do
18486 # Use the presentlang catalog if desiredlang is
18487 # a. equal to presentlang, or
18488 # b. a variant of presentlang (because in this case,
18489 # presentlang can be used as a fallback for messages
18490 # which are not translated in the desiredlang catalog).
18491 case "$desiredlang" in
18492 "$presentlang"*) useit=yes;;
18493 esac
18494 done
18495 if test $useit = yes; then
18496 INST_LINGUAS="$INST_LINGUAS $presentlang"
18497 fi
18498 done
18499 fi
18500 CATALOGS=
18501 if test -n "$INST_LINGUAS"; then
18502 for lang in $INST_LINGUAS; do
18503 CATALOGS="$CATALOGS $lang.gmo"
18504 done
18505 fi
18506 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18507 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"
18508 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18509 if test -f "$f"; then
18510 case "$f" in
18511 *.orig | *.bak | *~) ;;
18512 *) cat "$f" >> "$ac_dir/Makefile" ;;
18513 esac
18514 fi
18515 done
18516 fi
18517 ;;
18518 esac
18519 done ;;
18520 "bfd_stdint.h":C)
18521 if test "$GCC" = yes; then
18522 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18523 else
18524 echo "/* generated for $CC */" > tmp-stdint.h
18525 fi
18526
18527 sed 's/^ *//' >> tmp-stdint.h <<EOF
18528
18529 #ifndef GCC_GENERATED_STDINT_H
18530 #define GCC_GENERATED_STDINT_H 1
18531
18532 #include <sys/types.h>
18533 EOF
18534
18535 if test "$acx_cv_header_stdint" != stdint.h; then
18536 echo "#include <stddef.h>" >> tmp-stdint.h
18537 fi
18538 if test "$acx_cv_header_stdint" != stddef.h; then
18539 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18540 fi
18541
18542 sed 's/^ *//' >> tmp-stdint.h <<EOF
18543 /* glibc uses these symbols as guards to prevent redefinitions. */
18544 #ifdef __int8_t_defined
18545 #define _INT8_T
18546 #define _INT16_T
18547 #define _INT32_T
18548 #endif
18549 #ifdef __uint32_t_defined
18550 #define _UINT32_T
18551 #endif
18552
18553 EOF
18554
18555 # ----------------- done header, emit basic int types -------------
18556 if test "$acx_cv_header_stdint" = stddef.h; then
18557 sed 's/^ *//' >> tmp-stdint.h <<EOF
18558
18559 #ifndef _UINT8_T
18560 #define _UINT8_T
18561 #ifndef __uint8_t_defined
18562 #define __uint8_t_defined
18563 #ifndef uint8_t
18564 typedef unsigned $acx_cv_type_int8_t uint8_t;
18565 #endif
18566 #endif
18567 #endif
18568
18569 #ifndef _UINT16_T
18570 #define _UINT16_T
18571 #ifndef __uint16_t_defined
18572 #define __uint16_t_defined
18573 #ifndef uint16_t
18574 typedef unsigned $acx_cv_type_int16_t uint16_t;
18575 #endif
18576 #endif
18577 #endif
18578
18579 #ifndef _UINT32_T
18580 #define _UINT32_T
18581 #ifndef __uint32_t_defined
18582 #define __uint32_t_defined
18583 #ifndef uint32_t
18584 typedef unsigned $acx_cv_type_int32_t uint32_t;
18585 #endif
18586 #endif
18587 #endif
18588
18589 #ifndef _INT8_T
18590 #define _INT8_T
18591 #ifndef __int8_t_defined
18592 #define __int8_t_defined
18593 #ifndef int8_t
18594 typedef $acx_cv_type_int8_t int8_t;
18595 #endif
18596 #endif
18597 #endif
18598
18599 #ifndef _INT16_T
18600 #define _INT16_T
18601 #ifndef __int16_t_defined
18602 #define __int16_t_defined
18603 #ifndef int16_t
18604 typedef $acx_cv_type_int16_t int16_t;
18605 #endif
18606 #endif
18607 #endif
18608
18609 #ifndef _INT32_T
18610 #define _INT32_T
18611 #ifndef __int32_t_defined
18612 #define __int32_t_defined
18613 #ifndef int32_t
18614 typedef $acx_cv_type_int32_t int32_t;
18615 #endif
18616 #endif
18617 #endif
18618 EOF
18619 elif test "$ac_cv_type_u_int32_t" = yes; then
18620 sed 's/^ *//' >> tmp-stdint.h <<EOF
18621
18622 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18623 #ifndef _INT8_T
18624 #define _INT8_T
18625 #endif
18626 #ifndef _INT16_T
18627 #define _INT16_T
18628 #endif
18629 #ifndef _INT32_T
18630 #define _INT32_T
18631 #endif
18632
18633 #ifndef _UINT8_T
18634 #define _UINT8_T
18635 #ifndef __uint8_t_defined
18636 #define __uint8_t_defined
18637 #ifndef uint8_t
18638 typedef u_int8_t uint8_t;
18639 #endif
18640 #endif
18641 #endif
18642
18643 #ifndef _UINT16_T
18644 #define _UINT16_T
18645 #ifndef __uint16_t_defined
18646 #define __uint16_t_defined
18647 #ifndef uint16_t
18648 typedef u_int16_t uint16_t;
18649 #endif
18650 #endif
18651 #endif
18652
18653 #ifndef _UINT32_T
18654 #define _UINT32_T
18655 #ifndef __uint32_t_defined
18656 #define __uint32_t_defined
18657 #ifndef uint32_t
18658 typedef u_int32_t uint32_t;
18659 #endif
18660 #endif
18661 #endif
18662 EOF
18663 else
18664 sed 's/^ *//' >> tmp-stdint.h <<EOF
18665
18666 /* Some systems have guard macros to prevent redefinitions, define them. */
18667 #ifndef _INT8_T
18668 #define _INT8_T
18669 #endif
18670 #ifndef _INT16_T
18671 #define _INT16_T
18672 #endif
18673 #ifndef _INT32_T
18674 #define _INT32_T
18675 #endif
18676 #ifndef _UINT8_T
18677 #define _UINT8_T
18678 #endif
18679 #ifndef _UINT16_T
18680 #define _UINT16_T
18681 #endif
18682 #ifndef _UINT32_T
18683 #define _UINT32_T
18684 #endif
18685 EOF
18686 fi
18687
18688 # ------------- done basic int types, emit int64_t types ------------
18689 if test "$ac_cv_type_uint64_t" = yes; then
18690 sed 's/^ *//' >> tmp-stdint.h <<EOF
18691
18692 /* system headers have good uint64_t and int64_t */
18693 #ifndef _INT64_T
18694 #define _INT64_T
18695 #endif
18696 #ifndef _UINT64_T
18697 #define _UINT64_T
18698 #endif
18699 EOF
18700 elif test "$ac_cv_type_u_int64_t" = yes; then
18701 sed 's/^ *//' >> tmp-stdint.h <<EOF
18702
18703 /* system headers have an u_int64_t (and int64_t) */
18704 #ifndef _INT64_T
18705 #define _INT64_T
18706 #endif
18707 #ifndef _UINT64_T
18708 #define _UINT64_T
18709 #ifndef __uint64_t_defined
18710 #define __uint64_t_defined
18711 #ifndef uint64_t
18712 typedef u_int64_t uint64_t;
18713 #endif
18714 #endif
18715 #endif
18716 EOF
18717 elif test -n "$acx_cv_type_int64_t"; then
18718 sed 's/^ *//' >> tmp-stdint.h <<EOF
18719
18720 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18721 #ifndef _INT64_T
18722 #define _INT64_T
18723 #ifndef int64_t
18724 typedef $acx_cv_type_int64_t int64_t;
18725 #endif
18726 #endif
18727 #ifndef _UINT64_T
18728 #define _UINT64_T
18729 #ifndef __uint64_t_defined
18730 #define __uint64_t_defined
18731 #ifndef uint64_t
18732 typedef unsigned $acx_cv_type_int64_t uint64_t;
18733 #endif
18734 #endif
18735 #endif
18736 EOF
18737 else
18738 sed 's/^ *//' >> tmp-stdint.h <<EOF
18739
18740 /* some common heuristics for int64_t, using compiler-specific tests */
18741 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18742 #ifndef _INT64_T
18743 #define _INT64_T
18744 #ifndef __int64_t_defined
18745 #ifndef int64_t
18746 typedef long long int64_t;
18747 #endif
18748 #endif
18749 #endif
18750 #ifndef _UINT64_T
18751 #define _UINT64_T
18752 #ifndef uint64_t
18753 typedef unsigned long long uint64_t;
18754 #endif
18755 #endif
18756
18757 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18758 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18759 does not implement __extension__. But that compiler doesn't define
18760 __GNUC_MINOR__. */
18761 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18762 # define __extension__
18763 # endif
18764
18765 # ifndef _INT64_T
18766 # define _INT64_T
18767 # ifndef int64_t
18768 __extension__ typedef long long int64_t;
18769 # endif
18770 # endif
18771 # ifndef _UINT64_T
18772 # define _UINT64_T
18773 # ifndef uint64_t
18774 __extension__ typedef unsigned long long uint64_t;
18775 # endif
18776 # endif
18777
18778 #elif !defined __STRICT_ANSI__
18779 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18780
18781 # ifndef _INT64_T
18782 # define _INT64_T
18783 # ifndef int64_t
18784 typedef __int64 int64_t;
18785 # endif
18786 # endif
18787 # ifndef _UINT64_T
18788 # define _UINT64_T
18789 # ifndef uint64_t
18790 typedef unsigned __int64 uint64_t;
18791 # endif
18792 # endif
18793 # endif /* compiler */
18794
18795 #endif /* ANSI version */
18796 EOF
18797 fi
18798
18799 # ------------- done int64_t types, emit intptr types ------------
18800 if test "$ac_cv_type_uintptr_t" != yes; then
18801 sed 's/^ *//' >> tmp-stdint.h <<EOF
18802
18803 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18804 #ifndef __uintptr_t_defined
18805 #ifndef uintptr_t
18806 typedef u$acx_cv_type_intptr_t uintptr_t;
18807 #endif
18808 #endif
18809 #ifndef __intptr_t_defined
18810 #ifndef intptr_t
18811 typedef $acx_cv_type_intptr_t intptr_t;
18812 #endif
18813 #endif
18814 EOF
18815 fi
18816
18817 # ------------- done intptr types, emit int_least types ------------
18818 if test "$ac_cv_type_int_least32_t" != yes; then
18819 sed 's/^ *//' >> tmp-stdint.h <<EOF
18820
18821 /* Define int_least types */
18822 typedef int8_t int_least8_t;
18823 typedef int16_t int_least16_t;
18824 typedef int32_t int_least32_t;
18825 #ifdef _INT64_T
18826 typedef int64_t int_least64_t;
18827 #endif
18828
18829 typedef uint8_t uint_least8_t;
18830 typedef uint16_t uint_least16_t;
18831 typedef uint32_t uint_least32_t;
18832 #ifdef _UINT64_T
18833 typedef uint64_t uint_least64_t;
18834 #endif
18835 EOF
18836 fi
18837
18838 # ------------- done intptr types, emit int_fast types ------------
18839 if test "$ac_cv_type_int_fast32_t" != yes; then
18840 sed 's/^ *//' >> tmp-stdint.h <<EOF
18841
18842 /* Define int_fast types. short is often slow */
18843 typedef int8_t int_fast8_t;
18844 typedef int int_fast16_t;
18845 typedef int32_t int_fast32_t;
18846 #ifdef _INT64_T
18847 typedef int64_t int_fast64_t;
18848 #endif
18849
18850 typedef uint8_t uint_fast8_t;
18851 typedef unsigned int uint_fast16_t;
18852 typedef uint32_t uint_fast32_t;
18853 #ifdef _UINT64_T
18854 typedef uint64_t uint_fast64_t;
18855 #endif
18856 EOF
18857 fi
18858
18859 if test "$ac_cv_type_uintmax_t" != yes; then
18860 sed 's/^ *//' >> tmp-stdint.h <<EOF
18861
18862 /* Define intmax based on what we found */
18863 #ifndef intmax_t
18864 #ifdef _INT64_T
18865 typedef int64_t intmax_t;
18866 #else
18867 typedef long intmax_t;
18868 #endif
18869 #endif
18870 #ifndef uintmax_t
18871 #ifdef _UINT64_T
18872 typedef uint64_t uintmax_t;
18873 #else
18874 typedef unsigned long uintmax_t;
18875 #endif
18876 #endif
18877 EOF
18878 fi
18879
18880 sed 's/^ *//' >> tmp-stdint.h <<EOF
18881
18882 #endif /* GCC_GENERATED_STDINT_H */
18883 EOF
18884
18885 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18886 rm -f tmp-stdint.h
18887 else
18888 mv -f tmp-stdint.h bfd_stdint.h
18889 fi
18890
18891 ;;
18892 "default":C)
18893 case "$srcdir" in
18894 .) srcdirpre= ;;
18895 *) srcdirpre='$(srcdir)/' ;;
18896 esac
18897 POFILES=
18898 GMOFILES=
18899 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18900 if test $lang != dummy; then
18901 POFILES="$POFILES $srcdirpre$lang.po"
18902 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18903 fi
18904 done
18905 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18906 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18907 -e "s,@POFILES@,$POFILES," \
18908 -e "s,@GMOFILES@,$GMOFILES," \
18909 po/Makefile.in > po/Makefile ;;
18910
18911 esac
18912 done # for ac_tag
18913
18914
18915 as_fn_exit 0
18916 _ACEOF
18917 ac_clean_files=$ac_clean_files_save
18918
18919 test $ac_write_fail = 0 ||
18920 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18921
18922
18923 # configure is writing to config.log, and then calls config.status.
18924 # config.status does its own redirection, appending to config.log.
18925 # Unfortunately, on DOS this fails, as config.log is still kept open
18926 # by configure, so config.status won't be able to write to it; its
18927 # output is simply discarded. So we exec the FD to /dev/null,
18928 # effectively closing config.log, so it can be properly (re)opened and
18929 # appended to by config.status. When coming back to configure, we
18930 # need to make the FD available again.
18931 if test "$no_create" != yes; then
18932 ac_cs_success=:
18933 ac_config_status_args=
18934 test "$silent" = yes &&
18935 ac_config_status_args="$ac_config_status_args --quiet"
18936 exec 5>/dev/null
18937 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18938 exec 5>>config.log
18939 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18940 # would make configure fail if this is the last instruction.
18941 $ac_cs_success || as_fn_exit $?
18942 fi
18943 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18945 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18946 fi
18947
18948