Reinstate mips ecoff support
[external/binutils.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for bfd 2.30.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@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   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='bfd'
558 PACKAGE_TARNAME='bfd'
559 PACKAGE_VERSION='2.30.51'
560 PACKAGE_STRING='bfd 2.30.51'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="libbfd.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 bfd_ufile_ptr
606 bfd_file_ptr
607 lt_cv_dlopen_libs
608 supports_plugins
609 COREFLAG
610 COREFILE
611 havevecs
612 tdefaults
613 bfd_default_target_size
614 bfd_machines
615 bfd_backends
616 all_backends
617 bfd64_libs
618 wordsize
619 TDEFINES
620 SHARED_LIBADD
621 SHARED_LDFLAGS
622 LIBM
623 zlibinc
624 zlibdir
625 EXEEXT_FOR_BUILD
626 CC_FOR_BUILD
627 BFD_HOSTPTR_T
628 BFD_HOST_U_64_BIT
629 BFD_HOST_64_BIT
630 BFD_HOST_64_BIT_DEFINED
631 BFD_HOST_64BIT_LONG_LONG
632 BFD_HOST_64BIT_LONG
633 HDEFINES
634 MSGMERGE
635 MSGFMT
636 MKINSTALLDIRS
637 CATOBJEXT
638 GENCAT
639 INSTOBJEXT
640 DATADIRNAME
641 CATALOGS
642 POSUB
643 GMSGFMT
644 XGETTEXT
645 INCINTL
646 LIBINTL_DEP
647 LIBINTL
648 USE_NLS
649 bfdincludedir
650 bfdlibdir
651 target_noncanonical
652 host_noncanonical
653 INSTALL_LIBBFD_FALSE
654 INSTALL_LIBBFD_TRUE
655 GENINSRC_NEVER_FALSE
656 GENINSRC_NEVER_TRUE
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 WARN_WRITE_STRINGS
661 NO_WERROR
662 WARN_CFLAGS_FOR_BUILD
663 WARN_CFLAGS
664 REPORT_BUGS_TEXI
665 REPORT_BUGS_TO
666 PKGVERSION
667 DEBUGDIR
668 PLUGINS_FALSE
669 PLUGINS_TRUE
670 OTOOL64
671 OTOOL
672 LIPO
673 NMEDIT
674 DSYMUTIL
675 OBJDUMP
676 LN_S
677 NM
678 ac_ct_DUMPBIN
679 DUMPBIN
680 LD
681 FGREP
682 SED
683 LIBTOOL
684 EGREP
685 GREP
686 CPP
687 RANLIB
688 AR
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__quote
697 am__include
698 DEPDIR
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 target_os
730 target_vendor
731 target_cpu
732 target
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 localstatedir
761 sharedstatedir
762 sysconfdir
763 datadir
764 datarootdir
765 libexecdir
766 sbindir
767 bindir
768 program_transform_name
769 prefix
770 exec_prefix
771 PACKAGE_URL
772 PACKAGE_BUGREPORT
773 PACKAGE_STRING
774 PACKAGE_VERSION
775 PACKAGE_TARNAME
776 PACKAGE_NAME
777 PATH_SEPARATOR
778 SHELL'
779 ac_subst_files=''
780 ac_user_opts='
781 enable_option_checking
782 enable_dependency_tracking
783 enable_shared
784 enable_static
785 with_pic
786 enable_fast_install
787 with_gnu_ld
788 enable_libtool_lock
789 enable_plugins
790 enable_largefile
791 enable_64_bit_bfd
792 enable_targets
793 enable_64_bit_archive
794 with_mmap
795 enable_secureplt
796 enable_separate_code
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.30.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.30.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-separate-code  enable -z separate-code in ELF linker by default
1451   --enable-leading-mingw64-underscores
1452                           Enable leading underscores on 64 bit mingw targets
1453   --enable-werror         treat compile warnings as errors
1454   --enable-build-warnings enable build-time compiler warnings
1455   --enable-maintainer-mode  enable make rules and dependencies not useful
1456                           (and sometimes confusing) to the casual installer
1457   --enable-install-libbfd controls installation of libbfd and related headers
1458   --disable-nls           do not use Native Language Support
1459
1460 Optional Packages:
1461   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1462   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1463   --with-pic              try to use only PIC/non-PIC objects [default=use
1464                           both]
1465   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1466   --with-mmap             try using mmap for BFD input files if available
1467   --with-separate-debug-dir=DIR
1468                           Look for global separate debug info in DIR
1469                           [default=LIBDIR/debug]
1470   --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1471                           Binutils"
1472   --with-bugurl=URL       Direct users to URL to report a bug
1473   --with-system-zlib      use installed libz
1474
1475 Some influential environment variables:
1476   CC          C compiler command
1477   CFLAGS      C compiler flags
1478   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1479               nonstandard directory <lib dir>
1480   LIBS        libraries to pass to the linker, e.g. -l<library>
1481   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1482               you have headers in a nonstandard directory <include dir>
1483   CPP         C preprocessor
1484
1485 Use these variables to override the choices made by `configure' or to help
1486 it to find libraries and programs with nonstandard names/locations.
1487
1488 Report bugs to the package provider.
1489 _ACEOF
1490 ac_status=$?
1491 fi
1492
1493 if test "$ac_init_help" = "recursive"; then
1494   # If there are subdirs, report their specific --help.
1495   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496     test -d "$ac_dir" ||
1497       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1498       continue
1499     ac_builddir=.
1500
1501 case "$ac_dir" in
1502 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *)
1504   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1505   # A ".." for each directory in $ac_dir_suffix.
1506   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1507   case $ac_top_builddir_sub in
1508   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1509   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510   esac ;;
1511 esac
1512 ac_abs_top_builddir=$ac_pwd
1513 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1514 # for backward compatibility:
1515 ac_top_builddir=$ac_top_build_prefix
1516
1517 case $srcdir in
1518   .)  # We are building in place.
1519     ac_srcdir=.
1520     ac_top_srcdir=$ac_top_builddir_sub
1521     ac_abs_top_srcdir=$ac_pwd ;;
1522   [\\/]* | ?:[\\/]* )  # Absolute name.
1523     ac_srcdir=$srcdir$ac_dir_suffix;
1524     ac_top_srcdir=$srcdir
1525     ac_abs_top_srcdir=$srcdir ;;
1526   *) # Relative name.
1527     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1528     ac_top_srcdir=$ac_top_build_prefix$srcdir
1529     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1530 esac
1531 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1532
1533     cd "$ac_dir" || { ac_status=$?; continue; }
1534     # Check for guested configure.
1535     if test -f "$ac_srcdir/configure.gnu"; then
1536       echo &&
1537       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538     elif test -f "$ac_srcdir/configure"; then
1539       echo &&
1540       $SHELL "$ac_srcdir/configure" --help=recursive
1541     else
1542       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543     fi || ac_status=$?
1544     cd "$ac_pwd" || { ac_status=$?; break; }
1545   done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550   cat <<\_ACEOF
1551 bfd configure 2.30.51
1552 generated by GNU Autoconf 2.64
1553
1554 Copyright (C) 2009 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558   exit
1559 fi
1560
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1564
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1569 {
1570   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571   rm -f conftest.$ac_objext
1572   if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575   *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579   (eval "$ac_compile") 2>conftest.err
1580   ac_status=$?
1581   if test -s conftest.err; then
1582     grep -v '^ *+' conftest.err >conftest.er1
1583     cat conftest.er1 >&5
1584     mv -f conftest.er1 conftest.err
1585   fi
1586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587   test $ac_status = 0; } && {
1588          test -z "$ac_c_werror_flag" ||
1589          test ! -s conftest.err
1590        } && test -s conftest.$ac_objext; then :
1591   ac_retval=0
1592 else
1593   $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596         ac_retval=1
1597 fi
1598   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599   return $ac_retval
1600
1601 } # ac_fn_c_try_compile
1602
1603 # ac_fn_c_try_link LINENO
1604 # -----------------------
1605 # Try to link conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_link ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   rm -f conftest.$ac_objext conftest$ac_exeext
1610   if { { ac_try="$ac_link"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_link") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } && {
1626          test -z "$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        } && test -s conftest$ac_exeext && {
1629          test "$cross_compiling" = yes ||
1630          $as_test_x conftest$ac_exeext
1631        }; then :
1632   ac_retval=0
1633 else
1634   $as_echo "$as_me: failed program was:" >&5
1635 sed 's/^/| /' conftest.$ac_ext >&5
1636
1637         ac_retval=1
1638 fi
1639   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1640   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1641   # interfere with the next link command; also delete a directory that is
1642   # left behind by Apple's compiler.  We do this before executing the actions.
1643   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645   return $ac_retval
1646
1647 } # ac_fn_c_try_link
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658   *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663   ac_status=$?
1664   if test -s conftest.err; then
1665     grep -v '^ *+' conftest.err >conftest.er1
1666     cat conftest.er1 >&5
1667     mv -f conftest.er1 conftest.err
1668   fi
1669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670   test $ac_status = 0; } >/dev/null && {
1671          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672          test ! -s conftest.err
1673        }; then :
1674   ac_retval=0
1675 else
1676   $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679     ac_retval=1
1680 fi
1681   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682   return $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1687 # -------------------------------------------------------
1688 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1689 # the include files in INCLUDES and setting the cache variable VAR
1690 # accordingly.
1691 ac_fn_c_check_header_mongrel ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1698   $as_echo_n "(cached) " >&6
1699 fi
1700 eval ac_res=\$$3
1701                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1702 $as_echo "$ac_res" >&6; }
1703 else
1704   # Is the header compilable?
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1706 $as_echo_n "checking $2 usability... " >&6; }
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h.  */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713   ac_header_compiler=yes
1714 else
1715   ac_header_compiler=no
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1719 $as_echo "$ac_header_compiler" >&6; }
1720
1721 # Is the header present?
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1723 $as_echo_n "checking $2 presence... " >&6; }
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h.  */
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_cpp "$LINENO"; then :
1729   ac_header_preproc=yes
1730 else
1731   ac_header_preproc=no
1732 fi
1733 rm -f conftest.err conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1735 $as_echo "$ac_header_preproc" >&6; }
1736
1737 # So?  What about this header?
1738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1739   yes:no: )
1740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1741 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1743 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1744     ;;
1745   no:yes:* )
1746     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1747 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1748     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1749 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1750     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1751 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1753 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1754     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1755 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1756     ;;
1757 esac
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   eval "$3=\$ac_header_compiler"
1764 fi
1765 eval ac_res=\$$3
1766                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1767 $as_echo "$ac_res" >&6; }
1768 fi
1769   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1770
1771 } # ac_fn_c_check_header_mongrel
1772
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1777 ac_fn_c_try_run ()
1778 {
1779   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1780   if { { ac_try="$ac_link"
1781 case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_link") 2>&5
1788   ac_status=$?
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791   { { case "(($ac_try" in
1792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793   *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797   (eval "$ac_try") 2>&5
1798   ac_status=$?
1799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800   test $ac_status = 0; }; }; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: program exited with status $ac_status" >&5
1804        $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807        ac_retval=$ac_status
1808 fi
1809   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811   return $ac_retval
1812
1813 } # ac_fn_c_try_run
1814
1815 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1816 # -------------------------------------------------------
1817 # Tests whether HEADER exists and can be compiled using the include files in
1818 # INCLUDES, setting the cache variable VAR accordingly.
1819 ac_fn_c_check_header_compile ()
1820 {
1821   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825   $as_echo_n "(cached) " >&6
1826 else
1827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h.  */
1829 $4
1830 #include <$2>
1831 _ACEOF
1832 if ac_fn_c_try_compile "$LINENO"; then :
1833   eval "$3=yes"
1834 else
1835   eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843
1844 } # ac_fn_c_check_header_compile
1845
1846 # ac_fn_c_check_func LINENO FUNC VAR
1847 # ----------------------------------
1848 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1849 ac_fn_c_check_func ()
1850 {
1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1855   $as_echo_n "(cached) " >&6
1856 else
1857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h.  */
1859 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1861 #define $2 innocuous_$2
1862
1863 /* System header to define __stub macros and hopefully few prototypes,
1864     which can conflict with char $2 (); below.
1865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1866     <limits.h> exists even on freestanding compilers.  */
1867
1868 #ifdef __STDC__
1869 # include <limits.h>
1870 #else
1871 # include <assert.h>
1872 #endif
1873
1874 #undef $2
1875
1876 /* Override any GCC internal prototype to avoid an error.
1877    Use char because int might match the return type of a GCC
1878    builtin and then its argument prototype would still apply.  */
1879 #ifdef __cplusplus
1880 extern "C"
1881 #endif
1882 char $2 ();
1883 /* The GNU C library defines this for functions which it implements
1884     to always fail with ENOSYS.  Some functions are actually named
1885     something starting with __ and the normal name is an alias.  */
1886 #if defined __stub_$2 || defined __stub___$2
1887 choke me
1888 #endif
1889
1890 int
1891 main ()
1892 {
1893 return $2 ();
1894   ;
1895   return 0;
1896 }
1897 _ACEOF
1898 if ac_fn_c_try_link "$LINENO"; then :
1899   eval "$3=yes"
1900 else
1901   eval "$3=no"
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext \
1904     conftest$ac_exeext conftest.$ac_ext
1905 fi
1906 eval ac_res=\$$3
1907                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1910
1911 } # ac_fn_c_check_func
1912
1913 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1914 # -------------------------------------------
1915 # Tests whether TYPE exists after having included INCLUDES, setting cache
1916 # variable VAR accordingly.
1917 ac_fn_c_check_type ()
1918 {
1919   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1923   $as_echo_n "(cached) " >&6
1924 else
1925   eval "$3=no"
1926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 if (sizeof ($2))
1933          return 0;
1934   ;
1935   return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_c_try_compile "$LINENO"; then :
1939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h.  */
1941 $4
1942 int
1943 main ()
1944 {
1945 if (sizeof (($2)))
1946             return 0;
1947   ;
1948   return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952
1953 else
1954   eval "$3=yes"
1955 fi
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 fi
1958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1959 fi
1960 eval ac_res=\$$3
1961                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1963   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964
1965 } # ac_fn_c_check_type
1966
1967 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1968 # --------------------------------------------
1969 # Tries to find the compile-time value of EXPR in a program that includes
1970 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1971 # computed
1972 ac_fn_c_compute_int ()
1973 {
1974   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975   if test "$cross_compiling" = yes; then
1976     # Depending upon the size, compute the lo and hi bounds.
1977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h.  */
1979 $4
1980 int
1981 main ()
1982 {
1983 static int test_array [1 - 2 * !(($2) >= 0)];
1984 test_array [0] = 0
1985
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_compile "$LINENO"; then :
1991   ac_lo=0 ac_mid=0
1992   while :; do
1993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 int
1997 main ()
1998 {
1999 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000 test_array [0] = 0
2001
2002   ;
2003   return 0;
2004 }
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   ac_hi=$ac_mid; break
2008 else
2009   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2010                         if test $ac_lo -le $ac_mid; then
2011                           ac_lo= ac_hi=
2012                           break
2013                         fi
2014                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017   done
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 int
2023 main ()
2024 {
2025 static int test_array [1 - 2 * !(($2) < 0)];
2026 test_array [0] = 0
2027
2028   ;
2029   return 0;
2030 }
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2033   ac_hi=-1 ac_mid=-1
2034   while :; do
2035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h.  */
2037 $4
2038 int
2039 main ()
2040 {
2041 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2042 test_array [0] = 0
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   ac_lo=$ac_mid; break
2050 else
2051   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052                         if test $ac_mid -le $ac_hi; then
2053                           ac_lo= ac_hi=
2054                           break
2055                         fi
2056                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059   done
2060 else
2061   ac_lo= ac_hi=
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 test_array [0] = 0
2077
2078   ;
2079   return 0;
2080 }
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083   ac_hi=$ac_mid
2084 else
2085   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2086 fi
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088 done
2089 case $ac_lo in #((
2090 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2091 '') ac_retval=1 ;;
2092 esac
2093   else
2094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h.  */
2096 $4
2097 static long int longval () { return $2; }
2098 static unsigned long int ulongval () { return $2; }
2099 #include <stdio.h>
2100 #include <stdlib.h>
2101 int
2102 main ()
2103 {
2104
2105   FILE *f = fopen ("conftest.val", "w");
2106   if (! f)
2107     return 1;
2108   if (($2) < 0)
2109     {
2110       long int i = longval ();
2111       if (i != ($2))
2112         return 1;
2113       fprintf (f, "%ld", i);
2114     }
2115   else
2116     {
2117       unsigned long int i = ulongval ();
2118       if (i != ($2))
2119         return 1;
2120       fprintf (f, "%lu", i);
2121     }
2122   /* Do not output a trailing newline, as this causes \r\n confusion
2123      on some platforms.  */
2124   return ferror (f) || fclose (f) != 0;
2125
2126   ;
2127   return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_run "$LINENO"; then :
2131   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2132 else
2133   ac_retval=1
2134 fi
2135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2136   conftest.$ac_objext conftest.beam conftest.$ac_ext
2137 rm -f conftest.val
2138
2139   fi
2140   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2141   return $ac_retval
2142
2143 } # ac_fn_c_compute_int
2144
2145 # ac_fn_c_check_decl LINENO SYMBOL VAR
2146 # ------------------------------------
2147 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2148 ac_fn_c_check_decl ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   as_decl_name=`echo $2|sed 's/ *(.*//'`
2152   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2154 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2155 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156   $as_echo_n "(cached) " >&6
2157 else
2158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159 /* end confdefs.h.  */
2160 $4
2161 int
2162 main ()
2163 {
2164 #ifndef $as_decl_name
2165 #ifdef __cplusplus
2166   (void) $as_decl_use;
2167 #else
2168   (void) $as_decl_name;
2169 #endif
2170 #endif
2171
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   eval "$3=yes"
2178 else
2179   eval "$3=no"
2180 fi
2181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 eval ac_res=\$$3
2184                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2185 $as_echo "$ac_res" >&6; }
2186   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2187
2188 } # ac_fn_c_check_decl
2189 cat >config.log <<_ACEOF
2190 This file contains any messages produced by compilers while
2191 running configure, to aid debugging if configure makes a mistake.
2192
2193 It was created by bfd $as_me 2.30.51, which was
2194 generated by GNU Autoconf 2.64.  Invocation command line was
2195
2196   $ $0 $@
2197
2198 _ACEOF
2199 exec 5>>config.log
2200 {
2201 cat <<_ASUNAME
2202 ## --------- ##
2203 ## Platform. ##
2204 ## --------- ##
2205
2206 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2207 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2208 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2209 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2210 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2211
2212 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2213 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2214
2215 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2216 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2217 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2218 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2219 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2220 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2221 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2222
2223 _ASUNAME
2224
2225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 for as_dir in $PATH
2227 do
2228   IFS=$as_save_IFS
2229   test -z "$as_dir" && as_dir=.
2230     $as_echo "PATH: $as_dir"
2231   done
2232 IFS=$as_save_IFS
2233
2234 } >&5
2235
2236 cat >&5 <<_ACEOF
2237
2238
2239 ## ----------- ##
2240 ## Core tests. ##
2241 ## ----------- ##
2242
2243 _ACEOF
2244
2245
2246 # Keep a trace of the command line.
2247 # Strip out --no-create and --no-recursion so they do not pile up.
2248 # Strip out --silent because we don't want to record it for future runs.
2249 # Also quote any args containing shell meta-characters.
2250 # Make two passes to allow for proper duplicate-argument suppression.
2251 ac_configure_args=
2252 ac_configure_args0=
2253 ac_configure_args1=
2254 ac_must_keep_next=false
2255 for ac_pass in 1 2
2256 do
2257   for ac_arg
2258   do
2259     case $ac_arg in
2260     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2261     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2262     | -silent | --silent | --silen | --sile | --sil)
2263       continue ;;
2264     *\'*)
2265       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2266     esac
2267     case $ac_pass in
2268     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2269     2)
2270       as_fn_append ac_configure_args1 " '$ac_arg'"
2271       if test $ac_must_keep_next = true; then
2272         ac_must_keep_next=false # Got value, back to normal.
2273       else
2274         case $ac_arg in
2275           *=* | --config-cache | -C | -disable-* | --disable-* \
2276           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2277           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2278           | -with-* | --with-* | -without-* | --without-* | --x)
2279             case "$ac_configure_args0 " in
2280               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2281             esac
2282             ;;
2283           -* ) ac_must_keep_next=true ;;
2284         esac
2285       fi
2286       as_fn_append ac_configure_args " '$ac_arg'"
2287       ;;
2288     esac
2289   done
2290 done
2291 { ac_configure_args0=; unset ac_configure_args0;}
2292 { ac_configure_args1=; unset ac_configure_args1;}
2293
2294 # When interrupted or exit'd, cleanup temporary files, and complete
2295 # config.log.  We remove comments because anyway the quotes in there
2296 # would cause problems or look ugly.
2297 # WARNING: Use '\'' to represent an apostrophe within the trap.
2298 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2299 trap 'exit_status=$?
2300   # Save into config.log some information that might help in debugging.
2301   {
2302     echo
2303
2304     cat <<\_ASBOX
2305 ## ---------------- ##
2306 ## Cache variables. ##
2307 ## ---------------- ##
2308 _ASBOX
2309     echo
2310     # The following way of writing the cache mishandles newlines in values,
2311 (
2312   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2313     eval ac_val=\$$ac_var
2314     case $ac_val in #(
2315     *${as_nl}*)
2316       case $ac_var in #(
2317       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2318 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2319       esac
2320       case $ac_var in #(
2321       _ | IFS | as_nl) ;; #(
2322       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2323       *) { eval $ac_var=; unset $ac_var;} ;;
2324       esac ;;
2325     esac
2326   done
2327   (set) 2>&1 |
2328     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2329     *${as_nl}ac_space=\ *)
2330       sed -n \
2331         "s/'\''/'\''\\\\'\'''\''/g;
2332           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2333       ;; #(
2334     *)
2335       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2336       ;;
2337     esac |
2338     sort
2339 )
2340     echo
2341
2342     cat <<\_ASBOX
2343 ## ----------------- ##
2344 ## Output variables. ##
2345 ## ----------------- ##
2346 _ASBOX
2347     echo
2348     for ac_var in $ac_subst_vars
2349     do
2350       eval ac_val=\$$ac_var
2351       case $ac_val in
2352       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2353       esac
2354       $as_echo "$ac_var='\''$ac_val'\''"
2355     done | sort
2356     echo
2357
2358     if test -n "$ac_subst_files"; then
2359       cat <<\_ASBOX
2360 ## ------------------- ##
2361 ## File substitutions. ##
2362 ## ------------------- ##
2363 _ASBOX
2364       echo
2365       for ac_var in $ac_subst_files
2366       do
2367         eval ac_val=\$$ac_var
2368         case $ac_val in
2369         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2370         esac
2371         $as_echo "$ac_var='\''$ac_val'\''"
2372       done | sort
2373       echo
2374     fi
2375
2376     if test -s confdefs.h; then
2377       cat <<\_ASBOX
2378 ## ----------- ##
2379 ## confdefs.h. ##
2380 ## ----------- ##
2381 _ASBOX
2382       echo
2383       cat confdefs.h
2384       echo
2385     fi
2386     test "$ac_signal" != 0 &&
2387       $as_echo "$as_me: caught signal $ac_signal"
2388     $as_echo "$as_me: exit $exit_status"
2389   } >&5
2390   rm -f core *.core core.conftest.* &&
2391     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392     exit $exit_status
2393 ' 0
2394 for ac_signal in 1 2 13 15; do
2395   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 done
2397 ac_signal=0
2398
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2401
2402 $as_echo "/* confdefs.h */" > confdefs.h
2403
2404 # Predefined preprocessor variables.
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2428 _ACEOF
2429
2430
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2433 ac_site_file1=NONE
2434 ac_site_file2=NONE
2435 if test -n "$CONFIG_SITE"; then
2436   ac_site_file1=$CONFIG_SITE
2437 elif test "x$prefix" != xNONE; then
2438   ac_site_file1=$prefix/share/config.site
2439   ac_site_file2=$prefix/etc/config.site
2440 else
2441   ac_site_file1=$ac_default_prefix/share/config.site
2442   ac_site_file2=$ac_default_prefix/etc/config.site
2443 fi
2444 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2445 do
2446   test "x$ac_site_file" = xNONE && continue
2447   if test -r "$ac_site_file"; then
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2449 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2450     sed 's/^/| /' "$ac_site_file" >&5
2451     . "$ac_site_file"
2452   fi
2453 done
2454
2455 if test -r "$cache_file"; then
2456   # Some versions of bash will fail to source /dev/null (special
2457   # files actually), so we avoid doing that.
2458   if test -f "$cache_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2460 $as_echo "$as_me: loading cache $cache_file" >&6;}
2461     case $cache_file in
2462       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2463       *)                      . "./$cache_file";;
2464     esac
2465   fi
2466 else
2467   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2468 $as_echo "$as_me: creating cache $cache_file" >&6;}
2469   >$cache_file
2470 fi
2471
2472 # Check that the precious variables saved in the cache have kept the same
2473 # value.
2474 ac_cache_corrupted=false
2475 for ac_var in $ac_precious_vars; do
2476   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2477   eval ac_new_set=\$ac_env_${ac_var}_set
2478   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2479   eval ac_new_val=\$ac_env_${ac_var}_value
2480   case $ac_old_set,$ac_new_set in
2481     set,)
2482       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2483 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2484       ac_cache_corrupted=: ;;
2485     ,set)
2486       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2487 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2488       ac_cache_corrupted=: ;;
2489     ,);;
2490     *)
2491       if test "x$ac_old_val" != "x$ac_new_val"; then
2492         # differences in whitespace do not lead to failure.
2493         ac_old_val_w=`echo x $ac_old_val`
2494         ac_new_val_w=`echo x $ac_new_val`
2495         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2496           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2497 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2498           ac_cache_corrupted=:
2499         else
2500           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2501 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2502           eval $ac_var=\$ac_old_val
2503         fi
2504         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2505 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2506         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2507 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2508       fi;;
2509   esac
2510   # Pass precious variables to config.status.
2511   if test "$ac_new_set" = set; then
2512     case $ac_new_val in
2513     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2514     *) ac_arg=$ac_var=$ac_new_val ;;
2515     esac
2516     case " $ac_configure_args " in
2517       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2518       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2519     esac
2520   fi
2521 done
2522 if $ac_cache_corrupted; then
2523   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2526 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2527   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2528 fi
2529 ## -------------------- ##
2530 ## Main body of script. ##
2531 ## -------------------- ##
2532
2533 ac_ext=c
2534 ac_cpp='$CPP $CPPFLAGS'
2535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2538
2539
2540
2541
2542
2543
2544
2545 ac_aux_dir=
2546 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2547   for ac_t in install-sh install.sh shtool; do
2548     if test -f "$ac_dir/$ac_t"; then
2549       ac_aux_dir=$ac_dir
2550       ac_install_sh="$ac_aux_dir/$ac_t -c"
2551       break 2
2552     fi
2553   done
2554 done
2555 if test -z "$ac_aux_dir"; then
2556   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2557 fi
2558
2559 # These three variables are undocumented and unsupported,
2560 # and are intended to be withdrawn in a future Autoconf release.
2561 # They can cause serious problems if a builder's source tree is in a directory
2562 # whose full name contains unusual characters.
2563 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2564 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2565 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2566
2567
2568 # Make sure we can run config.sub.
2569 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2570   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2571
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2573 $as_echo_n "checking build system type... " >&6; }
2574 if test "${ac_cv_build+set}" = set; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   ac_build_alias=$build_alias
2578 test "x$ac_build_alias" = x &&
2579   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580 test "x$ac_build_alias" = x &&
2581   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2582 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2583   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2584
2585 fi
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2587 $as_echo "$ac_cv_build" >&6; }
2588 case $ac_cv_build in
2589 *-*-*) ;;
2590 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2591 esac
2592 build=$ac_cv_build
2593 ac_save_IFS=$IFS; IFS='-'
2594 set x $ac_cv_build
2595 shift
2596 build_cpu=$1
2597 build_vendor=$2
2598 shift; shift
2599 # Remember, the first character of IFS is used to create $*,
2600 # except with old shells:
2601 build_os=$*
2602 IFS=$ac_save_IFS
2603 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2604
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2607 $as_echo_n "checking host system type... " >&6; }
2608 if test "${ac_cv_host+set}" = set; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   if test "x$host_alias" = x; then
2612   ac_cv_host=$ac_cv_build
2613 else
2614   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2615     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2616 fi
2617
2618 fi
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2620 $as_echo "$ac_cv_host" >&6; }
2621 case $ac_cv_host in
2622 *-*-*) ;;
2623 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2624 esac
2625 host=$ac_cv_host
2626 ac_save_IFS=$IFS; IFS='-'
2627 set x $ac_cv_host
2628 shift
2629 host_cpu=$1
2630 host_vendor=$2
2631 shift; shift
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2634 host_os=$*
2635 IFS=$ac_save_IFS
2636 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2637
2638
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2640 $as_echo_n "checking target system type... " >&6; }
2641 if test "${ac_cv_target+set}" = set; then :
2642   $as_echo_n "(cached) " >&6
2643 else
2644   if test "x$target_alias" = x; then
2645   ac_cv_target=$ac_cv_host
2646 else
2647   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2648     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2649 fi
2650
2651 fi
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2653 $as_echo "$ac_cv_target" >&6; }
2654 case $ac_cv_target in
2655 *-*-*) ;;
2656 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2657 esac
2658 target=$ac_cv_target
2659 ac_save_IFS=$IFS; IFS='-'
2660 set x $ac_cv_target
2661 shift
2662 target_cpu=$1
2663 target_vendor=$2
2664 shift; shift
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2667 target_os=$*
2668 IFS=$ac_save_IFS
2669 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2670
2671
2672 # The aliases save the names the user supplied, while $host etc.
2673 # will get canonicalized.
2674 test -n "$target_alias" &&
2675   test "$program_prefix$program_suffix$program_transform_name" = \
2676     NONENONEs,x,x, &&
2677   program_prefix=${target_alias}-
2678 ac_ext=c
2679 ac_cpp='$CPP $CPPFLAGS'
2680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2683 if test -n "$ac_tool_prefix"; then
2684   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2687 $as_echo_n "checking for $ac_word... " >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then :
2689   $as_echo_n "(cached) " >&6
2690 else
2691   if test -n "$CC"; then
2692   ac_cv_prog_CC="$CC" # Let the user override the test.
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH
2696 do
2697   IFS=$as_save_IFS
2698   test -z "$as_dir" && as_dir=.
2699     for ac_exec_ext in '' $ac_executable_extensions; do
2700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2703     break 2
2704   fi
2705 done
2706   done
2707 IFS=$as_save_IFS
2708
2709 fi
2710 fi
2711 CC=$ac_cv_prog_CC
2712 if test -n "$CC"; then
2713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2714 $as_echo "$CC" >&6; }
2715 else
2716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2717 $as_echo "no" >&6; }
2718 fi
2719
2720
2721 fi
2722 if test -z "$ac_cv_prog_CC"; then
2723   ac_ct_CC=$CC
2724   # Extract the first word of "gcc", so it can be a program name with args.
2725 set dummy gcc; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   if test -n "$ac_ct_CC"; then
2732   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739     for ac_exec_ext in '' $ac_executable_extensions; do
2740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741     ac_cv_prog_ac_ct_CC="gcc"
2742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746   done
2747 IFS=$as_save_IFS
2748
2749 fi
2750 fi
2751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2752 if test -n "$ac_ct_CC"; then
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2754 $as_echo "$ac_ct_CC" >&6; }
2755 else
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760   if test "x$ac_ct_CC" = x; then
2761     CC=""
2762   else
2763     case $cross_compiling:$ac_tool_warned in
2764 yes:)
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2767 ac_tool_warned=yes ;;
2768 esac
2769     CC=$ac_ct_CC
2770   fi
2771 else
2772   CC="$ac_cv_prog_CC"
2773 fi
2774
2775 if test -z "$CC"; then
2776           if test -n "$ac_tool_prefix"; then
2777     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2778 set dummy ${ac_tool_prefix}cc; ac_word=$2
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2780 $as_echo_n "checking for $ac_word... " >&6; }
2781 if test "${ac_cv_prog_CC+set}" = set; then :
2782   $as_echo_n "(cached) " >&6
2783 else
2784   if test -n "$CC"; then
2785   ac_cv_prog_CC="$CC" # Let the user override the test.
2786 else
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     for ac_exec_ext in '' $ac_executable_extensions; do
2793   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2794     ac_cv_prog_CC="${ac_tool_prefix}cc"
2795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2796     break 2
2797   fi
2798 done
2799   done
2800 IFS=$as_save_IFS
2801
2802 fi
2803 fi
2804 CC=$ac_cv_prog_CC
2805 if test -n "$CC"; then
2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2807 $as_echo "$CC" >&6; }
2808 else
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2810 $as_echo "no" >&6; }
2811 fi
2812
2813
2814   fi
2815 fi
2816 if test -z "$CC"; then
2817   # Extract the first word of "cc", so it can be a program name with args.
2818 set dummy cc; ac_word=$2
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2820 $as_echo_n "checking for $ac_word... " >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   if test -n "$CC"; then
2825   ac_cv_prog_CC="$CC" # Let the user override the test.
2826 else
2827   ac_prog_rejected=no
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     for ac_exec_ext in '' $ac_executable_extensions; do
2834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2835     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2836        ac_prog_rejected=yes
2837        continue
2838      fi
2839     ac_cv_prog_CC="cc"
2840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841     break 2
2842   fi
2843 done
2844   done
2845 IFS=$as_save_IFS
2846
2847 if test $ac_prog_rejected = yes; then
2848   # We found a bogon in the path, so make sure we never use it.
2849   set dummy $ac_cv_prog_CC
2850   shift
2851   if test $# != 0; then
2852     # We chose a different compiler from the bogus one.
2853     # However, it has the same basename, so the bogon will be chosen
2854     # first if we set CC to just the basename; use the full file name.
2855     shift
2856     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2857   fi
2858 fi
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2864 $as_echo "$CC" >&6; }
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870
2871 fi
2872 if test -z "$CC"; then
2873   if test -n "$ac_tool_prefix"; then
2874   for ac_prog in cl.exe
2875   do
2876     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2877 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2879 $as_echo_n "checking for $ac_word... " >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then :
2881   $as_echo_n "(cached) " >&6
2882 else
2883   if test -n "$CC"; then
2884   ac_cv_prog_CC="$CC" # Let the user override the test.
2885 else
2886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887 for as_dir in $PATH
2888 do
2889   IFS=$as_save_IFS
2890   test -z "$as_dir" && as_dir=.
2891     for ac_exec_ext in '' $ac_executable_extensions; do
2892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2893     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895     break 2
2896   fi
2897 done
2898   done
2899 IFS=$as_save_IFS
2900
2901 fi
2902 fi
2903 CC=$ac_cv_prog_CC
2904 if test -n "$CC"; then
2905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2906 $as_echo "$CC" >&6; }
2907 else
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2909 $as_echo "no" >&6; }
2910 fi
2911
2912
2913     test -n "$CC" && break
2914   done
2915 fi
2916 if test -z "$CC"; then
2917   ac_ct_CC=$CC
2918   for ac_prog in cl.exe
2919 do
2920   # Extract the first word of "$ac_prog", so it can be a program name with args.
2921 set dummy $ac_prog; ac_word=$2
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923 $as_echo_n "checking for $ac_word... " >&6; }
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2925   $as_echo_n "(cached) " >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935     for ac_exec_ext in '' $ac_executable_extensions; do
2936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937     ac_cv_prog_ac_ct_CC="$ac_prog"
2938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942   done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 $as_echo "$ac_ct_CC" >&6; }
2951 else
2952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 $as_echo "no" >&6; }
2954 fi
2955
2956
2957   test -n "$ac_ct_CC" && break
2958 done
2959
2960   if test "x$ac_ct_CC" = x; then
2961     CC=""
2962   else
2963     case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969     CC=$ac_ct_CC
2970   fi
2971 fi
2972
2973 fi
2974
2975
2976 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2978 as_fn_error "no acceptable C compiler found in \$PATH
2979 See \`config.log' for more details." "$LINENO" 5; }
2980
2981 # Provide some information about the compiler.
2982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2983 set X $ac_compile
2984 ac_compiler=$2
2985 for ac_option in --version -v -V -qversion; do
2986   { { ac_try="$ac_compiler $ac_option >&5"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2994   ac_status=$?
2995   if test -s conftest.err; then
2996     sed '10a\
2997 ... rest of stderr output deleted ...
2998          10q' conftest.err >conftest.er1
2999     cat conftest.er1 >&5
3000     rm -f conftest.er1 conftest.err
3001   fi
3002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003   test $ac_status = 0; }
3004 done
3005
3006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3007 /* end confdefs.h.  */
3008
3009 int
3010 main ()
3011 {
3012
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 ac_clean_files_save=$ac_clean_files
3018 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3019 # Try to create an executable without -o first, disregard a.out.
3020 # It will help us diagnose broken compilers, and finding out an intuition
3021 # of exeext.
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3023 $as_echo_n "checking for C compiler default output file name... " >&6; }
3024 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3025
3026 # The possible output files:
3027 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3028
3029 ac_rmfiles=
3030 for ac_file in $ac_files
3031 do
3032   case $ac_file in
3033     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3034     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035   esac
3036 done
3037 rm -f $ac_rmfiles
3038
3039 if { { ac_try="$ac_link_default"
3040 case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
3046   (eval "$ac_link_default") 2>&5
3047   ac_status=$?
3048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049   test $ac_status = 0; }; then :
3050   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3051 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3052 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3053 # so that the user can short-circuit this test for compilers unknown to
3054 # Autoconf.
3055 for ac_file in $ac_files ''
3056 do
3057   test -f "$ac_file" || continue
3058   case $ac_file in
3059     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3060         ;;
3061     [ab].out )
3062         # We found the default executable, but exeext='' is most
3063         # certainly right.
3064         break;;
3065     *.* )
3066         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3067         then :; else
3068            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3069         fi
3070         # We set ac_cv_exeext here because the later test for it is not
3071         # safe: cross compilers may not add the suffix if given an `-o'
3072         # argument, so we may need to know it at that point already.
3073         # Even if this section looks crufty: it has the advantage of
3074         # actually working.
3075         break;;
3076     * )
3077         break;;
3078   esac
3079 done
3080 test "$ac_cv_exeext" = no && ac_cv_exeext=
3081
3082 else
3083   ac_file=''
3084 fi
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3086 $as_echo "$ac_file" >&6; }
3087 if test -z "$ac_file"; then :
3088   $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3093 { as_fn_set_status 77
3094 as_fn_error "C compiler cannot create executables
3095 See \`config.log' for more details." "$LINENO" 5; }; }
3096 fi
3097 ac_exeext=$ac_cv_exeext
3098
3099 # Check that the compiler produces executables we can run.  If not, either
3100 # the compiler is broken, or we cross compile.
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3102 $as_echo_n "checking whether the C compiler works... " >&6; }
3103 # If not cross compiling, check that we can run a simple program.
3104 if test "$cross_compiling" != yes; then
3105   if { ac_try='./$ac_file'
3106   { { case "(($ac_try" in
3107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108   *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112   (eval "$ac_try") 2>&5
3113   ac_status=$?
3114   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115   test $ac_status = 0; }; }; then
3116     cross_compiling=no
3117   else
3118     if test "$cross_compiling" = maybe; then
3119         cross_compiling=yes
3120     else
3121         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3122 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3123 as_fn_error "cannot run C compiled programs.
3124 If you meant to cross compile, use \`--host'.
3125 See \`config.log' for more details." "$LINENO" 5; }
3126     fi
3127   fi
3128 fi
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3130 $as_echo "yes" >&6; }
3131
3132 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3133 ac_clean_files=$ac_clean_files_save
3134 # Check that the compiler produces executables we can run.  If not, either
3135 # the compiler is broken, or we cross compile.
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3137 $as_echo_n "checking whether we are cross compiling... " >&6; }
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3139 $as_echo "$cross_compiling" >&6; }
3140
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3142 $as_echo_n "checking for suffix of executables... " >&6; }
3143 if { { ac_try="$ac_link"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 $as_echo "$ac_try_echo"; } >&5
3150   (eval "$ac_link") 2>&5
3151   ac_status=$?
3152   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153   test $ac_status = 0; }; then :
3154   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3155 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3156 # work properly (i.e., refer to `conftest.exe'), while it won't with
3157 # `rm'.
3158 for ac_file in conftest.exe conftest conftest.*; do
3159   test -f "$ac_file" || continue
3160   case $ac_file in
3161     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3162     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163           break;;
3164     * ) break;;
3165   esac
3166 done
3167 else
3168   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3170 as_fn_error "cannot compute suffix of executables: cannot compile and link
3171 See \`config.log' for more details." "$LINENO" 5; }
3172 fi
3173 rm -f conftest$ac_cv_exeext
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3175 $as_echo "$ac_cv_exeext" >&6; }
3176
3177 rm -f conftest.$ac_ext
3178 EXEEXT=$ac_cv_exeext
3179 ac_exeext=$EXEEXT
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3181 $as_echo_n "checking for suffix of object files... " >&6; }
3182 if test "${ac_cv_objext+set}" = set; then :
3183   $as_echo_n "(cached) " >&6
3184 else
3185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h.  */
3187
3188 int
3189 main ()
3190 {
3191
3192   ;
3193   return 0;
3194 }
3195 _ACEOF
3196 rm -f conftest.o conftest.obj
3197 if { { ac_try="$ac_compile"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3203 $as_echo "$ac_try_echo"; } >&5
3204   (eval "$ac_compile") 2>&5
3205   ac_status=$?
3206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207   test $ac_status = 0; }; then :
3208   for ac_file in conftest.o conftest.obj conftest.*; do
3209   test -f "$ac_file" || continue;
3210   case $ac_file in
3211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3212     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3213        break;;
3214   esac
3215 done
3216 else
3217   $as_echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3219
3220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3222 as_fn_error "cannot compute suffix of object files: cannot compile
3223 See \`config.log' for more details." "$LINENO" 5; }
3224 fi
3225 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3226 fi
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3228 $as_echo "$ac_cv_objext" >&6; }
3229 OBJEXT=$ac_cv_objext
3230 ac_objext=$OBJEXT
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3232 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3233 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242 #ifndef __GNUC__
3243        choke me
3244 #endif
3245
3246   ;
3247   return 0;
3248 }
3249 _ACEOF
3250 if ac_fn_c_try_compile "$LINENO"; then :
3251   ac_compiler_gnu=yes
3252 else
3253   ac_compiler_gnu=no
3254 fi
3255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3256 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3257
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3260 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3261 if test $ac_compiler_gnu = yes; then
3262   GCC=yes
3263 else
3264   GCC=
3265 fi
3266 ac_test_CFLAGS=${CFLAGS+set}
3267 ac_save_CFLAGS=$CFLAGS
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3269 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3270 if test "${ac_cv_prog_cc_g+set}" = set; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   ac_save_c_werror_flag=$ac_c_werror_flag
3274    ac_c_werror_flag=yes
3275    ac_cv_prog_cc_g=no
3276    CFLAGS="-g"
3277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h.  */
3279
3280 int
3281 main ()
3282 {
3283
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289   ac_cv_prog_cc_g=yes
3290 else
3291   CFLAGS=""
3292       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293 /* end confdefs.h.  */
3294
3295 int
3296 main ()
3297 {
3298
3299   ;
3300   return 0;
3301 }
3302 _ACEOF
3303 if ac_fn_c_try_compile "$LINENO"; then :
3304
3305 else
3306   ac_c_werror_flag=$ac_save_c_werror_flag
3307          CFLAGS="-g"
3308          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h.  */
3310
3311 int
3312 main ()
3313 {
3314
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 if ac_fn_c_try_compile "$LINENO"; then :
3320   ac_cv_prog_cc_g=yes
3321 fi
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327    ac_c_werror_flag=$ac_save_c_werror_flag
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3330 $as_echo "$ac_cv_prog_cc_g" >&6; }
3331 if test "$ac_test_CFLAGS" = set; then
3332   CFLAGS=$ac_save_CFLAGS
3333 elif test $ac_cv_prog_cc_g = yes; then
3334   if test "$GCC" = yes; then
3335     CFLAGS="-g -O2"
3336   else
3337     CFLAGS="-g"
3338   fi
3339 else
3340   if test "$GCC" = yes; then
3341     CFLAGS="-O2"
3342   else
3343     CFLAGS=
3344   fi
3345 fi
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3347 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3348 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3349   $as_echo_n "(cached) " >&6
3350 else
3351   ac_cv_prog_cc_c89=no
3352 ac_save_CC=$CC
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h.  */
3355 #include <stdarg.h>
3356 #include <stdio.h>
3357 #include <sys/types.h>
3358 #include <sys/stat.h>
3359 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3360 struct buf { int x; };
3361 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3362 static char *e (p, i)
3363      char **p;
3364      int i;
3365 {
3366   return p[i];
3367 }
3368 static char *f (char * (*g) (char **, int), char **p, ...)
3369 {
3370   char *s;
3371   va_list v;
3372   va_start (v,p);
3373   s = g (p, va_arg (v,int));
3374   va_end (v);
3375   return s;
3376 }
3377
3378 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3379    function prototypes and stuff, but not '\xHH' hex character constants.
3380    These don't provoke an error unfortunately, instead are silently treated
3381    as 'x'.  The following induces an error, until -std is added to get
3382    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3383    array size at least.  It's necessary to write '\x00'==0 to get something
3384    that's true only with -std.  */
3385 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3386
3387 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3388    inside strings and character constants.  */
3389 #define FOO(x) 'x'
3390 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3391
3392 int test (int i, double x);
3393 struct s1 {int (*f) (int a);};
3394 struct s2 {int (*f) (double a);};
3395 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3396 int argc;
3397 char **argv;
3398 int
3399 main ()
3400 {
3401 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3407         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408 do
3409   CC="$ac_save_CC $ac_arg"
3410   if ac_fn_c_try_compile "$LINENO"; then :
3411   ac_cv_prog_cc_c89=$ac_arg
3412 fi
3413 rm -f core conftest.err conftest.$ac_objext
3414   test "x$ac_cv_prog_cc_c89" != "xno" && break
3415 done
3416 rm -f conftest.$ac_ext
3417 CC=$ac_save_CC
3418
3419 fi
3420 # AC_CACHE_VAL
3421 case "x$ac_cv_prog_cc_c89" in
3422   x)
3423     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3424 $as_echo "none needed" >&6; } ;;
3425   xno)
3426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3427 $as_echo "unsupported" >&6; } ;;
3428   *)
3429     CC="$CC $ac_cv_prog_cc_c89"
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3431 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3432 esac
3433 if test "x$ac_cv_prog_cc_c89" != xno; then :
3434
3435 fi
3436
3437 ac_ext=c
3438 ac_cpp='$CPP $CPPFLAGS'
3439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442
3443
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3445 $as_echo_n "checking for library containing strerror... " >&6; }
3446 if test "${ac_cv_search_strerror+set}" = set; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   ac_func_search_save_LIBS=$LIBS
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h.  */
3452
3453 /* Override any GCC internal prototype to avoid an error.
3454    Use char because int might match the return type of a GCC
3455    builtin and then its argument prototype would still apply.  */
3456 #ifdef __cplusplus
3457 extern "C"
3458 #endif
3459 char strerror ();
3460 int
3461 main ()
3462 {
3463 return strerror ();
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 for ac_lib in '' cposix; do
3469   if test -z "$ac_lib"; then
3470     ac_res="none required"
3471   else
3472     ac_res=-l$ac_lib
3473     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3474   fi
3475   if ac_fn_c_try_link "$LINENO"; then :
3476   ac_cv_search_strerror=$ac_res
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext \
3479     conftest$ac_exeext
3480   if test "${ac_cv_search_strerror+set}" = set; then :
3481   break
3482 fi
3483 done
3484 if test "${ac_cv_search_strerror+set}" = set; then :
3485
3486 else
3487   ac_cv_search_strerror=no
3488 fi
3489 rm conftest.$ac_ext
3490 LIBS=$ac_func_search_save_LIBS
3491 fi
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3493 $as_echo "$ac_cv_search_strerror" >&6; }
3494 ac_res=$ac_cv_search_strerror
3495 if test "$ac_res" != no; then :
3496   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3497
3498 fi
3499
3500
3501 am__api_version='1.11'
3502
3503 # Find a good install program.  We prefer a C program (faster),
3504 # so one script is as good as another.  But avoid the broken or
3505 # incompatible versions:
3506 # SysV /etc/install, /usr/sbin/install
3507 # SunOS /usr/etc/install
3508 # IRIX /sbin/install
3509 # AIX /bin/install
3510 # AmigaOS /C/install, which installs bootblocks on floppy discs
3511 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3512 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3513 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3514 # OS/2's system install, which has a completely different semantic
3515 # ./install, which can be erroneously created by make from ./install.sh.
3516 # Reject install programs that cannot install multiple files.
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3518 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3519 if test -z "$INSTALL"; then
3520 if test "${ac_cv_path_install+set}" = set; then :
3521   $as_echo_n "(cached) " >&6
3522 else
3523   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 for as_dir in $PATH
3525 do
3526   IFS=$as_save_IFS
3527   test -z "$as_dir" && as_dir=.
3528     # Account for people who put trailing slashes in PATH elements.
3529 case $as_dir/ in #((
3530   ./ | .// | /[cC]/* | \
3531   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3533   /usr/ucb/* ) ;;
3534   *)
3535     # OSF1 and SCO ODT 3.0 have their own names for install.
3536     # Don't use installbsd from OSF since it installs stuff as root
3537     # by default.
3538     for ac_prog in ginstall scoinst install; do
3539       for ac_exec_ext in '' $ac_executable_extensions; do
3540         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3541           if test $ac_prog = install &&
3542             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543             # AIX install.  It has an incompatible calling convention.
3544             :
3545           elif test $ac_prog = install &&
3546             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547             # program-specific install script used by HP pwplus--don't use.
3548             :
3549           else
3550             rm -rf conftest.one conftest.two conftest.dir
3551             echo one > conftest.one
3552             echo two > conftest.two
3553             mkdir conftest.dir
3554             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3555               test -s conftest.one && test -s conftest.two &&
3556               test -s conftest.dir/conftest.one &&
3557               test -s conftest.dir/conftest.two
3558             then
3559               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3560               break 3
3561             fi
3562           fi
3563         fi
3564       done
3565     done
3566     ;;
3567 esac
3568
3569   done
3570 IFS=$as_save_IFS
3571
3572 rm -rf conftest.one conftest.two conftest.dir
3573
3574 fi
3575   if test "${ac_cv_path_install+set}" = set; then
3576     INSTALL=$ac_cv_path_install
3577   else
3578     # As a last resort, use the slow shell script.  Don't cache a
3579     # value for INSTALL within a source directory, because that will
3580     # break other packages using the cache if that directory is
3581     # removed, or if the value is a relative name.
3582     INSTALL=$ac_install_sh
3583   fi
3584 fi
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3586 $as_echo "$INSTALL" >&6; }
3587
3588 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3589 # It thinks the first close brace ends the variable substitution.
3590 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3591
3592 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3593
3594 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3595
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3597 $as_echo_n "checking whether build environment is sane... " >&6; }
3598 # Just in case
3599 sleep 1
3600 echo timestamp > conftest.file
3601 # Reject unsafe characters in $srcdir or the absolute working directory
3602 # name.  Accept space and tab only in the latter.
3603 am_lf='
3604 '
3605 case `pwd` in
3606   *[\\\"\#\$\&\'\`$am_lf]*)
3607     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3608 esac
3609 case $srcdir in
3610   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3611     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3612 esac
3613
3614 # Do `set' in a subshell so we don't clobber the current shell's
3615 # arguments.  Must try -L first in case configure is actually a
3616 # symlink; some systems play weird games with the mod time of symlinks
3617 # (eg FreeBSD returns the mod time of the symlink's containing
3618 # directory).
3619 if (
3620    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3621    if test "$*" = "X"; then
3622       # -L didn't work.
3623       set X `ls -t "$srcdir/configure" conftest.file`
3624    fi
3625    rm -f conftest.file
3626    if test "$*" != "X $srcdir/configure conftest.file" \
3627       && test "$*" != "X conftest.file $srcdir/configure"; then
3628
3629       # If neither matched, then we have a broken ls.  This can happen
3630       # if, for instance, CONFIG_SHELL is bash and it inherits a
3631       # broken ls alias from the environment.  This has actually
3632       # happened.  Such a system could not be considered "sane".
3633       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3634 alias in your environment" "$LINENO" 5
3635    fi
3636
3637    test "$2" = conftest.file
3638    )
3639 then
3640    # Ok.
3641    :
3642 else
3643    as_fn_error "newly created file is older than distributed files!
3644 Check your system clock" "$LINENO" 5
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3648 test "$program_prefix" != NONE &&
3649   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3650 # Use a double $ so make ignores it.
3651 test "$program_suffix" != NONE &&
3652   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3653 # Double any \ or $.
3654 # By default was `s,x,x', remove it if useless.
3655 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3656 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3657
3658 # expand $ac_aux_dir to an absolute path
3659 am_aux_dir=`cd $ac_aux_dir && pwd`
3660
3661 if test x"${MISSING+set}" != xset; then
3662   case $am_aux_dir in
3663   *\ * | *\     *)
3664     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3665   *)
3666     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3667   esac
3668 fi
3669 # Use eval to expand $SHELL
3670 if eval "$MISSING --run true"; then
3671   am_missing_run="$MISSING --run "
3672 else
3673   am_missing_run=
3674   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3675 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3676 fi
3677
3678 if test x"${install_sh}" != xset; then
3679   case $am_aux_dir in
3680   *\ * | *\     *)
3681     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3682   *)
3683     install_sh="\${SHELL} $am_aux_dir/install-sh"
3684   esac
3685 fi
3686
3687 # Installed binaries are usually stripped using `strip' when the user
3688 # run `make install-strip'.  However `strip' might not be the right
3689 # tool to use in cross-compilation environments, therefore Automake
3690 # will honor the `STRIP' environment variable to overrule this program.
3691 if test "$cross_compiling" != no; then
3692   if test -n "$ac_tool_prefix"; then
3693   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3694 set dummy ${ac_tool_prefix}strip; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if test "${ac_cv_prog_STRIP+set}" = set; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   if test -n "$STRIP"; then
3701   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706   IFS=$as_save_IFS
3707   test -z "$as_dir" && as_dir=.
3708     for ac_exec_ext in '' $ac_executable_extensions; do
3709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3712     break 2
3713   fi
3714 done
3715   done
3716 IFS=$as_save_IFS
3717
3718 fi
3719 fi
3720 STRIP=$ac_cv_prog_STRIP
3721 if test -n "$STRIP"; then
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3723 $as_echo "$STRIP" >&6; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3727 fi
3728
3729
3730 fi
3731 if test -z "$ac_cv_prog_STRIP"; then
3732   ac_ct_STRIP=$STRIP
3733   # Extract the first word of "strip", so it can be a program name with args.
3734 set dummy strip; ac_word=$2
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3736 $as_echo_n "checking for $ac_word... " >&6; }
3737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3738   $as_echo_n "(cached) " >&6
3739 else
3740   if test -n "$ac_ct_STRIP"; then
3741   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3742 else
3743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3744 for as_dir in $PATH
3745 do
3746   IFS=$as_save_IFS
3747   test -z "$as_dir" && as_dir=.
3748     for ac_exec_ext in '' $ac_executable_extensions; do
3749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3750     ac_cv_prog_ac_ct_STRIP="strip"
3751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755   done
3756 IFS=$as_save_IFS
3757
3758 fi
3759 fi
3760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3761 if test -n "$ac_ct_STRIP"; then
3762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3763 $as_echo "$ac_ct_STRIP" >&6; }
3764 else
3765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 $as_echo "no" >&6; }
3767 fi
3768
3769   if test "x$ac_ct_STRIP" = x; then
3770     STRIP=":"
3771   else
3772     case $cross_compiling:$ac_tool_warned in
3773 yes:)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3776 ac_tool_warned=yes ;;
3777 esac
3778     STRIP=$ac_ct_STRIP
3779   fi
3780 else
3781   STRIP="$ac_cv_prog_STRIP"
3782 fi
3783
3784 fi
3785 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3786
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3788 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3789 if test -z "$MKDIR_P"; then
3790   if test "${ac_cv_path_mkdir+set}" = set; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3795 do
3796   IFS=$as_save_IFS
3797   test -z "$as_dir" && as_dir=.
3798     for ac_prog in mkdir gmkdir; do
3799          for ac_exec_ext in '' $ac_executable_extensions; do
3800            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3801            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3802              'mkdir (GNU coreutils) '* | \
3803              'mkdir (coreutils) '* | \
3804              'mkdir (fileutils) '4.1*)
3805                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3806                break 3;;
3807            esac
3808          done
3809        done
3810   done
3811 IFS=$as_save_IFS
3812
3813 fi
3814
3815   if test "${ac_cv_path_mkdir+set}" = set; then
3816     MKDIR_P="$ac_cv_path_mkdir -p"
3817   else
3818     # As a last resort, use the slow shell script.  Don't cache a
3819     # value for MKDIR_P within a source directory, because that will
3820     # break other packages using the cache if that directory is
3821     # removed, or if the value is a relative name.
3822     test -d ./--version && rmdir ./--version
3823     MKDIR_P="$ac_install_sh -d"
3824   fi
3825 fi
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3827 $as_echo "$MKDIR_P" >&6; }
3828
3829 mkdir_p="$MKDIR_P"
3830 case $mkdir_p in
3831   [\\/$]* | ?:[\\/]*) ;;
3832   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3833 esac
3834
3835 for ac_prog in gawk mawk nawk awk
3836 do
3837   # Extract the first word of "$ac_prog", so it can be a program name with args.
3838 set dummy $ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_AWK+set}" = set; then :
3842   $as_echo_n "(cached) " >&6
3843 else
3844   if test -n "$AWK"; then
3845   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3849 do
3850   IFS=$as_save_IFS
3851   test -z "$as_dir" && as_dir=.
3852     for ac_exec_ext in '' $ac_executable_extensions; do
3853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854     ac_cv_prog_AWK="$ac_prog"
3855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856     break 2
3857   fi
3858 done
3859   done
3860 IFS=$as_save_IFS
3861
3862 fi
3863 fi
3864 AWK=$ac_cv_prog_AWK
3865 if test -n "$AWK"; then
3866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3867 $as_echo "$AWK" >&6; }
3868 else
3869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3871 fi
3872
3873
3874   test -n "$AWK" && break
3875 done
3876
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3878 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3879 set x ${MAKE-make}
3880 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3881 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884   cat >conftest.make <<\_ACEOF
3885 SHELL = /bin/sh
3886 all:
3887         @echo '@@@%%%=$(MAKE)=@@@%%%'
3888 _ACEOF
3889 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3890 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3891   *@@@%%%=?*=@@@%%%*)
3892     eval ac_cv_prog_make_${ac_make}_set=yes;;
3893   *)
3894     eval ac_cv_prog_make_${ac_make}_set=no;;
3895 esac
3896 rm -f conftest.make
3897 fi
3898 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900 $as_echo "yes" >&6; }
3901   SET_MAKE=
3902 else
3903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904 $as_echo "no" >&6; }
3905   SET_MAKE="MAKE=${MAKE-make}"
3906 fi
3907
3908 rm -rf .tst 2>/dev/null
3909 mkdir .tst 2>/dev/null
3910 if test -d .tst; then
3911   am__leading_dot=.
3912 else
3913   am__leading_dot=_
3914 fi
3915 rmdir .tst 2>/dev/null
3916
3917 DEPDIR="${am__leading_dot}deps"
3918
3919 ac_config_commands="$ac_config_commands depfiles"
3920
3921
3922 am_make=${MAKE-make}
3923 cat > confinc << 'END'
3924 am__doit:
3925         @echo this is the am__doit target
3926 .PHONY: am__doit
3927 END
3928 # If we don't find an include directive, just comment out the code.
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3930 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3931 am__include="#"
3932 am__quote=
3933 _am_result=none
3934 # First try GNU make style include.
3935 echo "include confinc" > confmf
3936 # Ignore all kinds of additional output from `make'.
3937 case `$am_make -s -f confmf 2> /dev/null` in #(
3938 *the\ am__doit\ target*)
3939   am__include=include
3940   am__quote=
3941   _am_result=GNU
3942   ;;
3943 esac
3944 # Now try BSD make style include.
3945 if test "$am__include" = "#"; then
3946    echo '.include "confinc"' > confmf
3947    case `$am_make -s -f confmf 2> /dev/null` in #(
3948    *the\ am__doit\ target*)
3949      am__include=.include
3950      am__quote="\""
3951      _am_result=BSD
3952      ;;
3953    esac
3954 fi
3955
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3958 $as_echo "$_am_result" >&6; }
3959 rm -f confinc confmf
3960
3961 # Check whether --enable-dependency-tracking was given.
3962 if test "${enable_dependency_tracking+set}" = set; then :
3963   enableval=$enable_dependency_tracking;
3964 fi
3965
3966 if test "x$enable_dependency_tracking" != xno; then
3967   am_depcomp="$ac_aux_dir/depcomp"
3968   AMDEPBACKSLASH='\'
3969   am__nodep='_no'
3970 fi
3971  if test "x$enable_dependency_tracking" != xno; then
3972   AMDEP_TRUE=
3973   AMDEP_FALSE='#'
3974 else
3975   AMDEP_TRUE='#'
3976   AMDEP_FALSE=
3977 fi
3978
3979
3980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982   # is not polluted with repeated "-I."
3983   am__isrc=' -I$(srcdir)'
3984   # test to see if srcdir already configured
3985   if test -f $srcdir/config.status; then
3986     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3987   fi
3988 fi
3989
3990 # test whether we have cygpath
3991 if test -z "$CYGPATH_W"; then
3992   if (cygpath --version) >/dev/null 2>/dev/null; then
3993     CYGPATH_W='cygpath -w'
3994   else
3995     CYGPATH_W=echo
3996   fi
3997 fi
3998
3999
4000 # Define the identity of the package.
4001  PACKAGE='bfd'
4002  VERSION='2.30.51'
4003
4004
4005 cat >>confdefs.h <<_ACEOF
4006 #define PACKAGE "$PACKAGE"
4007 _ACEOF
4008
4009
4010 cat >>confdefs.h <<_ACEOF
4011 #define VERSION "$VERSION"
4012 _ACEOF
4013
4014 # Some tools Automake needs.
4015
4016 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4017
4018
4019 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4020
4021
4022 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4023
4024
4025 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4026
4027
4028 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4029
4030 # We need awk for the "check" target.  The system "awk" is bad on
4031 # some platforms.
4032 # Always define AMTAR for backward compatibility.  Yes, it's still used
4033 # in the wild :-(  We should find a proper way to deprecate it ...
4034 AMTAR='$${TAR-tar}'
4035
4036 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4037
4038
4039
4040
4041 depcc="$CC"   am_compiler_list=
4042
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4044 $as_echo_n "checking dependency style of $depcc... " >&6; }
4045 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4046   $as_echo_n "(cached) " >&6
4047 else
4048   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4049   # We make a subdir and do the tests there.  Otherwise we can end up
4050   # making bogus files that we don't know about and never remove.  For
4051   # instance it was reported that on HP-UX the gcc test will end up
4052   # making a dummy file named `D' -- because `-MD' means `put the output
4053   # in D'.
4054   rm -rf conftest.dir
4055   mkdir conftest.dir
4056   # Copy depcomp to subdir because otherwise we won't find it if we're
4057   # using a relative directory.
4058   cp "$am_depcomp" conftest.dir
4059   cd conftest.dir
4060   # We will build objects and dependencies in a subdirectory because
4061   # it helps to detect inapplicable dependency modes.  For instance
4062   # both Tru64's cc and ICC support -MD to output dependencies as a
4063   # side effect of compilation, but ICC will put the dependencies in
4064   # the current directory while Tru64 will put them in the object
4065   # directory.
4066   mkdir sub
4067
4068   am_cv_CC_dependencies_compiler_type=none
4069   if test "$am_compiler_list" = ""; then
4070      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4071   fi
4072   am__universal=false
4073   case " $depcc " in #(
4074      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4075      esac
4076
4077   for depmode in $am_compiler_list; do
4078     # Setup a source with many dependencies, because some compilers
4079     # like to wrap large dependency lists on column 80 (with \), and
4080     # we should not choose a depcomp mode which is confused by this.
4081     #
4082     # We need to recreate these files for each test, as the compiler may
4083     # overwrite some of them when testing with obscure command lines.
4084     # This happens at least with the AIX C compiler.
4085     : > sub/conftest.c
4086     for i in 1 2 3 4 5 6; do
4087       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4088       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4089       # Solaris 8's {/usr,}/bin/sh.
4090       touch sub/conftst$i.h
4091     done
4092     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4093
4094     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4095     # mode.  It turns out that the SunPro C++ compiler does not properly
4096     # handle `-M -o', and we need to detect this.  Also, some Intel
4097     # versions had trouble with output in subdirs
4098     am__obj=sub/conftest.${OBJEXT-o}
4099     am__minus_obj="-o $am__obj"
4100     case $depmode in
4101     gcc)
4102       # This depmode causes a compiler race in universal mode.
4103       test "$am__universal" = false || continue
4104       ;;
4105     nosideeffect)
4106       # after this tag, mechanisms are not by side-effect, so they'll
4107       # only be used when explicitly requested
4108       if test "x$enable_dependency_tracking" = xyes; then
4109         continue
4110       else
4111         break
4112       fi
4113       ;;
4114     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4115       # This compiler won't grok `-c -o', but also, the minuso test has
4116       # not run yet.  These depmodes are late enough in the game, and
4117       # so weak that their functioning should not be impacted.
4118       am__obj=conftest.${OBJEXT-o}
4119       am__minus_obj=
4120       ;;
4121     none) break ;;
4122     esac
4123     if depmode=$depmode \
4124        source=sub/conftest.c object=$am__obj \
4125        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4126        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4127          >/dev/null 2>conftest.err &&
4128        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4129        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4130        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4131        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4132       # icc doesn't choke on unknown options, it will just issue warnings
4133       # or remarks (even with -Werror).  So we grep stderr for any message
4134       # that says an option was ignored or not supported.
4135       # When given -MP, icc 7.0 and 7.1 complain thusly:
4136       #   icc: Command line warning: ignoring option '-M'; no argument required
4137       # The diagnosis changed in icc 8.0:
4138       #   icc: Command line remark: option '-MP' not supported
4139       if (grep 'ignoring option' conftest.err ||
4140           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4141         am_cv_CC_dependencies_compiler_type=$depmode
4142         break
4143       fi
4144     fi
4145   done
4146
4147   cd ..
4148   rm -rf conftest.dir
4149 else
4150   am_cv_CC_dependencies_compiler_type=none
4151 fi
4152
4153 fi
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4155 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4156 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4157
4158  if
4159   test "x$enable_dependency_tracking" != xno \
4160   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4161   am__fastdepCC_TRUE=
4162   am__fastdepCC_FALSE='#'
4163 else
4164   am__fastdepCC_TRUE='#'
4165   am__fastdepCC_FALSE=
4166 fi
4167
4168
4169
4170
4171 if test -n "$ac_tool_prefix"; then
4172   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4173 set dummy ${ac_tool_prefix}ar; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if test "${ac_cv_prog_AR+set}" = set; then :
4177   $as_echo_n "(cached) " >&6
4178 else
4179   if test -n "$AR"; then
4180   ac_cv_prog_AR="$AR" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185   IFS=$as_save_IFS
4186   test -z "$as_dir" && as_dir=.
4187     for ac_exec_ext in '' $ac_executable_extensions; do
4188   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189     ac_cv_prog_AR="${ac_tool_prefix}ar"
4190     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191     break 2
4192   fi
4193 done
4194   done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 AR=$ac_cv_prog_AR
4200 if test -n "$AR"; then
4201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4202 $as_echo "$AR" >&6; }
4203 else
4204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209 fi
4210 if test -z "$ac_cv_prog_AR"; then
4211   ac_ct_AR=$AR
4212   # Extract the first word of "ar", so it can be a program name with args.
4213 set dummy ar; ac_word=$2
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 $as_echo_n "checking for $ac_word... " >&6; }
4216 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   if test -n "$ac_ct_AR"; then
4220   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4221 else
4222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227     for ac_exec_ext in '' $ac_executable_extensions; do
4228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229     ac_cv_prog_ac_ct_AR="ar"
4230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231     break 2
4232   fi
4233 done
4234   done
4235 IFS=$as_save_IFS
4236
4237 fi
4238 fi
4239 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4240 if test -n "$ac_ct_AR"; then
4241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4242 $as_echo "$ac_ct_AR" >&6; }
4243 else
4244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 $as_echo "no" >&6; }
4246 fi
4247
4248   if test "x$ac_ct_AR" = x; then
4249     AR=""
4250   else
4251     case $cross_compiling:$ac_tool_warned in
4252 yes:)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4256 esac
4257     AR=$ac_ct_AR
4258   fi
4259 else
4260   AR="$ac_cv_prog_AR"
4261 fi
4262
4263 if test -n "$ac_tool_prefix"; then
4264   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4265 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4269   $as_echo_n "(cached) " >&6
4270 else
4271   if test -n "$RANLIB"; then
4272   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4273 else
4274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 for as_dir in $PATH
4276 do
4277   IFS=$as_save_IFS
4278   test -z "$as_dir" && as_dir=.
4279     for ac_exec_ext in '' $ac_executable_extensions; do
4280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283     break 2
4284   fi
4285 done
4286   done
4287 IFS=$as_save_IFS
4288
4289 fi
4290 fi
4291 RANLIB=$ac_cv_prog_RANLIB
4292 if test -n "$RANLIB"; then
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4294 $as_echo "$RANLIB" >&6; }
4295 else
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4298 fi
4299
4300
4301 fi
4302 if test -z "$ac_cv_prog_RANLIB"; then
4303   ac_ct_RANLIB=$RANLIB
4304   # Extract the first word of "ranlib", so it can be a program name with args.
4305 set dummy ranlib; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4309   $as_echo_n "(cached) " >&6
4310 else
4311   if test -n "$ac_ct_RANLIB"; then
4312   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317   IFS=$as_save_IFS
4318   test -z "$as_dir" && as_dir=.
4319     for ac_exec_ext in '' $ac_executable_extensions; do
4320   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321     ac_cv_prog_ac_ct_RANLIB="ranlib"
4322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323     break 2
4324   fi
4325 done
4326   done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4332 if test -n "$ac_ct_RANLIB"; then
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4334 $as_echo "$ac_ct_RANLIB" >&6; }
4335 else
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 fi
4339
4340   if test "x$ac_ct_RANLIB" = x; then
4341     RANLIB=":"
4342   else
4343     case $cross_compiling:$ac_tool_warned in
4344 yes:)
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4347 ac_tool_warned=yes ;;
4348 esac
4349     RANLIB=$ac_ct_RANLIB
4350   fi
4351 else
4352   RANLIB="$ac_cv_prog_RANLIB"
4353 fi
4354
4355
4356 # Check whether --enable-shared was given.
4357 if test "${enable_shared+set}" = set; then :
4358   enableval=$enable_shared; p=${PACKAGE-default}
4359     case $enableval in
4360     yes) enable_shared=yes ;;
4361     no) enable_shared=no ;;
4362     *)
4363       enable_shared=no
4364       # Look at the argument we got.  We use all the common list separators.
4365       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4366       for pkg in $enableval; do
4367         IFS="$lt_save_ifs"
4368         if test "X$pkg" = "X$p"; then
4369           enable_shared=yes
4370         fi
4371       done
4372       IFS="$lt_save_ifs"
4373       ;;
4374     esac
4375 else
4376   enable_shared=no
4377 fi
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4393 if test -n "$ac_tool_prefix"; then
4394   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if test "${ac_cv_prog_CC+set}" = set; then :
4399   $as_echo_n "(cached) " >&6
4400 else
4401   if test -n "$CC"; then
4402   ac_cv_prog_CC="$CC" # Let the user override the test.
4403 else
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 for as_dir in $PATH
4406 do
4407   IFS=$as_save_IFS
4408   test -z "$as_dir" && as_dir=.
4409     for ac_exec_ext in '' $ac_executable_extensions; do
4410   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4413     break 2
4414   fi
4415 done
4416   done
4417 IFS=$as_save_IFS
4418
4419 fi
4420 fi
4421 CC=$ac_cv_prog_CC
4422 if test -n "$CC"; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4428 fi
4429
4430
4431 fi
4432 if test -z "$ac_cv_prog_CC"; then
4433   ac_ct_CC=$CC
4434   # Extract the first word of "gcc", so it can be a program name with args.
4435 set dummy gcc; ac_word=$2
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4439   $as_echo_n "(cached) " >&6
4440 else
4441   if test -n "$ac_ct_CC"; then
4442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4443 else
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447   IFS=$as_save_IFS
4448   test -z "$as_dir" && as_dir=.
4449     for ac_exec_ext in '' $ac_executable_extensions; do
4450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4451     ac_cv_prog_ac_ct_CC="gcc"
4452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453     break 2
4454   fi
4455 done
4456   done
4457 IFS=$as_save_IFS
4458
4459 fi
4460 fi
4461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4462 if test -n "$ac_ct_CC"; then
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4464 $as_echo "$ac_ct_CC" >&6; }
4465 else
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4468 fi
4469
4470   if test "x$ac_ct_CC" = x; then
4471     CC=""
4472   else
4473     case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479     CC=$ac_ct_CC
4480   fi
4481 else
4482   CC="$ac_cv_prog_CC"
4483 fi
4484
4485 if test -z "$CC"; then
4486           if test -n "$ac_tool_prefix"; then
4487     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4488 set dummy ${ac_tool_prefix}cc; ac_word=$2
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4490 $as_echo_n "checking for $ac_word... " >&6; }
4491 if test "${ac_cv_prog_CC+set}" = set; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -n "$CC"; then
4495   ac_cv_prog_CC="$CC" # Let the user override the test.
4496 else
4497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4504     ac_cv_prog_CC="${ac_tool_prefix}cc"
4505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509   done
4510 IFS=$as_save_IFS
4511
4512 fi
4513 fi
4514 CC=$ac_cv_prog_CC
4515 if test -n "$CC"; then
4516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4517 $as_echo "$CC" >&6; }
4518 else
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4520 $as_echo "no" >&6; }
4521 fi
4522
4523
4524   fi
4525 fi
4526 if test -z "$CC"; then
4527   # Extract the first word of "cc", so it can be a program name with args.
4528 set dummy cc; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if test "${ac_cv_prog_CC+set}" = set; then :
4532   $as_echo_n "(cached) " >&6
4533 else
4534   if test -n "$CC"; then
4535   ac_cv_prog_CC="$CC" # Let the user override the test.
4536 else
4537   ac_prog_rejected=no
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH
4540 do
4541   IFS=$as_save_IFS
4542   test -z "$as_dir" && as_dir=.
4543     for ac_exec_ext in '' $ac_executable_extensions; do
4544   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4546        ac_prog_rejected=yes
4547        continue
4548      fi
4549     ac_cv_prog_CC="cc"
4550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4551     break 2
4552   fi
4553 done
4554   done
4555 IFS=$as_save_IFS
4556
4557 if test $ac_prog_rejected = yes; then
4558   # We found a bogon in the path, so make sure we never use it.
4559   set dummy $ac_cv_prog_CC
4560   shift
4561   if test $# != 0; then
4562     # We chose a different compiler from the bogus one.
4563     # However, it has the same basename, so the bogon will be chosen
4564     # first if we set CC to just the basename; use the full file name.
4565     shift
4566     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4567   fi
4568 fi
4569 fi
4570 fi
4571 CC=$ac_cv_prog_CC
4572 if test -n "$CC"; then
4573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4574 $as_echo "$CC" >&6; }
4575 else
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4577 $as_echo "no" >&6; }
4578 fi
4579
4580
4581 fi
4582 if test -z "$CC"; then
4583   if test -n "$ac_tool_prefix"; then
4584   for ac_prog in cl.exe
4585   do
4586     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4589 $as_echo_n "checking for $ac_word... " >&6; }
4590 if test "${ac_cv_prog_CC+set}" = set; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593   if test -n "$CC"; then
4594   ac_cv_prog_CC="$CC" # Let the user override the test.
4595 else
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4603     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608   done
4609 IFS=$as_save_IFS
4610
4611 fi
4612 fi
4613 CC=$ac_cv_prog_CC
4614 if test -n "$CC"; then
4615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4616 $as_echo "$CC" >&6; }
4617 else
4618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4620 fi
4621
4622
4623     test -n "$CC" && break
4624   done
4625 fi
4626 if test -z "$CC"; then
4627   ac_ct_CC=$CC
4628   for ac_prog in cl.exe
4629 do
4630   # Extract the first word of "$ac_prog", so it can be a program name with args.
4631 set dummy $ac_prog; ac_word=$2
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4633 $as_echo_n "checking for $ac_word... " >&6; }
4634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4635   $as_echo_n "(cached) " >&6
4636 else
4637   if test -n "$ac_ct_CC"; then
4638   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4639 else
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 for as_dir in $PATH
4642 do
4643   IFS=$as_save_IFS
4644   test -z "$as_dir" && as_dir=.
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647     ac_cv_prog_ac_ct_CC="$ac_prog"
4648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649     break 2
4650   fi
4651 done
4652   done
4653 IFS=$as_save_IFS
4654
4655 fi
4656 fi
4657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4658 if test -n "$ac_ct_CC"; then
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4660 $as_echo "$ac_ct_CC" >&6; }
4661 else
4662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 fi
4665
4666
4667   test -n "$ac_ct_CC" && break
4668 done
4669
4670   if test "x$ac_ct_CC" = x; then
4671     CC=""
4672   else
4673     case $cross_compiling:$ac_tool_warned in
4674 yes:)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4677 ac_tool_warned=yes ;;
4678 esac
4679     CC=$ac_ct_CC
4680   fi
4681 fi
4682
4683 fi
4684
4685
4686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4688 as_fn_error "no acceptable C compiler found in \$PATH
4689 See \`config.log' for more details." "$LINENO" 5; }
4690
4691 # Provide some information about the compiler.
4692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4693 set X $ac_compile
4694 ac_compiler=$2
4695 for ac_option in --version -v -V -qversion; do
4696   { { ac_try="$ac_compiler $ac_option >&5"
4697 case "(($ac_try" in
4698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699   *) ac_try_echo=$ac_try;;
4700 esac
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4704   ac_status=$?
4705   if test -s conftest.err; then
4706     sed '10a\
4707 ... rest of stderr output deleted ...
4708          10q' conftest.err >conftest.er1
4709     cat conftest.er1 >&5
4710     rm -f conftest.er1 conftest.err
4711   fi
4712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713   test $ac_status = 0; }
4714 done
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4718 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4719   $as_echo_n "(cached) " >&6
4720 else
4721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h.  */
4723
4724 int
4725 main ()
4726 {
4727 #ifndef __GNUC__
4728        choke me
4729 #endif
4730
4731   ;
4732   return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"; then :
4736   ac_compiler_gnu=yes
4737 else
4738   ac_compiler_gnu=no
4739 fi
4740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4742
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4746 if test $ac_compiler_gnu = yes; then
4747   GCC=yes
4748 else
4749   GCC=
4750 fi
4751 ac_test_CFLAGS=${CFLAGS+set}
4752 ac_save_CFLAGS=$CFLAGS
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4755 if test "${ac_cv_prog_cc_g+set}" = set; then :
4756   $as_echo_n "(cached) " >&6
4757 else
4758   ac_save_c_werror_flag=$ac_c_werror_flag
4759    ac_c_werror_flag=yes
4760    ac_cv_prog_cc_g=no
4761    CFLAGS="-g"
4762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764
4765 int
4766 main ()
4767 {
4768
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 if ac_fn_c_try_compile "$LINENO"; then :
4774   ac_cv_prog_cc_g=yes
4775 else
4776   CFLAGS=""
4777       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h.  */
4779
4780 int
4781 main ()
4782 {
4783
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 if ac_fn_c_try_compile "$LINENO"; then :
4789
4790 else
4791   ac_c_werror_flag=$ac_save_c_werror_flag
4792          CFLAGS="-g"
4793          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h.  */
4795
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805   ac_cv_prog_cc_g=yes
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 fi
4811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812    ac_c_werror_flag=$ac_save_c_werror_flag
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4815 $as_echo "$ac_cv_prog_cc_g" >&6; }
4816 if test "$ac_test_CFLAGS" = set; then
4817   CFLAGS=$ac_save_CFLAGS
4818 elif test $ac_cv_prog_cc_g = yes; then
4819   if test "$GCC" = yes; then
4820     CFLAGS="-g -O2"
4821   else
4822     CFLAGS="-g"
4823   fi
4824 else
4825   if test "$GCC" = yes; then
4826     CFLAGS="-O2"
4827   else
4828     CFLAGS=
4829   fi
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4833 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4834   $as_echo_n "(cached) " >&6
4835 else
4836   ac_cv_prog_cc_c89=no
4837 ac_save_CC=$CC
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h.  */
4840 #include <stdarg.h>
4841 #include <stdio.h>
4842 #include <sys/types.h>
4843 #include <sys/stat.h>
4844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4845 struct buf { int x; };
4846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4847 static char *e (p, i)
4848      char **p;
4849      int i;
4850 {
4851   return p[i];
4852 }
4853 static char *f (char * (*g) (char **, int), char **p, ...)
4854 {
4855   char *s;
4856   va_list v;
4857   va_start (v,p);
4858   s = g (p, va_arg (v,int));
4859   va_end (v);
4860   return s;
4861 }
4862
4863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4864    function prototypes and stuff, but not '\xHH' hex character constants.
4865    These don't provoke an error unfortunately, instead are silently treated
4866    as 'x'.  The following induces an error, until -std is added to get
4867    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4868    array size at least.  It's necessary to write '\x00'==0 to get something
4869    that's true only with -std.  */
4870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4871
4872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4873    inside strings and character constants.  */
4874 #define FOO(x) 'x'
4875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4876
4877 int test (int i, double x);
4878 struct s1 {int (*f) (int a);};
4879 struct s2 {int (*f) (double a);};
4880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4881 int argc;
4882 char **argv;
4883 int
4884 main ()
4885 {
4886 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4887   ;
4888   return 0;
4889 }
4890 _ACEOF
4891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4892         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4893 do
4894   CC="$ac_save_CC $ac_arg"
4895   if ac_fn_c_try_compile "$LINENO"; then :
4896   ac_cv_prog_cc_c89=$ac_arg
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext
4899   test "x$ac_cv_prog_cc_c89" != "xno" && break
4900 done
4901 rm -f conftest.$ac_ext
4902 CC=$ac_save_CC
4903
4904 fi
4905 # AC_CACHE_VAL
4906 case "x$ac_cv_prog_cc_c89" in
4907   x)
4908     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4909 $as_echo "none needed" >&6; } ;;
4910   xno)
4911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4912 $as_echo "unsupported" >&6; } ;;
4913   *)
4914     CC="$CC $ac_cv_prog_cc_c89"
4915     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4917 esac
4918 if test "x$ac_cv_prog_cc_c89" != xno; then :
4919
4920 fi
4921
4922 ac_ext=c
4923 ac_cpp='$CPP $CPPFLAGS'
4924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927
4928 ac_ext=c
4929 ac_cpp='$CPP $CPPFLAGS'
4930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4934 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4935 # On Suns, sometimes $CPP names a directory.
4936 if test -n "$CPP" && test -d "$CPP"; then
4937   CPP=
4938 fi
4939 if test -z "$CPP"; then
4940   if test "${ac_cv_prog_CPP+set}" = set; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943       # Double quotes because CPP needs to be expanded
4944     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4945     do
4946       ac_preproc_ok=false
4947 for ac_c_preproc_warn_flag in '' yes
4948 do
4949   # Use a header file that comes with gcc, so configuring glibc
4950   # with a fresh cross-compiler works.
4951   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4952   # <limits.h> exists even on freestanding compilers.
4953   # On the NeXT, cc -E runs the code through the compiler's parser,
4954   # not just through cpp. "Syntax error" is here to catch this case.
4955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h.  */
4957 #ifdef __STDC__
4958 # include <limits.h>
4959 #else
4960 # include <assert.h>
4961 #endif
4962                      Syntax error
4963 _ACEOF
4964 if ac_fn_c_try_cpp "$LINENO"; then :
4965
4966 else
4967   # Broken: fails on valid input.
4968 continue
4969 fi
4970 rm -f conftest.err conftest.$ac_ext
4971
4972   # OK, works on sane cases.  Now check whether nonexistent headers
4973   # can be detected and how.
4974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h.  */
4976 #include <ac_nonexistent.h>
4977 _ACEOF
4978 if ac_fn_c_try_cpp "$LINENO"; then :
4979   # Broken: success on invalid input.
4980 continue
4981 else
4982   # Passes both tests.
4983 ac_preproc_ok=:
4984 break
4985 fi
4986 rm -f conftest.err conftest.$ac_ext
4987
4988 done
4989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4990 rm -f conftest.err conftest.$ac_ext
4991 if $ac_preproc_ok; then :
4992   break
4993 fi
4994
4995     done
4996     ac_cv_prog_CPP=$CPP
4997
4998 fi
4999   CPP=$ac_cv_prog_CPP
5000 else
5001   ac_cv_prog_CPP=$CPP
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5004 $as_echo "$CPP" >&6; }
5005 ac_preproc_ok=false
5006 for ac_c_preproc_warn_flag in '' yes
5007 do
5008   # Use a header file that comes with gcc, so configuring glibc
5009   # with a fresh cross-compiler works.
5010   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5011   # <limits.h> exists even on freestanding compilers.
5012   # On the NeXT, cc -E runs the code through the compiler's parser,
5013   # not just through cpp. "Syntax error" is here to catch this case.
5014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h.  */
5016 #ifdef __STDC__
5017 # include <limits.h>
5018 #else
5019 # include <assert.h>
5020 #endif
5021                      Syntax error
5022 _ACEOF
5023 if ac_fn_c_try_cpp "$LINENO"; then :
5024
5025 else
5026   # Broken: fails on valid input.
5027 continue
5028 fi
5029 rm -f conftest.err conftest.$ac_ext
5030
5031   # OK, works on sane cases.  Now check whether nonexistent headers
5032   # can be detected and how.
5033   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h.  */
5035 #include <ac_nonexistent.h>
5036 _ACEOF
5037 if ac_fn_c_try_cpp "$LINENO"; then :
5038   # Broken: success on invalid input.
5039 continue
5040 else
5041   # Passes both tests.
5042 ac_preproc_ok=:
5043 break
5044 fi
5045 rm -f conftest.err conftest.$ac_ext
5046
5047 done
5048 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5049 rm -f conftest.err conftest.$ac_ext
5050 if $ac_preproc_ok; then :
5051
5052 else
5053   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5055 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5056 See \`config.log' for more details." "$LINENO" 5; }
5057 fi
5058
5059 ac_ext=c
5060 ac_cpp='$CPP $CPPFLAGS'
5061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5064
5065
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5067 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5068 if test "${ac_cv_path_GREP+set}" = set; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   if test -z "$GREP"; then
5072   ac_path_GREP_found=false
5073   # Loop through the user's path and test for each of PROGNAME-LIST
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_prog in grep ggrep; do
5080     for ac_exec_ext in '' $ac_executable_extensions; do
5081       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5082       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5083 # Check for GNU ac_path_GREP and select it if it is found.
5084   # Check for GNU $ac_path_GREP
5085 case `"$ac_path_GREP" --version 2>&1` in
5086 *GNU*)
5087   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5088 *)
5089   ac_count=0
5090   $as_echo_n 0123456789 >"conftest.in"
5091   while :
5092   do
5093     cat "conftest.in" "conftest.in" >"conftest.tmp"
5094     mv "conftest.tmp" "conftest.in"
5095     cp "conftest.in" "conftest.nl"
5096     $as_echo 'GREP' >> "conftest.nl"
5097     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5098     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5099     as_fn_arith $ac_count + 1 && ac_count=$as_val
5100     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5101       # Best one so far, save it but keep looking for a better one
5102       ac_cv_path_GREP="$ac_path_GREP"
5103       ac_path_GREP_max=$ac_count
5104     fi
5105     # 10*(2^10) chars as input seems more than enough
5106     test $ac_count -gt 10 && break
5107   done
5108   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5109 esac
5110
5111       $ac_path_GREP_found && break 3
5112     done
5113   done
5114   done
5115 IFS=$as_save_IFS
5116   if test -z "$ac_cv_path_GREP"; then
5117     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5118   fi
5119 else
5120   ac_cv_path_GREP=$GREP
5121 fi
5122
5123 fi
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5125 $as_echo "$ac_cv_path_GREP" >&6; }
5126  GREP="$ac_cv_path_GREP"
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5130 $as_echo_n "checking for egrep... " >&6; }
5131 if test "${ac_cv_path_EGREP+set}" = set; then :
5132   $as_echo_n "(cached) " >&6
5133 else
5134   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5135    then ac_cv_path_EGREP="$GREP -E"
5136    else
5137      if test -z "$EGREP"; then
5138   ac_path_EGREP_found=false
5139   # Loop through the user's path and test for each of PROGNAME-LIST
5140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142 do
5143   IFS=$as_save_IFS
5144   test -z "$as_dir" && as_dir=.
5145     for ac_prog in egrep; do
5146     for ac_exec_ext in '' $ac_executable_extensions; do
5147       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5148       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5149 # Check for GNU ac_path_EGREP and select it if it is found.
5150   # Check for GNU $ac_path_EGREP
5151 case `"$ac_path_EGREP" --version 2>&1` in
5152 *GNU*)
5153   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5154 *)
5155   ac_count=0
5156   $as_echo_n 0123456789 >"conftest.in"
5157   while :
5158   do
5159     cat "conftest.in" "conftest.in" >"conftest.tmp"
5160     mv "conftest.tmp" "conftest.in"
5161     cp "conftest.in" "conftest.nl"
5162     $as_echo 'EGREP' >> "conftest.nl"
5163     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5165     as_fn_arith $ac_count + 1 && ac_count=$as_val
5166     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5167       # Best one so far, save it but keep looking for a better one
5168       ac_cv_path_EGREP="$ac_path_EGREP"
5169       ac_path_EGREP_max=$ac_count
5170     fi
5171     # 10*(2^10) chars as input seems more than enough
5172     test $ac_count -gt 10 && break
5173   done
5174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5175 esac
5176
5177       $ac_path_EGREP_found && break 3
5178     done
5179   done
5180   done
5181 IFS=$as_save_IFS
5182   if test -z "$ac_cv_path_EGREP"; then
5183     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5184   fi
5185 else
5186   ac_cv_path_EGREP=$EGREP
5187 fi
5188
5189    fi
5190 fi
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5192 $as_echo "$ac_cv_path_EGREP" >&6; }
5193  EGREP="$ac_cv_path_EGREP"
5194
5195
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5197 $as_echo_n "checking for ANSI C header files... " >&6; }
5198 if test "${ac_cv_header_stdc+set}" = set; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h.  */
5203 #include <stdlib.h>
5204 #include <stdarg.h>
5205 #include <string.h>
5206 #include <float.h>
5207
5208 int
5209 main ()
5210 {
5211
5212   ;
5213   return 0;
5214 }
5215 _ACEOF
5216 if ac_fn_c_try_compile "$LINENO"; then :
5217   ac_cv_header_stdc=yes
5218 else
5219   ac_cv_header_stdc=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
5223 if test $ac_cv_header_stdc = yes; then
5224   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5226 /* end confdefs.h.  */
5227 #include <string.h>
5228
5229 _ACEOF
5230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5231   $EGREP "memchr" >/dev/null 2>&1; then :
5232
5233 else
5234   ac_cv_header_stdc=no
5235 fi
5236 rm -f conftest*
5237
5238 fi
5239
5240 if test $ac_cv_header_stdc = yes; then
5241   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h.  */
5244 #include <stdlib.h>
5245
5246 _ACEOF
5247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5248   $EGREP "free" >/dev/null 2>&1; then :
5249
5250 else
5251   ac_cv_header_stdc=no
5252 fi
5253 rm -f conftest*
5254
5255 fi
5256
5257 if test $ac_cv_header_stdc = yes; then
5258   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5259   if test "$cross_compiling" = yes; then :
5260   :
5261 else
5262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h.  */
5264 #include <ctype.h>
5265 #include <stdlib.h>
5266 #if ((' ' & 0x0FF) == 0x020)
5267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5269 #else
5270 # define ISLOWER(c) \
5271                    (('a' <= (c) && (c) <= 'i') \
5272                      || ('j' <= (c) && (c) <= 'r') \
5273                      || ('s' <= (c) && (c) <= 'z'))
5274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5275 #endif
5276
5277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5278 int
5279 main ()
5280 {
5281   int i;
5282   for (i = 0; i < 256; i++)
5283     if (XOR (islower (i), ISLOWER (i))
5284         || toupper (i) != TOUPPER (i))
5285       return 2;
5286   return 0;
5287 }
5288 _ACEOF
5289 if ac_fn_c_try_run "$LINENO"; then :
5290
5291 else
5292   ac_cv_header_stdc=no
5293 fi
5294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5295   conftest.$ac_objext conftest.beam conftest.$ac_ext
5296 fi
5297
5298 fi
5299 fi
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5301 $as_echo "$ac_cv_header_stdc" >&6; }
5302 if test $ac_cv_header_stdc = yes; then
5303
5304 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5305
5306 fi
5307
5308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5309 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5310                   inttypes.h stdint.h unistd.h
5311 do :
5312   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5314 "
5315 eval as_val=\$$as_ac_Header
5316    if test "x$as_val" = x""yes; then :
5317   cat >>confdefs.h <<_ACEOF
5318 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5319 _ACEOF
5320
5321 fi
5322
5323 done
5324
5325
5326
5327   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5328 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5329   MINIX=yes
5330 else
5331   MINIX=
5332 fi
5333
5334
5335   if test "$MINIX" = yes; then
5336
5337 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5338
5339
5340 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5341
5342
5343 $as_echo "#define _MINIX 1" >>confdefs.h
5344
5345   fi
5346
5347
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5349 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5350 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354 /* end confdefs.h.  */
5355
5356 #         define __EXTENSIONS__ 1
5357           $ac_includes_default
5358 int
5359 main ()
5360 {
5361
5362   ;
5363   return 0;
5364 }
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367   ac_cv_safe_to_define___extensions__=yes
5368 else
5369   ac_cv_safe_to_define___extensions__=no
5370 fi
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 fi
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5374 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5375   test $ac_cv_safe_to_define___extensions__ = yes &&
5376     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5377
5378   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5379
5380   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5381
5382   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5383
5384   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5385
5386
5387
5388
5389
5390 case `pwd` in
5391   *\ * | *\     *)
5392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5394 esac
5395
5396
5397
5398 macro_version='2.2.7a'
5399 macro_revision='1.3134'
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413 ltmain="$ac_aux_dir/ltmain.sh"
5414
5415 # Backslashify metacharacters that are still active within
5416 # double-quoted strings.
5417 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5418
5419 # Same as above, but do not quote variable references.
5420 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5421
5422 # Sed substitution to delay expansion of an escaped shell variable in a
5423 # double_quote_subst'ed string.
5424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5425
5426 # Sed substitution to delay expansion of an escaped single quote.
5427 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5428
5429 # Sed substitution to avoid accidental globbing in evaled expressions
5430 no_glob_subst='s/\*/\\\*/g'
5431
5432 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5434 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5435
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5437 $as_echo_n "checking how to print strings... " >&6; }
5438 # Test print first, because it will be a builtin if present.
5439 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5440    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5441   ECHO='print -r --'
5442 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5443   ECHO='printf %s\n'
5444 else
5445   # Use this function as a fallback that always works.
5446   func_fallback_echo ()
5447   {
5448     eval 'cat <<_LTECHO_EOF
5449 $1
5450 _LTECHO_EOF'
5451   }
5452   ECHO='func_fallback_echo'
5453 fi
5454
5455 # func_echo_all arg...
5456 # Invoke $ECHO with all args, space-separated.
5457 func_echo_all ()
5458 {
5459     $ECHO ""
5460 }
5461
5462 case "$ECHO" in
5463   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5464 $as_echo "printf" >&6; } ;;
5465   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5466 $as_echo "print -r" >&6; } ;;
5467   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5468 $as_echo "cat" >&6; } ;;
5469 esac
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5485 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5486 if test "${ac_cv_path_SED+set}" = set; then :
5487   $as_echo_n "(cached) " >&6
5488 else
5489             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5490      for ac_i in 1 2 3 4 5 6 7; do
5491        ac_script="$ac_script$as_nl$ac_script"
5492      done
5493      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5494      { ac_script=; unset ac_script;}
5495      if test -z "$SED"; then
5496   ac_path_SED_found=false
5497   # Loop through the user's path and test for each of PROGNAME-LIST
5498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501   IFS=$as_save_IFS
5502   test -z "$as_dir" && as_dir=.
5503     for ac_prog in sed gsed; do
5504     for ac_exec_ext in '' $ac_executable_extensions; do
5505       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5506       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5507 # Check for GNU ac_path_SED and select it if it is found.
5508   # Check for GNU $ac_path_SED
5509 case `"$ac_path_SED" --version 2>&1` in
5510 *GNU*)
5511   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5512 *)
5513   ac_count=0
5514   $as_echo_n 0123456789 >"conftest.in"
5515   while :
5516   do
5517     cat "conftest.in" "conftest.in" >"conftest.tmp"
5518     mv "conftest.tmp" "conftest.in"
5519     cp "conftest.in" "conftest.nl"
5520     $as_echo '' >> "conftest.nl"
5521     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5522     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5523     as_fn_arith $ac_count + 1 && ac_count=$as_val
5524     if test $ac_count -gt ${ac_path_SED_max-0}; then
5525       # Best one so far, save it but keep looking for a better one
5526       ac_cv_path_SED="$ac_path_SED"
5527       ac_path_SED_max=$ac_count
5528     fi
5529     # 10*(2^10) chars as input seems more than enough
5530     test $ac_count -gt 10 && break
5531   done
5532   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5533 esac
5534
5535       $ac_path_SED_found && break 3
5536     done
5537   done
5538   done
5539 IFS=$as_save_IFS
5540   if test -z "$ac_cv_path_SED"; then
5541     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5542   fi
5543 else
5544   ac_cv_path_SED=$SED
5545 fi
5546
5547 fi
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5549 $as_echo "$ac_cv_path_SED" >&6; }
5550  SED="$ac_cv_path_SED"
5551   rm -f conftest.sed
5552
5553 test -z "$SED" && SED=sed
5554 Xsed="$SED -e 1s/^X//"
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5567 $as_echo_n "checking for fgrep... " >&6; }
5568 if test "${ac_cv_path_FGREP+set}" = set; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5572    then ac_cv_path_FGREP="$GREP -F"
5573    else
5574      if test -z "$FGREP"; then
5575   ac_path_FGREP_found=false
5576   # Loop through the user's path and test for each of PROGNAME-LIST
5577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5579 do
5580   IFS=$as_save_IFS
5581   test -z "$as_dir" && as_dir=.
5582     for ac_prog in fgrep; do
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5585       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5586 # Check for GNU ac_path_FGREP and select it if it is found.
5587   # Check for GNU $ac_path_FGREP
5588 case `"$ac_path_FGREP" --version 2>&1` in
5589 *GNU*)
5590   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5591 *)
5592   ac_count=0
5593   $as_echo_n 0123456789 >"conftest.in"
5594   while :
5595   do
5596     cat "conftest.in" "conftest.in" >"conftest.tmp"
5597     mv "conftest.tmp" "conftest.in"
5598     cp "conftest.in" "conftest.nl"
5599     $as_echo 'FGREP' >> "conftest.nl"
5600     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5601     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5602     as_fn_arith $ac_count + 1 && ac_count=$as_val
5603     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5604       # Best one so far, save it but keep looking for a better one
5605       ac_cv_path_FGREP="$ac_path_FGREP"
5606       ac_path_FGREP_max=$ac_count
5607     fi
5608     # 10*(2^10) chars as input seems more than enough
5609     test $ac_count -gt 10 && break
5610   done
5611   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5612 esac
5613
5614       $ac_path_FGREP_found && break 3
5615     done
5616   done
5617   done
5618 IFS=$as_save_IFS
5619   if test -z "$ac_cv_path_FGREP"; then
5620     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5621   fi
5622 else
5623   ac_cv_path_FGREP=$FGREP
5624 fi
5625
5626    fi
5627 fi
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5629 $as_echo "$ac_cv_path_FGREP" >&6; }
5630  FGREP="$ac_cv_path_FGREP"
5631
5632
5633 test -z "$GREP" && GREP=grep
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653 # Check whether --with-gnu-ld was given.
5654 if test "${with_gnu_ld+set}" = set; then :
5655   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5656 else
5657   with_gnu_ld=no
5658 fi
5659
5660 ac_prog=ld
5661 if test "$GCC" = yes; then
5662   # Check if gcc -print-prog-name=ld gives a path.
5663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5664 $as_echo_n "checking for ld used by $CC... " >&6; }
5665   case $host in
5666   *-*-mingw*)
5667     # gcc leaves a trailing carriage return which upsets mingw
5668     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5669   *)
5670     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5671   esac
5672   case $ac_prog in
5673     # Accept absolute paths.
5674     [\\/]* | ?:[\\/]*)
5675       re_direlt='/[^/][^/]*/\.\./'
5676       # Canonicalize the pathname of ld
5677       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5678       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5679         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5680       done
5681       test -z "$LD" && LD="$ac_prog"
5682       ;;
5683   "")
5684     # If it fails, then pretend we aren't using GCC.
5685     ac_prog=ld
5686     ;;
5687   *)
5688     # If it is relative, then search for the first ld in PATH.
5689     with_gnu_ld=unknown
5690     ;;
5691   esac
5692 elif test "$with_gnu_ld" = yes; then
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5694 $as_echo_n "checking for GNU ld... " >&6; }
5695 else
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5697 $as_echo_n "checking for non-GNU ld... " >&6; }
5698 fi
5699 if test "${lt_cv_path_LD+set}" = set; then :
5700   $as_echo_n "(cached) " >&6
5701 else
5702   if test -z "$LD"; then
5703   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5704   for ac_dir in $PATH; do
5705     IFS="$lt_save_ifs"
5706     test -z "$ac_dir" && ac_dir=.
5707     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5708       lt_cv_path_LD="$ac_dir/$ac_prog"
5709       # Check to see if the program is GNU ld.  I'd rather use --version,
5710       # but apparently some variants of GNU ld only accept -v.
5711       # Break only if it was the GNU/non-GNU ld that we prefer.
5712       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5713       *GNU* | *'with BFD'*)
5714         test "$with_gnu_ld" != no && break
5715         ;;
5716       *)
5717         test "$with_gnu_ld" != yes && break
5718         ;;
5719       esac
5720     fi
5721   done
5722   IFS="$lt_save_ifs"
5723 else
5724   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5725 fi
5726 fi
5727
5728 LD="$lt_cv_path_LD"
5729 if test -n "$LD"; then
5730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5731 $as_echo "$LD" >&6; }
5732 else
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5735 fi
5736 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5738 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5739 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5740   $as_echo_n "(cached) " >&6
5741 else
5742   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5743 case `$LD -v 2>&1 </dev/null` in
5744 *GNU* | *'with BFD'*)
5745   lt_cv_prog_gnu_ld=yes
5746   ;;
5747 *)
5748   lt_cv_prog_gnu_ld=no
5749   ;;
5750 esac
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5753 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5754 with_gnu_ld=$lt_cv_prog_gnu_ld
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5765 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5766 if test "${lt_cv_path_NM+set}" = set; then :
5767   $as_echo_n "(cached) " >&6
5768 else
5769   if test -n "$NM"; then
5770   # Let the user override the test.
5771   lt_cv_path_NM="$NM"
5772 else
5773   lt_nm_to_check="${ac_tool_prefix}nm"
5774   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5775     lt_nm_to_check="$lt_nm_to_check nm"
5776   fi
5777   for lt_tmp_nm in $lt_nm_to_check; do
5778     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5779     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5780       IFS="$lt_save_ifs"
5781       test -z "$ac_dir" && ac_dir=.
5782       tmp_nm="$ac_dir/$lt_tmp_nm"
5783       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5784         # Check to see if the nm accepts a BSD-compat flag.
5785         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5786         #   nm: unknown option "B" ignored
5787         # Tru64's nm complains that /dev/null is an invalid object file
5788         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5789         */dev/null* | *'Invalid file or object type'*)
5790           lt_cv_path_NM="$tmp_nm -B"
5791           break
5792           ;;
5793         *)
5794           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5795           */dev/null*)
5796             lt_cv_path_NM="$tmp_nm -p"
5797             break
5798             ;;
5799           *)
5800             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5801             continue # so that we can try to find one that supports BSD flags
5802             ;;
5803           esac
5804           ;;
5805         esac
5806       fi
5807     done
5808     IFS="$lt_save_ifs"
5809   done
5810   : ${lt_cv_path_NM=no}
5811 fi
5812 fi
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5814 $as_echo "$lt_cv_path_NM" >&6; }
5815 if test "$lt_cv_path_NM" != "no"; then
5816   NM="$lt_cv_path_NM"
5817 else
5818   # Didn't find any BSD compatible name lister, look for dumpbin.
5819   if test -n "$DUMPBIN"; then :
5820     # Let the user override the test.
5821   else
5822     if test -n "$ac_tool_prefix"; then
5823   for ac_prog in dumpbin "link -dump"
5824   do
5825     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5826 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   if test -n "$DUMPBIN"; then
5833   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5837 do
5838   IFS=$as_save_IFS
5839   test -z "$as_dir" && as_dir=.
5840     for ac_exec_ext in '' $ac_executable_extensions; do
5841   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5842     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844     break 2
5845   fi
5846 done
5847   done
5848 IFS=$as_save_IFS
5849
5850 fi
5851 fi
5852 DUMPBIN=$ac_cv_prog_DUMPBIN
5853 if test -n "$DUMPBIN"; then
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5855 $as_echo "$DUMPBIN" >&6; }
5856 else
5857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5859 fi
5860
5861
5862     test -n "$DUMPBIN" && break
5863   done
5864 fi
5865 if test -z "$DUMPBIN"; then
5866   ac_ct_DUMPBIN=$DUMPBIN
5867   for ac_prog in dumpbin "link -dump"
5868 do
5869   # Extract the first word of "$ac_prog", so it can be a program name with args.
5870 set dummy $ac_prog; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$ac_ct_DUMPBIN"; then
5877   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5897 if test -n "$ac_ct_DUMPBIN"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5899 $as_echo "$ac_ct_DUMPBIN" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906   test -n "$ac_ct_DUMPBIN" && break
5907 done
5908
5909   if test "x$ac_ct_DUMPBIN" = x; then
5910     DUMPBIN=":"
5911   else
5912     case $cross_compiling:$ac_tool_warned in
5913 yes:)
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916 ac_tool_warned=yes ;;
5917 esac
5918     DUMPBIN=$ac_ct_DUMPBIN
5919   fi
5920 fi
5921
5922     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5923     *COFF*)
5924       DUMPBIN="$DUMPBIN -symbols"
5925       ;;
5926     *)
5927       DUMPBIN=:
5928       ;;
5929     esac
5930   fi
5931
5932   if test "$DUMPBIN" != ":"; then
5933     NM="$DUMPBIN"
5934   fi
5935 fi
5936 test -z "$NM" && NM=nm
5937
5938
5939
5940
5941
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5944 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5945 if test "${lt_cv_nm_interface+set}" = set; then :
5946   $as_echo_n "(cached) " >&6
5947 else
5948   lt_cv_nm_interface="BSD nm"
5949   echo "int some_variable = 0;" > conftest.$ac_ext
5950   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5951   (eval "$ac_compile" 2>conftest.err)
5952   cat conftest.err >&5
5953   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5954   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5955   cat conftest.err >&5
5956   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5957   cat conftest.out >&5
5958   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5959     lt_cv_nm_interface="MS dumpbin"
5960   fi
5961   rm -f conftest*
5962 fi
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5964 $as_echo "$lt_cv_nm_interface" >&6; }
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5967 $as_echo_n "checking whether ln -s works... " >&6; }
5968 LN_S=$as_ln_s
5969 if test "$LN_S" = "ln -s"; then
5970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5971 $as_echo "yes" >&6; }
5972 else
5973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5974 $as_echo "no, using $LN_S" >&6; }
5975 fi
5976
5977 # find the maximum length of command line arguments
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5979 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5980 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5981   $as_echo_n "(cached) " >&6
5982 else
5983     i=0
5984   teststring="ABCD"
5985
5986   case $build_os in
5987   msdosdjgpp*)
5988     # On DJGPP, this test can blow up pretty badly due to problems in libc
5989     # (any single argument exceeding 2000 bytes causes a buffer overrun
5990     # during glob expansion).  Even if it were fixed, the result of this
5991     # check would be larger than it should be.
5992     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5993     ;;
5994
5995   gnu*)
5996     # Under GNU Hurd, this test is not required because there is
5997     # no limit to the length of command line arguments.
5998     # Libtool will interpret -1 as no limit whatsoever
5999     lt_cv_sys_max_cmd_len=-1;
6000     ;;
6001
6002   cygwin* | mingw* | cegcc*)
6003     # On Win9x/ME, this test blows up -- it succeeds, but takes
6004     # about 5 minutes as the teststring grows exponentially.
6005     # Worse, since 9x/ME are not pre-emptively multitasking,
6006     # you end up with a "frozen" computer, even though with patience
6007     # the test eventually succeeds (with a max line length of 256k).
6008     # Instead, let's just punt: use the minimum linelength reported by
6009     # all of the supported platforms: 8192 (on NT/2K/XP).
6010     lt_cv_sys_max_cmd_len=8192;
6011     ;;
6012
6013   mint*)
6014     # On MiNT this can take a long time and run out of memory.
6015     lt_cv_sys_max_cmd_len=8192;
6016     ;;
6017
6018   amigaos*)
6019     # On AmigaOS with pdksh, this test takes hours, literally.
6020     # So we just punt and use a minimum line length of 8192.
6021     lt_cv_sys_max_cmd_len=8192;
6022     ;;
6023
6024   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6025     # This has been around since 386BSD, at least.  Likely further.
6026     if test -x /sbin/sysctl; then
6027       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6028     elif test -x /usr/sbin/sysctl; then
6029       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6030     else
6031       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6032     fi
6033     # And add a safety zone
6034     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6035     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6036     ;;
6037
6038   interix*)
6039     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6040     lt_cv_sys_max_cmd_len=196608
6041     ;;
6042
6043   osf*)
6044     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6045     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6046     # nice to cause kernel panics so lets avoid the loop below.
6047     # First set a reasonable default.
6048     lt_cv_sys_max_cmd_len=16384
6049     #
6050     if test -x /sbin/sysconfig; then
6051       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6052         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6053       esac
6054     fi
6055     ;;
6056   sco3.2v5*)
6057     lt_cv_sys_max_cmd_len=102400
6058     ;;
6059   sysv5* | sco5v6* | sysv4.2uw2*)
6060     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6061     if test -n "$kargmax"; then
6062       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6063     else
6064       lt_cv_sys_max_cmd_len=32768
6065     fi
6066     ;;
6067   *)
6068     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6069     if test -n "$lt_cv_sys_max_cmd_len"; then
6070       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6071       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6072     else
6073       # Make teststring a little bigger before we do anything with it.
6074       # a 1K string should be a reasonable start.
6075       for i in 1 2 3 4 5 6 7 8 ; do
6076         teststring=$teststring$teststring
6077       done
6078       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6079       # If test is not a shell built-in, we'll probably end up computing a
6080       # maximum length that is only half of the actual maximum length, but
6081       # we can't tell.
6082       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6083                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6084               test $i != 17 # 1/2 MB should be enough
6085       do
6086         i=`expr $i + 1`
6087         teststring=$teststring$teststring
6088       done
6089       # Only check the string length outside the loop.
6090       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6091       teststring=
6092       # Add a significant safety factor because C++ compilers can tack on
6093       # massive amounts of additional arguments before passing them to the
6094       # linker.  It appears as though 1/2 is a usable value.
6095       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6096     fi
6097     ;;
6098   esac
6099
6100 fi
6101
6102 if test -n $lt_cv_sys_max_cmd_len ; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6104 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6107 $as_echo "none" >&6; }
6108 fi
6109 max_cmd_len=$lt_cv_sys_max_cmd_len
6110
6111
6112
6113
6114
6115
6116 : ${CP="cp -f"}
6117 : ${MV="mv -f"}
6118 : ${RM="rm -f"}
6119
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6121 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6122 # Try some XSI features
6123 xsi_shell=no
6124 ( _lt_dummy="a/b/c"
6125   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6126       = c,a/b,, \
6127     && eval 'test $(( 1 + 1 )) -eq 2 \
6128     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6129   && xsi_shell=yes
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6131 $as_echo "$xsi_shell" >&6; }
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6135 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6136 lt_shell_append=no
6137 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6138     >/dev/null 2>&1 \
6139   && lt_shell_append=yes
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6141 $as_echo "$lt_shell_append" >&6; }
6142
6143
6144 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6145   lt_unset=unset
6146 else
6147   lt_unset=false
6148 fi
6149
6150
6151
6152
6153
6154 # test EBCDIC or ASCII
6155 case `echo X|tr X '\101'` in
6156  A) # ASCII based system
6157     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6158   lt_SP2NL='tr \040 \012'
6159   lt_NL2SP='tr \015\012 \040\040'
6160   ;;
6161  *) # EBCDIC based system
6162   lt_SP2NL='tr \100 \n'
6163   lt_NL2SP='tr \r\n \100\100'
6164   ;;
6165 esac
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6177 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   lt_cv_ld_reload_flag='-r'
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6184 reload_flag=$lt_cv_ld_reload_flag
6185 case $reload_flag in
6186 "" | " "*) ;;
6187 *) reload_flag=" $reload_flag" ;;
6188 esac
6189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6190 case $host_os in
6191   darwin*)
6192     if test "$GCC" = yes; then
6193       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6194     else
6195       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6196     fi
6197     ;;
6198 esac
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208 if test -n "$ac_tool_prefix"; then
6209   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6210 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6214   $as_echo_n "(cached) " >&6
6215 else
6216   if test -n "$OBJDUMP"; then
6217   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224     for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231   done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 OBJDUMP=$ac_cv_prog_OBJDUMP
6237 if test -n "$OBJDUMP"; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6239 $as_echo "$OBJDUMP" >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6243 fi
6244
6245
6246 fi
6247 if test -z "$ac_cv_prog_OBJDUMP"; then
6248   ac_ct_OBJDUMP=$OBJDUMP
6249   # Extract the first word of "objdump", so it can be a program name with args.
6250 set dummy objdump; ac_word=$2
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 $as_echo_n "checking for $ac_word... " >&6; }
6253 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6254   $as_echo_n "(cached) " >&6
6255 else
6256   if test -n "$ac_ct_OBJDUMP"; then
6257   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262   IFS=$as_save_IFS
6263   test -z "$as_dir" && as_dir=.
6264     for ac_exec_ext in '' $ac_executable_extensions; do
6265   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6266     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6267     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268     break 2
6269   fi
6270 done
6271   done
6272 IFS=$as_save_IFS
6273
6274 fi
6275 fi
6276 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6277 if test -n "$ac_ct_OBJDUMP"; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6279 $as_echo "$ac_ct_OBJDUMP" >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282 $as_echo "no" >&6; }
6283 fi
6284
6285   if test "x$ac_ct_OBJDUMP" = x; then
6286     OBJDUMP="false"
6287   else
6288     case $cross_compiling:$ac_tool_warned in
6289 yes:)
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6292 ac_tool_warned=yes ;;
6293 esac
6294     OBJDUMP=$ac_ct_OBJDUMP
6295   fi
6296 else
6297   OBJDUMP="$ac_cv_prog_OBJDUMP"
6298 fi
6299
6300 test -z "$OBJDUMP" && OBJDUMP=objdump
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6311 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6312 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   lt_cv_file_magic_cmd='$MAGIC_CMD'
6316 lt_cv_file_magic_test_file=
6317 lt_cv_deplibs_check_method='unknown'
6318 # Need to set the preceding variable on all platforms that support
6319 # interlibrary dependencies.
6320 # 'none' -- dependencies not supported.
6321 # `unknown' -- same as none, but documents that we really don't know.
6322 # 'pass_all' -- all dependencies passed with no checks.
6323 # 'test_compile' -- check by making test program.
6324 # 'file_magic [[regex]]' -- check by looking for files in library path
6325 # which responds to the $file_magic_cmd with a given extended regex.
6326 # If you have `file' or equivalent on your system and you're not sure
6327 # whether `pass_all' will *always* work, you probably want this one.
6328
6329 case $host_os in
6330 aix[4-9]*)
6331   lt_cv_deplibs_check_method=pass_all
6332   ;;
6333
6334 beos*)
6335   lt_cv_deplibs_check_method=pass_all
6336   ;;
6337
6338 bsdi[45]*)
6339   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6340   lt_cv_file_magic_cmd='/usr/bin/file -L'
6341   lt_cv_file_magic_test_file=/shlib/libc.so
6342   ;;
6343
6344 cygwin*)
6345   # func_win32_libid is a shell function defined in ltmain.sh
6346   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6347   lt_cv_file_magic_cmd='func_win32_libid'
6348   ;;
6349
6350 mingw* | pw32*)
6351   # Base MSYS/MinGW do not provide the 'file' command needed by
6352   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6353   # unless we find 'file', for example because we are cross-compiling.
6354   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6355   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6356     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6357     lt_cv_file_magic_cmd='func_win32_libid'
6358   else
6359     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6360     lt_cv_file_magic_cmd='$OBJDUMP -f'
6361   fi
6362   ;;
6363
6364 cegcc*)
6365   # use the weaker test based on 'objdump'. See mingw*.
6366   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6367   lt_cv_file_magic_cmd='$OBJDUMP -f'
6368   ;;
6369
6370 darwin* | rhapsody*)
6371   lt_cv_deplibs_check_method=pass_all
6372   ;;
6373
6374 freebsd* | dragonfly*)
6375   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376     case $host_cpu in
6377     i*86 )
6378       # Not sure whether the presence of OpenBSD here was a mistake.
6379       # Let's accept both of them until this is cleared up.
6380       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6381       lt_cv_file_magic_cmd=/usr/bin/file
6382       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6383       ;;
6384     esac
6385   else
6386     lt_cv_deplibs_check_method=pass_all
6387   fi
6388   ;;
6389
6390 gnu*)
6391   lt_cv_deplibs_check_method=pass_all
6392   ;;
6393
6394 haiku*)
6395   lt_cv_deplibs_check_method=pass_all
6396   ;;
6397
6398 hpux10.20* | hpux11*)
6399   lt_cv_file_magic_cmd=/usr/bin/file
6400   case $host_cpu in
6401   ia64*)
6402     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6403     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6404     ;;
6405   hppa*64*)
6406     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]'
6407     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6408     ;;
6409   *)
6410     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6411     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6412     ;;
6413   esac
6414   ;;
6415
6416 interix[3-9]*)
6417   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6418   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6419   ;;
6420
6421 irix5* | irix6* | nonstopux*)
6422   case $LD in
6423   *-32|*"-32 ") libmagic=32-bit;;
6424   *-n32|*"-n32 ") libmagic=N32;;
6425   *-64|*"-64 ") libmagic=64-bit;;
6426   *) libmagic=never-match;;
6427   esac
6428   lt_cv_deplibs_check_method=pass_all
6429   ;;
6430
6431 # This must be Linux ELF.
6432 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6433   lt_cv_deplibs_check_method=pass_all
6434   ;;
6435
6436 netbsd*)
6437   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6438     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6439   else
6440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6441   fi
6442   ;;
6443
6444 newos6*)
6445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6446   lt_cv_file_magic_cmd=/usr/bin/file
6447   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6448   ;;
6449
6450 *nto* | *qnx*)
6451   lt_cv_deplibs_check_method=pass_all
6452   ;;
6453
6454 openbsd*)
6455   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6456     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6457   else
6458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6459   fi
6460   ;;
6461
6462 osf3* | osf4* | osf5*)
6463   lt_cv_deplibs_check_method=pass_all
6464   ;;
6465
6466 rdos*)
6467   lt_cv_deplibs_check_method=pass_all
6468   ;;
6469
6470 solaris*)
6471   lt_cv_deplibs_check_method=pass_all
6472   ;;
6473
6474 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6475   lt_cv_deplibs_check_method=pass_all
6476   ;;
6477
6478 sysv4 | sysv4.3*)
6479   case $host_vendor in
6480   motorola)
6481     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]'
6482     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6483     ;;
6484   ncr)
6485     lt_cv_deplibs_check_method=pass_all
6486     ;;
6487   sequent)
6488     lt_cv_file_magic_cmd='/bin/file'
6489     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6490     ;;
6491   sni)
6492     lt_cv_file_magic_cmd='/bin/file'
6493     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6494     lt_cv_file_magic_test_file=/lib/libc.so
6495     ;;
6496   siemens)
6497     lt_cv_deplibs_check_method=pass_all
6498     ;;
6499   pc)
6500     lt_cv_deplibs_check_method=pass_all
6501     ;;
6502   esac
6503   ;;
6504
6505 tpf*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508 esac
6509
6510 fi
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6512 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6513 file_magic_cmd=$lt_cv_file_magic_cmd
6514 deplibs_check_method=$lt_cv_deplibs_check_method
6515 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528 if test -n "$ac_tool_prefix"; then
6529   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6530 set dummy ${ac_tool_prefix}ar; ac_word=$2
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6532 $as_echo_n "checking for $ac_word... " >&6; }
6533 if test "${ac_cv_prog_AR+set}" = set; then :
6534   $as_echo_n "(cached) " >&6
6535 else
6536   if test -n "$AR"; then
6537   ac_cv_prog_AR="$AR" # Let the user override the test.
6538 else
6539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540 for as_dir in $PATH
6541 do
6542   IFS=$as_save_IFS
6543   test -z "$as_dir" && as_dir=.
6544     for ac_exec_ext in '' $ac_executable_extensions; do
6545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6546     ac_cv_prog_AR="${ac_tool_prefix}ar"
6547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6548     break 2
6549   fi
6550 done
6551   done
6552 IFS=$as_save_IFS
6553
6554 fi
6555 fi
6556 AR=$ac_cv_prog_AR
6557 if test -n "$AR"; then
6558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6559 $as_echo "$AR" >&6; }
6560 else
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; }
6563 fi
6564
6565
6566 fi
6567 if test -z "$ac_cv_prog_AR"; then
6568   ac_ct_AR=$AR
6569   # Extract the first word of "ar", so it can be a program name with args.
6570 set dummy ar; ac_word=$2
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6572 $as_echo_n "checking for $ac_word... " >&6; }
6573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6574   $as_echo_n "(cached) " >&6
6575 else
6576   if test -n "$ac_ct_AR"; then
6577   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6578 else
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH
6581 do
6582   IFS=$as_save_IFS
6583   test -z "$as_dir" && as_dir=.
6584     for ac_exec_ext in '' $ac_executable_extensions; do
6585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6586     ac_cv_prog_ac_ct_AR="ar"
6587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588     break 2
6589   fi
6590 done
6591   done
6592 IFS=$as_save_IFS
6593
6594 fi
6595 fi
6596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6597 if test -n "$ac_ct_AR"; then
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6599 $as_echo "$ac_ct_AR" >&6; }
6600 else
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6602 $as_echo "no" >&6; }
6603 fi
6604
6605   if test "x$ac_ct_AR" = x; then
6606     AR="false"
6607   else
6608     case $cross_compiling:$ac_tool_warned in
6609 yes:)
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6612 ac_tool_warned=yes ;;
6613 esac
6614     AR=$ac_ct_AR
6615   fi
6616 else
6617   AR="$ac_cv_prog_AR"
6618 fi
6619
6620 test -z "$AR" && AR=ar
6621 test -z "$AR_FLAGS" && AR_FLAGS=cru
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633 if test -n "$ac_tool_prefix"; then
6634   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6635 set dummy ${ac_tool_prefix}strip; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if test "${ac_cv_prog_STRIP+set}" = set; then :
6639   $as_echo_n "(cached) " >&6
6640 else
6641   if test -n "$STRIP"; then
6642   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647   IFS=$as_save_IFS
6648   test -z "$as_dir" && as_dir=.
6649     for ac_exec_ext in '' $ac_executable_extensions; do
6650   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653     break 2
6654   fi
6655 done
6656   done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 STRIP=$ac_cv_prog_STRIP
6662 if test -n "$STRIP"; then
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6664 $as_echo "$STRIP" >&6; }
6665 else
6666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6668 fi
6669
6670
6671 fi
6672 if test -z "$ac_cv_prog_STRIP"; then
6673   ac_ct_STRIP=$STRIP
6674   # Extract the first word of "strip", so it can be a program name with args.
6675 set dummy strip; ac_word=$2
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6677 $as_echo_n "checking for $ac_word... " >&6; }
6678 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6679   $as_echo_n "(cached) " >&6
6680 else
6681   if test -n "$ac_ct_STRIP"; then
6682   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687   IFS=$as_save_IFS
6688   test -z "$as_dir" && as_dir=.
6689     for ac_exec_ext in '' $ac_executable_extensions; do
6690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6691     ac_cv_prog_ac_ct_STRIP="strip"
6692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6693     break 2
6694   fi
6695 done
6696   done
6697 IFS=$as_save_IFS
6698
6699 fi
6700 fi
6701 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6702 if test -n "$ac_ct_STRIP"; then
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6704 $as_echo "$ac_ct_STRIP" >&6; }
6705 else
6706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6707 $as_echo "no" >&6; }
6708 fi
6709
6710   if test "x$ac_ct_STRIP" = x; then
6711     STRIP=":"
6712   else
6713     case $cross_compiling:$ac_tool_warned in
6714 yes:)
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6717 ac_tool_warned=yes ;;
6718 esac
6719     STRIP=$ac_ct_STRIP
6720   fi
6721 else
6722   STRIP="$ac_cv_prog_STRIP"
6723 fi
6724
6725 test -z "$STRIP" && STRIP=:
6726
6727
6728
6729
6730
6731
6732 if test -n "$ac_tool_prefix"; then
6733   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6734 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 $as_echo_n "checking for $ac_word... " >&6; }
6737 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6738   $as_echo_n "(cached) " >&6
6739 else
6740   if test -n "$RANLIB"; then
6741   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6742 else
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6744 for as_dir in $PATH
6745 do
6746   IFS=$as_save_IFS
6747   test -z "$as_dir" && as_dir=.
6748     for ac_exec_ext in '' $ac_executable_extensions; do
6749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6750     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6752     break 2
6753   fi
6754 done
6755   done
6756 IFS=$as_save_IFS
6757
6758 fi
6759 fi
6760 RANLIB=$ac_cv_prog_RANLIB
6761 if test -n "$RANLIB"; then
6762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6763 $as_echo "$RANLIB" >&6; }
6764 else
6765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6766 $as_echo "no" >&6; }
6767 fi
6768
6769
6770 fi
6771 if test -z "$ac_cv_prog_RANLIB"; then
6772   ac_ct_RANLIB=$RANLIB
6773   # Extract the first word of "ranlib", so it can be a program name with args.
6774 set dummy ranlib; ac_word=$2
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6776 $as_echo_n "checking for $ac_word... " >&6; }
6777 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6778   $as_echo_n "(cached) " >&6
6779 else
6780   if test -n "$ac_ct_RANLIB"; then
6781   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6782 else
6783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6790     ac_cv_prog_ac_ct_RANLIB="ranlib"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797
6798 fi
6799 fi
6800 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6801 if test -n "$ac_ct_RANLIB"; then
6802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6803 $as_echo "$ac_ct_RANLIB" >&6; }
6804 else
6805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6806 $as_echo "no" >&6; }
6807 fi
6808
6809   if test "x$ac_ct_RANLIB" = x; then
6810     RANLIB=":"
6811   else
6812     case $cross_compiling:$ac_tool_warned in
6813 yes:)
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6816 ac_tool_warned=yes ;;
6817 esac
6818     RANLIB=$ac_ct_RANLIB
6819   fi
6820 else
6821   RANLIB="$ac_cv_prog_RANLIB"
6822 fi
6823
6824 test -z "$RANLIB" && RANLIB=:
6825
6826
6827
6828
6829
6830
6831 # Determine commands to create old-style static archives.
6832 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6833 old_postinstall_cmds='chmod 644 $oldlib'
6834 old_postuninstall_cmds=
6835
6836 if test -n "$RANLIB"; then
6837   case $host_os in
6838   openbsd*)
6839     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6840     ;;
6841   *)
6842     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6843     ;;
6844   esac
6845   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6846 fi
6847
6848 case $host_os in
6849   darwin*)
6850     lock_old_archive_extraction=yes ;;
6851   *)
6852     lock_old_archive_extraction=no ;;
6853 esac
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
6893 # If no C compiler was specified, use CC.
6894 LTCC=${LTCC-"$CC"}
6895
6896 # If no C compiler flags were specified, use CFLAGS.
6897 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6898
6899 # Allow CC to be a program name with arguments.
6900 compiler=$CC
6901
6902
6903 # Check for command to grab the raw symbol name followed by C symbol from nm.
6904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6905 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6906 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6907   $as_echo_n "(cached) " >&6
6908 else
6909
6910 # These are sane defaults that work on at least a few old systems.
6911 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6912
6913 # Character class describing NM global symbol codes.
6914 symcode='[BCDEGRST]'
6915
6916 # Regexp to match symbols that can be accessed directly from C.
6917 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6918
6919 # Define system-specific variables.
6920 case $host_os in
6921 aix*)
6922   symcode='[BCDT]'
6923   ;;
6924 cygwin* | mingw* | pw32* | cegcc*)
6925   symcode='[ABCDGISTW]'
6926   ;;
6927 hpux*)
6928   if test "$host_cpu" = ia64; then
6929     symcode='[ABCDEGRST]'
6930   fi
6931   ;;
6932 irix* | nonstopux*)
6933   symcode='[BCDEGRST]'
6934   ;;
6935 osf*)
6936   symcode='[BCDEGQRST]'
6937   ;;
6938 solaris*)
6939   symcode='[BDRT]'
6940   ;;
6941 sco3.2v5*)
6942   symcode='[DT]'
6943   ;;
6944 sysv4.2uw2*)
6945   symcode='[DT]'
6946   ;;
6947 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6948   symcode='[ABDT]'
6949   ;;
6950 sysv4)
6951   symcode='[DFNSTU]'
6952   ;;
6953 esac
6954
6955 # If we're using GNU nm, then use its standard symbol codes.
6956 case `$NM -V 2>&1` in
6957 *GNU* | *'with BFD'*)
6958   symcode='[ABCDGIRSTW]' ;;
6959 esac
6960
6961 # Transform an extracted symbol line into a proper C declaration.
6962 # Some systems (esp. on ia64) link data and code symbols differently,
6963 # so use this general approach.
6964 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6965
6966 # Transform an extracted symbol line into symbol name and symbol address
6967 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6968 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'"
6969
6970 # Handle CRLF in mingw tool chain
6971 opt_cr=
6972 case $build_os in
6973 mingw*)
6974   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6975   ;;
6976 esac
6977
6978 # Try without a prefix underscore, then with it.
6979 for ac_symprfx in "" "_"; do
6980
6981   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6982   symxfrm="\\1 $ac_symprfx\\2 \\2"
6983
6984   # Write the raw and C identifiers.
6985   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6986     # Fake it for dumpbin and say T for any non-static function
6987     # and D for any global variable.
6988     # Also find C++ and __fastcall symbols from MSVC++,
6989     # which start with @ or ?.
6990     lt_cv_sys_global_symbol_pipe="$AWK '"\
6991 "     {last_section=section; section=\$ 3};"\
6992 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6993 "     \$ 0!~/External *\|/{next};"\
6994 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6995 "     {if(hide[section]) next};"\
6996 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6997 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6998 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6999 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7000 "     ' prfx=^$ac_symprfx"
7001   else
7002     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7003   fi
7004
7005   # Check to see that the pipe works correctly.
7006   pipe_works=no
7007
7008   rm -f conftest*
7009   cat > conftest.$ac_ext <<_LT_EOF
7010 #ifdef __cplusplus
7011 extern "C" {
7012 #endif
7013 char nm_test_var;
7014 void nm_test_func(void);
7015 void nm_test_func(void){}
7016 #ifdef __cplusplus
7017 }
7018 #endif
7019 int main(){nm_test_var='a';nm_test_func();return(0);}
7020 _LT_EOF
7021
7022   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7023   (eval $ac_compile) 2>&5
7024   ac_status=$?
7025   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026   test $ac_status = 0; }; then
7027     # Now try to grab the symbols.
7028     nlist=conftest.nm
7029     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7030   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7031   ac_status=$?
7032   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033   test $ac_status = 0; } && test -s "$nlist"; then
7034       # Try sorting and uniquifying the output.
7035       if sort "$nlist" | uniq > "$nlist"T; then
7036         mv -f "$nlist"T "$nlist"
7037       else
7038         rm -f "$nlist"T
7039       fi
7040
7041       # Make sure that we snagged all the symbols we need.
7042       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7043         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7044           cat <<_LT_EOF > conftest.$ac_ext
7045 #ifdef __cplusplus
7046 extern "C" {
7047 #endif
7048
7049 _LT_EOF
7050           # Now generate the symbol file.
7051           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7052
7053           cat <<_LT_EOF >> conftest.$ac_ext
7054
7055 /* The mapping between symbol names and symbols.  */
7056 const struct {
7057   const char *name;
7058   void       *address;
7059 }
7060 lt__PROGRAM__LTX_preloaded_symbols[] =
7061 {
7062   { "@PROGRAM@", (void *) 0 },
7063 _LT_EOF
7064           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7065           cat <<\_LT_EOF >> conftest.$ac_ext
7066   {0, (void *) 0}
7067 };
7068
7069 /* This works around a problem in FreeBSD linker */
7070 #ifdef FREEBSD_WORKAROUND
7071 static const void *lt_preloaded_setup() {
7072   return lt__PROGRAM__LTX_preloaded_symbols;
7073 }
7074 #endif
7075
7076 #ifdef __cplusplus
7077 }
7078 #endif
7079 _LT_EOF
7080           # Now try linking the two files.
7081           mv conftest.$ac_objext conftstm.$ac_objext
7082           lt_save_LIBS="$LIBS"
7083           lt_save_CFLAGS="$CFLAGS"
7084           LIBS="conftstm.$ac_objext"
7085           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7086           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7087   (eval $ac_link) 2>&5
7088   ac_status=$?
7089   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7091             pipe_works=yes
7092           fi
7093           LIBS="$lt_save_LIBS"
7094           CFLAGS="$lt_save_CFLAGS"
7095         else
7096           echo "cannot find nm_test_func in $nlist" >&5
7097         fi
7098       else
7099         echo "cannot find nm_test_var in $nlist" >&5
7100       fi
7101     else
7102       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7103     fi
7104   else
7105     echo "$progname: failed program was:" >&5
7106     cat conftest.$ac_ext >&5
7107   fi
7108   rm -rf conftest* conftst*
7109
7110   # Do not use the global_symbol_pipe unless it works.
7111   if test "$pipe_works" = yes; then
7112     break
7113   else
7114     lt_cv_sys_global_symbol_pipe=
7115   fi
7116 done
7117
7118 fi
7119
7120 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7121   lt_cv_sys_global_symbol_to_cdecl=
7122 fi
7123 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7125 $as_echo "failed" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7128 $as_echo "ok" >&6; }
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152 # Check whether --enable-libtool-lock was given.
7153 if test "${enable_libtool_lock+set}" = set; then :
7154   enableval=$enable_libtool_lock;
7155 fi
7156
7157 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7158
7159 # Some flags need to be propagated to the compiler or linker for good
7160 # libtool support.
7161 case $host in
7162 ia64-*-hpux*)
7163   # Find out which ABI we are using.
7164   echo 'int i;' > conftest.$ac_ext
7165   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7166   (eval $ac_compile) 2>&5
7167   ac_status=$?
7168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169   test $ac_status = 0; }; then
7170     case `/usr/bin/file conftest.$ac_objext` in
7171       *ELF-32*)
7172         HPUX_IA64_MODE="32"
7173         ;;
7174       *ELF-64*)
7175         HPUX_IA64_MODE="64"
7176         ;;
7177     esac
7178   fi
7179   rm -rf conftest*
7180   ;;
7181 *-*-irix6*)
7182   # Find out which ABI we are using.
7183   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185   (eval $ac_compile) 2>&5
7186   ac_status=$?
7187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188   test $ac_status = 0; }; then
7189     if test "$lt_cv_prog_gnu_ld" = yes; then
7190       case `/usr/bin/file conftest.$ac_objext` in
7191         *32-bit*)
7192           LD="${LD-ld} -melf32bsmip"
7193           ;;
7194         *N32*)
7195           LD="${LD-ld} -melf32bmipn32"
7196           ;;
7197         *64-bit*)
7198           LD="${LD-ld} -melf64bmip"
7199         ;;
7200       esac
7201     else
7202       case `/usr/bin/file conftest.$ac_objext` in
7203         *32-bit*)
7204           LD="${LD-ld} -32"
7205           ;;
7206         *N32*)
7207           LD="${LD-ld} -n32"
7208           ;;
7209         *64-bit*)
7210           LD="${LD-ld} -64"
7211           ;;
7212       esac
7213     fi
7214   fi
7215   rm -rf conftest*
7216   ;;
7217
7218 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7219 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7220   # Find out which ABI we are using.
7221   echo 'int i;' > conftest.$ac_ext
7222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223   (eval $ac_compile) 2>&5
7224   ac_status=$?
7225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226   test $ac_status = 0; }; then
7227     case `/usr/bin/file conftest.o` in
7228       *32-bit*)
7229         case $host in
7230           x86_64-*kfreebsd*-gnu)
7231             LD="${LD-ld} -m elf_i386_fbsd"
7232             ;;
7233           x86_64-*linux*)
7234             case `/usr/bin/file conftest.o` in
7235               *x86-64*)
7236                 LD="${LD-ld} -m elf32_x86_64"
7237                 ;;
7238               *)
7239                 LD="${LD-ld} -m elf_i386"
7240                 ;;
7241             esac
7242             ;;
7243           powerpc64le-*linux*)
7244             LD="${LD-ld} -m elf32lppclinux"
7245             ;;
7246           powerpc64-*linux*)
7247             LD="${LD-ld} -m elf32ppclinux"
7248             ;;
7249           s390x-*linux*)
7250             LD="${LD-ld} -m elf_s390"
7251             ;;
7252           sparc64-*linux*)
7253             LD="${LD-ld} -m elf32_sparc"
7254             ;;
7255         esac
7256         ;;
7257       *64-bit*)
7258         case $host in
7259           x86_64-*kfreebsd*-gnu)
7260             LD="${LD-ld} -m elf_x86_64_fbsd"
7261             ;;
7262           x86_64-*linux*)
7263             LD="${LD-ld} -m elf_x86_64"
7264             ;;
7265           powerpcle-*linux*)
7266             LD="${LD-ld} -m elf64lppc"
7267             ;;
7268           powerpc-*linux*)
7269             LD="${LD-ld} -m elf64ppc"
7270             ;;
7271           s390*-*linux*|s390*-*tpf*)
7272             LD="${LD-ld} -m elf64_s390"
7273             ;;
7274           sparc*-*linux*)
7275             LD="${LD-ld} -m elf64_sparc"
7276             ;;
7277         esac
7278         ;;
7279     esac
7280   fi
7281   rm -rf conftest*
7282   ;;
7283
7284 *-*-sco3.2v5*)
7285   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7286   SAVE_CFLAGS="$CFLAGS"
7287   CFLAGS="$CFLAGS -belf"
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7289 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7290 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7291   $as_echo_n "(cached) " >&6
7292 else
7293   ac_ext=c
7294 ac_cpp='$CPP $CPPFLAGS'
7295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7298
7299      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h.  */
7301
7302 int
7303 main ()
7304 {
7305
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 if ac_fn_c_try_link "$LINENO"; then :
7311   lt_cv_cc_needs_belf=yes
7312 else
7313   lt_cv_cc_needs_belf=no
7314 fi
7315 rm -f core conftest.err conftest.$ac_objext \
7316     conftest$ac_exeext conftest.$ac_ext
7317      ac_ext=c
7318 ac_cpp='$CPP $CPPFLAGS'
7319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322
7323 fi
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7325 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7326   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7327     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7328     CFLAGS="$SAVE_CFLAGS"
7329   fi
7330   ;;
7331 sparc*-*solaris*)
7332   # Find out which ABI we are using.
7333   echo 'int i;' > conftest.$ac_ext
7334   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7335   (eval $ac_compile) 2>&5
7336   ac_status=$?
7337   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7338   test $ac_status = 0; }; then
7339     case `/usr/bin/file conftest.o` in
7340     *64-bit*)
7341       case $lt_cv_prog_gnu_ld in
7342       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7343       *)
7344         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7345           LD="${LD-ld} -64"
7346         fi
7347         ;;
7348       esac
7349       ;;
7350     esac
7351   fi
7352   rm -rf conftest*
7353   ;;
7354 esac
7355
7356 need_locks="$enable_libtool_lock"
7357
7358
7359   case $host_os in
7360     rhapsody* | darwin*)
7361     if test -n "$ac_tool_prefix"; then
7362   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7363 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7367   $as_echo_n "(cached) " >&6
7368 else
7369   if test -n "$DSYMUTIL"; then
7370   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7371 else
7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 for as_dir in $PATH
7374 do
7375   IFS=$as_save_IFS
7376   test -z "$as_dir" && as_dir=.
7377     for ac_exec_ext in '' $ac_executable_extensions; do
7378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7379     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7381     break 2
7382   fi
7383 done
7384   done
7385 IFS=$as_save_IFS
7386
7387 fi
7388 fi
7389 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7390 if test -n "$DSYMUTIL"; then
7391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7392 $as_echo "$DSYMUTIL" >&6; }
7393 else
7394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7396 fi
7397
7398
7399 fi
7400 if test -z "$ac_cv_prog_DSYMUTIL"; then
7401   ac_ct_DSYMUTIL=$DSYMUTIL
7402   # Extract the first word of "dsymutil", so it can be a program name with args.
7403 set dummy dsymutil; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   if test -n "$ac_ct_DSYMUTIL"; then
7410   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7414 do
7415   IFS=$as_save_IFS
7416   test -z "$as_dir" && as_dir=.
7417     for ac_exec_ext in '' $ac_executable_extensions; do
7418   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421     break 2
7422   fi
7423 done
7424   done
7425 IFS=$as_save_IFS
7426
7427 fi
7428 fi
7429 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7430 if test -n "$ac_ct_DSYMUTIL"; then
7431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7432 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7433 else
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7436 fi
7437
7438   if test "x$ac_ct_DSYMUTIL" = x; then
7439     DSYMUTIL=":"
7440   else
7441     case $cross_compiling:$ac_tool_warned in
7442 yes:)
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7445 ac_tool_warned=yes ;;
7446 esac
7447     DSYMUTIL=$ac_ct_DSYMUTIL
7448   fi
7449 else
7450   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7451 fi
7452
7453     if test -n "$ac_tool_prefix"; then
7454   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7455 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457 $as_echo_n "checking for $ac_word... " >&6; }
7458 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   if test -n "$NMEDIT"; then
7462   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7463 else
7464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465 for as_dir in $PATH
7466 do
7467   IFS=$as_save_IFS
7468   test -z "$as_dir" && as_dir=.
7469     for ac_exec_ext in '' $ac_executable_extensions; do
7470   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7471     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473     break 2
7474   fi
7475 done
7476   done
7477 IFS=$as_save_IFS
7478
7479 fi
7480 fi
7481 NMEDIT=$ac_cv_prog_NMEDIT
7482 if test -n "$NMEDIT"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7484 $as_echo "$NMEDIT" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489
7490
7491 fi
7492 if test -z "$ac_cv_prog_NMEDIT"; then
7493   ac_ct_NMEDIT=$NMEDIT
7494   # Extract the first word of "nmedit", so it can be a program name with args.
7495 set dummy nmedit; ac_word=$2
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7497 $as_echo_n "checking for $ac_word... " >&6; }
7498 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7499   $as_echo_n "(cached) " >&6
7500 else
7501   if test -n "$ac_ct_NMEDIT"; then
7502   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7503 else
7504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7505 for as_dir in $PATH
7506 do
7507   IFS=$as_save_IFS
7508   test -z "$as_dir" && as_dir=.
7509     for ac_exec_ext in '' $ac_executable_extensions; do
7510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7511     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7513     break 2
7514   fi
7515 done
7516   done
7517 IFS=$as_save_IFS
7518
7519 fi
7520 fi
7521 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7522 if test -n "$ac_ct_NMEDIT"; then
7523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7524 $as_echo "$ac_ct_NMEDIT" >&6; }
7525 else
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7527 $as_echo "no" >&6; }
7528 fi
7529
7530   if test "x$ac_ct_NMEDIT" = x; then
7531     NMEDIT=":"
7532   else
7533     case $cross_compiling:$ac_tool_warned in
7534 yes:)
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7537 ac_tool_warned=yes ;;
7538 esac
7539     NMEDIT=$ac_ct_NMEDIT
7540   fi
7541 else
7542   NMEDIT="$ac_cv_prog_NMEDIT"
7543 fi
7544
7545     if test -n "$ac_tool_prefix"; then
7546   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7547 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7549 $as_echo_n "checking for $ac_word... " >&6; }
7550 if test "${ac_cv_prog_LIPO+set}" = set; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553   if test -n "$LIPO"; then
7554   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7555 else
7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 for as_dir in $PATH
7558 do
7559   IFS=$as_save_IFS
7560   test -z "$as_dir" && as_dir=.
7561     for ac_exec_ext in '' $ac_executable_extensions; do
7562   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7563     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7565     break 2
7566   fi
7567 done
7568   done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 LIPO=$ac_cv_prog_LIPO
7574 if test -n "$LIPO"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7576 $as_echo "$LIPO" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_LIPO"; then
7585   ac_ct_LIPO=$LIPO
7586   # Extract the first word of "lipo", so it can be a program name with args.
7587 set dummy lipo; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   if test -n "$ac_ct_LIPO"; then
7594   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7595 else
7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7597 for as_dir in $PATH
7598 do
7599   IFS=$as_save_IFS
7600   test -z "$as_dir" && as_dir=.
7601     for ac_exec_ext in '' $ac_executable_extensions; do
7602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7603     ac_cv_prog_ac_ct_LIPO="lipo"
7604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7605     break 2
7606   fi
7607 done
7608   done
7609 IFS=$as_save_IFS
7610
7611 fi
7612 fi
7613 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7614 if test -n "$ac_ct_LIPO"; then
7615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7616 $as_echo "$ac_ct_LIPO" >&6; }
7617 else
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7619 $as_echo "no" >&6; }
7620 fi
7621
7622   if test "x$ac_ct_LIPO" = x; then
7623     LIPO=":"
7624   else
7625     case $cross_compiling:$ac_tool_warned in
7626 yes:)
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7628 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7629 ac_tool_warned=yes ;;
7630 esac
7631     LIPO=$ac_ct_LIPO
7632   fi
7633 else
7634   LIPO="$ac_cv_prog_LIPO"
7635 fi
7636
7637     if test -n "$ac_tool_prefix"; then
7638   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7639 set dummy ${ac_tool_prefix}otool; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$OTOOL"; then
7646   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 OTOOL=$ac_cv_prog_OTOOL
7666 if test -n "$OTOOL"; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7668 $as_echo "$OTOOL" >&6; }
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674
7675 fi
7676 if test -z "$ac_cv_prog_OTOOL"; then
7677   ac_ct_OTOOL=$OTOOL
7678   # Extract the first word of "otool", so it can be a program name with args.
7679 set dummy otool; ac_word=$2
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681 $as_echo_n "checking for $ac_word... " >&6; }
7682 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7683   $as_echo_n "(cached) " >&6
7684 else
7685   if test -n "$ac_ct_OTOOL"; then
7686   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7687 else
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693     for ac_exec_ext in '' $ac_executable_extensions; do
7694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695     ac_cv_prog_ac_ct_OTOOL="otool"
7696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700   done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7706 if test -n "$ac_ct_OTOOL"; then
7707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7708 $as_echo "$ac_ct_OTOOL" >&6; }
7709 else
7710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 $as_echo "no" >&6; }
7712 fi
7713
7714   if test "x$ac_ct_OTOOL" = x; then
7715     OTOOL=":"
7716   else
7717     case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723     OTOOL=$ac_ct_OTOOL
7724   fi
7725 else
7726   OTOOL="$ac_cv_prog_OTOOL"
7727 fi
7728
7729     if test -n "$ac_tool_prefix"; then
7730   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7731 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   if test -n "$OTOOL64"; then
7738   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7739 else
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_exec_ext in '' $ac_executable_extensions; do
7746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7747     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749     break 2
7750   fi
7751 done
7752   done
7753 IFS=$as_save_IFS
7754
7755 fi
7756 fi
7757 OTOOL64=$ac_cv_prog_OTOOL64
7758 if test -n "$OTOOL64"; then
7759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7760 $as_echo "$OTOOL64" >&6; }
7761 else
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766
7767 fi
7768 if test -z "$ac_cv_prog_OTOOL64"; then
7769   ac_ct_OTOOL64=$OTOOL64
7770   # Extract the first word of "otool64", so it can be a program name with args.
7771 set dummy otool64; ac_word=$2
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7773 $as_echo_n "checking for $ac_word... " >&6; }
7774 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7775   $as_echo_n "(cached) " >&6
7776 else
7777   if test -n "$ac_ct_OTOOL64"; then
7778   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7779 else
7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 for as_dir in $PATH
7782 do
7783   IFS=$as_save_IFS
7784   test -z "$as_dir" && as_dir=.
7785     for ac_exec_ext in '' $ac_executable_extensions; do
7786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7787     ac_cv_prog_ac_ct_OTOOL64="otool64"
7788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7789     break 2
7790   fi
7791 done
7792   done
7793 IFS=$as_save_IFS
7794
7795 fi
7796 fi
7797 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7798 if test -n "$ac_ct_OTOOL64"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7800 $as_echo "$ac_ct_OTOOL64" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805
7806   if test "x$ac_ct_OTOOL64" = x; then
7807     OTOOL64=":"
7808   else
7809     case $cross_compiling:$ac_tool_warned in
7810 yes:)
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7812 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7813 ac_tool_warned=yes ;;
7814 esac
7815     OTOOL64=$ac_ct_OTOOL64
7816   fi
7817 else
7818   OTOOL64="$ac_cv_prog_OTOOL64"
7819 fi
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
7847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7848 $as_echo_n "checking for -single_module linker flag... " >&6; }
7849 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7850   $as_echo_n "(cached) " >&6
7851 else
7852   lt_cv_apple_cc_single_mod=no
7853       if test -z "${LT_MULTI_MODULE}"; then
7854         # By default we will add the -single_module flag. You can override
7855         # by either setting the environment variable LT_MULTI_MODULE
7856         # non-empty at configure time, or by adding -multi_module to the
7857         # link flags.
7858         rm -rf libconftest.dylib*
7859         echo "int foo(void){return 1;}" > conftest.c
7860         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7861 -dynamiclib -Wl,-single_module conftest.c" >&5
7862         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7863           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7864         _lt_result=$?
7865         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7866           lt_cv_apple_cc_single_mod=yes
7867         else
7868           cat conftest.err >&5
7869         fi
7870         rm -rf libconftest.dylib*
7871         rm -f conftest.*
7872       fi
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7875 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7877 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7878 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   lt_cv_ld_exported_symbols_list=no
7882       save_LDFLAGS=$LDFLAGS
7883       echo "_main" > conftest.sym
7884       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7885       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h.  */
7887
7888 int
7889 main ()
7890 {
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 if ac_fn_c_try_link "$LINENO"; then :
7897   lt_cv_ld_exported_symbols_list=yes
7898 else
7899   lt_cv_ld_exported_symbols_list=no
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext \
7902     conftest$ac_exeext conftest.$ac_ext
7903         LDFLAGS="$save_LDFLAGS"
7904
7905 fi
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7907 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7909 $as_echo_n "checking for -force_load linker flag... " >&6; }
7910 if test "${lt_cv_ld_force_load+set}" = set; then :
7911   $as_echo_n "(cached) " >&6
7912 else
7913   lt_cv_ld_force_load=no
7914       cat > conftest.c << _LT_EOF
7915 int forced_loaded() { return 2;}
7916 _LT_EOF
7917       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7918       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7919       echo "$AR cru libconftest.a conftest.o" >&5
7920       $AR cru libconftest.a conftest.o 2>&5
7921       cat > conftest.c << _LT_EOF
7922 int main() { return 0;}
7923 _LT_EOF
7924       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7925       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7926       _lt_result=$?
7927       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7928         lt_cv_ld_force_load=yes
7929       else
7930         cat conftest.err >&5
7931       fi
7932         rm -f conftest.err libconftest.a conftest conftest.c
7933         rm -rf conftest.dSYM
7934
7935 fi
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7937 $as_echo "$lt_cv_ld_force_load" >&6; }
7938     case $host_os in
7939     rhapsody* | darwin1.[012])
7940       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941     darwin1.*)
7942       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943     darwin*) # darwin 5.x on
7944       # if running on 10.5 or later, the deployment target defaults
7945       # to the OS version, if on x86, and 10.4, the deployment
7946       # target defaults to 10.4. Don't you love it?
7947       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950         10.[012][,.]*)
7951           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952         10.*)
7953           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7954       esac
7955     ;;
7956   esac
7957     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958       _lt_dar_single_mod='$single_module'
7959     fi
7960     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962     else
7963       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7964     fi
7965     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7966       _lt_dsymutil='~$DSYMUTIL $lib || :'
7967     else
7968       _lt_dsymutil=
7969     fi
7970     ;;
7971   esac
7972
7973 for ac_header in dlfcn.h
7974 do :
7975   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976 "
7977 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7978   cat >>confdefs.h <<_ACEOF
7979 #define HAVE_DLFCN_H 1
7980 _ACEOF
7981
7982 fi
7983
7984 done
7985
7986
7987
7988
7989
7990 # Set options
7991 enable_dlopen=yes
7992
7993
7994
7995
7996   enable_win32_dll=no
7997
7998
7999
8000   # Check whether --enable-static was given.
8001 if test "${enable_static+set}" = set; then :
8002   enableval=$enable_static; p=${PACKAGE-default}
8003     case $enableval in
8004     yes) enable_static=yes ;;
8005     no) enable_static=no ;;
8006     *)
8007      enable_static=no
8008       # Look at the argument we got.  We use all the common list separators.
8009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010       for pkg in $enableval; do
8011         IFS="$lt_save_ifs"
8012         if test "X$pkg" = "X$p"; then
8013           enable_static=yes
8014         fi
8015       done
8016       IFS="$lt_save_ifs"
8017       ;;
8018     esac
8019 else
8020   enable_static=yes
8021 fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032 # Check whether --with-pic was given.
8033 if test "${with_pic+set}" = set; then :
8034   withval=$with_pic; pic_mode="$withval"
8035 else
8036   pic_mode=default
8037 fi
8038
8039
8040 test -z "$pic_mode" && pic_mode=default
8041
8042
8043
8044
8045
8046
8047
8048   # Check whether --enable-fast-install was given.
8049 if test "${enable_fast_install+set}" = set; then :
8050   enableval=$enable_fast_install; p=${PACKAGE-default}
8051     case $enableval in
8052     yes) enable_fast_install=yes ;;
8053     no) enable_fast_install=no ;;
8054     *)
8055       enable_fast_install=no
8056       # Look at the argument we got.  We use all the common list separators.
8057       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8058       for pkg in $enableval; do
8059         IFS="$lt_save_ifs"
8060         if test "X$pkg" = "X$p"; then
8061           enable_fast_install=yes
8062         fi
8063       done
8064       IFS="$lt_save_ifs"
8065       ;;
8066     esac
8067 else
8068   enable_fast_install=yes
8069 fi
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081 # This can be used to rebuild libtool when needed
8082 LIBTOOL_DEPS="$ltmain"
8083
8084 # Always use our own libtool.
8085 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
8112 test -z "$LN_S" && LN_S="ln -s"
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127 if test -n "${ZSH_VERSION+set}" ; then
8128    setopt NO_GLOB_SUBST
8129 fi
8130
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8132 $as_echo_n "checking for objdir... " >&6; }
8133 if test "${lt_cv_objdir+set}" = set; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   rm -f .libs 2>/dev/null
8137 mkdir .libs 2>/dev/null
8138 if test -d .libs; then
8139   lt_cv_objdir=.libs
8140 else
8141   # MS-DOS does not allow filenames that begin with a dot.
8142   lt_cv_objdir=_libs
8143 fi
8144 rmdir .libs 2>/dev/null
8145 fi
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8147 $as_echo "$lt_cv_objdir" >&6; }
8148 objdir=$lt_cv_objdir
8149
8150
8151
8152
8153
8154 cat >>confdefs.h <<_ACEOF
8155 #define LT_OBJDIR "$lt_cv_objdir/"
8156 _ACEOF
8157
8158
8159
8160
8161 case $host_os in
8162 aix3*)
8163   # AIX sometimes has problems with the GCC collect2 program.  For some
8164   # reason, if we set the COLLECT_NAMES environment variable, the problems
8165   # vanish in a puff of smoke.
8166   if test "X${COLLECT_NAMES+set}" != Xset; then
8167     COLLECT_NAMES=
8168     export COLLECT_NAMES
8169   fi
8170   ;;
8171 esac
8172
8173 # Global variables:
8174 ofile=libtool
8175 can_build_shared=yes
8176
8177 # All known linkers require a `.a' archive for static linking (except MSVC,
8178 # which needs '.lib').
8179 libext=a
8180
8181 with_gnu_ld="$lt_cv_prog_gnu_ld"
8182
8183 old_CC="$CC"
8184 old_CFLAGS="$CFLAGS"
8185
8186 # Set sane defaults for various variables
8187 test -z "$CC" && CC=cc
8188 test -z "$LTCC" && LTCC=$CC
8189 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8190 test -z "$LD" && LD=ld
8191 test -z "$ac_objext" && ac_objext=o
8192
8193 for cc_temp in $compiler""; do
8194   case $cc_temp in
8195     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8196     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8197     \-*) ;;
8198     *) break;;
8199   esac
8200 done
8201 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8202
8203
8204 # Only perform the check for file, if the check method requires it
8205 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8206 case $deplibs_check_method in
8207 file_magic*)
8208   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8210 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8211 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8212   $as_echo_n "(cached) " >&6
8213 else
8214   case $MAGIC_CMD in
8215 [\\/*] |  ?:[\\/]*)
8216   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8217   ;;
8218 *)
8219   lt_save_MAGIC_CMD="$MAGIC_CMD"
8220   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222   for ac_dir in $ac_dummy; do
8223     IFS="$lt_save_ifs"
8224     test -z "$ac_dir" && ac_dir=.
8225     if test -f $ac_dir/${ac_tool_prefix}file; then
8226       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8227       if test -n "$file_magic_test_file"; then
8228         case $deplibs_check_method in
8229         "file_magic "*)
8230           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233             $EGREP "$file_magic_regex" > /dev/null; then
8234             :
8235           else
8236             cat <<_LT_EOF 1>&2
8237
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such.  This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem.  Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8246
8247 _LT_EOF
8248           fi ;;
8249         esac
8250       fi
8251       break
8252     fi
8253   done
8254   IFS="$lt_save_ifs"
8255   MAGIC_CMD="$lt_save_MAGIC_CMD"
8256   ;;
8257 esac
8258 fi
8259
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269
8270
8271
8272
8273 if test -z "$lt_cv_path_MAGIC_CMD"; then
8274   if test -n "$ac_tool_prefix"; then
8275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8276 $as_echo_n "checking for file... " >&6; }
8277 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8278   $as_echo_n "(cached) " >&6
8279 else
8280   case $MAGIC_CMD in
8281 [\\/*] |  ?:[\\/]*)
8282   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8283   ;;
8284 *)
8285   lt_save_MAGIC_CMD="$MAGIC_CMD"
8286   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8287   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8288   for ac_dir in $ac_dummy; do
8289     IFS="$lt_save_ifs"
8290     test -z "$ac_dir" && ac_dir=.
8291     if test -f $ac_dir/file; then
8292       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8293       if test -n "$file_magic_test_file"; then
8294         case $deplibs_check_method in
8295         "file_magic "*)
8296           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8297           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8298           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8299             $EGREP "$file_magic_regex" > /dev/null; then
8300             :
8301           else
8302             cat <<_LT_EOF 1>&2
8303
8304 *** Warning: the command libtool uses to detect shared libraries,
8305 *** $file_magic_cmd, produces output that libtool cannot recognize.
8306 *** The result is that libtool may fail to recognize shared libraries
8307 *** as such.  This will affect the creation of libtool libraries that
8308 *** depend on shared libraries, but programs linked with such libtool
8309 *** libraries will work regardless of this problem.  Nevertheless, you
8310 *** may want to report the problem to your system manager and/or to
8311 *** bug-libtool@gnu.org
8312
8313 _LT_EOF
8314           fi ;;
8315         esac
8316       fi
8317       break
8318     fi
8319   done
8320   IFS="$lt_save_ifs"
8321   MAGIC_CMD="$lt_save_MAGIC_CMD"
8322   ;;
8323 esac
8324 fi
8325
8326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8327 if test -n "$MAGIC_CMD"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8329 $as_echo "$MAGIC_CMD" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334
8335
8336   else
8337     MAGIC_CMD=:
8338   fi
8339 fi
8340
8341   fi
8342   ;;
8343 esac
8344
8345 # Use C for the default configuration in the libtool script
8346
8347 lt_save_CC="$CC"
8348 ac_ext=c
8349 ac_cpp='$CPP $CPPFLAGS'
8350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8353
8354
8355 # Source file extension for C test sources.
8356 ac_ext=c
8357
8358 # Object file extension for compiled C test sources.
8359 objext=o
8360 objext=$objext
8361
8362 # Code to be used in simple compile tests
8363 lt_simple_compile_test_code="int some_variable = 0;"
8364
8365 # Code to be used in simple link tests
8366 lt_simple_link_test_code='int main(){return(0);}'
8367
8368
8369
8370
8371
8372
8373
8374 # If no C compiler was specified, use CC.
8375 LTCC=${LTCC-"$CC"}
8376
8377 # If no C compiler flags were specified, use CFLAGS.
8378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8379
8380 # Allow CC to be a program name with arguments.
8381 compiler=$CC
8382
8383 # Save the default compiler, since it gets overwritten when the other
8384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8385 compiler_DEFAULT=$CC
8386
8387 # save warnings/boilerplate of simple test code
8388 ac_outfile=conftest.$ac_objext
8389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8391 _lt_compiler_boilerplate=`cat conftest.err`
8392 $RM conftest*
8393
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397 _lt_linker_boilerplate=`cat conftest.err`
8398 $RM -r conftest*
8399
8400
8401 ## CAVEAT EMPTOR:
8402 ## There is no encapsulation within the following macros, do not change
8403 ## the running order or otherwise move them around unless you know exactly
8404 ## what you are doing...
8405 if test -n "$compiler"; then
8406
8407 lt_prog_compiler_no_builtin_flag=
8408
8409 if test "$GCC" = yes; then
8410   case $cc_basename in
8411   nvcc*)
8412     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8413   *)
8414     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8415   esac
8416
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8418 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8419 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   lt_cv_prog_compiler_rtti_exceptions=no
8423    ac_outfile=conftest.$ac_objext
8424    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8425    lt_compiler_flag="-fno-rtti -fno-exceptions"
8426    # Insert the option either (1) after the last *FLAGS variable, or
8427    # (2) before a word containing "conftest.", or (3) at the end.
8428    # Note that $ac_compile itself does not contain backslashes and begins
8429    # with a dollar sign (not a hyphen), so the echo should work correctly.
8430    # The option is referenced via a variable to avoid confusing sed.
8431    lt_compile=`echo "$ac_compile" | $SED \
8432    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8433    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8434    -e 's:$: $lt_compiler_flag:'`
8435    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8436    (eval "$lt_compile" 2>conftest.err)
8437    ac_status=$?
8438    cat conftest.err >&5
8439    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440    if (exit $ac_status) && test -s "$ac_outfile"; then
8441      # The compiler can only warn and ignore the option if not recognized
8442      # So say no if there are warnings other than the usual output.
8443      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8444      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8445      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8446        lt_cv_prog_compiler_rtti_exceptions=yes
8447      fi
8448    fi
8449    $RM conftest*
8450
8451 fi
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8453 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8454
8455 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8456     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8457 else
8458     :
8459 fi
8460
8461 fi
8462
8463
8464
8465
8466
8467
8468   lt_prog_compiler_wl=
8469 lt_prog_compiler_pic=
8470 lt_prog_compiler_static=
8471
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8473 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8474
8475   if test "$GCC" = yes; then
8476     lt_prog_compiler_wl='-Wl,'
8477     lt_prog_compiler_static='-static'
8478
8479     case $host_os in
8480       aix*)
8481       # All AIX code is PIC.
8482       if test "$host_cpu" = ia64; then
8483         # AIX 5 now supports IA64 processor
8484         lt_prog_compiler_static='-Bstatic'
8485       fi
8486       lt_prog_compiler_pic='-fPIC'
8487       ;;
8488
8489     amigaos*)
8490       case $host_cpu in
8491       powerpc)
8492             # see comment about AmigaOS4 .so support
8493             lt_prog_compiler_pic='-fPIC'
8494         ;;
8495       m68k)
8496             # FIXME: we need at least 68020 code to build shared libraries, but
8497             # adding the `-m68020' flag to GCC prevents building anything better,
8498             # like `-m68040'.
8499             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8500         ;;
8501       esac
8502       ;;
8503
8504     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8505       # PIC is the default for these OSes.
8506       ;;
8507
8508     mingw* | cygwin* | pw32* | os2* | cegcc*)
8509       # This hack is so that the source file can tell whether it is being
8510       # built for inclusion in a dll (and should export symbols for example).
8511       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8512       # (--disable-auto-import) libraries
8513       lt_prog_compiler_pic='-DDLL_EXPORT'
8514       ;;
8515
8516     darwin* | rhapsody*)
8517       # PIC is the default on this platform
8518       # Common symbols not allowed in MH_DYLIB files
8519       lt_prog_compiler_pic='-fno-common'
8520       ;;
8521
8522     haiku*)
8523       # PIC is the default for Haiku.
8524       # The "-static" flag exists, but is broken.
8525       lt_prog_compiler_static=
8526       ;;
8527
8528     hpux*)
8529       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8530       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8531       # sets the default TLS model and affects inlining.
8532       case $host_cpu in
8533       hppa*64*)
8534         # +Z the default
8535         ;;
8536       *)
8537         lt_prog_compiler_pic='-fPIC'
8538         ;;
8539       esac
8540       ;;
8541
8542     interix[3-9]*)
8543       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8544       # Instead, we relocate shared libraries at runtime.
8545       ;;
8546
8547     msdosdjgpp*)
8548       # Just because we use GCC doesn't mean we suddenly get shared libraries
8549       # on systems that don't support them.
8550       lt_prog_compiler_can_build_shared=no
8551       enable_shared=no
8552       ;;
8553
8554     *nto* | *qnx*)
8555       # QNX uses GNU C++, but need to define -shared option too, otherwise
8556       # it will coredump.
8557       lt_prog_compiler_pic='-fPIC -shared'
8558       ;;
8559
8560     sysv4*MP*)
8561       if test -d /usr/nec; then
8562         lt_prog_compiler_pic=-Kconform_pic
8563       fi
8564       ;;
8565
8566     *)
8567       lt_prog_compiler_pic='-fPIC'
8568       ;;
8569     esac
8570
8571     case $cc_basename in
8572     nvcc*) # Cuda Compiler Driver 2.2
8573       lt_prog_compiler_wl='-Xlinker '
8574       lt_prog_compiler_pic='-Xcompiler -fPIC'
8575       ;;
8576     esac
8577   else
8578     # PORTME Check for flag to pass linker flags through the system compiler.
8579     case $host_os in
8580     aix*)
8581       lt_prog_compiler_wl='-Wl,'
8582       if test "$host_cpu" = ia64; then
8583         # AIX 5 now supports IA64 processor
8584         lt_prog_compiler_static='-Bstatic'
8585       else
8586         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8587       fi
8588       ;;
8589
8590     mingw* | cygwin* | pw32* | os2* | cegcc*)
8591       # This hack is so that the source file can tell whether it is being
8592       # built for inclusion in a dll (and should export symbols for example).
8593       lt_prog_compiler_pic='-DDLL_EXPORT'
8594       ;;
8595
8596     hpux9* | hpux10* | hpux11*)
8597       lt_prog_compiler_wl='-Wl,'
8598       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8599       # not for PA HP-UX.
8600       case $host_cpu in
8601       hppa*64*|ia64*)
8602         # +Z the default
8603         ;;
8604       *)
8605         lt_prog_compiler_pic='+Z'
8606         ;;
8607       esac
8608       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8609       lt_prog_compiler_static='${wl}-a ${wl}archive'
8610       ;;
8611
8612     irix5* | irix6* | nonstopux*)
8613       lt_prog_compiler_wl='-Wl,'
8614       # PIC (with -KPIC) is the default.
8615       lt_prog_compiler_static='-non_shared'
8616       ;;
8617
8618     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8619       case $cc_basename in
8620       # old Intel for x86_64 which still supported -KPIC.
8621       ecc*)
8622         lt_prog_compiler_wl='-Wl,'
8623         lt_prog_compiler_pic='-KPIC'
8624         lt_prog_compiler_static='-static'
8625         ;;
8626       # icc used to be incompatible with GCC.
8627       # ICC 10 doesn't accept -KPIC any more.
8628       icc* | ifort*)
8629         lt_prog_compiler_wl='-Wl,'
8630         lt_prog_compiler_pic='-fPIC'
8631         lt_prog_compiler_static='-static'
8632         ;;
8633       # Lahey Fortran 8.1.
8634       lf95*)
8635         lt_prog_compiler_wl='-Wl,'
8636         lt_prog_compiler_pic='--shared'
8637         lt_prog_compiler_static='--static'
8638         ;;
8639       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8640         # Portland Group compilers (*not* the Pentium gcc compiler,
8641         # which looks to be a dead project)
8642         lt_prog_compiler_wl='-Wl,'
8643         lt_prog_compiler_pic='-fpic'
8644         lt_prog_compiler_static='-Bstatic'
8645         ;;
8646       ccc*)
8647         lt_prog_compiler_wl='-Wl,'
8648         # All Alpha code is PIC.
8649         lt_prog_compiler_static='-non_shared'
8650         ;;
8651       xl* | bgxl* | bgf* | mpixl*)
8652         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8653         lt_prog_compiler_wl='-Wl,'
8654         lt_prog_compiler_pic='-qpic'
8655         lt_prog_compiler_static='-qstaticlink'
8656         ;;
8657       *)
8658         case `$CC -V 2>&1 | sed 5q` in
8659         *Sun\ F* | *Sun*Fortran*)
8660           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8661           lt_prog_compiler_pic='-KPIC'
8662           lt_prog_compiler_static='-Bstatic'
8663           lt_prog_compiler_wl=''
8664           ;;
8665         *Sun\ C*)
8666           # Sun C 5.9
8667           lt_prog_compiler_pic='-KPIC'
8668           lt_prog_compiler_static='-Bstatic'
8669           lt_prog_compiler_wl='-Wl,'
8670           ;;
8671         esac
8672         ;;
8673       esac
8674       ;;
8675
8676     newsos6)
8677       lt_prog_compiler_pic='-KPIC'
8678       lt_prog_compiler_static='-Bstatic'
8679       ;;
8680
8681     *nto* | *qnx*)
8682       # QNX uses GNU C++, but need to define -shared option too, otherwise
8683       # it will coredump.
8684       lt_prog_compiler_pic='-fPIC -shared'
8685       ;;
8686
8687     osf3* | osf4* | osf5*)
8688       lt_prog_compiler_wl='-Wl,'
8689       # All OSF/1 code is PIC.
8690       lt_prog_compiler_static='-non_shared'
8691       ;;
8692
8693     rdos*)
8694       lt_prog_compiler_static='-non_shared'
8695       ;;
8696
8697     solaris*)
8698       lt_prog_compiler_pic='-KPIC'
8699       lt_prog_compiler_static='-Bstatic'
8700       case $cc_basename in
8701       f77* | f90* | f95*)
8702         lt_prog_compiler_wl='-Qoption ld ';;
8703       *)
8704         lt_prog_compiler_wl='-Wl,';;
8705       esac
8706       ;;
8707
8708     sunos4*)
8709       lt_prog_compiler_wl='-Qoption ld '
8710       lt_prog_compiler_pic='-PIC'
8711       lt_prog_compiler_static='-Bstatic'
8712       ;;
8713
8714     sysv4 | sysv4.2uw2* | sysv4.3*)
8715       lt_prog_compiler_wl='-Wl,'
8716       lt_prog_compiler_pic='-KPIC'
8717       lt_prog_compiler_static='-Bstatic'
8718       ;;
8719
8720     sysv4*MP*)
8721       if test -d /usr/nec ;then
8722         lt_prog_compiler_pic='-Kconform_pic'
8723         lt_prog_compiler_static='-Bstatic'
8724       fi
8725       ;;
8726
8727     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8728       lt_prog_compiler_wl='-Wl,'
8729       lt_prog_compiler_pic='-KPIC'
8730       lt_prog_compiler_static='-Bstatic'
8731       ;;
8732
8733     unicos*)
8734       lt_prog_compiler_wl='-Wl,'
8735       lt_prog_compiler_can_build_shared=no
8736       ;;
8737
8738     uts4*)
8739       lt_prog_compiler_pic='-pic'
8740       lt_prog_compiler_static='-Bstatic'
8741       ;;
8742
8743     *)
8744       lt_prog_compiler_can_build_shared=no
8745       ;;
8746     esac
8747   fi
8748
8749 case $host_os in
8750   # For platforms which do not support PIC, -DPIC is meaningless:
8751   *djgpp*)
8752     lt_prog_compiler_pic=
8753     ;;
8754   *)
8755     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8756     ;;
8757 esac
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8759 $as_echo "$lt_prog_compiler_pic" >&6; }
8760
8761
8762
8763
8764
8765
8766 #
8767 # Check to make sure the PIC flag actually works.
8768 #
8769 if test -n "$lt_prog_compiler_pic"; then
8770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8771 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8772 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8773   $as_echo_n "(cached) " >&6
8774 else
8775   lt_cv_prog_compiler_pic_works=no
8776    ac_outfile=conftest.$ac_objext
8777    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8779    # Insert the option either (1) after the last *FLAGS variable, or
8780    # (2) before a word containing "conftest.", or (3) at the end.
8781    # Note that $ac_compile itself does not contain backslashes and begins
8782    # with a dollar sign (not a hyphen), so the echo should work correctly.
8783    # The option is referenced via a variable to avoid confusing sed.
8784    lt_compile=`echo "$ac_compile" | $SED \
8785    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8786    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8787    -e 's:$: $lt_compiler_flag:'`
8788    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8789    (eval "$lt_compile" 2>conftest.err)
8790    ac_status=$?
8791    cat conftest.err >&5
8792    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793    if (exit $ac_status) && test -s "$ac_outfile"; then
8794      # The compiler can only warn and ignore the option if not recognized
8795      # So say no if there are warnings other than the usual output.
8796      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8797      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8798      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8799        lt_cv_prog_compiler_pic_works=yes
8800      fi
8801    fi
8802    $RM conftest*
8803
8804 fi
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8806 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8807
8808 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8809     case $lt_prog_compiler_pic in
8810      "" | " "*) ;;
8811      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8812      esac
8813 else
8814     lt_prog_compiler_pic=
8815      lt_prog_compiler_can_build_shared=no
8816 fi
8817
8818 fi
8819
8820
8821
8822
8823
8824
8825 #
8826 # Check to make sure the static flag actually works.
8827 #
8828 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8830 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8831 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   lt_cv_prog_compiler_static_works=no
8835    save_LDFLAGS="$LDFLAGS"
8836    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8837    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8838    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8839      # The linker can only warn and ignore the option if not recognized
8840      # So say no if there are warnings
8841      if test -s conftest.err; then
8842        # Append any errors to the config.log.
8843        cat conftest.err 1>&5
8844        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8845        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8846        if diff conftest.exp conftest.er2 >/dev/null; then
8847          lt_cv_prog_compiler_static_works=yes
8848        fi
8849      else
8850        lt_cv_prog_compiler_static_works=yes
8851      fi
8852    fi
8853    $RM -r conftest*
8854    LDFLAGS="$save_LDFLAGS"
8855
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8858 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8859
8860 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8861     :
8862 else
8863     lt_prog_compiler_static=
8864 fi
8865
8866
8867
8868
8869
8870
8871
8872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8873 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8874 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8875   $as_echo_n "(cached) " >&6
8876 else
8877   lt_cv_prog_compiler_c_o=no
8878    $RM -r conftest 2>/dev/null
8879    mkdir conftest
8880    cd conftest
8881    mkdir out
8882    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8883
8884    lt_compiler_flag="-o out/conftest2.$ac_objext"
8885    # Insert the option either (1) after the last *FLAGS variable, or
8886    # (2) before a word containing "conftest.", or (3) at the end.
8887    # Note that $ac_compile itself does not contain backslashes and begins
8888    # with a dollar sign (not a hyphen), so the echo should work correctly.
8889    lt_compile=`echo "$ac_compile" | $SED \
8890    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8891    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8892    -e 's:$: $lt_compiler_flag:'`
8893    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8894    (eval "$lt_compile" 2>out/conftest.err)
8895    ac_status=$?
8896    cat out/conftest.err >&5
8897    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8899    then
8900      # The compiler can only warn and ignore the option if not recognized
8901      # So say no if there are warnings
8902      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8903      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8904      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8905        lt_cv_prog_compiler_c_o=yes
8906      fi
8907    fi
8908    chmod u+w . 2>&5
8909    $RM conftest*
8910    # SGI C++ compiler will create directory out/ii_files/ for
8911    # template instantiation
8912    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8913    $RM out/* && rmdir out
8914    cd ..
8915    $RM -r conftest
8916    $RM conftest*
8917
8918 fi
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8920 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8921
8922
8923
8924
8925
8926
8927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8929 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   lt_cv_prog_compiler_c_o=no
8933    $RM -r conftest 2>/dev/null
8934    mkdir conftest
8935    cd conftest
8936    mkdir out
8937    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8938
8939    lt_compiler_flag="-o out/conftest2.$ac_objext"
8940    # Insert the option either (1) after the last *FLAGS variable, or
8941    # (2) before a word containing "conftest.", or (3) at the end.
8942    # Note that $ac_compile itself does not contain backslashes and begins
8943    # with a dollar sign (not a hyphen), so the echo should work correctly.
8944    lt_compile=`echo "$ac_compile" | $SED \
8945    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8946    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8947    -e 's:$: $lt_compiler_flag:'`
8948    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8949    (eval "$lt_compile" 2>out/conftest.err)
8950    ac_status=$?
8951    cat out/conftest.err >&5
8952    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8954    then
8955      # The compiler can only warn and ignore the option if not recognized
8956      # So say no if there are warnings
8957      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8958      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8959      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8960        lt_cv_prog_compiler_c_o=yes
8961      fi
8962    fi
8963    chmod u+w . 2>&5
8964    $RM conftest*
8965    # SGI C++ compiler will create directory out/ii_files/ for
8966    # template instantiation
8967    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8968    $RM out/* && rmdir out
8969    cd ..
8970    $RM -r conftest
8971    $RM conftest*
8972
8973 fi
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8975 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8976
8977
8978
8979
8980 hard_links="nottested"
8981 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8982   # do not overwrite the value of need_locks provided by the user
8983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8984 $as_echo_n "checking if we can lock with hard links... " >&6; }
8985   hard_links=yes
8986   $RM conftest*
8987   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988   touch conftest.a
8989   ln conftest.a conftest.b 2>&5 || hard_links=no
8990   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8992 $as_echo "$hard_links" >&6; }
8993   if test "$hard_links" = no; then
8994     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8996     need_locks=warn
8997   fi
8998 else
8999   need_locks=no
9000 fi
9001
9002
9003
9004
9005
9006
9007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9008 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9009
9010   runpath_var=
9011   allow_undefined_flag=
9012   always_export_symbols=no
9013   archive_cmds=
9014   archive_expsym_cmds=
9015   compiler_needs_object=no
9016   enable_shared_with_static_runtimes=no
9017   export_dynamic_flag_spec=
9018   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9019   hardcode_automatic=no
9020   hardcode_direct=no
9021   hardcode_direct_absolute=no
9022   hardcode_libdir_flag_spec=
9023   hardcode_libdir_flag_spec_ld=
9024   hardcode_libdir_separator=
9025   hardcode_minus_L=no
9026   hardcode_shlibpath_var=unsupported
9027   inherit_rpath=no
9028   link_all_deplibs=unknown
9029   module_cmds=
9030   module_expsym_cmds=
9031   old_archive_from_new_cmds=
9032   old_archive_from_expsyms_cmds=
9033   thread_safe_flag_spec=
9034   whole_archive_flag_spec=
9035   # include_expsyms should be a list of space-separated symbols to be *always*
9036   # included in the symbol list
9037   include_expsyms=
9038   # exclude_expsyms can be an extended regexp of symbols to exclude
9039   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9040   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9041   # as well as any symbol that contains `d'.
9042   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9043   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9044   # platforms (ab)use it in PIC code, but their linkers get confused if
9045   # the symbol is explicitly referenced.  Since portable code cannot
9046   # rely on this symbol name, it's probably fine to never include it in
9047   # preloaded symbol tables.
9048   # Exclude shared library initialization/finalization symbols.
9049   extract_expsyms_cmds=
9050
9051   case $host_os in
9052   cygwin* | mingw* | pw32* | cegcc*)
9053     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9054     # When not using gcc, we currently assume that we are using
9055     # Microsoft Visual C++.
9056     if test "$GCC" != yes; then
9057       with_gnu_ld=no
9058     fi
9059     ;;
9060   interix*)
9061     # we just hope/assume this is gcc and not c89 (= MSVC++)
9062     with_gnu_ld=yes
9063     ;;
9064   openbsd*)
9065     with_gnu_ld=no
9066     ;;
9067   esac
9068
9069   ld_shlibs=yes
9070
9071   # On some targets, GNU ld is compatible enough with the native linker
9072   # that we're better off using the native interface for both.
9073   lt_use_gnu_ld_interface=no
9074   if test "$with_gnu_ld" = yes; then
9075     case $host_os in
9076       aix*)
9077         # The AIX port of GNU ld has always aspired to compatibility
9078         # with the native linker.  However, as the warning in the GNU ld
9079         # block says, versions before 2.19.5* couldn't really create working
9080         # shared libraries, regardless of the interface used.
9081         case `$LD -v 2>&1` in
9082           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9083           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9084           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9085           *)
9086             lt_use_gnu_ld_interface=yes
9087             ;;
9088         esac
9089         ;;
9090       *)
9091         lt_use_gnu_ld_interface=yes
9092         ;;
9093     esac
9094   fi
9095
9096   if test "$lt_use_gnu_ld_interface" = yes; then
9097     # If archive_cmds runs LD, not CC, wlarc should be empty
9098     wlarc='${wl}'
9099
9100     # Set some defaults for GNU ld with shared library support. These
9101     # are reset later if shared libraries are not supported. Putting them
9102     # here allows them to be overridden if necessary.
9103     runpath_var=LD_RUN_PATH
9104     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9105     export_dynamic_flag_spec='${wl}--export-dynamic'
9106     # ancient GNU ld didn't support --whole-archive et. al.
9107     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9108       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9109     else
9110       whole_archive_flag_spec=
9111     fi
9112     supports_anon_versioning=no
9113     case `$LD -v 2>&1` in
9114       *GNU\ gold*) supports_anon_versioning=yes ;;
9115       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9116       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9117       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9118       *\ 2.11.*) ;; # other 2.11 versions
9119       *) supports_anon_versioning=yes ;;
9120     esac
9121
9122     # See if GNU ld supports shared libraries.
9123     case $host_os in
9124     aix[3-9]*)
9125       # On AIX/PPC, the GNU linker is very broken
9126       if test "$host_cpu" != ia64; then
9127         ld_shlibs=no
9128         cat <<_LT_EOF 1>&2
9129
9130 *** Warning: the GNU linker, at least up to release 2.19, is reported
9131 *** to be unable to reliably create shared libraries on AIX.
9132 *** Therefore, libtool is disabling shared libraries support.  If you
9133 *** really care for shared libraries, you may want to install binutils
9134 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9135 *** You will then need to restart the configuration process.
9136
9137 _LT_EOF
9138       fi
9139       ;;
9140
9141     amigaos*)
9142       case $host_cpu in
9143       powerpc)
9144             # see comment about AmigaOS4 .so support
9145             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9146             archive_expsym_cmds=''
9147         ;;
9148       m68k)
9149             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)'
9150             hardcode_libdir_flag_spec='-L$libdir'
9151             hardcode_minus_L=yes
9152         ;;
9153       esac
9154       ;;
9155
9156     beos*)
9157       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9158         allow_undefined_flag=unsupported
9159         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9160         # support --undefined.  This deserves some investigation.  FIXME
9161         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162       else
9163         ld_shlibs=no
9164       fi
9165       ;;
9166
9167     cygwin* | mingw* | pw32* | cegcc*)
9168       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9169       # as there is no search path for DLLs.
9170       hardcode_libdir_flag_spec='-L$libdir'
9171       export_dynamic_flag_spec='${wl}--export-all-symbols'
9172       allow_undefined_flag=unsupported
9173       always_export_symbols=no
9174       enable_shared_with_static_runtimes=yes
9175       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9176
9177       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9178         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9179         # If the export-symbols file already is a .def file (1st line
9180         # is EXPORTS), use it as is; otherwise, prepend...
9181         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9182           cp $export_symbols $output_objdir/$soname.def;
9183         else
9184           echo EXPORTS > $output_objdir/$soname.def;
9185           cat $export_symbols >> $output_objdir/$soname.def;
9186         fi~
9187         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9188       else
9189         ld_shlibs=no
9190       fi
9191       ;;
9192
9193     haiku*)
9194       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195       link_all_deplibs=yes
9196       ;;
9197
9198     interix[3-9]*)
9199       hardcode_direct=no
9200       hardcode_shlibpath_var=no
9201       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9202       export_dynamic_flag_spec='${wl}-E'
9203       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9204       # Instead, shared libraries are loaded at an image base (0x10000000 by
9205       # default) and relocated if they conflict, which is a slow very memory
9206       # consuming and fragmenting process.  To avoid this, we pick a random,
9207       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9208       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9209       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9210       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'
9211       ;;
9212
9213     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9214       tmp_diet=no
9215       if test "$host_os" = linux-dietlibc; then
9216         case $cc_basename in
9217           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9218         esac
9219       fi
9220       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9221          && test "$tmp_diet" = no
9222       then
9223         tmp_addflag=' $pic_flag'
9224         tmp_sharedflag='-shared'
9225         case $cc_basename,$host_cpu in
9226         pgcc*)                          # Portland Group C compiler
9227           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'
9228           tmp_addflag=' $pic_flag'
9229           ;;
9230         pgf77* | pgf90* | pgf95* | pgfortran*)
9231                                         # Portland Group f77 and f90 compilers
9232           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'
9233           tmp_addflag=' $pic_flag -Mnomain' ;;
9234         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9235           tmp_addflag=' -i_dynamic' ;;
9236         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9237           tmp_addflag=' -i_dynamic -nofor_main' ;;
9238         ifc* | ifort*)                  # Intel Fortran compiler
9239           tmp_addflag=' -nofor_main' ;;
9240         lf95*)                          # Lahey Fortran 8.1
9241           whole_archive_flag_spec=
9242           tmp_sharedflag='--shared' ;;
9243         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9244           tmp_sharedflag='-qmkshrobj'
9245           tmp_addflag= ;;
9246         nvcc*)  # Cuda Compiler Driver 2.2
9247           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'
9248           compiler_needs_object=yes
9249           ;;
9250         esac
9251         case `$CC -V 2>&1 | sed 5q` in
9252         *Sun\ C*)                       # Sun C 5.9
9253           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'
9254           compiler_needs_object=yes
9255           tmp_sharedflag='-G' ;;
9256         *Sun\ F*)                       # Sun Fortran 8.3
9257           tmp_sharedflag='-G' ;;
9258         esac
9259         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9260
9261         if test "x$supports_anon_versioning" = xyes; then
9262           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9263             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9264             echo "local: *; };" >> $output_objdir/$libname.ver~
9265             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9266         fi
9267
9268         case $cc_basename in
9269         xlf* | bgf* | bgxlf* | mpixlf*)
9270           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9271           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9272           hardcode_libdir_flag_spec=
9273           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9274           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9275           if test "x$supports_anon_versioning" = xyes; then
9276             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9277               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9278               echo "local: *; };" >> $output_objdir/$libname.ver~
9279               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9280           fi
9281           ;;
9282         esac
9283       else
9284         ld_shlibs=no
9285       fi
9286       ;;
9287
9288     netbsd*)
9289       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9290         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9291         wlarc=
9292       else
9293         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295       fi
9296       ;;
9297
9298     solaris*)
9299       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9300         ld_shlibs=no
9301         cat <<_LT_EOF 1>&2
9302
9303 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9304 *** create shared libraries on Solaris systems.  Therefore, libtool
9305 *** is disabling shared libraries support.  We urge you to upgrade GNU
9306 *** binutils to release 2.9.1 or newer.  Another option is to modify
9307 *** your PATH or compiler configuration so that the native linker is
9308 *** used, and then restart.
9309
9310 _LT_EOF
9311       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9312         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9313         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9314       else
9315         ld_shlibs=no
9316       fi
9317       ;;
9318
9319     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9320       case `$LD -v 2>&1` in
9321         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9322         ld_shlibs=no
9323         cat <<_LT_EOF 1>&2
9324
9325 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9326 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9327 *** is disabling shared libraries support.  We urge you to upgrade GNU
9328 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9329 *** your PATH or compiler configuration so that the native linker is
9330 *** used, and then restart.
9331
9332 _LT_EOF
9333         ;;
9334         *)
9335           # For security reasons, it is highly recommended that you always
9336           # use absolute paths for naming shared libraries, and exclude the
9337           # DT_RUNPATH tag from executables and libraries.  But doing so
9338           # requires that you compile everything twice, which is a pain.
9339           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9340             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9341             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9342             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9343           else
9344             ld_shlibs=no
9345           fi
9346         ;;
9347       esac
9348       ;;
9349
9350     sunos4*)
9351       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9352       wlarc=
9353       hardcode_direct=yes
9354       hardcode_shlibpath_var=no
9355       ;;
9356
9357     *)
9358       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9361       else
9362         ld_shlibs=no
9363       fi
9364       ;;
9365     esac
9366
9367     if test "$ld_shlibs" = no; then
9368       runpath_var=
9369       hardcode_libdir_flag_spec=
9370       export_dynamic_flag_spec=
9371       whole_archive_flag_spec=
9372     fi
9373   else
9374     # PORTME fill in a description of your system's linker (not GNU ld)
9375     case $host_os in
9376     aix3*)
9377       allow_undefined_flag=unsupported
9378       always_export_symbols=yes
9379       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'
9380       # Note: this linker hardcodes the directories in LIBPATH if there
9381       # are no directories specified by -L.
9382       hardcode_minus_L=yes
9383       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9384         # Neither direct hardcoding nor static linking is supported with a
9385         # broken collect2.
9386         hardcode_direct=unsupported
9387       fi
9388       ;;
9389
9390     aix[4-9]*)
9391       if test "$host_cpu" = ia64; then
9392         # On IA64, the linker does run time linking by default, so we don't
9393         # have to do anything special.
9394         aix_use_runtimelinking=no
9395         exp_sym_flag='-Bexport'
9396         no_entry_flag=""
9397       else
9398         # If we're using GNU nm, then we don't want the "-C" option.
9399         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9400         # Also, AIX nm treats weak defined symbols like other global
9401         # defined symbols, whereas GNU nm marks them as "W".
9402         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9403           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'
9404         else
9405           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'
9406         fi
9407         aix_use_runtimelinking=no
9408
9409         # Test if we are trying to use run time linking or normal
9410         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9411         # need to do runtime linking.
9412         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9413           for ld_flag in $LDFLAGS; do
9414           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9415             aix_use_runtimelinking=yes
9416             break
9417           fi
9418           done
9419           ;;
9420         esac
9421
9422         exp_sym_flag='-bexport'
9423         no_entry_flag='-bnoentry'
9424       fi
9425
9426       # When large executables or shared objects are built, AIX ld can
9427       # have problems creating the table of contents.  If linking a library
9428       # or program results in "error TOC overflow" add -mminimal-toc to
9429       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9430       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9431
9432       archive_cmds=''
9433       hardcode_direct=yes
9434       hardcode_direct_absolute=yes
9435       hardcode_libdir_separator=':'
9436       link_all_deplibs=yes
9437       file_list_spec='${wl}-f,'
9438
9439       if test "$GCC" = yes; then
9440         case $host_os in aix4.[012]|aix4.[012].*)
9441         # We only want to do this on AIX 4.2 and lower, the check
9442         # below for broken collect2 doesn't work under 4.3+
9443           collect2name=`${CC} -print-prog-name=collect2`
9444           if test -f "$collect2name" &&
9445            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9446           then
9447           # We have reworked collect2
9448           :
9449           else
9450           # We have old collect2
9451           hardcode_direct=unsupported
9452           # It fails to find uninstalled libraries when the uninstalled
9453           # path is not listed in the libpath.  Setting hardcode_minus_L
9454           # to unsupported forces relinking
9455           hardcode_minus_L=yes
9456           hardcode_libdir_flag_spec='-L$libdir'
9457           hardcode_libdir_separator=
9458           fi
9459           ;;
9460         esac
9461         shared_flag='-shared'
9462         if test "$aix_use_runtimelinking" = yes; then
9463           shared_flag="$shared_flag "'${wl}-G'
9464         fi
9465       else
9466         # not using gcc
9467         if test "$host_cpu" = ia64; then
9468         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9469         # chokes on -Wl,-G. The following line is correct:
9470           shared_flag='-G'
9471         else
9472           if test "$aix_use_runtimelinking" = yes; then
9473             shared_flag='${wl}-G'
9474           else
9475             shared_flag='${wl}-bM:SRE'
9476           fi
9477         fi
9478       fi
9479
9480       export_dynamic_flag_spec='${wl}-bexpall'
9481       # It seems that -bexpall does not export symbols beginning with
9482       # underscore (_), so it is better to generate a list of symbols to export.
9483       always_export_symbols=yes
9484       if test "$aix_use_runtimelinking" = yes; then
9485         # Warning - without using the other runtime loading flags (-brtl),
9486         # -berok will link without error, but may produce a broken library.
9487         allow_undefined_flag='-berok'
9488         # Determine the default libpath from the value encoded in an
9489         # empty executable.
9490         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h.  */
9492
9493 int
9494 main ()
9495 {
9496
9497   ;
9498   return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"; then :
9502
9503 lt_aix_libpath_sed='
9504     /Import File Strings/,/^$/ {
9505         /^0/ {
9506             s/^0  *\(.*\)$/\1/
9507             p
9508         }
9509     }'
9510 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511 # Check for a 64-bit object if we didn't find anything.
9512 if test -z "$aix_libpath"; then
9513   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9514 fi
9515 fi
9516 rm -f core conftest.err conftest.$ac_objext \
9517     conftest$ac_exeext conftest.$ac_ext
9518 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9519
9520         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9521         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"
9522       else
9523         if test "$host_cpu" = ia64; then
9524           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9525           allow_undefined_flag="-z nodefs"
9526           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"
9527         else
9528          # Determine the default libpath from the value encoded in an
9529          # empty executable.
9530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h.  */
9532
9533 int
9534 main ()
9535 {
9536
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542
9543 lt_aix_libpath_sed='
9544     /Import File Strings/,/^$/ {
9545         /^0/ {
9546             s/^0  *\(.*\)$/\1/
9547             p
9548         }
9549     }'
9550 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 # Check for a 64-bit object if we didn't find anything.
9552 if test -z "$aix_libpath"; then
9553   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9554 fi
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557     conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9559
9560          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561           # Warning - without using the other run time loading flags,
9562           # -berok will link without error, but may produce a broken library.
9563           no_undefined_flag=' ${wl}-bernotok'
9564           allow_undefined_flag=' ${wl}-berok'
9565           if test "$with_gnu_ld" = yes; then
9566             # We only use this code for GNU lds that support --whole-archive.
9567             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9568           else
9569             # Exported symbols can be pulled into shared objects from archives
9570             whole_archive_flag_spec='$convenience'
9571           fi
9572           archive_cmds_need_lc=yes
9573           # This is similar to how AIX traditionally builds its shared libraries.
9574           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'
9575         fi
9576       fi
9577       ;;
9578
9579     amigaos*)
9580       case $host_cpu in
9581       powerpc)
9582             # see comment about AmigaOS4 .so support
9583             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9584             archive_expsym_cmds=''
9585         ;;
9586       m68k)
9587             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)'
9588             hardcode_libdir_flag_spec='-L$libdir'
9589             hardcode_minus_L=yes
9590         ;;
9591       esac
9592       ;;
9593
9594     bsdi[45]*)
9595       export_dynamic_flag_spec=-rdynamic
9596       ;;
9597
9598     cygwin* | mingw* | pw32* | cegcc*)
9599       # When not using gcc, we currently assume that we are using
9600       # Microsoft Visual C++.
9601       # hardcode_libdir_flag_spec is actually meaningless, as there is
9602       # no search path for DLLs.
9603       hardcode_libdir_flag_spec=' '
9604       allow_undefined_flag=unsupported
9605       # Tell ltmain to make .lib files, not .a files.
9606       libext=lib
9607       # Tell ltmain to make .dll files, not .so files.
9608       shrext_cmds=".dll"
9609       # FIXME: Setting linknames here is a bad hack.
9610       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9611       # The linker will automatically build a .lib file if we build a DLL.
9612       old_archive_from_new_cmds='true'
9613       # FIXME: Should let the user specify the lib program.
9614       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9615       fix_srcfile_path='`cygpath -w "$srcfile"`'
9616       enable_shared_with_static_runtimes=yes
9617       ;;
9618
9619     darwin* | rhapsody*)
9620
9621
9622   archive_cmds_need_lc=no
9623   hardcode_direct=no
9624   hardcode_automatic=yes
9625   hardcode_shlibpath_var=unsupported
9626   if test "$lt_cv_ld_force_load" = "yes"; then
9627     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\"`'
9628   else
9629     whole_archive_flag_spec=''
9630   fi
9631   link_all_deplibs=yes
9632   allow_undefined_flag="$_lt_dar_allow_undefined"
9633   case $cc_basename in
9634      ifort*) _lt_dar_can_shared=yes ;;
9635      *) _lt_dar_can_shared=$GCC ;;
9636   esac
9637   if test "$_lt_dar_can_shared" = "yes"; then
9638     output_verbose_link_cmd=func_echo_all
9639     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9640     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9641     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}"
9642     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}"
9643
9644   else
9645   ld_shlibs=no
9646   fi
9647
9648       ;;
9649
9650     dgux*)
9651       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9652       hardcode_libdir_flag_spec='-L$libdir'
9653       hardcode_shlibpath_var=no
9654       ;;
9655
9656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9657     # support.  Future versions do this automatically, but an explicit c++rt0.o
9658     # does not break anything, and helps significantly (at the cost of a little
9659     # extra space).
9660     freebsd2.2*)
9661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9662       hardcode_libdir_flag_spec='-R$libdir'
9663       hardcode_direct=yes
9664       hardcode_shlibpath_var=no
9665       ;;
9666
9667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9668     freebsd2.*)
9669       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9670       hardcode_direct=yes
9671       hardcode_minus_L=yes
9672       hardcode_shlibpath_var=no
9673       ;;
9674
9675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9676     freebsd* | dragonfly*)
9677       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9678       hardcode_libdir_flag_spec='-R$libdir'
9679       hardcode_direct=yes
9680       hardcode_shlibpath_var=no
9681       ;;
9682
9683     hpux9*)
9684       if test "$GCC" = yes; then
9685         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'
9686       else
9687         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'
9688       fi
9689       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690       hardcode_libdir_separator=:
9691       hardcode_direct=yes
9692
9693       # hardcode_minus_L: Not really in the search PATH,
9694       # but as the default location of the library.
9695       hardcode_minus_L=yes
9696       export_dynamic_flag_spec='${wl}-E'
9697       ;;
9698
9699     hpux10*)
9700       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9701         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9702       else
9703         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9704       fi
9705       if test "$with_gnu_ld" = no; then
9706         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9707         hardcode_libdir_flag_spec_ld='+b $libdir'
9708         hardcode_libdir_separator=:
9709         hardcode_direct=yes
9710         hardcode_direct_absolute=yes
9711         export_dynamic_flag_spec='${wl}-E'
9712         # hardcode_minus_L: Not really in the search PATH,
9713         # but as the default location of the library.
9714         hardcode_minus_L=yes
9715       fi
9716       ;;
9717
9718     hpux11*)
9719       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9720         case $host_cpu in
9721         hppa*64*)
9722           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9723           ;;
9724         ia64*)
9725           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9726           ;;
9727         *)
9728           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729           ;;
9730         esac
9731       else
9732         case $host_cpu in
9733         hppa*64*)
9734           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9735           ;;
9736         ia64*)
9737           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9738           ;;
9739         *)
9740
9741           # Older versions of the 11.00 compiler do not understand -b yet
9742           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9744 $as_echo_n "checking if $CC understands -b... " >&6; }
9745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9746   $as_echo_n "(cached) " >&6
9747 else
9748   lt_cv_prog_compiler__b=no
9749    save_LDFLAGS="$LDFLAGS"
9750    LDFLAGS="$LDFLAGS -b"
9751    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9753      # The linker can only warn and ignore the option if not recognized
9754      # So say no if there are warnings
9755      if test -s conftest.err; then
9756        # Append any errors to the config.log.
9757        cat conftest.err 1>&5
9758        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9760        if diff conftest.exp conftest.er2 >/dev/null; then
9761          lt_cv_prog_compiler__b=yes
9762        fi
9763      else
9764        lt_cv_prog_compiler__b=yes
9765      fi
9766    fi
9767    $RM -r conftest*
9768    LDFLAGS="$save_LDFLAGS"
9769
9770 fi
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9773
9774 if test x"$lt_cv_prog_compiler__b" = xyes; then
9775     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9776 else
9777     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9778 fi
9779
9780           ;;
9781         esac
9782       fi
9783       if test "$with_gnu_ld" = no; then
9784         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9785         hardcode_libdir_separator=:
9786
9787         case $host_cpu in
9788         hppa*64*|ia64*)
9789           hardcode_direct=no
9790           hardcode_shlibpath_var=no
9791           ;;
9792         *)
9793           hardcode_direct=yes
9794           hardcode_direct_absolute=yes
9795           export_dynamic_flag_spec='${wl}-E'
9796
9797           # hardcode_minus_L: Not really in the search PATH,
9798           # but as the default location of the library.
9799           hardcode_minus_L=yes
9800           ;;
9801         esac
9802       fi
9803       ;;
9804
9805     irix5* | irix6* | nonstopux*)
9806       if test "$GCC" = yes; then
9807         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'
9808         # Try to use the -exported_symbol ld option, if it does not
9809         # work, assume that -exports_file does not work either and
9810         # implicitly export all symbols.
9811         save_LDFLAGS="$LDFLAGS"
9812         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h.  */
9815 int foo(void) {}
9816 _ACEOF
9817 if ac_fn_c_try_link "$LINENO"; then :
9818   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'
9819
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext \
9822     conftest$ac_exeext conftest.$ac_ext
9823         LDFLAGS="$save_LDFLAGS"
9824       else
9825         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'
9826         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'
9827       fi
9828       archive_cmds_need_lc='no'
9829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9830       hardcode_libdir_separator=:
9831       inherit_rpath=yes
9832       link_all_deplibs=yes
9833       ;;
9834
9835     netbsd*)
9836       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9837         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9838       else
9839         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9840       fi
9841       hardcode_libdir_flag_spec='-R$libdir'
9842       hardcode_direct=yes
9843       hardcode_shlibpath_var=no
9844       ;;
9845
9846     newsos6)
9847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848       hardcode_direct=yes
9849       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9850       hardcode_libdir_separator=:
9851       hardcode_shlibpath_var=no
9852       ;;
9853
9854     *nto* | *qnx*)
9855       ;;
9856
9857     openbsd*)
9858       if test -f /usr/libexec/ld.so; then
9859         hardcode_direct=yes
9860         hardcode_shlibpath_var=no
9861         hardcode_direct_absolute=yes
9862         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9863           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9865           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9866           export_dynamic_flag_spec='${wl}-E'
9867         else
9868           case $host_os in
9869            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9870              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871              hardcode_libdir_flag_spec='-R$libdir'
9872              ;;
9873            *)
9874              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9875              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9876              ;;
9877           esac
9878         fi
9879       else
9880         ld_shlibs=no
9881       fi
9882       ;;
9883
9884     os2*)
9885       hardcode_libdir_flag_spec='-L$libdir'
9886       hardcode_minus_L=yes
9887       allow_undefined_flag=unsupported
9888       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'
9889       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9890       ;;
9891
9892     osf3*)
9893       if test "$GCC" = yes; then
9894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9895         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'
9896       else
9897         allow_undefined_flag=' -expect_unresolved \*'
9898         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'
9899       fi
9900       archive_cmds_need_lc='no'
9901       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9902       hardcode_libdir_separator=:
9903       ;;
9904
9905     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9906       if test "$GCC" = yes; then
9907         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9908         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'
9909         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910       else
9911         allow_undefined_flag=' -expect_unresolved \*'
9912         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'
9913         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~
9914         $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'
9915
9916         # Both c and cxx compiler support -rpath directly
9917         hardcode_libdir_flag_spec='-rpath $libdir'
9918       fi
9919       archive_cmds_need_lc='no'
9920       hardcode_libdir_separator=:
9921       ;;
9922
9923     solaris*)
9924       no_undefined_flag=' -z defs'
9925       if test "$GCC" = yes; then
9926         wlarc='${wl}'
9927         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9928         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9929           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9930       else
9931         case `$CC -V 2>&1` in
9932         *"Compilers 5.0"*)
9933           wlarc=''
9934           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9936           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9937           ;;
9938         *)
9939           wlarc='${wl}'
9940           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9943           ;;
9944         esac
9945       fi
9946       hardcode_libdir_flag_spec='-R$libdir'
9947       hardcode_shlibpath_var=no
9948       case $host_os in
9949       solaris2.[0-5] | solaris2.[0-5].*) ;;
9950       *)
9951         # The compiler driver will combine and reorder linker options,
9952         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9953         # but is careful enough not to reorder.
9954         # Supported since Solaris 2.6 (maybe 2.5.1?)
9955         if test "$GCC" = yes; then
9956           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9957         else
9958           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9959         fi
9960         ;;
9961       esac
9962       link_all_deplibs=yes
9963       ;;
9964
9965     sunos4*)
9966       if test "x$host_vendor" = xsequent; then
9967         # Use $CC to link under sequent, because it throws in some extra .o
9968         # files that make .init and .fini sections work.
9969         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9970       else
9971         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9972       fi
9973       hardcode_libdir_flag_spec='-L$libdir'
9974       hardcode_direct=yes
9975       hardcode_minus_L=yes
9976       hardcode_shlibpath_var=no
9977       ;;
9978
9979     sysv4)
9980       case $host_vendor in
9981         sni)
9982           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9983           hardcode_direct=yes # is this really true???
9984         ;;
9985         siemens)
9986           ## LD is ld it makes a PLAMLIB
9987           ## CC just makes a GrossModule.
9988           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9989           reload_cmds='$CC -r -o $output$reload_objs'
9990           hardcode_direct=no
9991         ;;
9992         motorola)
9993           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9995         ;;
9996       esac
9997       runpath_var='LD_RUN_PATH'
9998       hardcode_shlibpath_var=no
9999       ;;
10000
10001     sysv4.3*)
10002       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003       hardcode_shlibpath_var=no
10004       export_dynamic_flag_spec='-Bexport'
10005       ;;
10006
10007     sysv4*MP*)
10008       if test -d /usr/nec; then
10009         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010         hardcode_shlibpath_var=no
10011         runpath_var=LD_RUN_PATH
10012         hardcode_runpath_var=yes
10013         ld_shlibs=yes
10014       fi
10015       ;;
10016
10017     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10018       no_undefined_flag='${wl}-z,text'
10019       archive_cmds_need_lc=no
10020       hardcode_shlibpath_var=no
10021       runpath_var='LD_RUN_PATH'
10022
10023       if test "$GCC" = yes; then
10024         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026       else
10027         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10028         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10029       fi
10030       ;;
10031
10032     sysv5* | sco3.2v5* | sco5v6*)
10033       # Note: We can NOT use -z defs as we might desire, because we do not
10034       # link with -lc, and that would cause any symbols used from libc to
10035       # always be unresolved, which means just about no library would
10036       # ever link correctly.  If we're not using GNU ld we use -z text
10037       # though, which does catch some bad symbols but isn't as heavy-handed
10038       # as -z defs.
10039       no_undefined_flag='${wl}-z,text'
10040       allow_undefined_flag='${wl}-z,nodefs'
10041       archive_cmds_need_lc=no
10042       hardcode_shlibpath_var=no
10043       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10044       hardcode_libdir_separator=':'
10045       link_all_deplibs=yes
10046       export_dynamic_flag_spec='${wl}-Bexport'
10047       runpath_var='LD_RUN_PATH'
10048
10049       if test "$GCC" = yes; then
10050         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052       else
10053         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10054         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10055       fi
10056       ;;
10057
10058     uts4*)
10059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10060       hardcode_libdir_flag_spec='-L$libdir'
10061       hardcode_shlibpath_var=no
10062       ;;
10063
10064     *)
10065       ld_shlibs=no
10066       ;;
10067     esac
10068
10069     if test x$host_vendor = xsni; then
10070       case $host in
10071       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10072         export_dynamic_flag_spec='${wl}-Blargedynsym'
10073         ;;
10074       esac
10075     fi
10076   fi
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10079 $as_echo "$ld_shlibs" >&6; }
10080 test "$ld_shlibs" = no && can_build_shared=no
10081
10082 with_gnu_ld=$with_gnu_ld
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098 #
10099 # Do we need to explicitly link libc?
10100 #
10101 case "x$archive_cmds_need_lc" in
10102 x|xyes)
10103   # Assume -lc should be added
10104   archive_cmds_need_lc=yes
10105
10106   if test "$enable_shared" = yes && test "$GCC" = yes; then
10107     case $archive_cmds in
10108     *'~'*)
10109       # FIXME: we may have to deal with multi-command sequences.
10110       ;;
10111     '$CC '*)
10112       # Test whether the compiler implicitly links with -lc since on some
10113       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10114       # to ld, don't add -lc before -lgcc.
10115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10118   $as_echo_n "(cached) " >&6
10119 else
10120   $RM conftest*
10121         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10122
10123         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10124   (eval $ac_compile) 2>&5
10125   ac_status=$?
10126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10127   test $ac_status = 0; } 2>conftest.err; then
10128           soname=conftest
10129           lib=conftest
10130           libobjs=conftest.$ac_objext
10131           deplibs=
10132           wl=$lt_prog_compiler_wl
10133           pic_flag=$lt_prog_compiler_pic
10134           compiler_flags=-v
10135           linker_flags=-v
10136           verstring=
10137           output_objdir=.
10138           libname=conftest
10139           lt_save_allow_undefined_flag=$allow_undefined_flag
10140           allow_undefined_flag=
10141           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10142   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10143   ac_status=$?
10144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145   test $ac_status = 0; }
10146           then
10147             lt_cv_archive_cmds_need_lc=no
10148           else
10149             lt_cv_archive_cmds_need_lc=yes
10150           fi
10151           allow_undefined_flag=$lt_save_allow_undefined_flag
10152         else
10153           cat conftest.err 1>&5
10154         fi
10155         $RM conftest*
10156
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10160       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10161       ;;
10162     esac
10163   fi
10164   ;;
10165 esac
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
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10325
10326 if test "$GCC" = yes; then
10327   case $host_os in
10328     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10329     *) lt_awk_arg="/^libraries:/" ;;
10330   esac
10331   case $host_os in
10332     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10333     *) lt_sed_strip_eq="s,=/,/,g" ;;
10334   esac
10335   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10336   case $lt_search_path_spec in
10337   *\;*)
10338     # if the path contains ";" then we assume it to be the separator
10339     # otherwise default to the standard path separator (i.e. ":") - it is
10340     # assumed that no part of a normal pathname contains ";" but that should
10341     # okay in the real world where ";" in dirpaths is itself problematic.
10342     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10343     ;;
10344   *)
10345     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10346     ;;
10347   esac
10348   # Ok, now we have the path, separated by spaces, we can step through it
10349   # and add multilib dir if necessary.
10350   lt_tmp_lt_search_path_spec=
10351   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10352   for lt_sys_path in $lt_search_path_spec; do
10353     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10354       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10355     else
10356       test -d "$lt_sys_path" && \
10357         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10358     fi
10359   done
10360   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10361 BEGIN {RS=" "; FS="/|\n";} {
10362   lt_foo="";
10363   lt_count=0;
10364   for (lt_i = NF; lt_i > 0; lt_i--) {
10365     if ($lt_i != "" && $lt_i != ".") {
10366       if ($lt_i == "..") {
10367         lt_count++;
10368       } else {
10369         if (lt_count == 0) {
10370           lt_foo="/" $lt_i lt_foo;
10371         } else {
10372           lt_count--;
10373         }
10374       }
10375     }
10376   }
10377   if (lt_foo != "") { lt_freq[lt_foo]++; }
10378   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10379 }'`
10380   # AWK program above erroneously prepends '/' to C:/dos/paths
10381   # for these hosts.
10382   case $host_os in
10383     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10384       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10385   esac
10386   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10387 else
10388   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10389 fi
10390 library_names_spec=
10391 libname_spec='lib$name'
10392 soname_spec=
10393 shrext_cmds=".so"
10394 postinstall_cmds=
10395 postuninstall_cmds=
10396 finish_cmds=
10397 finish_eval=
10398 shlibpath_var=
10399 shlibpath_overrides_runpath=unknown
10400 version_type=none
10401 dynamic_linker="$host_os ld.so"
10402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10403 need_lib_prefix=unknown
10404 hardcode_into_libs=no
10405
10406 # when you set need_version to no, make sure it does not cause -set_version
10407 # flags to be left without arguments
10408 need_version=unknown
10409
10410 case $host_os in
10411 aix3*)
10412   version_type=linux
10413   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10414   shlibpath_var=LIBPATH
10415
10416   # AIX 3 has no versioning support, so we append a major version to the name.
10417   soname_spec='${libname}${release}${shared_ext}$major'
10418   ;;
10419
10420 aix[4-9]*)
10421   version_type=linux
10422   need_lib_prefix=no
10423   need_version=no
10424   hardcode_into_libs=yes
10425   if test "$host_cpu" = ia64; then
10426     # AIX 5 supports IA64
10427     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10428     shlibpath_var=LD_LIBRARY_PATH
10429   else
10430     # With GCC up to 2.95.x, collect2 would create an import file
10431     # for dependence libraries.  The import file would start with
10432     # the line `#! .'.  This would cause the generated library to
10433     # depend on `.', always an invalid library.  This was fixed in
10434     # development snapshots of GCC prior to 3.0.
10435     case $host_os in
10436       aix4 | aix4.[01] | aix4.[01].*)
10437       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10438            echo ' yes '
10439            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10440         :
10441       else
10442         can_build_shared=no
10443       fi
10444       ;;
10445     esac
10446     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10447     # soname into executable. Probably we can add versioning support to
10448     # collect2, so additional links can be useful in future.
10449     if test "$aix_use_runtimelinking" = yes; then
10450       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10451       # instead of lib<name>.a to let people know that these are not
10452       # typical AIX shared libraries.
10453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454     else
10455       # We preserve .a as extension for shared libraries through AIX4.2
10456       # and later when we are not doing run time linking.
10457       library_names_spec='${libname}${release}.a $libname.a'
10458       soname_spec='${libname}${release}${shared_ext}$major'
10459     fi
10460     shlibpath_var=LIBPATH
10461   fi
10462   ;;
10463
10464 amigaos*)
10465   case $host_cpu in
10466   powerpc)
10467     # Since July 2007 AmigaOS4 officially supports .so libraries.
10468     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470     ;;
10471   m68k)
10472     library_names_spec='$libname.ixlibrary $libname.a'
10473     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10474     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'
10475     ;;
10476   esac
10477   ;;
10478
10479 beos*)
10480   library_names_spec='${libname}${shared_ext}'
10481   dynamic_linker="$host_os ld.so"
10482   shlibpath_var=LIBRARY_PATH
10483   ;;
10484
10485 bsdi[45]*)
10486   version_type=linux
10487   need_version=no
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10491   shlibpath_var=LD_LIBRARY_PATH
10492   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10493   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10494   # the default ld.so.conf also contains /usr/contrib/lib and
10495   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10496   # libtool to hard-code these into programs
10497   ;;
10498
10499 cygwin* | mingw* | pw32* | cegcc*)
10500   version_type=windows
10501   shrext_cmds=".dll"
10502   need_version=no
10503   need_lib_prefix=no
10504
10505   case $GCC,$host_os in
10506   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10507     library_names_spec='$libname.dll.a'
10508     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10509     postinstall_cmds='base_file=`basename \${file}`~
10510       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10511       dldir=$destdir/`dirname \$dlpath`~
10512       test -d \$dldir || mkdir -p \$dldir~
10513       $install_prog $dir/$dlname \$dldir/$dlname~
10514       chmod a+x \$dldir/$dlname~
10515       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10516         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10517       fi'
10518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10519       dlpath=$dir/\$dldll~
10520        $RM \$dlpath'
10521     shlibpath_overrides_runpath=yes
10522
10523     case $host_os in
10524     cygwin*)
10525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10527
10528       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10529       ;;
10530     mingw* | cegcc*)
10531       # MinGW DLLs use traditional 'lib' prefix
10532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10533       ;;
10534     pw32*)
10535       # pw32 DLLs use 'pw' prefix rather than 'lib'
10536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537       ;;
10538     esac
10539     ;;
10540
10541   *)
10542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10543     ;;
10544   esac
10545   dynamic_linker='Win32 ld.exe'
10546   # FIXME: first we should search . and the directory the executable is in
10547   shlibpath_var=PATH
10548   ;;
10549
10550 darwin* | rhapsody*)
10551   dynamic_linker="$host_os dyld"
10552   version_type=darwin
10553   need_lib_prefix=no
10554   need_version=no
10555   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10556   soname_spec='${libname}${release}${major}$shared_ext'
10557   shlibpath_overrides_runpath=yes
10558   shlibpath_var=DYLD_LIBRARY_PATH
10559   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10560
10561   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10563   ;;
10564
10565 dgux*)
10566   version_type=linux
10567   need_lib_prefix=no
10568   need_version=no
10569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10570   soname_spec='${libname}${release}${shared_ext}$major'
10571   shlibpath_var=LD_LIBRARY_PATH
10572   ;;
10573
10574 freebsd* | dragonfly*)
10575   # DragonFly does not have aout.  When/if they implement a new
10576   # versioning mechanism, adjust this.
10577   if test -x /usr/bin/objformat; then
10578     objformat=`/usr/bin/objformat`
10579   else
10580     case $host_os in
10581     freebsd[23].*) objformat=aout ;;
10582     *) objformat=elf ;;
10583     esac
10584   fi
10585   version_type=freebsd-$objformat
10586   case $version_type in
10587     freebsd-elf*)
10588       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10589       need_version=no
10590       need_lib_prefix=no
10591       ;;
10592     freebsd-*)
10593       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10594       need_version=yes
10595       ;;
10596   esac
10597   shlibpath_var=LD_LIBRARY_PATH
10598   case $host_os in
10599   freebsd2.*)
10600     shlibpath_overrides_runpath=yes
10601     ;;
10602   freebsd3.[01]* | freebsdelf3.[01]*)
10603     shlibpath_overrides_runpath=yes
10604     hardcode_into_libs=yes
10605     ;;
10606   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10607   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10608     shlibpath_overrides_runpath=no
10609     hardcode_into_libs=yes
10610     ;;
10611   *) # from 4.6 on, and DragonFly
10612     shlibpath_overrides_runpath=yes
10613     hardcode_into_libs=yes
10614     ;;
10615   esac
10616   ;;
10617
10618 gnu*)
10619   version_type=linux
10620   need_lib_prefix=no
10621   need_version=no
10622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10623   soname_spec='${libname}${release}${shared_ext}$major'
10624   shlibpath_var=LD_LIBRARY_PATH
10625   hardcode_into_libs=yes
10626   ;;
10627
10628 haiku*)
10629   version_type=linux
10630   need_lib_prefix=no
10631   need_version=no
10632   dynamic_linker="$host_os runtime_loader"
10633   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10634   soname_spec='${libname}${release}${shared_ext}$major'
10635   shlibpath_var=LIBRARY_PATH
10636   shlibpath_overrides_runpath=yes
10637   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10638   hardcode_into_libs=yes
10639   ;;
10640
10641 hpux9* | hpux10* | hpux11*)
10642   # Give a soname corresponding to the major version so that dld.sl refuses to
10643   # link against other versions.
10644   version_type=sunos
10645   need_lib_prefix=no
10646   need_version=no
10647   case $host_cpu in
10648   ia64*)
10649     shrext_cmds='.so'
10650     hardcode_into_libs=yes
10651     dynamic_linker="$host_os dld.so"
10652     shlibpath_var=LD_LIBRARY_PATH
10653     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655     soname_spec='${libname}${release}${shared_ext}$major'
10656     if test "X$HPUX_IA64_MODE" = X32; then
10657       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10658     else
10659       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10660     fi
10661     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10662     ;;
10663   hppa*64*)
10664     shrext_cmds='.sl'
10665     hardcode_into_libs=yes
10666     dynamic_linker="$host_os dld.sl"
10667     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10668     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10670     soname_spec='${libname}${release}${shared_ext}$major'
10671     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10672     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10673     ;;
10674   *)
10675     shrext_cmds='.sl'
10676     dynamic_linker="$host_os dld.sl"
10677     shlibpath_var=SHLIB_PATH
10678     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10680     soname_spec='${libname}${release}${shared_ext}$major'
10681     ;;
10682   esac
10683   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10684   postinstall_cmds='chmod 555 $lib'
10685   # or fails outright, so override atomically:
10686   install_override_mode=555
10687   ;;
10688
10689 interix[3-9]*)
10690   version_type=linux
10691   need_lib_prefix=no
10692   need_version=no
10693   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10694   soname_spec='${libname}${release}${shared_ext}$major'
10695   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10696   shlibpath_var=LD_LIBRARY_PATH
10697   shlibpath_overrides_runpath=no
10698   hardcode_into_libs=yes
10699   ;;
10700
10701 irix5* | irix6* | nonstopux*)
10702   case $host_os in
10703     nonstopux*) version_type=nonstopux ;;
10704     *)
10705         if test "$lt_cv_prog_gnu_ld" = yes; then
10706                 version_type=linux
10707         else
10708                 version_type=irix
10709         fi ;;
10710   esac
10711   need_lib_prefix=no
10712   need_version=no
10713   soname_spec='${libname}${release}${shared_ext}$major'
10714   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10715   case $host_os in
10716   irix5* | nonstopux*)
10717     libsuff= shlibsuff=
10718     ;;
10719   *)
10720     case $LD in # libtool.m4 will add one of these switches to LD
10721     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10722       libsuff= shlibsuff= libmagic=32-bit;;
10723     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10724       libsuff=32 shlibsuff=N32 libmagic=N32;;
10725     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10726       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10727     *) libsuff= shlibsuff= libmagic=never-match;;
10728     esac
10729     ;;
10730   esac
10731   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10732   shlibpath_overrides_runpath=no
10733   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10734   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10735   hardcode_into_libs=yes
10736   ;;
10737
10738 # No shared lib support for Linux oldld, aout, or coff.
10739 linux*oldld* | linux*aout* | linux*coff*)
10740   dynamic_linker=no
10741   ;;
10742
10743 # This must be Linux ELF.
10744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10745   version_type=linux
10746   need_lib_prefix=no
10747   need_version=no
10748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749   soname_spec='${libname}${release}${shared_ext}$major'
10750   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10751   shlibpath_var=LD_LIBRARY_PATH
10752   shlibpath_overrides_runpath=no
10753
10754   # Some binutils ld are patched to set DT_RUNPATH
10755   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10756   $as_echo_n "(cached) " >&6
10757 else
10758   lt_cv_shlibpath_overrides_runpath=no
10759     save_LDFLAGS=$LDFLAGS
10760     save_libdir=$libdir
10761     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10762          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10763     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765
10766 int
10767 main ()
10768 {
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10776   lt_cv_shlibpath_overrides_runpath=yes
10777 fi
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext \
10780     conftest$ac_exeext conftest.$ac_ext
10781     LDFLAGS=$save_LDFLAGS
10782     libdir=$save_libdir
10783
10784 fi
10785
10786   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10787
10788   # This implies no fast_install, which is unacceptable.
10789   # Some rework will be needed to allow for fast_install
10790   # before this can be enabled.
10791   hardcode_into_libs=yes
10792
10793   # Append ld.so.conf contents to the search path
10794   if test -f /etc/ld.so.conf; then
10795     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' ' '`
10796     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10797   fi
10798
10799   # We used to test for /lib/ld.so.1 and disable shared libraries on
10800   # powerpc, because MkLinux only supported shared libraries with the
10801   # GNU dynamic linker.  Since this was broken with cross compilers,
10802   # most powerpc-linux boxes support dynamic linking these days and
10803   # people can always --disable-shared, the test was removed, and we
10804   # assume the GNU/Linux dynamic linker is in use.
10805   dynamic_linker='GNU/Linux ld.so'
10806   ;;
10807
10808 netbsd*)
10809   version_type=sunos
10810   need_lib_prefix=no
10811   need_version=no
10812   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815     dynamic_linker='NetBSD (a.out) ld.so'
10816   else
10817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818     soname_spec='${libname}${release}${shared_ext}$major'
10819     dynamic_linker='NetBSD ld.elf_so'
10820   fi
10821   shlibpath_var=LD_LIBRARY_PATH
10822   shlibpath_overrides_runpath=yes
10823   hardcode_into_libs=yes
10824   ;;
10825
10826 newsos6)
10827   version_type=linux
10828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   shlibpath_overrides_runpath=yes
10831   ;;
10832
10833 *nto* | *qnx*)
10834   version_type=qnx
10835   need_lib_prefix=no
10836   need_version=no
10837   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838   soname_spec='${libname}${release}${shared_ext}$major'
10839   shlibpath_var=LD_LIBRARY_PATH
10840   shlibpath_overrides_runpath=no
10841   hardcode_into_libs=yes
10842   dynamic_linker='ldqnx.so'
10843   ;;
10844
10845 openbsd*)
10846   version_type=sunos
10847   sys_lib_dlsearch_path_spec="/usr/lib"
10848   need_lib_prefix=no
10849   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10850   case $host_os in
10851     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10852     *)                          need_version=no  ;;
10853   esac
10854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856   shlibpath_var=LD_LIBRARY_PATH
10857   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10858     case $host_os in
10859       openbsd2.[89] | openbsd2.[89].*)
10860         shlibpath_overrides_runpath=no
10861         ;;
10862       *)
10863         shlibpath_overrides_runpath=yes
10864         ;;
10865       esac
10866   else
10867     shlibpath_overrides_runpath=yes
10868   fi
10869   ;;
10870
10871 os2*)
10872   libname_spec='$name'
10873   shrext_cmds=".dll"
10874   need_lib_prefix=no
10875   library_names_spec='$libname${shared_ext} $libname.a'
10876   dynamic_linker='OS/2 ld.exe'
10877   shlibpath_var=LIBPATH
10878   ;;
10879
10880 osf3* | osf4* | osf5*)
10881   version_type=osf
10882   need_lib_prefix=no
10883   need_version=no
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10889   ;;
10890
10891 rdos*)
10892   dynamic_linker=no
10893   ;;
10894
10895 solaris*)
10896   version_type=linux
10897   need_lib_prefix=no
10898   need_version=no
10899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900   soname_spec='${libname}${release}${shared_ext}$major'
10901   shlibpath_var=LD_LIBRARY_PATH
10902   shlibpath_overrides_runpath=yes
10903   hardcode_into_libs=yes
10904   # ldd complains unless libraries are executable
10905   postinstall_cmds='chmod +x $lib'
10906   ;;
10907
10908 sunos4*)
10909   version_type=sunos
10910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912   shlibpath_var=LD_LIBRARY_PATH
10913   shlibpath_overrides_runpath=yes
10914   if test "$with_gnu_ld" = yes; then
10915     need_lib_prefix=no
10916   fi
10917   need_version=yes
10918   ;;
10919
10920 sysv4 | sysv4.3*)
10921   version_type=linux
10922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923   soname_spec='${libname}${release}${shared_ext}$major'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   case $host_vendor in
10926     sni)
10927       shlibpath_overrides_runpath=no
10928       need_lib_prefix=no
10929       runpath_var=LD_RUN_PATH
10930       ;;
10931     siemens)
10932       need_lib_prefix=no
10933       ;;
10934     motorola)
10935       need_lib_prefix=no
10936       need_version=no
10937       shlibpath_overrides_runpath=no
10938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10939       ;;
10940   esac
10941   ;;
10942
10943 sysv4*MP*)
10944   if test -d /usr/nec ;then
10945     version_type=linux
10946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947     soname_spec='$libname${shared_ext}.$major'
10948     shlibpath_var=LD_LIBRARY_PATH
10949   fi
10950   ;;
10951
10952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953   version_type=freebsd-elf
10954   need_lib_prefix=no
10955   need_version=no
10956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   shlibpath_overrides_runpath=yes
10960   hardcode_into_libs=yes
10961   if test "$with_gnu_ld" = yes; then
10962     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10963   else
10964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10965     case $host_os in
10966       sco3.2v5*)
10967         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10968         ;;
10969     esac
10970   fi
10971   sys_lib_dlsearch_path_spec='/usr/lib'
10972   ;;
10973
10974 tpf*)
10975   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10976   version_type=linux
10977   need_lib_prefix=no
10978   need_version=no
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980   shlibpath_var=LD_LIBRARY_PATH
10981   shlibpath_overrides_runpath=no
10982   hardcode_into_libs=yes
10983   ;;
10984
10985 uts4*)
10986   version_type=linux
10987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   ;;
10991
10992 *)
10993   dynamic_linker=no
10994   ;;
10995 esac
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997 $as_echo "$dynamic_linker" >&6; }
10998 test "$dynamic_linker" = no && can_build_shared=no
10999
11000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001 if test "$GCC" = yes; then
11002   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11003 fi
11004
11005 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11007 fi
11008 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11010 fi
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
11103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11105 hardcode_action=
11106 if test -n "$hardcode_libdir_flag_spec" ||
11107    test -n "$runpath_var" ||
11108    test "X$hardcode_automatic" = "Xyes" ; then
11109
11110   # We can hardcode non-existent directories.
11111   if test "$hardcode_direct" != no &&
11112      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11113      # have to relink, otherwise we might link with an installed library
11114      # when we should be linking with a yet-to-be-installed one
11115      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11116      test "$hardcode_minus_L" != no; then
11117     # Linking always hardcodes the temporary library directory.
11118     hardcode_action=relink
11119   else
11120     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11121     hardcode_action=immediate
11122   fi
11123 else
11124   # We cannot hardcode anything, or else we can only hardcode existing
11125   # directories.
11126   hardcode_action=unsupported
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11129 $as_echo "$hardcode_action" >&6; }
11130
11131 if test "$hardcode_action" = relink ||
11132    test "$inherit_rpath" = yes; then
11133   # Fast installation is not supported
11134   enable_fast_install=no
11135 elif test "$shlibpath_overrides_runpath" = yes ||
11136      test "$enable_shared" = no; then
11137   # Fast installation is not necessary
11138   enable_fast_install=needless
11139 fi
11140
11141
11142
11143
11144
11145
11146   if test "x$enable_dlopen" != xyes; then
11147   enable_dlopen=unknown
11148   enable_dlopen_self=unknown
11149   enable_dlopen_self_static=unknown
11150 else
11151   lt_cv_dlopen=no
11152   lt_cv_dlopen_libs=
11153
11154   case $host_os in
11155   beos*)
11156     lt_cv_dlopen="load_add_on"
11157     lt_cv_dlopen_libs=
11158     lt_cv_dlopen_self=yes
11159     ;;
11160
11161   mingw* | pw32* | cegcc*)
11162     lt_cv_dlopen="LoadLibrary"
11163     lt_cv_dlopen_libs=
11164     ;;
11165
11166   cygwin*)
11167     lt_cv_dlopen="dlopen"
11168     lt_cv_dlopen_libs=
11169     ;;
11170
11171   darwin*)
11172   # if libdl is installed we need to link against it
11173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11174 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11175 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11176   $as_echo_n "(cached) " >&6
11177 else
11178   ac_check_lib_save_LIBS=$LIBS
11179 LIBS="-ldl  $LIBS"
11180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h.  */
11182
11183 /* Override any GCC internal prototype to avoid an error.
11184    Use char because int might match the return type of a GCC
11185    builtin and then its argument prototype would still apply.  */
11186 #ifdef __cplusplus
11187 extern "C"
11188 #endif
11189 char dlopen ();
11190 int
11191 main ()
11192 {
11193 return dlopen ();
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 if ac_fn_c_try_link "$LINENO"; then :
11199   ac_cv_lib_dl_dlopen=yes
11200 else
11201   ac_cv_lib_dl_dlopen=no
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext \
11204     conftest$ac_exeext conftest.$ac_ext
11205 LIBS=$ac_check_lib_save_LIBS
11206 fi
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11208 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11209 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11210   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11211 else
11212
11213     lt_cv_dlopen="dyld"
11214     lt_cv_dlopen_libs=
11215     lt_cv_dlopen_self=yes
11216
11217 fi
11218
11219     ;;
11220
11221   *)
11222     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11223 if test "x$ac_cv_func_shl_load" = x""yes; then :
11224   lt_cv_dlopen="shl_load"
11225 else
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11227 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11228 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11229   $as_echo_n "(cached) " >&6
11230 else
11231   ac_check_lib_save_LIBS=$LIBS
11232 LIBS="-ldld  $LIBS"
11233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h.  */
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237    Use char because int might match the return type of a GCC
11238    builtin and then its argument prototype would still apply.  */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char shl_load ();
11243 int
11244 main ()
11245 {
11246 return shl_load ();
11247   ;
11248   return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_link "$LINENO"; then :
11252   ac_cv_lib_dld_shl_load=yes
11253 else
11254   ac_cv_lib_dld_shl_load=no
11255 fi
11256 rm -f core conftest.err conftest.$ac_objext \
11257     conftest$ac_exeext conftest.$ac_ext
11258 LIBS=$ac_check_lib_save_LIBS
11259 fi
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11261 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11262 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11263   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11264 else
11265   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11266 if test "x$ac_cv_func_dlopen" = x""yes; then :
11267   lt_cv_dlopen="dlopen"
11268 else
11269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11272   $as_echo_n "(cached) " >&6
11273 else
11274   ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-ldl  $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h.  */
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280    Use char because int might match the return type of a GCC
11281    builtin and then its argument prototype would still apply.  */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char dlopen ();
11286 int
11287 main ()
11288 {
11289 return dlopen ();
11290   ;
11291   return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295   ac_cv_lib_dl_dlopen=yes
11296 else
11297   ac_cv_lib_dl_dlopen=no
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300     conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11304 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11305 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11306   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11307 else
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11309 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11310 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11311   $as_echo_n "(cached) " >&6
11312 else
11313   ac_check_lib_save_LIBS=$LIBS
11314 LIBS="-lsvld  $LIBS"
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h.  */
11317
11318 /* Override any GCC internal prototype to avoid an error.
11319    Use char because int might match the return type of a GCC
11320    builtin and then its argument prototype would still apply.  */
11321 #ifdef __cplusplus
11322 extern "C"
11323 #endif
11324 char dlopen ();
11325 int
11326 main ()
11327 {
11328 return dlopen ();
11329   ;
11330   return 0;
11331 }
11332 _ACEOF
11333 if ac_fn_c_try_link "$LINENO"; then :
11334   ac_cv_lib_svld_dlopen=yes
11335 else
11336   ac_cv_lib_svld_dlopen=no
11337 fi
11338 rm -f core conftest.err conftest.$ac_objext \
11339     conftest$ac_exeext conftest.$ac_ext
11340 LIBS=$ac_check_lib_save_LIBS
11341 fi
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11343 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11344 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11345   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11346 else
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11348 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11349 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11350   $as_echo_n "(cached) " >&6
11351 else
11352   ac_check_lib_save_LIBS=$LIBS
11353 LIBS="-ldld  $LIBS"
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h.  */
11356
11357 /* Override any GCC internal prototype to avoid an error.
11358    Use char because int might match the return type of a GCC
11359    builtin and then its argument prototype would still apply.  */
11360 #ifdef __cplusplus
11361 extern "C"
11362 #endif
11363 char dld_link ();
11364 int
11365 main ()
11366 {
11367 return dld_link ();
11368   ;
11369   return 0;
11370 }
11371 _ACEOF
11372 if ac_fn_c_try_link "$LINENO"; then :
11373   ac_cv_lib_dld_dld_link=yes
11374 else
11375   ac_cv_lib_dld_dld_link=no
11376 fi
11377 rm -f core conftest.err conftest.$ac_objext \
11378     conftest$ac_exeext conftest.$ac_ext
11379 LIBS=$ac_check_lib_save_LIBS
11380 fi
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11382 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11383 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11384   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11385 fi
11386
11387
11388 fi
11389
11390
11391 fi
11392
11393
11394 fi
11395
11396
11397 fi
11398
11399
11400 fi
11401
11402     ;;
11403   esac
11404
11405   if test "x$lt_cv_dlopen" != xno; then
11406     enable_dlopen=yes
11407   else
11408     enable_dlopen=no
11409   fi
11410
11411   case $lt_cv_dlopen in
11412   dlopen)
11413     save_CPPFLAGS="$CPPFLAGS"
11414     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11415
11416     save_LDFLAGS="$LDFLAGS"
11417     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11418
11419     save_LIBS="$LIBS"
11420     LIBS="$lt_cv_dlopen_libs $LIBS"
11421
11422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11423 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11424 if test "${lt_cv_dlopen_self+set}" = set; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427           if test "$cross_compiling" = yes; then :
11428   lt_cv_dlopen_self=cross
11429 else
11430   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11431   lt_status=$lt_dlunknown
11432   cat > conftest.$ac_ext <<_LT_EOF
11433 #line 11433 "configure"
11434 #include "confdefs.h"
11435
11436 #if HAVE_DLFCN_H
11437 #include <dlfcn.h>
11438 #endif
11439
11440 #include <stdio.h>
11441
11442 #ifdef RTLD_GLOBAL
11443 #  define LT_DLGLOBAL           RTLD_GLOBAL
11444 #else
11445 #  ifdef DL_GLOBAL
11446 #    define LT_DLGLOBAL         DL_GLOBAL
11447 #  else
11448 #    define LT_DLGLOBAL         0
11449 #  endif
11450 #endif
11451
11452 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11453    find out it does not work in some platform. */
11454 #ifndef LT_DLLAZY_OR_NOW
11455 #  ifdef RTLD_LAZY
11456 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11457 #  else
11458 #    ifdef DL_LAZY
11459 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11460 #    else
11461 #      ifdef RTLD_NOW
11462 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11463 #      else
11464 #        ifdef DL_NOW
11465 #          define LT_DLLAZY_OR_NOW      DL_NOW
11466 #        else
11467 #          define LT_DLLAZY_OR_NOW      0
11468 #        endif
11469 #      endif
11470 #    endif
11471 #  endif
11472 #endif
11473
11474 /* When -fvisbility=hidden is used, assume the code has been annotated
11475    correspondingly for the symbols needed.  */
11476 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11477 void fnord () __attribute__((visibility("default")));
11478 #endif
11479
11480 void fnord () { int i=42; }
11481 int main ()
11482 {
11483   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11484   int status = $lt_dlunknown;
11485
11486   if (self)
11487     {
11488       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11489       else
11490         {
11491           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11492           else puts (dlerror ());
11493         }
11494       /* dlclose (self); */
11495     }
11496   else
11497     puts (dlerror ());
11498
11499   return status;
11500 }
11501 _LT_EOF
11502   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11503   (eval $ac_link) 2>&5
11504   ac_status=$?
11505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11507     (./conftest; exit; ) >&5 2>/dev/null
11508     lt_status=$?
11509     case x$lt_status in
11510       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11511       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11512       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11513     esac
11514   else :
11515     # compilation failed
11516     lt_cv_dlopen_self=no
11517   fi
11518 fi
11519 rm -fr conftest*
11520
11521
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11524 $as_echo "$lt_cv_dlopen_self" >&6; }
11525
11526     if test "x$lt_cv_dlopen_self" = xyes; then
11527       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11528       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11529 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11530 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11531   $as_echo_n "(cached) " >&6
11532 else
11533           if test "$cross_compiling" = yes; then :
11534   lt_cv_dlopen_self_static=cross
11535 else
11536   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537   lt_status=$lt_dlunknown
11538   cat > conftest.$ac_ext <<_LT_EOF
11539 #line 11539 "configure"
11540 #include "confdefs.h"
11541
11542 #if HAVE_DLFCN_H
11543 #include <dlfcn.h>
11544 #endif
11545
11546 #include <stdio.h>
11547
11548 #ifdef RTLD_GLOBAL
11549 #  define LT_DLGLOBAL           RTLD_GLOBAL
11550 #else
11551 #  ifdef DL_GLOBAL
11552 #    define LT_DLGLOBAL         DL_GLOBAL
11553 #  else
11554 #    define LT_DLGLOBAL         0
11555 #  endif
11556 #endif
11557
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559    find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11561 #  ifdef RTLD_LAZY
11562 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11563 #  else
11564 #    ifdef DL_LAZY
11565 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11566 #    else
11567 #      ifdef RTLD_NOW
11568 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11569 #      else
11570 #        ifdef DL_NOW
11571 #          define LT_DLLAZY_OR_NOW      DL_NOW
11572 #        else
11573 #          define LT_DLLAZY_OR_NOW      0
11574 #        endif
11575 #      endif
11576 #    endif
11577 #  endif
11578 #endif
11579
11580 /* When -fvisbility=hidden is used, assume the code has been annotated
11581    correspondingly for the symbols needed.  */
11582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583 void fnord () __attribute__((visibility("default")));
11584 #endif
11585
11586 void fnord () { int i=42; }
11587 int main ()
11588 {
11589   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590   int status = $lt_dlunknown;
11591
11592   if (self)
11593     {
11594       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11595       else
11596         {
11597           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11598           else puts (dlerror ());
11599         }
11600       /* dlclose (self); */
11601     }
11602   else
11603     puts (dlerror ());
11604
11605   return status;
11606 }
11607 _LT_EOF
11608   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11609   (eval $ac_link) 2>&5
11610   ac_status=$?
11611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11613     (./conftest; exit; ) >&5 2>/dev/null
11614     lt_status=$?
11615     case x$lt_status in
11616       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11617       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11618       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11619     esac
11620   else :
11621     # compilation failed
11622     lt_cv_dlopen_self_static=no
11623   fi
11624 fi
11625 rm -fr conftest*
11626
11627
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11630 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11631     fi
11632
11633     CPPFLAGS="$save_CPPFLAGS"
11634     LDFLAGS="$save_LDFLAGS"
11635     LIBS="$save_LIBS"
11636     ;;
11637   esac
11638
11639   case $lt_cv_dlopen_self in
11640   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11641   *) enable_dlopen_self=unknown ;;
11642   esac
11643
11644   case $lt_cv_dlopen_self_static in
11645   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11646   *) enable_dlopen_self_static=unknown ;;
11647   esac
11648 fi
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666 striplib=
11667 old_striplib=
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11669 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11670 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11671   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11672   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11675 else
11676 # FIXME - insert some real tests, host_os isn't really good enough
11677   case $host_os in
11678   darwin*)
11679     if test -n "$STRIP" ; then
11680       striplib="$STRIP -x"
11681       old_striplib="$STRIP -S"
11682       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11683 $as_echo "yes" >&6; }
11684     else
11685       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11687     fi
11688     ;;
11689   *)
11690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691 $as_echo "no" >&6; }
11692     ;;
11693   esac
11694 fi
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707   # Report which library types will actually be built
11708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11709 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11711 $as_echo "$can_build_shared" >&6; }
11712
11713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11714 $as_echo_n "checking whether to build shared libraries... " >&6; }
11715   test "$can_build_shared" = "no" && enable_shared=no
11716
11717   # On AIX, shared libraries and static libraries use the same namespace, and
11718   # are all built from PIC.
11719   case $host_os in
11720   aix3*)
11721     test "$enable_shared" = yes && enable_static=no
11722     if test -n "$RANLIB"; then
11723       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11724       postinstall_cmds='$RANLIB $lib'
11725     fi
11726     ;;
11727
11728   aix[4-9]*)
11729     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11730       test "$enable_shared" = yes && enable_static=no
11731     fi
11732     ;;
11733   esac
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11735 $as_echo "$enable_shared" >&6; }
11736
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11738 $as_echo_n "checking whether to build static libraries... " >&6; }
11739   # Make sure either enable_shared or enable_static is yes.
11740   test "$enable_shared" = yes || enable_static=yes
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11742 $as_echo "$enable_static" >&6; }
11743
11744
11745
11746
11747 fi
11748 ac_ext=c
11749 ac_cpp='$CPP $CPPFLAGS'
11750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
11754 CC="$lt_save_CC"
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768         ac_config_commands="$ac_config_commands libtool"
11769
11770
11771
11772
11773 # Only expand once:
11774
11775
11776
11777 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11778
11779 # The tests for host and target for $enable_largefile require
11780 # canonical names.
11781
11782
11783
11784 # As the $enable_largefile decision depends on --enable-plugins we must set it
11785 # even in directories otherwise not depending on the $plugins option.
11786
11787
11788   maybe_plugins=no
11789   for ac_header in dlfcn.h
11790 do :
11791   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11792 "
11793 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11794   cat >>confdefs.h <<_ACEOF
11795 #define HAVE_DLFCN_H 1
11796 _ACEOF
11797  maybe_plugins=yes
11798 fi
11799
11800 done
11801
11802   for ac_header in windows.h
11803 do :
11804   ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11805 "
11806 if test "x$ac_cv_header_windows_h" = x""yes; then :
11807   cat >>confdefs.h <<_ACEOF
11808 #define HAVE_WINDOWS_H 1
11809 _ACEOF
11810  maybe_plugins=yes
11811 fi
11812
11813 done
11814
11815
11816   # Check whether --enable-plugins was given.
11817 if test "${enable_plugins+set}" = set; then :
11818   enableval=$enable_plugins; case "${enableval}" in
11819       no) plugins=no ;;
11820       *) plugins=yes
11821          if test "$maybe_plugins" != "yes" ; then
11822            as_fn_error "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
11823          fi ;;
11824      esac
11825 else
11826   plugins=$maybe_plugins
11827
11828 fi
11829
11830   if test "$plugins" = "yes"; then
11831     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11832 $as_echo_n "checking for library containing dlsym... " >&6; }
11833 if test "${ac_cv_search_dlsym+set}" = set; then :
11834   $as_echo_n "(cached) " >&6
11835 else
11836   ac_func_search_save_LIBS=$LIBS
11837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11838 /* end confdefs.h.  */
11839
11840 /* Override any GCC internal prototype to avoid an error.
11841    Use char because int might match the return type of a GCC
11842    builtin and then its argument prototype would still apply.  */
11843 #ifdef __cplusplus
11844 extern "C"
11845 #endif
11846 char dlsym ();
11847 int
11848 main ()
11849 {
11850 return dlsym ();
11851   ;
11852   return 0;
11853 }
11854 _ACEOF
11855 for ac_lib in '' dl; do
11856   if test -z "$ac_lib"; then
11857     ac_res="none required"
11858   else
11859     ac_res=-l$ac_lib
11860     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11861   fi
11862   if ac_fn_c_try_link "$LINENO"; then :
11863   ac_cv_search_dlsym=$ac_res
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext \
11866     conftest$ac_exeext
11867   if test "${ac_cv_search_dlsym+set}" = set; then :
11868   break
11869 fi
11870 done
11871 if test "${ac_cv_search_dlsym+set}" = set; then :
11872
11873 else
11874   ac_cv_search_dlsym=no
11875 fi
11876 rm conftest.$ac_ext
11877 LIBS=$ac_func_search_save_LIBS
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11880 $as_echo "$ac_cv_search_dlsym" >&6; }
11881 ac_res=$ac_cv_search_dlsym
11882 if test "$ac_res" != no; then :
11883   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11884
11885 fi
11886
11887   fi
11888
11889
11890 case "${host}" in
11891   sparc-*-solaris*|i[3-7]86-*-solaris*)
11892     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11893     # are mutually exclusive; and without procfs support, the bfd/ elf module
11894     # cannot provide certain routines such as elfcore_write_prpsinfo
11895     # or elfcore_write_prstatus.  So unless the user explicitly requested
11896     # large-file support through the --enable-largefile switch, disable
11897     # large-file support in favor of procfs support.
11898     test "${target}" = "${host}" -a "x$plugins" = xno \
11899       && : ${enable_largefile="no"}
11900     ;;
11901 esac
11902
11903 # Check whether --enable-largefile was given.
11904 if test "${enable_largefile+set}" = set; then :
11905   enableval=$enable_largefile;
11906 fi
11907
11908 if test "$enable_largefile" != no; then
11909
11910   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11911 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11912 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11913   $as_echo_n "(cached) " >&6
11914 else
11915   ac_cv_sys_largefile_CC=no
11916      if test "$GCC" != yes; then
11917        ac_save_CC=$CC
11918        while :; do
11919          # IRIX 6.2 and later do not support large files by default,
11920          # so use the C compiler's -n32 option if that helps.
11921          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h.  */
11923 #include <sys/types.h>
11924  /* Check that off_t can represent 2**63 - 1 correctly.
11925     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11926     since some C++ compilers masquerading as C compilers
11927     incorrectly reject 9223372036854775807.  */
11928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11929   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11930                        && LARGE_OFF_T % 2147483647 == 1)
11931                       ? 1 : -1];
11932 int
11933 main ()
11934 {
11935
11936   ;
11937   return 0;
11938 }
11939 _ACEOF
11940          if ac_fn_c_try_compile "$LINENO"; then :
11941   break
11942 fi
11943 rm -f core conftest.err conftest.$ac_objext
11944          CC="$CC -n32"
11945          if ac_fn_c_try_compile "$LINENO"; then :
11946   ac_cv_sys_largefile_CC=' -n32'; break
11947 fi
11948 rm -f core conftest.err conftest.$ac_objext
11949          break
11950        done
11951        CC=$ac_save_CC
11952        rm -f conftest.$ac_ext
11953     fi
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11956 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11957   if test "$ac_cv_sys_largefile_CC" != no; then
11958     CC=$CC$ac_cv_sys_largefile_CC
11959   fi
11960
11961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11962 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11963 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11964   $as_echo_n "(cached) " >&6
11965 else
11966   while :; do
11967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 #include <sys/types.h>
11970  /* Check that off_t can represent 2**63 - 1 correctly.
11971     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972     since some C++ compilers masquerading as C compilers
11973     incorrectly reject 9223372036854775807.  */
11974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11975   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976                        && LARGE_OFF_T % 2147483647 == 1)
11977                       ? 1 : -1];
11978 int
11979 main ()
11980 {
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987   ac_cv_sys_file_offset_bits=no; break
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991 /* end confdefs.h.  */
11992 #define _FILE_OFFSET_BITS 64
11993 #include <sys/types.h>
11994  /* Check that off_t can represent 2**63 - 1 correctly.
11995     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11996     since some C++ compilers masquerading as C compilers
11997     incorrectly reject 9223372036854775807.  */
11998 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11999   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12000                        && LARGE_OFF_T % 2147483647 == 1)
12001                       ? 1 : -1];
12002 int
12003 main ()
12004 {
12005
12006   ;
12007   return 0;
12008 }
12009 _ACEOF
12010 if ac_fn_c_try_compile "$LINENO"; then :
12011   ac_cv_sys_file_offset_bits=64; break
12012 fi
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12014   ac_cv_sys_file_offset_bits=unknown
12015   break
12016 done
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12019 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12020 case $ac_cv_sys_file_offset_bits in #(
12021   no | unknown) ;;
12022   *)
12023 cat >>confdefs.h <<_ACEOF
12024 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12025 _ACEOF
12026 ;;
12027 esac
12028 rm -rf conftest*
12029   if test $ac_cv_sys_file_offset_bits = unknown; then
12030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12031 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12032 if test "${ac_cv_sys_large_files+set}" = set; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   while :; do
12036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h.  */
12038 #include <sys/types.h>
12039  /* Check that off_t can represent 2**63 - 1 correctly.
12040     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12041     since some C++ compilers masquerading as C compilers
12042     incorrectly reject 9223372036854775807.  */
12043 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12044   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12045                        && LARGE_OFF_T % 2147483647 == 1)
12046                       ? 1 : -1];
12047 int
12048 main ()
12049 {
12050
12051   ;
12052   return 0;
12053 }
12054 _ACEOF
12055 if ac_fn_c_try_compile "$LINENO"; then :
12056   ac_cv_sys_large_files=no; break
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h.  */
12061 #define _LARGE_FILES 1
12062 #include <sys/types.h>
12063  /* Check that off_t can represent 2**63 - 1 correctly.
12064     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12065     since some C++ compilers masquerading as C compilers
12066     incorrectly reject 9223372036854775807.  */
12067 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12068   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12069                        && LARGE_OFF_T % 2147483647 == 1)
12070                       ? 1 : -1];
12071 int
12072 main ()
12073 {
12074
12075   ;
12076   return 0;
12077 }
12078 _ACEOF
12079 if ac_fn_c_try_compile "$LINENO"; then :
12080   ac_cv_sys_large_files=1; break
12081 fi
12082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12083   ac_cv_sys_large_files=unknown
12084   break
12085 done
12086 fi
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12088 $as_echo "$ac_cv_sys_large_files" >&6; }
12089 case $ac_cv_sys_large_files in #(
12090   no | unknown) ;;
12091   *)
12092 cat >>confdefs.h <<_ACEOF
12093 #define _LARGE_FILES $ac_cv_sys_large_files
12094 _ACEOF
12095 ;;
12096 esac
12097 rm -rf conftest*
12098   fi
12099 fi
12100
12101
12102
12103  if test "$plugins" = "yes"; then
12104   PLUGINS_TRUE=
12105   PLUGINS_FALSE='#'
12106 else
12107   PLUGINS_TRUE='#'
12108   PLUGINS_FALSE=
12109 fi
12110
12111
12112 if test "$plugins" = "yes"; then
12113   enable_targets="$enable_targets plugin"
12114 fi
12115
12116 # Check whether --enable-64-bit-bfd was given.
12117 if test "${enable_64_bit_bfd+set}" = set; then :
12118   enableval=$enable_64_bit_bfd; case "${enableval}" in
12119   yes)  want64=true  ;;
12120   no)   want64=false ;;
12121   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12122 esac
12123 else
12124   want64=false
12125 fi
12126
12127 # Check whether --enable-targets was given.
12128 if test "${enable_targets+set}" = set; then :
12129   enableval=$enable_targets; case "${enableval}" in
12130   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12131             ;;
12132   no)       enable_targets= ;;
12133   *)        enable_targets=$enableval ;;
12134 esac
12135 fi
12136
12137 # Check whether --enable-64_bit_archive was given.
12138 if test "${enable_64_bit_archive+set}" = set; then :
12139   enableval=$enable_64_bit_archive; case "${enableval}" in
12140   yes)  want_64_bit_archive=true  ;;
12141   no)   want_64_bit_archive=false ;;
12142   *)    as_fn_error "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;;
12143 esac
12144 else
12145   want_64_bit_archive=unset
12146 fi
12147
12148
12149 # Check whether --with-mmap was given.
12150 if test "${with_mmap+set}" = set; then :
12151   withval=$with_mmap; case "${withval}" in
12152   yes)  want_mmap=true ;;
12153   no)   want_mmap=false ;;
12154   *)    as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12155 esac
12156 else
12157   want_mmap=false
12158 fi
12159
12160 # Check whether --enable-secureplt was given.
12161 if test "${enable_secureplt+set}" = set; then :
12162   enableval=$enable_secureplt; case "${enableval}" in
12163   yes)  use_secureplt=true  ;;
12164   no)   use_secureplt=false ;;
12165   *)    as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12166 esac
12167 else
12168   use_secureplt=true
12169 fi
12170 if test $use_secureplt = true; then
12171
12172 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12173
12174 fi
12175
12176 # Decide if -z separate-code should be enabled in ELF linker by default.
12177 ac_default_ld_z_separate_code=unset
12178 # Check whether --enable-separate-code was given.
12179 if test "${enable_separate_code+set}" = set; then :
12180   enableval=$enable_separate_code; case "${enableval}" in
12181   yes) ac_default_ld_z_separate_code=1 ;;
12182   no) ac_default_ld_z_separate_code=0 ;;
12183 esac
12184 fi
12185
12186 # Enable -z separate-code by default for Linux/x86.
12187 case "${target}" in
12188 i3-786-*-linux-* | x86_64-*-linux-*)
12189   if test ${ac_default_ld_z_separate_code} = unset; then
12190     ac_default_ld_z_separate_code=1
12191   fi
12192   ;;
12193 esac
12194 if test "${ac_default_ld_z_separate_code}" = unset; then
12195   ac_default_ld_z_separate_code=0
12196 fi
12197
12198 cat >>confdefs.h <<_ACEOF
12199 #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code
12200 _ACEOF
12201
12202
12203 # Check whether --enable-leading-mingw64-underscores was given.
12204 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12205   enableval=$enable_leading_mingw64_underscores;
12206 fi
12207
12208 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12209
12210 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12211
12212 fi
12213
12214 DEBUGDIR=${libdir}/debug
12215
12216 # Check whether --with-separate-debug-dir was given.
12217 if test "${with_separate_debug_dir+set}" = set; then :
12218   withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12219 fi
12220
12221
12222
12223
12224
12225 # Check whether --with-pkgversion was given.
12226 if test "${with_pkgversion+set}" = set; then :
12227   withval=$with_pkgversion; case "$withval" in
12228       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12229       no)  PKGVERSION= ;;
12230       *)   PKGVERSION="($withval) " ;;
12231      esac
12232 else
12233   PKGVERSION="(GNU Binutils) "
12234
12235 fi
12236
12237
12238
12239
12240
12241 # Check whether --with-bugurl was given.
12242 if test "${with_bugurl+set}" = set; then :
12243   withval=$with_bugurl; case "$withval" in
12244       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12245       no)  BUGURL=
12246            ;;
12247       *)   BUGURL="$withval"
12248            ;;
12249      esac
12250 else
12251   BUGURL="http://www.sourceware.org/bugzilla/"
12252
12253 fi
12254
12255   case ${BUGURL} in
12256   "")
12257     REPORT_BUGS_TO=
12258     REPORT_BUGS_TEXI=
12259     ;;
12260   *)
12261     REPORT_BUGS_TO="<$BUGURL>"
12262     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12263     ;;
12264   esac;
12265
12266
12267
12268
12269
12270 # Set the 'development' global.
12271 . $srcdir/../bfd/development.sh
12272
12273 # Set acp_cpp_for_build variable
12274 ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12275
12276 # Default set of GCC warnings to enable.
12277 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12278 GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12279
12280 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282 /* end confdefs.h.  */
12283 __GNUC__
12284 _ACEOF
12285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12286   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12287
12288 else
12289   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12290 fi
12291 rm -f conftest*
12292
12293
12294 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12296 /* end confdefs.h.  */
12297 __GNUC__
12298 _ACEOF
12299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12300   $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12301
12302 else
12303   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12304 fi
12305 rm -f conftest*
12306
12307
12308 # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12309 WARN_WRITE_STRINGS=""
12310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12311 /* end confdefs.h.  */
12312 __GNUC__
12313 _ACEOF
12314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12315   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12316
12317 else
12318   WARN_WRITE_STRINGS="-Wwrite-strings"
12319 fi
12320 rm -f conftest*
12321
12322
12323 # Verify CC_FOR_BUILD to be compatible with warning flags
12324
12325 # Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h.  */
12328 __GNUC__
12329 _ACEOF
12330 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12331   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12332
12333 else
12334   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12335 fi
12336 rm -f conftest*
12337
12338
12339 # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341 /* end confdefs.h.  */
12342 __GNUC__
12343 _ACEOF
12344 if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
12345   $EGREP "^[0-4]$" >/dev/null 2>&1; then :
12346
12347 else
12348   GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12349 fi
12350 rm -f conftest*
12351
12352
12353 # Check whether --enable-werror was given.
12354 if test "${enable_werror+set}" = set; then :
12355   enableval=$enable_werror; case "${enableval}" in
12356      yes | y) ERROR_ON_WARNING="yes" ;;
12357      no | n)  ERROR_ON_WARNING="no" ;;
12358      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12359    esac
12360 fi
12361
12362
12363 # Disable -Wformat by default when using gcc on mingw
12364 case "${host}" in
12365   *-*-mingw32*)
12366     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12367       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12368       GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
12369     fi
12370     ;;
12371   *) ;;
12372 esac
12373
12374 # Enable -Werror by default when using gcc.  Turn it off for releases.
12375 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
12376     ERROR_ON_WARNING=yes
12377 fi
12378
12379 NO_WERROR=
12380 if test "${ERROR_ON_WARNING}" = yes ; then
12381     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12382     GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
12383     NO_WERROR="-Wno-error"
12384 fi
12385
12386 if test "${GCC}" = yes ; then
12387   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12388   WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
12389 fi
12390
12391 # Check whether --enable-build-warnings was given.
12392 if test "${enable_build_warnings+set}" = set; then :
12393   enableval=$enable_build_warnings; case "${enableval}" in
12394   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12395         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
12396   no)   if test "${GCC}" = yes ; then
12397           WARN_CFLAGS="-w"
12398       WARN_CFLAGS_FOR_BUILD="-w"
12399         fi;;
12400   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12401         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12402         WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
12403   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12404         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12405         WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12406   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12407         WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12408 esac
12409 fi
12410
12411
12412 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12413   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422 ac_config_headers="$ac_config_headers config.h:config.in"
12423
12424
12425 # PR 14072
12426
12427
12428 if test -z "$target" ; then
12429     as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12430 fi
12431
12432
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12434 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12435     # Check whether --enable-maintainer-mode was given.
12436 if test "${enable_maintainer_mode+set}" = set; then :
12437   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12438 else
12439   USE_MAINTAINER_MODE=no
12440 fi
12441
12442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12443 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12444    if test $USE_MAINTAINER_MODE = yes; then
12445   MAINTAINER_MODE_TRUE=
12446   MAINTAINER_MODE_FALSE='#'
12447 else
12448   MAINTAINER_MODE_TRUE='#'
12449   MAINTAINER_MODE_FALSE=
12450 fi
12451
12452   MAINT=$MAINTAINER_MODE_TRUE
12453
12454
12455  if false; then
12456   GENINSRC_NEVER_TRUE=
12457   GENINSRC_NEVER_FALSE='#'
12458 else
12459   GENINSRC_NEVER_TRUE='#'
12460   GENINSRC_NEVER_FALSE=
12461 fi
12462
12463  case ${build_alias} in
12464   "") build_noncanonical=${build} ;;
12465   *) build_noncanonical=${build_alias} ;;
12466 esac
12467
12468  case ${host_alias} in
12469   "") host_noncanonical=${build_noncanonical} ;;
12470   *) host_noncanonical=${host_alias} ;;
12471 esac
12472
12473  case ${target_alias} in
12474   "") target_noncanonical=${host_noncanonical} ;;
12475   *) target_noncanonical=${target_alias} ;;
12476 esac
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12479 $as_echo_n "checking whether to install libbfd... " >&6; }
12480   # Check whether --enable-install-libbfd was given.
12481 if test "${enable_install_libbfd+set}" = set; then :
12482   enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12483 else
12484   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12485         install_libbfd_p=yes
12486       else
12487         install_libbfd_p=no
12488       fi
12489 fi
12490
12491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12492 $as_echo "$install_libbfd_p" >&6; }
12493    if test $install_libbfd_p = yes; then
12494   INSTALL_LIBBFD_TRUE=
12495   INSTALL_LIBBFD_FALSE='#'
12496 else
12497   INSTALL_LIBBFD_TRUE='#'
12498   INSTALL_LIBBFD_FALSE=
12499 fi
12500
12501   # Need _noncanonical variables for this.
12502
12503
12504
12505
12506   # libbfd.a is a host library containing target dependent code
12507   bfdlibdir='$(libdir)'
12508   bfdincludedir='$(includedir)'
12509   if test "${host}" != "${target}"; then
12510     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12511     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12512   fi
12513
12514
12515
12516
12517
12518
12519
12520
12521 host64=false
12522 target64=false
12523 bfd_default_target_size=32
12524
12525 # host stuff:
12526
12527 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN"
12528 # If we haven't got the data from the intl directory,
12529 # assume NLS is disabled.
12530 USE_NLS=no
12531 LIBINTL=
12532 LIBINTL_DEP=
12533 INCINTL=
12534 XGETTEXT=
12535 GMSGFMT=
12536 POSUB=
12537
12538 if test -f  ../intl/config.intl; then
12539   .  ../intl/config.intl
12540 fi
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12542 $as_echo_n "checking whether NLS is requested... " >&6; }
12543 if test x"$USE_NLS" != xyes; then
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12546 else
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548 $as_echo "yes" >&6; }
12549
12550 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12551
12552
12553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12554 $as_echo_n "checking for catalogs to be installed... " >&6; }
12555   # Look for .po and .gmo files in the source directory.
12556   CATALOGS=
12557   XLINGUAS=
12558   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12559     # If there aren't any .gmo files the shell will give us the
12560     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12561     # weeded out.
12562     case "$cat" in *\**)
12563       continue;;
12564     esac
12565     # The quadruple backslash is collapsed to a double backslash
12566     # by the backticks, then collapsed again by the double quotes,
12567     # leaving us with one backslash in the sed expression (right
12568     # before the dot that mustn't act as a wildcard).
12569     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12570     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12571     # The user is allowed to set LINGUAS to a list of languages to
12572     # install catalogs for.  If it's empty that means "all of them."
12573     if test "x$LINGUAS" = x; then
12574       CATALOGS="$CATALOGS $cat"
12575       XLINGUAS="$XLINGUAS $lang"
12576     else
12577       case "$LINGUAS" in *$lang*)
12578         CATALOGS="$CATALOGS $cat"
12579         XLINGUAS="$XLINGUAS $lang"
12580         ;;
12581       esac
12582     fi
12583   done
12584   LINGUAS="$XLINGUAS"
12585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12586 $as_echo "$LINGUAS" >&6; }
12587
12588
12589     DATADIRNAME=share
12590
12591   INSTOBJEXT=.mo
12592
12593   GENCAT=gencat
12594
12595   CATOBJEXT=.gmo
12596
12597 fi
12598
12599         MKINSTALLDIRS=
12600   if test -n "$ac_aux_dir"; then
12601     case "$ac_aux_dir" in
12602       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12603       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12604     esac
12605   fi
12606   if test -z "$MKINSTALLDIRS"; then
12607     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12608   fi
12609
12610
12611
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12613 $as_echo_n "checking whether NLS is requested... " >&6; }
12614     # Check whether --enable-nls was given.
12615 if test "${enable_nls+set}" = set; then :
12616   enableval=$enable_nls; USE_NLS=$enableval
12617 else
12618   USE_NLS=yes
12619 fi
12620
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12622 $as_echo "$USE_NLS" >&6; }
12623
12624
12625
12626
12627
12628
12629 # Prepare PATH_SEPARATOR.
12630 # The user is always right.
12631 if test "${PATH_SEPARATOR+set}" != set; then
12632   echo "#! /bin/sh" >conf$$.sh
12633   echo  "exit 0"   >>conf$$.sh
12634   chmod +x conf$$.sh
12635   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12636     PATH_SEPARATOR=';'
12637   else
12638     PATH_SEPARATOR=:
12639   fi
12640   rm -f conf$$.sh
12641 fi
12642
12643 # Find out how to test for executable files. Don't use a zero-byte file,
12644 # as systems may use methods other than mode bits to determine executability.
12645 cat >conf$$.file <<_ASEOF
12646 #! /bin/sh
12647 exit 0
12648 _ASEOF
12649 chmod +x conf$$.file
12650 if test -x conf$$.file >/dev/null 2>&1; then
12651   ac_executable_p="test -x"
12652 else
12653   ac_executable_p="test -f"
12654 fi
12655 rm -f conf$$.file
12656
12657 # Extract the first word of "msgfmt", so it can be a program name with args.
12658 set dummy msgfmt; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660 $as_echo_n "checking for $ac_word... " >&6; }
12661 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12662   $as_echo_n "(cached) " >&6
12663 else
12664   case "$MSGFMT" in
12665   [\\/]* | ?:[\\/]*)
12666     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12667     ;;
12668   *)
12669     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12670     for ac_dir in $PATH; do
12671       IFS="$ac_save_IFS"
12672       test -z "$ac_dir" && ac_dir=.
12673       for ac_exec_ext in '' $ac_executable_extensions; do
12674         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12675           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12676      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12677             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12678             break 2
12679           fi
12680         fi
12681       done
12682     done
12683     IFS="$ac_save_IFS"
12684   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12685     ;;
12686 esac
12687 fi
12688 MSGFMT="$ac_cv_path_MSGFMT"
12689 if test "$MSGFMT" != ":"; then
12690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12691 $as_echo "$MSGFMT" >&6; }
12692 else
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696
12697   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12698 set dummy gmsgfmt; ac_word=$2
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700 $as_echo_n "checking for $ac_word... " >&6; }
12701 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   case $GMSGFMT in
12705   [\\/]* | ?:[\\/]*)
12706   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12707   ;;
12708   *)
12709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12711 do
12712   IFS=$as_save_IFS
12713   test -z "$as_dir" && as_dir=.
12714     for ac_exec_ext in '' $ac_executable_extensions; do
12715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12716     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12718     break 2
12719   fi
12720 done
12721   done
12722 IFS=$as_save_IFS
12723
12724   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12725   ;;
12726 esac
12727 fi
12728 GMSGFMT=$ac_cv_path_GMSGFMT
12729 if test -n "$GMSGFMT"; then
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12731 $as_echo "$GMSGFMT" >&6; }
12732 else
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12734 $as_echo "no" >&6; }
12735 fi
12736
12737
12738
12739
12740 # Prepare PATH_SEPARATOR.
12741 # The user is always right.
12742 if test "${PATH_SEPARATOR+set}" != set; then
12743   echo "#! /bin/sh" >conf$$.sh
12744   echo  "exit 0"   >>conf$$.sh
12745   chmod +x conf$$.sh
12746   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12747     PATH_SEPARATOR=';'
12748   else
12749     PATH_SEPARATOR=:
12750   fi
12751   rm -f conf$$.sh
12752 fi
12753
12754 # Find out how to test for executable files. Don't use a zero-byte file,
12755 # as systems may use methods other than mode bits to determine executability.
12756 cat >conf$$.file <<_ASEOF
12757 #! /bin/sh
12758 exit 0
12759 _ASEOF
12760 chmod +x conf$$.file
12761 if test -x conf$$.file >/dev/null 2>&1; then
12762   ac_executable_p="test -x"
12763 else
12764   ac_executable_p="test -f"
12765 fi
12766 rm -f conf$$.file
12767
12768 # Extract the first word of "xgettext", so it can be a program name with args.
12769 set dummy xgettext; ac_word=$2
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12771 $as_echo_n "checking for $ac_word... " >&6; }
12772 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12773   $as_echo_n "(cached) " >&6
12774 else
12775   case "$XGETTEXT" in
12776   [\\/]* | ?:[\\/]*)
12777     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12778     ;;
12779   *)
12780     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12781     for ac_dir in $PATH; do
12782       IFS="$ac_save_IFS"
12783       test -z "$ac_dir" && ac_dir=.
12784       for ac_exec_ext in '' $ac_executable_extensions; do
12785         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12786           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12787      (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
12788             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12789             break 2
12790           fi
12791         fi
12792       done
12793     done
12794     IFS="$ac_save_IFS"
12795   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12796     ;;
12797 esac
12798 fi
12799 XGETTEXT="$ac_cv_path_XGETTEXT"
12800 if test "$XGETTEXT" != ":"; then
12801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12802 $as_echo "$XGETTEXT" >&6; }
12803 else
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12805 $as_echo "no" >&6; }
12806 fi
12807
12808     rm -f messages.po
12809
12810
12811 # Prepare PATH_SEPARATOR.
12812 # The user is always right.
12813 if test "${PATH_SEPARATOR+set}" != set; then
12814   echo "#! /bin/sh" >conf$$.sh
12815   echo  "exit 0"   >>conf$$.sh
12816   chmod +x conf$$.sh
12817   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12818     PATH_SEPARATOR=';'
12819   else
12820     PATH_SEPARATOR=:
12821   fi
12822   rm -f conf$$.sh
12823 fi
12824
12825 # Find out how to test for executable files. Don't use a zero-byte file,
12826 # as systems may use methods other than mode bits to determine executability.
12827 cat >conf$$.file <<_ASEOF
12828 #! /bin/sh
12829 exit 0
12830 _ASEOF
12831 chmod +x conf$$.file
12832 if test -x conf$$.file >/dev/null 2>&1; then
12833   ac_executable_p="test -x"
12834 else
12835   ac_executable_p="test -f"
12836 fi
12837 rm -f conf$$.file
12838
12839 # Extract the first word of "msgmerge", so it can be a program name with args.
12840 set dummy msgmerge; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12844   $as_echo_n "(cached) " >&6
12845 else
12846   case "$MSGMERGE" in
12847   [\\/]* | ?:[\\/]*)
12848     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12849     ;;
12850   *)
12851     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12852     for ac_dir in $PATH; do
12853       IFS="$ac_save_IFS"
12854       test -z "$ac_dir" && ac_dir=.
12855       for ac_exec_ext in '' $ac_executable_extensions; do
12856         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12857           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12858             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12859             break 2
12860           fi
12861         fi
12862       done
12863     done
12864     IFS="$ac_save_IFS"
12865   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12866     ;;
12867 esac
12868 fi
12869 MSGMERGE="$ac_cv_path_MSGMERGE"
12870 if test "$MSGMERGE" != ":"; then
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12872 $as_echo "$MSGMERGE" >&6; }
12873 else
12874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12875 $as_echo "no" >&6; }
12876 fi
12877
12878
12879       if test "$GMSGFMT" != ":"; then
12880             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12881        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12882       : ;
12883     else
12884       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12885       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12886 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12887       GMSGFMT=":"
12888     fi
12889   fi
12890
12891       if test "$XGETTEXT" != ":"; then
12892             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12893        (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
12894       : ;
12895     else
12896       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12897 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12898       XGETTEXT=":"
12899     fi
12900         rm -f messages.po
12901   fi
12902
12903   ac_config_commands="$ac_config_commands default-1"
12904
12905
12906
12907 # Permit host specific settings.
12908 . ${srcdir}/configure.host
12909
12910
12911
12912
12913 BFD_HOST_64BIT_LONG=0
12914 BFD_HOST_64BIT_LONG_LONG=0
12915 BFD_HOST_64_BIT_DEFINED=0
12916 BFD_HOST_64_BIT=
12917 BFD_HOST_U_64_BIT=
12918 BFD_HOSTPTR_T="unsigned long"
12919
12920
12921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12922 $as_echo_n "checking for long double... " >&6; }
12923 if test "${ac_cv_type_long_double+set}" = set; then :
12924   $as_echo_n "(cached) " >&6
12925 else
12926   if test "$GCC" = yes; then
12927        ac_cv_type_long_double=yes
12928      else
12929        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h.  */
12931 /* The Stardent Vistra knows sizeof (long double), but does
12932                  not support it.  */
12933               long double foo = 0.0L;
12934 int
12935 main ()
12936 {
12937 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
12938               sizeof (double) <= sizeof (long double))];
12939 test_array [0] = 0
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946   ac_cv_type_long_double=yes
12947 else
12948   ac_cv_type_long_double=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951      fi
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12954 $as_echo "$ac_cv_type_long_double" >&6; }
12955   if test $ac_cv_type_long_double = yes; then
12956
12957 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12958
12959   fi
12960
12961 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
12962 if test "x$ac_cv_type_long_long" = x""yes; then :
12963
12964 cat >>confdefs.h <<_ACEOF
12965 #define HAVE_LONG_LONG 1
12966 _ACEOF
12967
12968 # The cast to long int works around a bug in the HP C Compiler
12969 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12970 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12971 # This bug is HP SR number 8606223364.
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12973 $as_echo_n "checking size of long long... " >&6; }
12974 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12975   $as_echo_n "(cached) " >&6
12976 else
12977   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12978
12979 else
12980   if test "$ac_cv_type_long_long" = yes; then
12981      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12983 { as_fn_set_status 77
12984 as_fn_error "cannot compute sizeof (long long)
12985 See \`config.log' for more details." "$LINENO" 5; }; }
12986    else
12987      ac_cv_sizeof_long_long=0
12988    fi
12989 fi
12990
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12993 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12994
12995
12996
12997 cat >>confdefs.h <<_ACEOF
12998 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12999 _ACEOF
13000
13001
13002 fi
13003
13004 # The cast to long int works around a bug in the HP C Compiler
13005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13007 # This bug is HP SR number 8606223364.
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13009 $as_echo_n "checking size of void *... " >&6; }
13010 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13011   $as_echo_n "(cached) " >&6
13012 else
13013   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13014
13015 else
13016   if test "$ac_cv_type_void_p" = yes; then
13017      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13019 { as_fn_set_status 77
13020 as_fn_error "cannot compute sizeof (void *)
13021 See \`config.log' for more details." "$LINENO" 5; }; }
13022    else
13023      ac_cv_sizeof_void_p=0
13024    fi
13025 fi
13026
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13029 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13030
13031
13032
13033 cat >>confdefs.h <<_ACEOF
13034 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13035 _ACEOF
13036
13037
13038 # The cast to long int works around a bug in the HP C Compiler
13039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041 # This bug is HP SR number 8606223364.
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13043 $as_echo_n "checking size of long... " >&6; }
13044 if test "${ac_cv_sizeof_long+set}" = set; then :
13045   $as_echo_n "(cached) " >&6
13046 else
13047   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13048
13049 else
13050   if test "$ac_cv_type_long" = yes; then
13051      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13053 { as_fn_set_status 77
13054 as_fn_error "cannot compute sizeof (long)
13055 See \`config.log' for more details." "$LINENO" 5; }; }
13056    else
13057      ac_cv_sizeof_long=0
13058    fi
13059 fi
13060
13061 fi
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13063 $as_echo "$ac_cv_sizeof_long" >&6; }
13064
13065
13066
13067 cat >>confdefs.h <<_ACEOF
13068 #define SIZEOF_LONG $ac_cv_sizeof_long
13069 _ACEOF
13070
13071
13072
13073 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13074   host64=true
13075 fi
13076
13077 if test "x${ac_cv_sizeof_long}" = "x8"; then
13078   BFD_HOST_64BIT_LONG=1
13079   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
13080   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
13081 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
13082   BFD_HOST_64BIT_LONG_LONG=1
13083   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
13084   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
13085   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
13086     BFD_HOSTPTR_T="unsigned long long"
13087   fi
13088 fi
13089
13090 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
13091   BFD_HOST_64_BIT_DEFINED=1
13092   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
13093   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
13094 fi
13095
13096
13097
13098
13099
13100
13101
13102
13103 # Put a plausible default for CC_FOR_BUILD in Makefile.
13104 if test -z "$CC_FOR_BUILD"; then
13105   if test "x$cross_compiling" = "xno"; then
13106     CC_FOR_BUILD='$(CC)'
13107   else
13108     CC_FOR_BUILD=gcc
13109   fi
13110 fi
13111
13112 # Also set EXEEXT_FOR_BUILD.
13113 if test "x$cross_compiling" = "xno"; then
13114   EXEEXT_FOR_BUILD='$(EXEEXT)'
13115 else
13116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13117 $as_echo_n "checking for build system executable suffix... " >&6; }
13118 if test "${bfd_cv_build_exeext+set}" = set; then :
13119   $as_echo_n "(cached) " >&6
13120 else
13121   rm -f conftest*
13122      echo 'int main () { return 0; }' > conftest.c
13123      bfd_cv_build_exeext=
13124      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13125      for file in conftest.*; do
13126        case $file in
13127        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13128        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13129        esac
13130      done
13131      rm -f conftest*
13132      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13133 fi
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13135 $as_echo "$bfd_cv_build_exeext" >&6; }
13136   EXEEXT_FOR_BUILD=""
13137   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13138 fi
13139
13140
13141 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h
13142 do :
13143   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13144 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13145 eval as_val=\$$as_ac_Header
13146    if test "x$as_val" = x""yes; then :
13147   cat >>confdefs.h <<_ACEOF
13148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13149 _ACEOF
13150
13151 fi
13152
13153 done
13154
13155 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h
13156 do :
13157   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13159 eval as_val=\$$as_ac_Header
13160    if test "x$as_val" = x""yes; then :
13161   cat >>confdefs.h <<_ACEOF
13162 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13163 _ACEOF
13164
13165 fi
13166
13167 done
13168
13169
13170
13171 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
13172
13173 acx_cv_header_stdint=stddef.h
13174 acx_cv_header_stdint_kind="(already complete)"
13175 for i in stdint.h $inttype_headers; do
13176   unset ac_cv_type_uintptr_t
13177   unset ac_cv_type_uintmax_t
13178   unset ac_cv_type_int_least32_t
13179   unset ac_cv_type_int_fast32_t
13180   unset ac_cv_type_uint64_t
13181   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
13182   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
13183 #include <$i>
13184 "
13185 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
13186   acx_cv_header_stdint=$i
13187 else
13188   continue
13189 fi
13190
13191   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13192 #include <$i>
13193 "
13194 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13195
13196 else
13197   acx_cv_header_stdint_kind="(mostly complete)"
13198 fi
13199
13200   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
13201 #include <$i>
13202 "
13203 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
13204
13205 else
13206   acx_cv_header_stdint_kind="(mostly complete)"
13207 fi
13208
13209   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
13210 #include <$i>
13211 "
13212 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
13213
13214 else
13215   acx_cv_header_stdint_kind="(mostly complete)"
13216 fi
13217
13218   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13219 #include <$i>
13220 "
13221 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13222
13223 else
13224   acx_cv_header_stdint_kind="(lacks uint64_t)"
13225 fi
13226
13227   break
13228 done
13229 if test "$acx_cv_header_stdint" = stddef.h; then
13230   acx_cv_header_stdint_kind="(lacks uintmax_t)"
13231   for i in stdint.h $inttype_headers; do
13232     unset ac_cv_type_uintptr_t
13233     unset ac_cv_type_uint32_t
13234     unset ac_cv_type_uint64_t
13235     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
13236     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
13237 #include <$i>
13238 "
13239 if test "x$ac_cv_type_uint32_t" = x""yes; then :
13240   acx_cv_header_stdint=$i
13241 else
13242   continue
13243 fi
13244
13245     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
13246 #include <$i>
13247 "
13248 if test "x$ac_cv_type_uint64_t" = x""yes; then :
13249
13250 fi
13251
13252     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
13253 #include <$i>
13254 "
13255 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
13256
13257 fi
13258
13259     break
13260   done
13261 fi
13262 if test "$acx_cv_header_stdint" = stddef.h; then
13263   acx_cv_header_stdint_kind="(u_intXX_t style)"
13264   for i in sys/types.h $inttype_headers; do
13265     unset ac_cv_type_u_int32_t
13266     unset ac_cv_type_u_int64_t
13267     $as_echo_n "looking for u_intXX_t types in $i, " >&6
13268     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13269 #include <$i>
13270 "
13271 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13272   acx_cv_header_stdint=$i
13273 else
13274   continue
13275 fi
13276
13277     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13278 #include <$i>
13279 "
13280 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
13281
13282 fi
13283
13284     break
13285   done
13286 fi
13287 if test "$acx_cv_header_stdint" = stddef.h; then
13288   acx_cv_header_stdint_kind="(using manual detection)"
13289 fi
13290
13291 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13292 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13293 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13294 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13295 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13296
13297 # ----------------- Summarize what we found so far
13298
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13300 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13301
13302 case `$as_basename -- bfd_stdint.h ||
13303 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13304          Xbfd_stdint.h : 'X\(//\)$' \| \
13305          Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13306 $as_echo X/bfd_stdint.h |
13307     sed '/^.*\/\([^/][^/]*\)\/*$/{
13308             s//\1/
13309             q
13310           }
13311           /^X\/\(\/\/\)$/{
13312             s//\1/
13313             q
13314           }
13315           /^X\/\(\/\).*/{
13316             s//\1/
13317             q
13318           }
13319           s/.*/./; q'` in
13320   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13321 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13322   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13323 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13324   *) ;;
13325 esac
13326
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13328 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13329
13330 # ----------------- done included file, check C basic types --------
13331
13332 # Lacking an uintptr_t?  Test size of void *
13333 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13334   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13335 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13336 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13337 # This bug is HP SR number 8606223364.
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13339 $as_echo_n "checking size of void *... " >&6; }
13340 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13344
13345 else
13346   if test "$ac_cv_type_void_p" = yes; then
13347      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13349 { as_fn_set_status 77
13350 as_fn_error "cannot compute sizeof (void *)
13351 See \`config.log' for more details." "$LINENO" 5; }; }
13352    else
13353      ac_cv_sizeof_void_p=0
13354    fi
13355 fi
13356
13357 fi
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13359 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13360
13361
13362
13363 cat >>confdefs.h <<_ACEOF
13364 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13365 _ACEOF
13366
13367  ;;
13368 esac
13369
13370 # Lacking an uint64_t?  Test size of long
13371 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13372   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13375 # This bug is HP SR number 8606223364.
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13377 $as_echo_n "checking size of long... " >&6; }
13378 if test "${ac_cv_sizeof_long+set}" = set; then :
13379   $as_echo_n "(cached) " >&6
13380 else
13381   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13382
13383 else
13384   if test "$ac_cv_type_long" = yes; then
13385      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13387 { as_fn_set_status 77
13388 as_fn_error "cannot compute sizeof (long)
13389 See \`config.log' for more details." "$LINENO" 5; }; }
13390    else
13391      ac_cv_sizeof_long=0
13392    fi
13393 fi
13394
13395 fi
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13397 $as_echo "$ac_cv_sizeof_long" >&6; }
13398
13399
13400
13401 cat >>confdefs.h <<_ACEOF
13402 #define SIZEOF_LONG $ac_cv_sizeof_long
13403 _ACEOF
13404
13405  ;;
13406 esac
13407
13408 if test $acx_cv_header_stdint = stddef.h; then
13409   # Lacking a good header?  Test size of everything and deduce all types.
13410   # The cast to long int works around a bug in the HP C Compiler
13411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13413 # This bug is HP SR number 8606223364.
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13415 $as_echo_n "checking size of int... " >&6; }
13416 if test "${ac_cv_sizeof_int+set}" = set; then :
13417   $as_echo_n "(cached) " >&6
13418 else
13419   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13420
13421 else
13422   if test "$ac_cv_type_int" = yes; then
13423      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13425 { as_fn_set_status 77
13426 as_fn_error "cannot compute sizeof (int)
13427 See \`config.log' for more details." "$LINENO" 5; }; }
13428    else
13429      ac_cv_sizeof_int=0
13430    fi
13431 fi
13432
13433 fi
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13435 $as_echo "$ac_cv_sizeof_int" >&6; }
13436
13437
13438
13439 cat >>confdefs.h <<_ACEOF
13440 #define SIZEOF_INT $ac_cv_sizeof_int
13441 _ACEOF
13442
13443
13444   # The cast to long int works around a bug in the HP C Compiler
13445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13447 # This bug is HP SR number 8606223364.
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13449 $as_echo_n "checking size of short... " >&6; }
13450 if test "${ac_cv_sizeof_short+set}" = set; then :
13451   $as_echo_n "(cached) " >&6
13452 else
13453   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13454
13455 else
13456   if test "$ac_cv_type_short" = yes; then
13457      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13459 { as_fn_set_status 77
13460 as_fn_error "cannot compute sizeof (short)
13461 See \`config.log' for more details." "$LINENO" 5; }; }
13462    else
13463      ac_cv_sizeof_short=0
13464    fi
13465 fi
13466
13467 fi
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13469 $as_echo "$ac_cv_sizeof_short" >&6; }
13470
13471
13472
13473 cat >>confdefs.h <<_ACEOF
13474 #define SIZEOF_SHORT $ac_cv_sizeof_short
13475 _ACEOF
13476
13477
13478   # The cast to long int works around a bug in the HP C Compiler
13479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481 # This bug is HP SR number 8606223364.
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483 $as_echo_n "checking size of char... " >&6; }
13484 if test "${ac_cv_sizeof_char+set}" = set; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13488
13489 else
13490   if test "$ac_cv_type_char" = yes; then
13491      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493 { as_fn_set_status 77
13494 as_fn_error "cannot compute sizeof (char)
13495 See \`config.log' for more details." "$LINENO" 5; }; }
13496    else
13497      ac_cv_sizeof_char=0
13498    fi
13499 fi
13500
13501 fi
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13503 $as_echo "$ac_cv_sizeof_char" >&6; }
13504
13505
13506
13507 cat >>confdefs.h <<_ACEOF
13508 #define SIZEOF_CHAR $ac_cv_sizeof_char
13509 _ACEOF
13510
13511
13512
13513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13514 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13515   case "$ac_cv_sizeof_char" in
13516     1) acx_cv_type_int8_t=char ;;
13517     *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
13518   esac
13519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13520 $as_echo "$acx_cv_type_int8_t" >&6; }
13521
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13523 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13524   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13525     2:*) acx_cv_type_int16_t=int ;;
13526     *:2) acx_cv_type_int16_t=short ;;
13527     *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
13528   esac
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13530 $as_echo "$acx_cv_type_int16_t" >&6; }
13531
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13533 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13534   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13535     4:*) acx_cv_type_int32_t=int ;;
13536     *:4) acx_cv_type_int32_t=long ;;
13537     *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
13538   esac
13539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13540 $as_echo "$acx_cv_type_int32_t" >&6; }
13541 fi
13542
13543 # These tests are here to make the output prettier
13544
13545 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13546   case "$ac_cv_sizeof_long" in
13547     8) acx_cv_type_int64_t=long ;;
13548   esac
13549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13550 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13552 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13553 fi
13554
13555 # Now we can use the above types
13556
13557 if test "$ac_cv_type_uintptr_t" != yes; then
13558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13559 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13560   case $ac_cv_sizeof_void_p in
13561     2) acx_cv_type_intptr_t=int16_t ;;
13562     4) acx_cv_type_intptr_t=int32_t ;;
13563     8) acx_cv_type_intptr_t=int64_t ;;
13564     *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
13565   esac
13566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13567 $as_echo "$acx_cv_type_intptr_t" >&6; }
13568 fi
13569
13570 # ----------------- done all checks, emit header -------------
13571 ac_config_commands="$ac_config_commands bfd_stdint.h"
13572
13573
13574
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13576 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13577 if test "${ac_cv_header_time+set}" = set; then :
13578   $as_echo_n "(cached) " >&6
13579 else
13580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13581 /* end confdefs.h.  */
13582 #include <sys/types.h>
13583 #include <sys/time.h>
13584 #include <time.h>
13585
13586 int
13587 main ()
13588 {
13589 if ((struct tm *) 0)
13590 return 0;
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596   ac_cv_header_time=yes
13597 else
13598   ac_cv_header_time=no
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13603 $as_echo "$ac_cv_header_time" >&6; }
13604 if test $ac_cv_header_time = yes; then
13605
13606 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13607
13608 fi
13609
13610 ac_header_dirent=no
13611 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13612   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13614 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13616   $as_echo_n "(cached) " >&6
13617 else
13618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h.  */
13620 #include <sys/types.h>
13621 #include <$ac_hdr>
13622
13623 int
13624 main ()
13625 {
13626 if ((DIR *) 0)
13627 return 0;
13628   ;
13629   return 0;
13630 }
13631 _ACEOF
13632 if ac_fn_c_try_compile "$LINENO"; then :
13633   eval "$as_ac_Header=yes"
13634 else
13635   eval "$as_ac_Header=no"
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638 fi
13639 eval ac_res=\$$as_ac_Header
13640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13641 $as_echo "$ac_res" >&6; }
13642 eval as_val=\$$as_ac_Header
13643    if test "x$as_val" = x""yes; then :
13644   cat >>confdefs.h <<_ACEOF
13645 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13646 _ACEOF
13647
13648 ac_header_dirent=$ac_hdr; break
13649 fi
13650
13651 done
13652 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13653 if test $ac_header_dirent = dirent.h; then
13654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13655 $as_echo_n "checking for library containing opendir... " >&6; }
13656 if test "${ac_cv_search_opendir+set}" = set; then :
13657   $as_echo_n "(cached) " >&6
13658 else
13659   ac_func_search_save_LIBS=$LIBS
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h.  */
13662
13663 /* Override any GCC internal prototype to avoid an error.
13664    Use char because int might match the return type of a GCC
13665    builtin and then its argument prototype would still apply.  */
13666 #ifdef __cplusplus
13667 extern "C"
13668 #endif
13669 char opendir ();
13670 int
13671 main ()
13672 {
13673 return opendir ();
13674   ;
13675   return 0;
13676 }
13677 _ACEOF
13678 for ac_lib in '' dir; do
13679   if test -z "$ac_lib"; then
13680     ac_res="none required"
13681   else
13682     ac_res=-l$ac_lib
13683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13684   fi
13685   if ac_fn_c_try_link "$LINENO"; then :
13686   ac_cv_search_opendir=$ac_res
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext \
13689     conftest$ac_exeext
13690   if test "${ac_cv_search_opendir+set}" = set; then :
13691   break
13692 fi
13693 done
13694 if test "${ac_cv_search_opendir+set}" = set; then :
13695
13696 else
13697   ac_cv_search_opendir=no
13698 fi
13699 rm conftest.$ac_ext
13700 LIBS=$ac_func_search_save_LIBS
13701 fi
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13703 $as_echo "$ac_cv_search_opendir" >&6; }
13704 ac_res=$ac_cv_search_opendir
13705 if test "$ac_res" != no; then :
13706   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13707
13708 fi
13709
13710 else
13711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13712 $as_echo_n "checking for library containing opendir... " >&6; }
13713 if test "${ac_cv_search_opendir+set}" = set; then :
13714   $as_echo_n "(cached) " >&6
13715 else
13716   ac_func_search_save_LIBS=$LIBS
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h.  */
13719
13720 /* Override any GCC internal prototype to avoid an error.
13721    Use char because int might match the return type of a GCC
13722    builtin and then its argument prototype would still apply.  */
13723 #ifdef __cplusplus
13724 extern "C"
13725 #endif
13726 char opendir ();
13727 int
13728 main ()
13729 {
13730 return opendir ();
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 for ac_lib in '' x; do
13736   if test -z "$ac_lib"; then
13737     ac_res="none required"
13738   else
13739     ac_res=-l$ac_lib
13740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13741   fi
13742   if ac_fn_c_try_link "$LINENO"; then :
13743   ac_cv_search_opendir=$ac_res
13744 fi
13745 rm -f core conftest.err conftest.$ac_objext \
13746     conftest$ac_exeext
13747   if test "${ac_cv_search_opendir+set}" = set; then :
13748   break
13749 fi
13750 done
13751 if test "${ac_cv_search_opendir+set}" = set; then :
13752
13753 else
13754   ac_cv_search_opendir=no
13755 fi
13756 rm conftest.$ac_ext
13757 LIBS=$ac_func_search_save_LIBS
13758 fi
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13760 $as_echo "$ac_cv_search_opendir" >&6; }
13761 ac_res=$ac_cv_search_opendir
13762 if test "$ac_res" != no; then :
13763   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13764
13765 fi
13766
13767 fi
13768
13769
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13771 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13772 if test "${gcc_cv_header_string+set}" = set; then :
13773   $as_echo_n "(cached) " >&6
13774 else
13775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h.  */
13777 #include <string.h>
13778 #include <strings.h>
13779 int
13780 main ()
13781 {
13782
13783   ;
13784   return 0;
13785 }
13786 _ACEOF
13787 if ac_fn_c_try_compile "$LINENO"; then :
13788   gcc_cv_header_string=yes
13789 else
13790   gcc_cv_header_string=no
13791 fi
13792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13793 fi
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13795 $as_echo "$gcc_cv_header_string" >&6; }
13796 if test $gcc_cv_header_string = yes; then
13797
13798 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13799
13800 fi
13801
13802 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13803 do :
13804   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13806 eval as_val=\$$as_ac_var
13807    if test "x$as_val" = x""yes; then :
13808   cat >>confdefs.h <<_ACEOF
13809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13810 _ACEOF
13811
13812 fi
13813 done
13814
13815 for ac_func in strtoull getrlimit
13816 do :
13817   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13818 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13819 eval as_val=\$$as_ac_var
13820    if test "x$as_val" = x""yes; then :
13821   cat >>confdefs.h <<_ACEOF
13822 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13823 _ACEOF
13824
13825 fi
13826 done
13827
13828
13829 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13830 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13831   ac_have_decl=1
13832 else
13833   ac_have_decl=0
13834 fi
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define HAVE_DECL_BASENAME $ac_have_decl
13838 _ACEOF
13839
13840 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13841 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13842   ac_have_decl=1
13843 else
13844   ac_have_decl=0
13845 fi
13846
13847 cat >>confdefs.h <<_ACEOF
13848 #define HAVE_DECL_FTELLO $ac_have_decl
13849 _ACEOF
13850
13851 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13852 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13853   ac_have_decl=1
13854 else
13855   ac_have_decl=0
13856 fi
13857
13858 cat >>confdefs.h <<_ACEOF
13859 #define HAVE_DECL_FTELLO64 $ac_have_decl
13860 _ACEOF
13861
13862 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13863 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13864   ac_have_decl=1
13865 else
13866   ac_have_decl=0
13867 fi
13868
13869 cat >>confdefs.h <<_ACEOF
13870 #define HAVE_DECL_FSEEKO $ac_have_decl
13871 _ACEOF
13872
13873 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13874 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13875   ac_have_decl=1
13876 else
13877   ac_have_decl=0
13878 fi
13879
13880 cat >>confdefs.h <<_ACEOF
13881 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13882 _ACEOF
13883
13884
13885
13886 case "${host}" in
13887 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13888
13889 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13890  ;;
13891 esac
13892
13893 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13894 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13895   ac_have_decl=1
13896 else
13897   ac_have_decl=0
13898 fi
13899
13900 cat >>confdefs.h <<_ACEOF
13901 #define HAVE_DECL_FFS $ac_have_decl
13902 _ACEOF
13903
13904 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13905 if test "x$ac_cv_have_decl_free" = x""yes; then :
13906   ac_have_decl=1
13907 else
13908   ac_have_decl=0
13909 fi
13910
13911 cat >>confdefs.h <<_ACEOF
13912 #define HAVE_DECL_FREE $ac_have_decl
13913 _ACEOF
13914
13915 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13916 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13917   ac_have_decl=1
13918 else
13919   ac_have_decl=0
13920 fi
13921
13922 cat >>confdefs.h <<_ACEOF
13923 #define HAVE_DECL_GETENV $ac_have_decl
13924 _ACEOF
13925
13926 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13927 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13928   ac_have_decl=1
13929 else
13930   ac_have_decl=0
13931 fi
13932
13933 cat >>confdefs.h <<_ACEOF
13934 #define HAVE_DECL_MALLOC $ac_have_decl
13935 _ACEOF
13936
13937 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13938 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13939   ac_have_decl=1
13940 else
13941   ac_have_decl=0
13942 fi
13943
13944 cat >>confdefs.h <<_ACEOF
13945 #define HAVE_DECL_REALLOC $ac_have_decl
13946 _ACEOF
13947
13948 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13949 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13950   ac_have_decl=1
13951 else
13952   ac_have_decl=0
13953 fi
13954
13955 cat >>confdefs.h <<_ACEOF
13956 #define HAVE_DECL_STPCPY $ac_have_decl
13957 _ACEOF
13958
13959 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13960 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13961   ac_have_decl=1
13962 else
13963   ac_have_decl=0
13964 fi
13965
13966 cat >>confdefs.h <<_ACEOF
13967 #define HAVE_DECL_STRSTR $ac_have_decl
13968 _ACEOF
13969
13970 ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
13971 if test "x$ac_cv_have_decl_asprintf" = x""yes; then :
13972   ac_have_decl=1
13973 else
13974   ac_have_decl=0
13975 fi
13976
13977 cat >>confdefs.h <<_ACEOF
13978 #define HAVE_DECL_ASPRINTF $ac_have_decl
13979 _ACEOF
13980
13981 ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default"
13982 if test "x$ac_cv_have_decl_vasprintf" = x""yes; then :
13983   ac_have_decl=1
13984 else
13985   ac_have_decl=0
13986 fi
13987
13988 cat >>confdefs.h <<_ACEOF
13989 #define HAVE_DECL_VASPRINTF $ac_have_decl
13990 _ACEOF
13991
13992 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13993 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13994   ac_have_decl=1
13995 else
13996   ac_have_decl=0
13997 fi
13998
13999 cat >>confdefs.h <<_ACEOF
14000 #define HAVE_DECL_SNPRINTF $ac_have_decl
14001 _ACEOF
14002
14003 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
14004 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
14005   ac_have_decl=1
14006 else
14007   ac_have_decl=0
14008 fi
14009
14010 cat >>confdefs.h <<_ACEOF
14011 #define HAVE_DECL_VSNPRINTF $ac_have_decl
14012 _ACEOF
14013
14014 ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default"
14015 if test "x$ac_cv_have_decl_strnlen" = x""yes; then :
14016   ac_have_decl=1
14017 else
14018   ac_have_decl=0
14019 fi
14020
14021 cat >>confdefs.h <<_ACEOF
14022 #define HAVE_DECL_STRNLEN $ac_have_decl
14023 _ACEOF
14024
14025
14026 # Link in zlib if we can.  This allows us to read compressed debug sections.
14027 # This is used only by compress.c.
14028
14029   # Use the system's zlib library.
14030   zlibdir="-L\$(top_builddir)/../zlib"
14031   zlibinc="-I\$(top_srcdir)/../zlib"
14032
14033 # Check whether --with-system-zlib was given.
14034 if test "${with_system_zlib+set}" = set; then :
14035   withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
14036     zlibdir=
14037     zlibinc=
14038   fi
14039
14040 fi
14041
14042
14043
14044
14045
14046 # Check if linker supports --as-needed and --no-as-needed options
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14048 $as_echo_n "checking linker --as-needed support... " >&6; }
14049 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14050   $as_echo_n "(cached) " >&6
14051 else
14052   bfd_cv_ld_as_needed=no
14053         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14054                 bfd_cv_ld_as_needed=yes
14055         fi
14056
14057 fi
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14059 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14060
14061 LIBM=
14062 case $host in
14063 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14064   # These system don't have libm, or don't need it
14065   ;;
14066 *-ncr-sysv4.3*)
14067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14068 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14069 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14070   $as_echo_n "(cached) " >&6
14071 else
14072   ac_check_lib_save_LIBS=$LIBS
14073 LIBS="-lmw  $LIBS"
14074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14075 /* end confdefs.h.  */
14076
14077 /* Override any GCC internal prototype to avoid an error.
14078    Use char because int might match the return type of a GCC
14079    builtin and then its argument prototype would still apply.  */
14080 #ifdef __cplusplus
14081 extern "C"
14082 #endif
14083 char _mwvalidcheckl ();
14084 int
14085 main ()
14086 {
14087 return _mwvalidcheckl ();
14088   ;
14089   return 0;
14090 }
14091 _ACEOF
14092 if ac_fn_c_try_link "$LINENO"; then :
14093   ac_cv_lib_mw__mwvalidcheckl=yes
14094 else
14095   ac_cv_lib_mw__mwvalidcheckl=no
14096 fi
14097 rm -f core conftest.err conftest.$ac_objext \
14098     conftest$ac_exeext conftest.$ac_ext
14099 LIBS=$ac_check_lib_save_LIBS
14100 fi
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14102 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14103 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14104   LIBM="-lmw"
14105 fi
14106
14107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14108 $as_echo_n "checking for cos in -lm... " >&6; }
14109 if test "${ac_cv_lib_m_cos+set}" = set; then :
14110   $as_echo_n "(cached) " >&6
14111 else
14112   ac_check_lib_save_LIBS=$LIBS
14113 LIBS="-lm  $LIBS"
14114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14115 /* end confdefs.h.  */
14116
14117 /* Override any GCC internal prototype to avoid an error.
14118    Use char because int might match the return type of a GCC
14119    builtin and then its argument prototype would still apply.  */
14120 #ifdef __cplusplus
14121 extern "C"
14122 #endif
14123 char cos ();
14124 int
14125 main ()
14126 {
14127 return cos ();
14128   ;
14129   return 0;
14130 }
14131 _ACEOF
14132 if ac_fn_c_try_link "$LINENO"; then :
14133   ac_cv_lib_m_cos=yes
14134 else
14135   ac_cv_lib_m_cos=no
14136 fi
14137 rm -f core conftest.err conftest.$ac_objext \
14138     conftest$ac_exeext conftest.$ac_ext
14139 LIBS=$ac_check_lib_save_LIBS
14140 fi
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14142 $as_echo "$ac_cv_lib_m_cos" >&6; }
14143 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14144   LIBM="$LIBM -lm"
14145 fi
14146
14147   ;;
14148 *)
14149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14150 $as_echo_n "checking for cos in -lm... " >&6; }
14151 if test "${ac_cv_lib_m_cos+set}" = set; then :
14152   $as_echo_n "(cached) " >&6
14153 else
14154   ac_check_lib_save_LIBS=$LIBS
14155 LIBS="-lm  $LIBS"
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h.  */
14158
14159 /* Override any GCC internal prototype to avoid an error.
14160    Use char because int might match the return type of a GCC
14161    builtin and then its argument prototype would still apply.  */
14162 #ifdef __cplusplus
14163 extern "C"
14164 #endif
14165 char cos ();
14166 int
14167 main ()
14168 {
14169 return cos ();
14170   ;
14171   return 0;
14172 }
14173 _ACEOF
14174 if ac_fn_c_try_link "$LINENO"; then :
14175   ac_cv_lib_m_cos=yes
14176 else
14177   ac_cv_lib_m_cos=no
14178 fi
14179 rm -f core conftest.err conftest.$ac_objext \
14180     conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14182 fi
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14184 $as_echo "$ac_cv_lib_m_cos" >&6; }
14185 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14186   LIBM="-lm"
14187 fi
14188
14189   ;;
14190 esac
14191
14192
14193
14194 # When building a shared libbfd, link against the pic version of libiberty
14195 # so that apps that use libbfd won't need libiberty just to satisfy any
14196 # libbfd references.
14197 # We can't do that if a pic libiberty is unavailable since including non-pic
14198 # code would insert text relocations into libbfd.
14199 SHARED_LIBADD=
14200 SHARED_LDFLAGS=
14201 if test "$enable_shared" = "yes"; then
14202   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14203   if test -n "$x"; then
14204     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14205   fi
14206
14207 # More hacks to build DLLs on Windows.
14208   case "${host}" in
14209   *-*-cygwin*)
14210     SHARED_LDFLAGS="-no-undefined"
14211     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14212   ;;
14213
14214   # Hack to build or1k-src on OSX
14215   or1k*-*-darwin*)
14216     SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
14217   ;;
14218   esac
14219
14220   if test -n "$SHARED_LIBADD"; then
14221     if test -n "$LIBM"; then
14222       if test x"$bfd_cv_ld_as_needed" = xyes; then
14223         # Link against libm only when needed.  Put -lc, -lm inside -Wl
14224         # to stop libtool reordering these options.
14225         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14226       else
14227         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14228       fi
14229     fi
14230   fi
14231 fi
14232
14233
14234
14235 # target stuff:
14236
14237 # Canonicalize the secondary target names.
14238 if test -n "$enable_targets" ; then
14239     for targ in `echo $enable_targets | sed 's/,/ /g'`
14240     do
14241         result=`$ac_config_sub $targ 2>/dev/null`
14242         if test -n "$result" ; then
14243             canon_targets="$canon_targets $result"
14244         else
14245             # Allow targets that config.sub doesn't recognize, like "all".
14246             canon_targets="$canon_targets $targ"
14247         fi
14248     done
14249 fi
14250
14251 all_targets=false
14252 defvec=
14253 selvecs=
14254 assocvecs=
14255 selarchs=
14256 TDEFINES=
14257 for targ in $target $canon_targets
14258 do
14259     if test "x$targ" = "xall"; then
14260         all_targets=true
14261         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14262     else
14263         . $srcdir/config.bfd
14264         if test "x$targ" = "x$target"; then
14265             defvec=$targ_defvec
14266         fi
14267         selvecs="$selvecs $targ_defvec $targ_selvecs"
14268         selarchs="$selarchs $targ_archs"
14269         TDEFINES="$TDEFINES $targ_cflags"
14270     fi
14271 done
14272
14273
14274 # This processing still needs to be done if we're to decide properly whether
14275 # 64-bit support needs to be compiled in.  Currently, it will be included if
14276 # the default or any other explicitly requested target requires it; it
14277 # will not be included on a 32-bit host if no 64-bit target is requested, and
14278 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14279 # used.
14280
14281 # uniq the default and selected vectors in all the configured targets.
14282 f=""
14283 for i in $selvecs ; do
14284     case " $f " in
14285     *" $i "*) ;;
14286     *) f="$f $i" ;;
14287     esac
14288 done
14289 selvecs="$f"
14290
14291
14292 # uniq the associated vectors in all the configured targets.
14293 f=""
14294 for i in $assocvecs ; do
14295     case " $f " in
14296     *" $i "*) ;;
14297     *) f="$f $i" ;;
14298     esac
14299 done
14300 assocvecs="$f"
14301
14302
14303 # uniq the architectures in all the configured targets.
14304 f=""
14305 for i in $selarchs ; do
14306     case " $f " in
14307     *" $i "*) ;;
14308     *) f="$f $i" ;;
14309     esac
14310 done
14311 selarchs="$f"
14312
14313 # Target backend .o files.
14314 tb=
14315
14316 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-properties.lo
14317      elf-eh-frame.lo dwarf1.lo dwarf2.lo"
14318 coffgen="coffgen.lo dwarf2.lo"
14319 coff="cofflink.lo $coffgen"
14320 ecoff="ecofflink.lo $coffgen"
14321 xcoff="xcofflink.lo $coffgen"
14322
14323 for vec in $selvecs
14324 do
14325     target_size=32
14326     case "$vec" in
14327     # This list is alphabetized to make it easy to compare
14328     # with the two vector lists in targets.c.  For the same reason,
14329     # use one entry per line, even though this leads to long lines.
14330     aarch64_elf32_be_vec)        tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14331     aarch64_elf32_le_vec)        tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
14332     aarch64_elf64_be_vec)          tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14333     aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14334     aarch64_elf64_le_vec)          tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14335     aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
14336     aarch64_mach_o_vec)          tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
14337     alpha_ecoff_le_vec)          tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
14338     alpha_elf64_vec)             tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14339     alpha_elf64_fbsd_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
14340     alpha_vms_vec)               tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
14341     alpha_vms_lib_txt_vec)       tb="$tb vms-lib.lo vms-misc.lo" ;;
14342     am33_elf32_linux_vec)        tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
14343     aout0_be_vec)                tb="$tb aout0.lo aout32.lo" ;;
14344     aout64_vec)                  tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
14345     aout_vec)                    tb="$tb host-aout.lo aout32.lo" ;;
14346     arc_elf32_be_vec)            tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14347     arc_elf32_le_vec)            tb="$tb elf32-arc.lo elf32.lo $elf" ;;
14348     arm_aout_be_vec)             tb="$tb aout-arm.lo aout32.lo" ;;
14349     arm_aout_le_vec)             tb="$tb aout-arm.lo aout32.lo" ;;
14350     arm_aout_nbsd_vec)           tb="$tb armnetbsd.lo aout32.lo" ;;
14351     arm_aout_riscix_vec)         tb="$tb aout32.lo riscix.lo" ;;
14352     arm_coff_be_vec)             tb="$tb coff-arm.lo $coff" ;;
14353     arm_coff_le_vec)             tb="$tb coff-arm.lo $coff" ;;
14354     arm_elf32_be_vec)            tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14355     arm_elf32_le_vec)            tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14356     arm_elf32_nacl_be_vec)       tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14357     arm_elf32_nacl_le_vec)       tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14358     arm_elf32_symbian_be_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14359     arm_elf32_symbian_le_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14360     arm_elf32_vxworks_be_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14361     arm_elf32_vxworks_le_vec)    tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
14362     arm_pe_be_vec)               tb="$tb pe-arm.lo peigen.lo $coff" ;;
14363     arm_pe_le_vec)               tb="$tb pe-arm.lo peigen.lo $coff" ;;
14364     arm_pe_wince_be_vec)         tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14365     arm_pe_wince_le_vec)         tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
14366     arm_pei_be_vec)              tb="$tb pei-arm.lo peigen.lo $coff" ;;
14367     arm_pei_le_vec)              tb="$tb pei-arm.lo peigen.lo $coff" ;;
14368     arm_pei_wince_be_vec)        tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14369     arm_pei_wince_le_vec)        tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
14370     arm_mach_o_vec)              tb="$tb mach-o-arm.lo" ;;
14371     avr_elf32_vec)               tb="$tb elf32-avr.lo elf32.lo $elf" ;;
14372     bfin_elf32_vec)              tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14373     bfin_elf32_fdpic_vec)        tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
14374     cr16_elf32_vec)              tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
14375     cr16c_elf32_vec)             tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
14376     cris_aout_vec)               tb="$tb aout-cris.lo" ;;
14377     cris_elf32_vec)              tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14378     cris_elf32_us_vec)           tb="$tb elf32-cris.lo elf32.lo $elf" ;;
14379     crx_elf32_vec)               tb="$tb elf32-crx.lo elf32.lo $elf" ;;
14380     d10v_elf32_vec)              tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
14381     d30v_elf32_vec)              tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
14382     dlx_elf32_be_vec)            tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
14383     elf32_be_vec)                tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14384     elf32_le_vec)                tb="$tb elf32-gen.lo elf32.lo $elf" ;;
14385     elf64_be_vec)                tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14386     elf64_le_vec)                tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14387     epiphany_elf32_vec)          tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
14388     fr30_elf32_vec)              tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
14389     frv_elf32_vec)               tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14390     frv_elf32_fdpic_vec)         tb="$tb elf32-frv.lo elf32.lo $elf" ;;
14391     h8300_elf32_vec)             tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14392     h8300_elf32_linux_vec)       tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
14393     hppa_elf32_vec)              tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14394     hppa_elf32_linux_vec)        tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14395     hppa_elf32_nbsd_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
14396     hppa_elf64_vec)              tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14397     hppa_elf64_linux_vec)        tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
14398     hppa_som_vec)                tb="$tb som.lo" ;;
14399     i386_aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
14400     i386_aout_bsd_vec)           tb="$tb i386bsd.lo aout32.lo" ;;
14401     i386_aout_lynx_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
14402     i386_coff_vec)               tb="$tb coff-i386.lo $coff" ;;
14403     i386_coff_go32_vec)          tb="$tb coff-go32.lo $coff" ;;
14404     i386_coff_go32stubbed_vec)   tb="$tb coff-stgo32.lo $coff" ;;
14405     i386_coff_lynx_vec)          tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
14406     i386_elf32_vec)              tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14407     i386_elf32_fbsd_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14408     i386_elf32_nacl_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14409     i386_elf32_sol2_vec)         tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14410     i386_elf32_vxworks_vec)      tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14411     i386_mach_o_vec)             tb="$tb mach-o-i386.lo" ;;
14412     i386_msdos_vec)              tb="$tb i386msdos.lo" ;;
14413     i386_pe_vec)                 tb="$tb pe-i386.lo peigen.lo $coff" ;;
14414     i386_pei_vec)                tb="$tb pei-i386.lo peigen.lo $coff" ;;
14415     iamcu_elf32_vec)             tb="$tb elf32-i386.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
14416     ia64_elf32_be_vec)           tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14417     ia64_elf32_hpux_be_vec)      tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
14418     ia64_elf64_be_vec)           tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14419     ia64_elf64_le_vec)           tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14420     ia64_elf64_hpux_be_vec)      tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
14421     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 ;;
14422     ia64_pei_vec)                tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
14423     ip2k_elf32_vec)              tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
14424     iq2000_elf32_vec)            tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
14425     k1om_elf64_vec)              tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14426     k1om_elf64_fbsd_vec)         tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14427     l1om_elf64_vec)              tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14428     l1om_elf64_fbsd_vec)         tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14429     lm32_elf32_vec)              tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14430     lm32_elf32_fdpic_vec)        tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
14431     m32c_elf32_vec)              tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
14432     m32r_elf32_vec)              tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14433     m32r_elf32_le_vec)           tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14434     m32r_elf32_linux_vec)        tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14435     m32r_elf32_linux_le_vec)     tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
14436     m68hc11_elf32_vec)           tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14437     m68hc12_elf32_vec)           tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
14438     m68k_elf32_vec)              tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
14439     mach_o_be_vec)               tb="$tb mach-o.lo dwarf2.lo" ;;
14440     mach_o_le_vec)               tb="$tb mach-o.lo dwarf2.lo" ;;
14441     mach_o_fat_vec)              tb="$tb mach-o.lo dwarf2.lo" ;;
14442     mcore_elf32_be_vec)          tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14443     mcore_elf32_le_vec)          tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
14444     mcore_pe_be_vec)             tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14445     mcore_pe_le_vec)             tb="$tb pe-mcore.lo peigen.lo $coff" ;;
14446     mcore_pei_be_vec)            tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14447     mcore_pei_le_vec)            tb="$tb pei-mcore.lo peigen.lo $coff" ;;
14448     mep_elf32_vec)               tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14449     mep_elf32_le_vec)            tb="$tb elf32-mep.lo elf32.lo $elf" ;;
14450     metag_elf32_vec)             tb="$tb elf32-metag.lo elf32.lo $elf" ;;
14451     microblaze_elf32_vec)        tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14452     microblaze_elf32_le_vec)     tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
14453     mips_ecoff_be_vec)           tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14454     mips_ecoff_le_vec)           tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14455     mips_ecoff_bele_vec)         tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
14456     mips_elf32_be_vec)           tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14457     mips_elf32_le_vec)           tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14458     mips_elf32_n_be_vec)         tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14459     mips_elf32_n_le_vec)         tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14460     mips_elf32_ntrad_be_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14461     mips_elf32_ntrad_le_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14462     mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14463     mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14464     mips_elf32_trad_be_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14465     mips_elf32_trad_le_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14466     mips_elf32_tradfbsd_be_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14467     mips_elf32_tradfbsd_le_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14468     mips_elf32_vxworks_be_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14469     mips_elf32_vxworks_le_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
14470     mips_elf64_be_vec)           tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14471     mips_elf64_le_vec)           tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
14472     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 ;;
14473     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 ;;
14474     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 ;;
14475     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 ;;
14476     mmix_elf64_vec)              tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
14477     mmix_mmo_vec)                        tb="$tb mmo.lo" target_size=64 ;;
14478     mn10200_elf32_vec)           tb="$tb elf-m10200.lo elf32.lo $elf" ;;
14479     mn10300_elf32_vec)           tb="$tb elf-m10300.lo elf32.lo $elf" ;;
14480     moxie_elf32_be_vec)          tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14481     moxie_elf32_le_vec)          tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
14482     msp430_elf32_vec)            tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14483     msp430_elf32_ti_vec)         tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
14484     mt_elf32_vec)                tb="$tb elf32-mt.lo elf32.lo $elf" ;;
14485     nds32_elf32_be_vec)          tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14486     nds32_elf32_le_vec)          tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14487     nds32_elf32_linux_be_vec)    tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14488     nds32_elf32_linux_le_vec)    tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
14489     nios2_elf32_be_vec)          tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14490     nios2_elf32_le_vec)          tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
14491     ns32k_aout_pc532mach_vec)    tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
14492     ns32k_aout_pc532nbsd_vec)    tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
14493     or1k_elf32_vec)              tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
14494     pdp11_aout_vec)              tb="$tb pdp11.lo" ;;
14495     pef_vec)                     tb="$tb pef.lo" ;;
14496     pef_xlib_vec)                tb="$tb pef.lo" ;;
14497     pj_elf32_vec)                tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14498     pj_elf32_le_vec)             tb="$tb elf32-pj.lo elf32.lo $elf" ;;
14499     plugin_vec)                  tb="$tb plugin.lo" ;;
14500     powerpc_boot_vec)            tb="$tb ppcboot.lo" ;;
14501     powerpc_elf32_vec)           tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14502     powerpc_elf32_le_vec)        tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14503     powerpc_elf32_fbsd_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14504     powerpc_elf32_vxworks_vec)   tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
14505     powerpc_elf64_vec)           tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
14506     powerpc_elf64_le_vec)        tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14507     powerpc_elf64_fbsd_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
14508     powerpc_pe_vec)              tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14509     powerpc_pe_le_vec)           tb="$tb pe-ppc.lo peigen.lo $coff" ;;
14510     powerpc_pei_vec)             tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14511     powerpc_pei_le_vec)          tb="$tb pei-ppc.lo peigen.lo $coff" ;;
14512     powerpc_xcoff_vec)           tb="$tb coff-rs6000.lo $xcoff" ;;
14513     pru_elf32_vec)               tb="$tb elf32-pru.lo elf32.lo $elf" ;;
14514     riscv_elf32_vec)             tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
14515     riscv_elf64_vec)             tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
14516     rl78_elf32_vec)              tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
14517     rs6000_xcoff64_vec)          tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14518     rs6000_xcoff64_aix_vec)      tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
14519     rs6000_xcoff_vec)            tb="$tb coff-rs6000.lo $xcoff" ;;
14520     rx_elf32_be_vec)             tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14521     rx_elf32_be_ns_vec)          tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14522     rx_elf32_le_vec)             tb="$tb elf32-rx.lo elf32.lo $elf" ;;
14523     s390_elf32_vec)              tb="$tb elf32-s390.lo elf32.lo $elf" ;;
14524     s390_elf64_vec)              tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
14525     score_elf32_be_vec)          tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14526     score_elf32_le_vec)          tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
14527     sh_coff_vec)                 tb="$tb coff-sh.lo $coff" ;;
14528     sh_coff_le_vec)              tb="$tb coff-sh.lo $coff" ;;
14529     sh_coff_small_vec)           tb="$tb coff-sh.lo $coff" ;;
14530     sh_coff_small_le_vec)        tb="$tb coff-sh.lo $coff" ;;
14531     sh_elf32_vec)                tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14532     sh_elf32_le_vec)             tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14533     sh_elf32_fdpic_be_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14534     sh_elf32_fdpic_le_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14535     sh_elf32_linux_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14536     sh_elf32_linux_be_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14537     sh_elf32_nbsd_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14538     sh_elf32_nbsd_le_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14539     sh_elf32_vxworks_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14540     sh_elf32_vxworks_le_vec)     tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
14541     sh_pe_le_vec)                tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
14542     sh_pei_le_vec)               tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
14543     sparc_elf32_vec)             tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14544     sparc_elf32_sol2_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14545     sparc_elf32_vxworks_vec)     tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
14546     sparc_elf64_vec)             tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14547     sparc_elf64_fbsd_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14548     sparc_elf64_sol2_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
14549     spu_elf32_vec)               tb="$tb elf32-spu.lo elf32.lo $elf" ;;
14550     sym_vec)                     tb="$tb xsym.lo" ;;
14551     tic30_aout_vec)              tb="$tb aout-tic30.lo" ;;
14552     tic30_coff_vec)              tb="$tb coff-tic30.lo $coffgen" ;;
14553     tic4x_coff0_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
14554     tic4x_coff0_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
14555     tic4x_coff1_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
14556     tic4x_coff1_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
14557     tic4x_coff2_vec)             tb="$tb coff-tic4x.lo $coffgen" ;;
14558     tic4x_coff2_beh_vec)         tb="$tb coff-tic4x.lo $coffgen" ;;
14559     tic54x_coff0_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
14560     tic54x_coff0_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
14561     tic54x_coff1_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
14562     tic54x_coff1_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
14563     tic54x_coff2_vec)            tb="$tb coff-tic54x.lo $coffgen" ;;
14564     tic54x_coff2_beh_vec)        tb="$tb coff-tic54x.lo $coffgen" ;;
14565     tic6x_elf32_be_vec)          tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14566     tic6x_elf32_le_vec)          tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14567     tic6x_elf32_c6000_be_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14568     tic6x_elf32_c6000_le_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14569     tic6x_elf32_linux_be_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14570     tic6x_elf32_linux_le_vec)    tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
14571     tic80_coff_vec)              tb="$tb coff-tic80.lo $coff" ;;
14572     tilegx_elf32_be_vec)         tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14573     tilegx_elf32_le_vec)         tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
14574     tilegx_elf64_be_vec)         tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14575     tilegx_elf64_le_vec)         tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
14576     tilepro_elf32_vec)           tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
14577     v800_elf32_vec)              tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14578     v850_elf32_vec)              tb="$tb elf32-v850.lo elf32.lo $elf" ;;
14579     vax_aout_1knbsd_vec)         tb="$tb vax1knetbsd.lo aout32.lo" ;;
14580     vax_aout_nbsd_vec)           tb="$tb vaxnetbsd.lo aout32.lo" ;;
14581     vax_elf32_vec)               tb="$tb elf32-vax.lo elf32.lo $elf" ;;
14582     ft32_elf32_vec)              tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
14583     visium_elf32_vec)            tb="$tb elf32-visium.lo elf32.lo $elf" ;;
14584     wasm_vec)                    tb="$tb wasm-module.lo" ;;
14585     wasm32_elf32_vec)            tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
14586     x86_64_coff_vec)             tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
14587     x86_64_elf32_vec)            tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14588     x86_64_elf32_nacl_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
14589     x86_64_elf64_vec)            tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14590     x86_64_elf64_cloudabi_vec)   tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14591     x86_64_elf64_fbsd_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14592     x86_64_elf64_nacl_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14593     x86_64_elf64_sol2_vec)       tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
14594     x86_64_mach_o_vec)           tb="$tb mach-o-x86-64.lo" ;;
14595     x86_64_pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14596     x86_64_pe_be_vec)            tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14597     x86_64_pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
14598     xc16x_elf32_vec)             tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
14599     xgate_elf32_vec)             tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
14600     xstormy16_elf32_vec)         tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
14601     xtensa_elf32_be_vec)         tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14602     xtensa_elf32_le_vec)         tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
14603     z80_coff_vec)                tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
14604     z8k_coff_vec)                tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
14605
14606     # These appear out of order in targets.c
14607     srec_vec)                    tb="$tb srec.lo" ;;
14608     symbolsrec_vec)              tb="$tb srec.lo" ;;
14609     tekhex_vec)                  tb="$tb tekhex.lo" ;;
14610     core_cisco_be_vec)           tb="$tb cisco-core.lo" ;;
14611     core_cisco_le_vec)           tb="$tb cisco-core.lo" ;;
14612
14613     "")                          ;;
14614     *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
14615     esac
14616
14617     if test ${target_size} = 64; then
14618         target64=true
14619     fi
14620     if test x"${vec}" = x"${defvec}"; then
14621         bfd_default_target_size=${target_size}
14622     fi
14623 done
14624
14625 # Target architecture .o files.
14626 # A couple of CPUs use shorter file names to avoid problems on DOS
14627 # filesystems.
14628 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
14629
14630 # Weed out duplicate .o files.
14631 f=""
14632 for i in $tb ; do
14633     case " $f " in
14634     *" $i "*) ;;
14635     *) f="$f $i" ;;
14636     esac
14637 done
14638 tb="$f"
14639
14640 f=""
14641 for i in $ta ; do
14642     case " $f " in
14643     *" $i "*) ;;
14644     *) f="$f $i" ;;
14645     esac
14646 done
14647 ta="$f"
14648
14649 bfd_backends="$tb"
14650 bfd_machines="$ta"
14651
14652 if test x${all_targets} = xtrue ; then
14653   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
14654   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
14655   selvecs=
14656   havevecs=-DHAVE_all_vecs
14657   selarchs=
14658   test -n "$assocvecs" &&
14659     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14660 else    # all_targets is true
14661   # Only set these if they will be nonempty, for the clever echo.
14662   havevecs=
14663   assocvecs=
14664   test -n "$selvecs" &&
14665     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
14666   test -n "$selvecs" &&
14667     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14668   test -n "$selarchs" &&
14669     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
14670 fi      # all_targets is true
14671
14672 # 64-bit archives need a 64-bit bfd_vma.
14673 if test "x$want_64_bit_archive" = xtrue; then
14674   want64=true
14675
14676 $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h
14677
14678 fi
14679
14680 case ${host64}-${target64}-${want64} in
14681   *true*)
14682     wordsize=64
14683     bfd64_libs='$(BFD64_LIBS)'
14684     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
14685     if test $BFD_HOST_64_BIT_DEFINED = 0; then
14686       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
14687 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
14688       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
14689 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
14690     fi
14691     if test -n "$GCC" ; then
14692        bad_64bit_gcc=no;
14693        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
14694 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
14695        # Add more tests for gcc versions with non-working 64-bit support here.
14696        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14697 /* end confdefs.h.  */
14698 :__GNUC__:__GNUC_MINOR__:__i386__:
14699 _ACEOF
14700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14701   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
14702   bad_64bit_gcc=yes;
14703                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
14704 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
14705 else
14706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14707 $as_echo "no" >&6; }
14708 fi
14709 rm -f conftest*
14710
14711        if test $bad_64bit_gcc = yes ; then
14712          as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
14713        fi
14714     fi
14715     ;;
14716   false-false-false)
14717     wordsize=32
14718     all_backends='$(BFD32_BACKENDS)'
14719     ;;
14720 esac
14721
14722 tdefaults=""
14723 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
14724 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
14725 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
14726 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737 # If we are configured native, pick a core file support file.
14738 COREFILE=
14739 COREFLAG=
14740 CORE_HEADER=
14741 TRAD_HEADER=
14742 if test "${target}" = "${host}"; then
14743   case "${host}" in
14744   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
14745         COREFILE=''
14746         ;;
14747   alpha*-*-linux-*)
14748         COREFILE=trad-core.lo
14749         TRAD_HEADER='"hosts/alphalinux.h"'
14750         ;;
14751   alpha*-*-netbsd* | alpha*-*-openbsd*)
14752         COREFILE=netbsd-core.lo
14753         ;;
14754   alpha*-*-*)
14755         COREFILE=osf-core.lo
14756         ;;
14757   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
14758         COREFILE='' ;;
14759   arm-*-netbsd* | arm-*-openbsd*)
14760         COREFILE=netbsd-core.lo
14761         ;;
14762   arm-*-riscix)         COREFILE=trad-core.lo ;;
14763   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
14764   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
14765   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
14766   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
14767                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
14768   hppa*-*-netbsd* | hppa*-*-openbsd*)
14769         COREFILE=netbsd-core.lo
14770         ;;
14771
14772   i[3-7]86-sequent-bsd*)
14773         COREFILE=trad-core.lo
14774         TRAD_HEADER='"hosts/symmetry.h"'
14775         ;;
14776   i[3-7]86-sequent-sysv4*) ;;
14777   i[3-7]86-sequent-sysv*)
14778         COREFILE=trad-core.lo
14779         TRAD_HEADER='"hosts/symmetry.h"'
14780         ;;
14781   i[3-7]86-*-bsdi)
14782         COREFILE=
14783         ;;
14784   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*)
14785         COREFILE=trad-core.lo
14786         TRAD_HEADER='"hosts/i386bsd.h"'
14787         ;;
14788   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
14789         COREFILE=''
14790         TRAD_HEADER='"hosts/i386bsd.h"'
14791         ;;
14792   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
14793         COREFILE=netbsd-core.lo
14794         ;;
14795   i[3-7]86-esix-sysv3*)
14796         COREFILE=trad-core.lo
14797         TRAD_HEADER='"hosts/esix.h"'
14798         ;;
14799   i[3-7]86-*-sco3.2v5*)
14800         COREFILE=sco5-core.lo
14801         ;;
14802   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
14803         COREFILE=trad-core.lo
14804         TRAD_HEADER='"hosts/i386sco.h"'
14805         ;;
14806   i[3-7]86-*-mach3*)
14807         COREFILE=trad-core.lo
14808         TRAD_HEADER='"hosts/i386mach3.h"'
14809         ;;
14810   i[3-7]86-*-linux-*)
14811         COREFILE=trad-core.lo
14812         TRAD_HEADER='"hosts/i386linux.h"'
14813         case "$enable_targets"-"$want64" in
14814         *x86_64-*linux*|*-true)
14815           CORE_HEADER='"hosts/x86-64linux.h"'
14816         esac
14817         ;;
14818   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
14819   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
14820   mips-*-netbsd* | mips*-*-openbsd*)
14821         COREFILE=netbsd-core.lo
14822         ;;
14823   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
14824   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
14825   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
14826   m68*-*-linux-*)
14827         COREFILE=trad-core.lo
14828         TRAD_HEADER='"hosts/m68klinux.h"'
14829         ;;
14830   m68*-*-netbsd*)
14831         COREFILE=netbsd-core.lo
14832         ;;
14833   ns32k-pc532-mach)
14834         COREFILE=trad-core.lo
14835         TRAD_HEADER='"hosts/pc532mach.h"'
14836         ;;
14837   ns32k-*-netbsd* | ns32k-*-openbsd*)
14838         COREFILE=netbsd-core.lo
14839         ;;
14840   rs6000-*-lynx*)
14841         COREFILE=lynx-core.lo
14842         ;;
14843   rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
14844         COREFILE=rs6000-core.lo
14845         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
14846         ;;
14847   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
14848         COREFILE=rs6000-core.lo
14849         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
14850         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
14851         # have c_impl as a member of struct core_dumpx
14852         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
14853 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
14854         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h.  */
14856 #include <core.h>
14857 int
14858 main ()
14859 {
14860 struct core_dumpx c; c.c_impl = 0;
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866
14867 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14868
14869           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14870 $as_echo "yes" >&6; }
14871 else
14872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14873 $as_echo "no" >&6; }
14874 fi
14875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14876         ;;
14877   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
14878   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
14879   powerpc64-*-aix*)     COREFILE=rs6000-core.lo ;;
14880   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
14881   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
14882   powerpc-*-beos*)      ;;
14883   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14884                         COREFILE='' ;;
14885   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
14886   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
14887   s390*-*-*)            COREFILE=trad-core.lo ;;
14888   sh*-*-netbsd* | sh*-*-openbsd*)
14889         COREFILE=netbsd-core.lo
14890         ;;
14891   sparc-*-netbsd* | sparc*-*-openbsd*)
14892         COREFILE=netbsd-core.lo
14893         ;;
14894   vax-*-netbsd* | vax-*-openbsd*)
14895         COREFILE=netbsd-core.lo
14896         ;;
14897   vax-*-ultrix2*)
14898         COREFILE=trad-core.lo
14899         TRAD_HEADER='"hosts/vaxult2.h"'
14900         ;;
14901   vax-*-ultrix*)
14902         COREFILE=trad-core.lo
14903         TRAD_HEADER='"hosts/vaxult2.h"'
14904         ;;
14905   vax-*-linux-*)
14906         COREFILE=trad-core.lo
14907         TRAD_HEADER='"hosts/vaxlinux.h"'
14908         ;;
14909   vax-*-*)
14910         COREFILE=trad-core.lo
14911         TRAD_HEADER='"hosts/vaxbsd.h"'
14912         ;;
14913   x86_64-*-linux*)
14914         CORE_HEADER='"hosts/x86-64linux.h"'
14915         ;;
14916   x86_64-*-netbsd* | x86_64-*-openbsd*)
14917         COREFILE=netbsd-core.lo
14918         ;;
14919   esac
14920
14921   case "$COREFILE" in
14922   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
14923   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
14924   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
14925   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
14926   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
14927   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
14928   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
14929   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
14930   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
14931   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14932   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14933   esac
14934
14935   # ELF corefile support has several flavors, but all of
14936   # them use something called <sys/procfs.h>
14937   for ac_header in sys/procfs.h
14938 do :
14939   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14940 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14941   cat >>confdefs.h <<_ACEOF
14942 #define HAVE_SYS_PROCFS_H 1
14943 _ACEOF
14944
14945 fi
14946
14947 done
14948
14949   if test "$ac_cv_header_sys_procfs_h" = yes; then
14950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14951 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14952  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14953   $as_echo_n "(cached) " >&6
14954 else
14955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h.  */
14957
14958 #define _SYSCALL32
14959 /* Needed for new procfs interface on sparc-solaris.  */
14960 #define _STRUCTURED_PROC 1
14961 #include <sys/procfs.h>
14962 int
14963 main ()
14964 {
14965 prstatus_t avar
14966   ;
14967   return 0;
14968 }
14969 _ACEOF
14970 if ac_fn_c_try_compile "$LINENO"; then :
14971   bfd_cv_have_sys_procfs_type_prstatus_t=yes
14972 else
14973   bfd_cv_have_sys_procfs_type_prstatus_t=no
14974
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 fi
14978
14979  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
14980
14981 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
14982
14983  fi
14984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14985 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
14986
14987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14988 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14989  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14990   $as_echo_n "(cached) " >&6
14991 else
14992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14993 /* end confdefs.h.  */
14994
14995 #define _SYSCALL32
14996 /* Needed for new procfs interface on sparc-solaris.  */
14997 #define _STRUCTURED_PROC 1
14998 #include <sys/procfs.h>
14999 int
15000 main ()
15001 {
15002 prstatus32_t avar
15003   ;
15004   return 0;
15005 }
15006 _ACEOF
15007 if ac_fn_c_try_compile "$LINENO"; then :
15008   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
15009 else
15010   bfd_cv_have_sys_procfs_type_prstatus32_t=no
15011
15012 fi
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015
15016  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
15017
15018 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
15019
15020  fi
15021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
15022 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
15023
15024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
15025 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
15026  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
15027   $as_echo_n "(cached) " >&6
15028 else
15029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15030 /* end confdefs.h.  */
15031
15032 #define _SYSCALL32
15033 /* Needed for new procfs interface on sparc-solaris.  */
15034 #define _STRUCTURED_PROC 1
15035 #include <sys/procfs.h>
15036 int
15037 main ()
15038 {
15039 prstatus_t avar; void* aref = (void*) &avar.pr_who
15040   ;
15041   return 0;
15042 }
15043 _ACEOF
15044 if ac_fn_c_try_compile "$LINENO"; then :
15045   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
15046 else
15047   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
15048
15049 fi
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 fi
15052
15053  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
15054
15055 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
15056
15057  fi
15058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
15059 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
15060
15061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
15062 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
15063  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
15064   $as_echo_n "(cached) " >&6
15065 else
15066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15067 /* end confdefs.h.  */
15068
15069 #define _SYSCALL32
15070 /* Needed for new procfs interface on sparc-solaris.  */
15071 #define _STRUCTURED_PROC 1
15072 #include <sys/procfs.h>
15073 int
15074 main ()
15075 {
15076 prstatus32_t avar; void* aref = (void*) &avar.pr_who
15077   ;
15078   return 0;
15079 }
15080 _ACEOF
15081 if ac_fn_c_try_compile "$LINENO"; then :
15082   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
15083 else
15084   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
15085
15086 fi
15087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 fi
15089
15090  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
15091
15092 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
15093
15094  fi
15095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
15096 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
15097
15098     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
15099 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
15100  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
15101   $as_echo_n "(cached) " >&6
15102 else
15103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h.  */
15105
15106 #define _SYSCALL32
15107 /* Needed for new procfs interface on sparc-solaris.  */
15108 #define _STRUCTURED_PROC 1
15109 #include <sys/procfs.h>
15110 int
15111 main ()
15112 {
15113 pstatus_t avar
15114   ;
15115   return 0;
15116 }
15117 _ACEOF
15118 if ac_fn_c_try_compile "$LINENO"; then :
15119   bfd_cv_have_sys_procfs_type_pstatus_t=yes
15120 else
15121   bfd_cv_have_sys_procfs_type_pstatus_t=no
15122
15123 fi
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 fi
15126
15127  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
15128
15129 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
15130
15131  fi
15132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
15133 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
15134
15135     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
15136 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
15137  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
15138   $as_echo_n "(cached) " >&6
15139 else
15140   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15141 /* end confdefs.h.  */
15142
15143 #define _SYSCALL32
15144 /* Needed for new procfs interface on sparc-solaris.  */
15145 #define _STRUCTURED_PROC 1
15146 #include <sys/procfs.h>
15147 int
15148 main ()
15149 {
15150 pxstatus_t avar
15151   ;
15152   return 0;
15153 }
15154 _ACEOF
15155 if ac_fn_c_try_compile "$LINENO"; then :
15156   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
15157 else
15158   bfd_cv_have_sys_procfs_type_pxstatus_t=no
15159
15160 fi
15161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162 fi
15163
15164  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
15165
15166 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
15167
15168  fi
15169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
15170 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
15171
15172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
15173 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
15174  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
15175   $as_echo_n "(cached) " >&6
15176 else
15177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15178 /* end confdefs.h.  */
15179
15180 #define _SYSCALL32
15181 /* Needed for new procfs interface on sparc-solaris.  */
15182 #define _STRUCTURED_PROC 1
15183 #include <sys/procfs.h>
15184 int
15185 main ()
15186 {
15187 pstatus32_t avar
15188   ;
15189   return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_compile "$LINENO"; then :
15193   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
15194 else
15195   bfd_cv_have_sys_procfs_type_pstatus32_t=no
15196
15197 fi
15198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15199 fi
15200
15201  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
15202
15203 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
15204
15205  fi
15206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
15207 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
15208
15209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
15210 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
15211  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
15212   $as_echo_n "(cached) " >&6
15213 else
15214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h.  */
15216
15217 #define _SYSCALL32
15218 /* Needed for new procfs interface on sparc-solaris.  */
15219 #define _STRUCTURED_PROC 1
15220 #include <sys/procfs.h>
15221 int
15222 main ()
15223 {
15224 prpsinfo_t avar
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 if ac_fn_c_try_compile "$LINENO"; then :
15230   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
15231 else
15232   bfd_cv_have_sys_procfs_type_prpsinfo_t=no
15233
15234 fi
15235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15236 fi
15237
15238  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
15239
15240 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
15241
15242  fi
15243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
15244 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
15245
15246     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5
15247 $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; }
15248  if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+set}" = set; then :
15249   $as_echo_n "(cached) " >&6
15250 else
15251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15252 /* end confdefs.h.  */
15253
15254 #define _SYSCALL32
15255 /* Needed for new procfs interface on sparc-solaris.  */
15256 #define _STRUCTURED_PROC 1
15257 #include <sys/procfs.h>
15258 int
15259 main ()
15260 {
15261 prpsinfo_t avar; void* aref = (void*) &avar.pr_pid
15262   ;
15263   return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_compile "$LINENO"; then :
15267   bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes
15268 else
15269   bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no
15270
15271 fi
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 fi
15274
15275  if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then
15276
15277 $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h
15278
15279  fi
15280  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5
15281 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; }
15282
15283     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
15284 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
15285  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
15286   $as_echo_n "(cached) " >&6
15287 else
15288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15289 /* end confdefs.h.  */
15290
15291 #define _SYSCALL32
15292 /* Needed for new procfs interface on sparc-solaris.  */
15293 #define _STRUCTURED_PROC 1
15294 #include <sys/procfs.h>
15295 int
15296 main ()
15297 {
15298 prpsinfo32_t avar
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 if ac_fn_c_try_compile "$LINENO"; then :
15304   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
15305 else
15306   bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
15307
15308 fi
15309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15310 fi
15311
15312  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
15313
15314 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
15315
15316  fi
15317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
15318 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
15319
15320     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5
15321 $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15322  if test "${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+set}" = set; then :
15323   $as_echo_n "(cached) " >&6
15324 else
15325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15326 /* end confdefs.h.  */
15327
15328 #define _SYSCALL32
15329 /* Needed for new procfs interface on sparc-solaris.  */
15330 #define _STRUCTURED_PROC 1
15331 #include <sys/procfs.h>
15332 int
15333 main ()
15334 {
15335 prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 if ac_fn_c_try_compile "$LINENO"; then :
15341   bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes
15342 else
15343   bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no
15344
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347 fi
15348
15349  if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then
15350
15351 $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h
15352
15353  fi
15354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5
15355 $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; }
15356
15357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
15358 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
15359  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
15360   $as_echo_n "(cached) " >&6
15361 else
15362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15363 /* end confdefs.h.  */
15364
15365 #define _SYSCALL32
15366 /* Needed for new procfs interface on sparc-solaris.  */
15367 #define _STRUCTURED_PROC 1
15368 #include <sys/procfs.h>
15369 int
15370 main ()
15371 {
15372 psinfo_t avar
15373   ;
15374   return 0;
15375 }
15376 _ACEOF
15377 if ac_fn_c_try_compile "$LINENO"; then :
15378   bfd_cv_have_sys_procfs_type_psinfo_t=yes
15379 else
15380   bfd_cv_have_sys_procfs_type_psinfo_t=no
15381
15382 fi
15383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15384 fi
15385
15386  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
15387
15388 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
15389
15390  fi
15391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
15392 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
15393
15394     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5
15395 $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; }
15396  if test "${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+set}" = set; then :
15397   $as_echo_n "(cached) " >&6
15398 else
15399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h.  */
15401
15402 #define _SYSCALL32
15403 /* Needed for new procfs interface on sparc-solaris.  */
15404 #define _STRUCTURED_PROC 1
15405 #include <sys/procfs.h>
15406 int
15407 main ()
15408 {
15409 psinfo_t avar; void* aref = (void*) &avar.pr_pid
15410   ;
15411   return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_compile "$LINENO"; then :
15415   bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes
15416 else
15417   bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no
15418
15419 fi
15420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15421 fi
15422
15423  if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then
15424
15425 $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h
15426
15427  fi
15428  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5
15429 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; }
15430
15431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
15432 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
15433  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
15434   $as_echo_n "(cached) " >&6
15435 else
15436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15437 /* end confdefs.h.  */
15438
15439 #define _SYSCALL32
15440 /* Needed for new procfs interface on sparc-solaris.  */
15441 #define _STRUCTURED_PROC 1
15442 #include <sys/procfs.h>
15443 int
15444 main ()
15445 {
15446 psinfo32_t avar
15447   ;
15448   return 0;
15449 }
15450 _ACEOF
15451 if ac_fn_c_try_compile "$LINENO"; then :
15452   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
15453 else
15454   bfd_cv_have_sys_procfs_type_psinfo32_t=no
15455
15456 fi
15457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 fi
15459
15460  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
15461
15462 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
15463
15464  fi
15465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
15466 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
15467
15468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5
15469 $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; }
15470  if test "${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+set}" = set; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474 /* end confdefs.h.  */
15475
15476 #define _SYSCALL32
15477 /* Needed for new procfs interface on sparc-solaris.  */
15478 #define _STRUCTURED_PROC 1
15479 #include <sys/procfs.h>
15480 int
15481 main ()
15482 {
15483 psinfo32_t avar; void* aref = (void*) &avar.pr_pid
15484   ;
15485   return 0;
15486 }
15487 _ACEOF
15488 if ac_fn_c_try_compile "$LINENO"; then :
15489   bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes
15490 else
15491   bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no
15492
15493 fi
15494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15495 fi
15496
15497  if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then
15498
15499 $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h
15500
15501  fi
15502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5
15503 $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; }
15504
15505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
15506 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
15507  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
15508   $as_echo_n "(cached) " >&6
15509 else
15510   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h.  */
15512
15513 #define _SYSCALL32
15514 /* Needed for new procfs interface on sparc-solaris.  */
15515 #define _STRUCTURED_PROC 1
15516 #include <sys/procfs.h>
15517 int
15518 main ()
15519 {
15520 lwpstatus_t avar
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 if ac_fn_c_try_compile "$LINENO"; then :
15526   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
15527 else
15528   bfd_cv_have_sys_procfs_type_lwpstatus_t=no
15529
15530 fi
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 fi
15533
15534  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
15535
15536 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
15537
15538  fi
15539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
15540 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
15541
15542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
15543 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
15544  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
15545   $as_echo_n "(cached) " >&6
15546 else
15547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15548 /* end confdefs.h.  */
15549
15550 #define _SYSCALL32
15551 /* Needed for new procfs interface on sparc-solaris.  */
15552 #define _STRUCTURED_PROC 1
15553 #include <sys/procfs.h>
15554 int
15555 main ()
15556 {
15557 lwpxstatus_t avar
15558   ;
15559   return 0;
15560 }
15561 _ACEOF
15562 if ac_fn_c_try_compile "$LINENO"; then :
15563   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
15564 else
15565   bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
15566
15567 fi
15568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15569 fi
15570
15571  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
15572
15573 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
15574
15575  fi
15576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
15577 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
15578
15579     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
15580 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
15581  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
15582   $as_echo_n "(cached) " >&6
15583 else
15584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h.  */
15586
15587 #define _SYSCALL32
15588 /* Needed for new procfs interface on sparc-solaris.  */
15589 #define _STRUCTURED_PROC 1
15590 #include <sys/procfs.h>
15591 int
15592 main ()
15593 {
15594 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
15595   ;
15596   return 0;
15597 }
15598 _ACEOF
15599 if ac_fn_c_try_compile "$LINENO"; then :
15600   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
15601 else
15602   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
15603
15604 fi
15605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15606 fi
15607
15608  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
15609
15610 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
15611
15612  fi
15613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
15614 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
15615
15616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
15617 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
15618  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
15619   $as_echo_n "(cached) " >&6
15620 else
15621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h.  */
15623
15624 #define _SYSCALL32
15625 /* Needed for new procfs interface on sparc-solaris.  */
15626 #define _STRUCTURED_PROC 1
15627 #include <sys/procfs.h>
15628 int
15629 main ()
15630 {
15631 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 if ac_fn_c_try_compile "$LINENO"; then :
15637   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
15638 else
15639   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
15640
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 fi
15644
15645  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
15646
15647 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
15648
15649  fi
15650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
15651 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
15652
15653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
15654 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
15655  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
15656   $as_echo_n "(cached) " >&6
15657 else
15658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15659 /* end confdefs.h.  */
15660
15661 #define _SYSCALL32
15662 /* Needed for new procfs interface on sparc-solaris.  */
15663 #define _STRUCTURED_PROC 1
15664 #include <sys/procfs.h>
15665 int
15666 main ()
15667 {
15668 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
15669   ;
15670   return 0;
15671 }
15672 _ACEOF
15673 if ac_fn_c_try_compile "$LINENO"; then :
15674   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
15675 else
15676   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
15677
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15680 fi
15681
15682  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
15683
15684 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
15685
15686  fi
15687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
15688 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
15689
15690     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
15691 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
15692  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
15693   $as_echo_n "(cached) " >&6
15694 else
15695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h.  */
15697
15698 #define _SYSCALL32
15699 /* Needed for new procfs interface on sparc-solaris.  */
15700 #define _STRUCTURED_PROC 1
15701 #include <sys/procfs.h>
15702 int
15703 main ()
15704 {
15705 win32_pstatus_t avar
15706   ;
15707   return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_compile "$LINENO"; then :
15711   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
15712 else
15713   bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
15714
15715 fi
15716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15717 fi
15718
15719  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
15720
15721 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
15722
15723  fi
15724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
15725 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
15726
15727   fi
15728 fi
15729
15730
15731 if test -n "$CORE_HEADER"; then
15732
15733 cat >>confdefs.h <<_ACEOF
15734 #define CORE_HEADER $CORE_HEADER
15735 _ACEOF
15736
15737 fi
15738 if test -n "$TRAD_HEADER"; then
15739
15740 cat >>confdefs.h <<_ACEOF
15741 #define TRAD_HEADER $TRAD_HEADER
15742 _ACEOF
15743
15744 fi
15745
15746 if test "$plugins" = "yes"; then
15747   supports_plugins=1
15748 else
15749   supports_plugins=0
15750 fi
15751
15752
15753
15754 # Determine the host dependent file_ptr a.k.a. off_t type.  In order
15755 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15756 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
15757 # Hopefully a reasonable assumption since fseeko et.al. should be
15758 # upward compatible.
15759 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15760 do :
15761   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15763 eval as_val=\$$as_ac_var
15764    if test "x$as_val" = x""yes; then :
15765   cat >>confdefs.h <<_ACEOF
15766 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15767 _ACEOF
15768
15769 fi
15770 done
15771
15772 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15773     # The cast to long int works around a bug in the HP C Compiler
15774 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15775 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15776 # This bug is HP SR number 8606223364.
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15778 $as_echo_n "checking size of off_t... " >&6; }
15779 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15780   $as_echo_n "(cached) " >&6
15781 else
15782   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
15783
15784 else
15785   if test "$ac_cv_type_off_t" = yes; then
15786      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15787 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15788 { as_fn_set_status 77
15789 as_fn_error "cannot compute sizeof (off_t)
15790 See \`config.log' for more details." "$LINENO" 5; }; }
15791    else
15792      ac_cv_sizeof_off_t=0
15793    fi
15794 fi
15795
15796 fi
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15798 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15799
15800
15801
15802 cat >>confdefs.h <<_ACEOF
15803 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15804 _ACEOF
15805
15806
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15809 $as_echo_n "checking file_ptr type... " >&6; }
15810 bfd_file_ptr="long"
15811 bfd_ufile_ptr="unsigned long"
15812 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15813         -o x"${ac_cv_sizeof_off_t}" = x8; then
15814     bfd_file_ptr=BFD_HOST_64_BIT
15815     bfd_ufile_ptr=BFD_HOST_U_64_BIT
15816 fi
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15818 $as_echo "$bfd_file_ptr" >&6; }
15819
15820
15821
15822 for ac_header in stdlib.h unistd.h
15823 do :
15824   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15825 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15826 eval as_val=\$$as_ac_Header
15827    if test "x$as_val" = x""yes; then :
15828   cat >>confdefs.h <<_ACEOF
15829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15830 _ACEOF
15831
15832 fi
15833
15834 done
15835
15836 for ac_func in getpagesize
15837 do :
15838   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15839 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15840   cat >>confdefs.h <<_ACEOF
15841 #define HAVE_GETPAGESIZE 1
15842 _ACEOF
15843
15844 fi
15845 done
15846
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15848 $as_echo_n "checking for working mmap... " >&6; }
15849 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15850   $as_echo_n "(cached) " >&6
15851 else
15852   if test "$cross_compiling" = yes; then :
15853   ac_cv_func_mmap_fixed_mapped=no
15854 else
15855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15856 /* end confdefs.h.  */
15857 $ac_includes_default
15858 /* malloc might have been renamed as rpl_malloc. */
15859 #undef malloc
15860
15861 /* Thanks to Mike Haertel and Jim Avera for this test.
15862    Here is a matrix of mmap possibilities:
15863         mmap private not fixed
15864         mmap private fixed at somewhere currently unmapped
15865         mmap private fixed at somewhere already mapped
15866         mmap shared not fixed
15867         mmap shared fixed at somewhere currently unmapped
15868         mmap shared fixed at somewhere already mapped
15869    For private mappings, we should verify that changes cannot be read()
15870    back from the file, nor mmap's back from the file at a different
15871    address.  (There have been systems where private was not correctly
15872    implemented like the infamous i386 svr4.0, and systems where the
15873    VM page cache was not coherent with the file system buffer cache
15874    like early versions of FreeBSD and possibly contemporary NetBSD.)
15875    For shared mappings, we should conversely verify that changes get
15876    propagated back to all the places they're supposed to be.
15877
15878    Grep wants private fixed already mapped.
15879    The main things grep needs to know about mmap are:
15880    * does it exist and is it safe to write into the mmap'd area
15881    * how to use it (BSD variants)  */
15882
15883 #include <fcntl.h>
15884 #include <sys/mman.h>
15885
15886 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15887 char *malloc ();
15888 #endif
15889
15890 /* This mess was copied from the GNU getpagesize.h.  */
15891 #ifndef HAVE_GETPAGESIZE
15892 /* Assume that all systems that can run configure have sys/param.h.  */
15893 # ifndef HAVE_SYS_PARAM_H
15894 #  define HAVE_SYS_PARAM_H 1
15895 # endif
15896
15897 # ifdef _SC_PAGESIZE
15898 #  define getpagesize() sysconf(_SC_PAGESIZE)
15899 # else /* no _SC_PAGESIZE */
15900 #  ifdef HAVE_SYS_PARAM_H
15901 #   include <sys/param.h>
15902 #   ifdef EXEC_PAGESIZE
15903 #    define getpagesize() EXEC_PAGESIZE
15904 #   else /* no EXEC_PAGESIZE */
15905 #    ifdef NBPG
15906 #     define getpagesize() NBPG * CLSIZE
15907 #     ifndef CLSIZE
15908 #      define CLSIZE 1
15909 #     endif /* no CLSIZE */
15910 #    else /* no NBPG */
15911 #     ifdef NBPC
15912 #      define getpagesize() NBPC
15913 #     else /* no NBPC */
15914 #      ifdef PAGESIZE
15915 #       define getpagesize() PAGESIZE
15916 #      endif /* PAGESIZE */
15917 #     endif /* no NBPC */
15918 #    endif /* no NBPG */
15919 #   endif /* no EXEC_PAGESIZE */
15920 #  else /* no HAVE_SYS_PARAM_H */
15921 #   define getpagesize() 8192   /* punt totally */
15922 #  endif /* no HAVE_SYS_PARAM_H */
15923 # endif /* no _SC_PAGESIZE */
15924
15925 #endif /* no HAVE_GETPAGESIZE */
15926
15927 int
15928 main ()
15929 {
15930   char *data, *data2, *data3;
15931   int i, pagesize;
15932   int fd;
15933
15934   pagesize = getpagesize ();
15935
15936   /* First, make a file with some known garbage in it. */
15937   data = (char *) malloc (pagesize);
15938   if (!data)
15939     return 1;
15940   for (i = 0; i < pagesize; ++i)
15941     *(data + i) = rand ();
15942   umask (0);
15943   fd = creat ("conftest.mmap", 0600);
15944   if (fd < 0)
15945     return 1;
15946   if (write (fd, data, pagesize) != pagesize)
15947     return 1;
15948   close (fd);
15949
15950   /* Next, try to mmap the file at a fixed address which already has
15951      something else allocated at it.  If we can, also make sure that
15952      we see the same garbage.  */
15953   fd = open ("conftest.mmap", O_RDWR);
15954   if (fd < 0)
15955     return 1;
15956   data2 = (char *) malloc (2 * pagesize);
15957   if (!data2)
15958     return 1;
15959   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15960   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15961                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15962     return 1;
15963   for (i = 0; i < pagesize; ++i)
15964     if (*(data + i) != *(data2 + i))
15965       return 1;
15966
15967   /* Finally, make sure that changes to the mapped area do not
15968      percolate back to the file as seen by read().  (This is a bug on
15969      some variants of i386 svr4.0.)  */
15970   for (i = 0; i < pagesize; ++i)
15971     *(data2 + i) = *(data2 + i) + 1;
15972   data3 = (char *) malloc (pagesize);
15973   if (!data3)
15974     return 1;
15975   if (read (fd, data3, pagesize) != pagesize)
15976     return 1;
15977   for (i = 0; i < pagesize; ++i)
15978     if (*(data + i) != *(data3 + i))
15979       return 1;
15980   close (fd);
15981   return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_run "$LINENO"; then :
15985   ac_cv_func_mmap_fixed_mapped=yes
15986 else
15987   ac_cv_func_mmap_fixed_mapped=no
15988 fi
15989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15990   conftest.$ac_objext conftest.beam conftest.$ac_ext
15991 fi
15992
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15995 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15996 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15997
15998 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15999
16000 fi
16001 rm -f conftest.mmap
16002
16003 for ac_func in madvise mprotect
16004 do :
16005   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16007 eval as_val=\$$as_ac_var
16008    if test "x$as_val" = x""yes; then :
16009   cat >>confdefs.h <<_ACEOF
16010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16011 _ACEOF
16012
16013 fi
16014 done
16015
16016 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
16017   true+yes )
16018 $as_echo "#define USE_MMAP 1" >>confdefs.h
16019  ;;
16020 esac
16021
16022 rm -f doc/config.status
16023 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
16024
16025
16026 ac_config_commands="$ac_config_commands default"
16027
16028
16029
16030
16031
16032
16033
16034 cat >confcache <<\_ACEOF
16035 # This file is a shell script that caches the results of configure
16036 # tests run on this system so they can be shared between configure
16037 # scripts and configure runs, see configure's option --config-cache.
16038 # It is not useful on other systems.  If it contains results you don't
16039 # want to keep, you may remove or edit it.
16040 #
16041 # config.status only pays attention to the cache file if you give it
16042 # the --recheck option to rerun configure.
16043 #
16044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16046 # following values.
16047
16048 _ACEOF
16049
16050 # The following way of writing the cache mishandles newlines in values,
16051 # but we know of no workaround that is simple, portable, and efficient.
16052 # So, we kill variables containing newlines.
16053 # Ultrix sh set writes to stderr and can't be redirected directly,
16054 # and sets the high bit in the cache file unless we assign to the vars.
16055 (
16056   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16057     eval ac_val=\$$ac_var
16058     case $ac_val in #(
16059     *${as_nl}*)
16060       case $ac_var in #(
16061       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16063       esac
16064       case $ac_var in #(
16065       _ | IFS | as_nl) ;; #(
16066       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16067       *) { eval $ac_var=; unset $ac_var;} ;;
16068       esac ;;
16069     esac
16070   done
16071
16072   (set) 2>&1 |
16073     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16074     *${as_nl}ac_space=\ *)
16075       # `set' does not quote correctly, so add quotes: double-quote
16076       # substitution turns \\\\ into \\, and sed turns \\ into \.
16077       sed -n \
16078         "s/'/'\\\\''/g;
16079           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16080       ;; #(
16081     *)
16082       # `set' quotes correctly as required by POSIX, so do not add quotes.
16083       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16084       ;;
16085     esac |
16086     sort
16087 ) |
16088   sed '
16089      /^ac_cv_env_/b end
16090      t clear
16091      :clear
16092      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16093      t end
16094      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16095      :end' >>confcache
16096 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16097   if test -w "$cache_file"; then
16098     test "x$cache_file" != "x/dev/null" &&
16099       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16100 $as_echo "$as_me: updating cache $cache_file" >&6;}
16101     cat confcache >$cache_file
16102   else
16103     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16104 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16105   fi
16106 fi
16107 rm -f confcache
16108
16109 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16110 # Let make expand exec_prefix.
16111 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16112
16113 DEFS=-DHAVE_CONFIG_H
16114
16115 ac_libobjs=
16116 ac_ltlibobjs=
16117 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16118   # 1. Remove the extension, and $U if already installed.
16119   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16120   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16121   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16122   #    will be set to the directory where LIBOBJS objects are built.
16123   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16124   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16125 done
16126 LIBOBJS=$ac_libobjs
16127
16128 LTLIBOBJS=$ac_ltlibobjs
16129
16130
16131 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16132   as_fn_error "conditional \"AMDEP\" was never defined.
16133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16134 fi
16135 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16136   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16138 fi
16139  if test -n "$EXEEXT"; then
16140   am__EXEEXT_TRUE=
16141   am__EXEEXT_FALSE='#'
16142 else
16143   am__EXEEXT_TRUE='#'
16144   am__EXEEXT_FALSE=
16145 fi
16146
16147 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
16148   as_fn_error "conditional \"PLUGINS\" was never defined.
16149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16150 fi
16151 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16152   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16154 fi
16155 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
16156   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
16157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16158 fi
16159 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
16160   as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
16161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16162 fi
16163
16164 : ${CONFIG_STATUS=./config.status}
16165 ac_write_fail=0
16166 ac_clean_files_save=$ac_clean_files
16167 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16169 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16170 as_write_fail=0
16171 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16172 #! $SHELL
16173 # Generated by $as_me.
16174 # Run this file to recreate the current configuration.
16175 # Compiler output produced by configure, useful for debugging
16176 # configure, is in config.log if it exists.
16177
16178 debug=false
16179 ac_cs_recheck=false
16180 ac_cs_silent=false
16181
16182 SHELL=\${CONFIG_SHELL-$SHELL}
16183 export SHELL
16184 _ASEOF
16185 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16186 ## -------------------- ##
16187 ## M4sh Initialization. ##
16188 ## -------------------- ##
16189
16190 # Be more Bourne compatible
16191 DUALCASE=1; export DUALCASE # for MKS sh
16192 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16193   emulate sh
16194   NULLCMD=:
16195   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16196   # is contrary to our usage.  Disable this feature.
16197   alias -g '${1+"$@"}'='"$@"'
16198   setopt NO_GLOB_SUBST
16199 else
16200   case `(set -o) 2>/dev/null` in #(
16201   *posix*) :
16202     set -o posix ;; #(
16203   *) :
16204      ;;
16205 esac
16206 fi
16207
16208
16209 as_nl='
16210 '
16211 export as_nl
16212 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16213 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16215 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16216 # Prefer a ksh shell builtin over an external printf program on Solaris,
16217 # but without wasting forks for bash or zsh.
16218 if test -z "$BASH_VERSION$ZSH_VERSION" \
16219     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16220   as_echo='print -r --'
16221   as_echo_n='print -rn --'
16222 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16223   as_echo='printf %s\n'
16224   as_echo_n='printf %s'
16225 else
16226   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16227     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16228     as_echo_n='/usr/ucb/echo -n'
16229   else
16230     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16231     as_echo_n_body='eval
16232       arg=$1;
16233       case $arg in #(
16234       *"$as_nl"*)
16235         expr "X$arg" : "X\\(.*\\)$as_nl";
16236         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16237       esac;
16238       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16239     '
16240     export as_echo_n_body
16241     as_echo_n='sh -c $as_echo_n_body as_echo'
16242   fi
16243   export as_echo_body
16244   as_echo='sh -c $as_echo_body as_echo'
16245 fi
16246
16247 # The user is always right.
16248 if test "${PATH_SEPARATOR+set}" != set; then
16249   PATH_SEPARATOR=:
16250   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16251     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16252       PATH_SEPARATOR=';'
16253   }
16254 fi
16255
16256
16257 # IFS
16258 # We need space, tab and new line, in precisely that order.  Quoting is
16259 # there to prevent editors from complaining about space-tab.
16260 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16261 # splitting by setting IFS to empty value.)
16262 IFS=" ""        $as_nl"
16263
16264 # Find who we are.  Look in the path if we contain no directory separator.
16265 case $0 in #((
16266   *[\\/]* ) as_myself=$0 ;;
16267   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16268 for as_dir in $PATH
16269 do
16270   IFS=$as_save_IFS
16271   test -z "$as_dir" && as_dir=.
16272     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16273   done
16274 IFS=$as_save_IFS
16275
16276      ;;
16277 esac
16278 # We did not find ourselves, most probably we were run as `sh COMMAND'
16279 # in which case we are not to be found in the path.
16280 if test "x$as_myself" = x; then
16281   as_myself=$0
16282 fi
16283 if test ! -f "$as_myself"; then
16284   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16285   exit 1
16286 fi
16287
16288 # Unset variables that we do not need and which cause bugs (e.g. in
16289 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16290 # suppresses any "Segmentation fault" message there.  '((' could
16291 # trigger a bug in pdksh 5.2.14.
16292 for as_var in BASH_ENV ENV MAIL MAILPATH
16293 do eval test x\${$as_var+set} = xset \
16294   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16295 done
16296 PS1='$ '
16297 PS2='> '
16298 PS4='+ '
16299
16300 # NLS nuisances.
16301 LC_ALL=C
16302 export LC_ALL
16303 LANGUAGE=C
16304 export LANGUAGE
16305
16306 # CDPATH.
16307 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16308
16309
16310 # as_fn_error ERROR [LINENO LOG_FD]
16311 # ---------------------------------
16312 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16313 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16314 # script with status $?, using 1 if that was 0.
16315 as_fn_error ()
16316 {
16317   as_status=$?; test $as_status -eq 0 && as_status=1
16318   if test "$3"; then
16319     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16320     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16321   fi
16322   $as_echo "$as_me: error: $1" >&2
16323   as_fn_exit $as_status
16324 } # as_fn_error
16325
16326
16327 # as_fn_set_status STATUS
16328 # -----------------------
16329 # Set $? to STATUS, without forking.
16330 as_fn_set_status ()
16331 {
16332   return $1
16333 } # as_fn_set_status
16334
16335 # as_fn_exit STATUS
16336 # -----------------
16337 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16338 as_fn_exit ()
16339 {
16340   set +e
16341   as_fn_set_status $1
16342   exit $1
16343 } # as_fn_exit
16344
16345 # as_fn_unset VAR
16346 # ---------------
16347 # Portably unset VAR.
16348 as_fn_unset ()
16349 {
16350   { eval $1=; unset $1;}
16351 }
16352 as_unset=as_fn_unset
16353 # as_fn_append VAR VALUE
16354 # ----------------------
16355 # Append the text in VALUE to the end of the definition contained in VAR. Take
16356 # advantage of any shell optimizations that allow amortized linear growth over
16357 # repeated appends, instead of the typical quadratic growth present in naive
16358 # implementations.
16359 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16360   eval 'as_fn_append ()
16361   {
16362     eval $1+=\$2
16363   }'
16364 else
16365   as_fn_append ()
16366   {
16367     eval $1=\$$1\$2
16368   }
16369 fi # as_fn_append
16370
16371 # as_fn_arith ARG...
16372 # ------------------
16373 # Perform arithmetic evaluation on the ARGs, and store the result in the
16374 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16375 # must be portable across $(()) and expr.
16376 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16377   eval 'as_fn_arith ()
16378   {
16379     as_val=$(( $* ))
16380   }'
16381 else
16382   as_fn_arith ()
16383   {
16384     as_val=`expr "$@" || test $? -eq 1`
16385   }
16386 fi # as_fn_arith
16387
16388
16389 if expr a : '\(a\)' >/dev/null 2>&1 &&
16390    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16391   as_expr=expr
16392 else
16393   as_expr=false
16394 fi
16395
16396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16397   as_basename=basename
16398 else
16399   as_basename=false
16400 fi
16401
16402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16403   as_dirname=dirname
16404 else
16405   as_dirname=false
16406 fi
16407
16408 as_me=`$as_basename -- "$0" ||
16409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16410          X"$0" : 'X\(//\)$' \| \
16411          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16412 $as_echo X/"$0" |
16413     sed '/^.*\/\([^/][^/]*\)\/*$/{
16414             s//\1/
16415             q
16416           }
16417           /^X\/\(\/\/\)$/{
16418             s//\1/
16419             q
16420           }
16421           /^X\/\(\/\).*/{
16422             s//\1/
16423             q
16424           }
16425           s/.*/./; q'`
16426
16427 # Avoid depending upon Character Ranges.
16428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16431 as_cr_digits='0123456789'
16432 as_cr_alnum=$as_cr_Letters$as_cr_digits
16433
16434 ECHO_C= ECHO_N= ECHO_T=
16435 case `echo -n x` in #(((((
16436 -n*)
16437   case `echo 'xy\c'` in
16438   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16439   xy)  ECHO_C='\c';;
16440   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16441        ECHO_T=' ';;
16442   esac;;
16443 *)
16444   ECHO_N='-n';;
16445 esac
16446
16447 rm -f conf$$ conf$$.exe conf$$.file
16448 if test -d conf$$.dir; then
16449   rm -f conf$$.dir/conf$$.file
16450 else
16451   rm -f conf$$.dir
16452   mkdir conf$$.dir 2>/dev/null
16453 fi
16454 if (echo >conf$$.file) 2>/dev/null; then
16455   if ln -s conf$$.file conf$$ 2>/dev/null; then
16456     as_ln_s='ln -s'
16457     # ... but there are two gotchas:
16458     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16459     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16460     # In both cases, we have to default to `cp -p'.
16461     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16462       as_ln_s='cp -p'
16463   elif ln conf$$.file conf$$ 2>/dev/null; then
16464     as_ln_s=ln
16465   else
16466     as_ln_s='cp -p'
16467   fi
16468 else
16469   as_ln_s='cp -p'
16470 fi
16471 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16472 rmdir conf$$.dir 2>/dev/null
16473
16474
16475 # as_fn_mkdir_p
16476 # -------------
16477 # Create "$as_dir" as a directory, including parents if necessary.
16478 as_fn_mkdir_p ()
16479 {
16480
16481   case $as_dir in #(
16482   -*) as_dir=./$as_dir;;
16483   esac
16484   test -d "$as_dir" || eval $as_mkdir_p || {
16485     as_dirs=
16486     while :; do
16487       case $as_dir in #(
16488       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16489       *) as_qdir=$as_dir;;
16490       esac
16491       as_dirs="'$as_qdir' $as_dirs"
16492       as_dir=`$as_dirname -- "$as_dir" ||
16493 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16494          X"$as_dir" : 'X\(//\)[^/]' \| \
16495          X"$as_dir" : 'X\(//\)$' \| \
16496          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16497 $as_echo X"$as_dir" |
16498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16499             s//\1/
16500             q
16501           }
16502           /^X\(\/\/\)[^/].*/{
16503             s//\1/
16504             q
16505           }
16506           /^X\(\/\/\)$/{
16507             s//\1/
16508             q
16509           }
16510           /^X\(\/\).*/{
16511             s//\1/
16512             q
16513           }
16514           s/.*/./; q'`
16515       test -d "$as_dir" && break
16516     done
16517     test -z "$as_dirs" || eval "mkdir $as_dirs"
16518   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16519
16520
16521 } # as_fn_mkdir_p
16522 if mkdir -p . 2>/dev/null; then
16523   as_mkdir_p='mkdir -p "$as_dir"'
16524 else
16525   test -d ./-p && rmdir ./-p
16526   as_mkdir_p=false
16527 fi
16528
16529 if test -x / >/dev/null 2>&1; then
16530   as_test_x='test -x'
16531 else
16532   if ls -dL / >/dev/null 2>&1; then
16533     as_ls_L_option=L
16534   else
16535     as_ls_L_option=
16536   fi
16537   as_test_x='
16538     eval sh -c '\''
16539       if test -d "$1"; then
16540         test -d "$1/.";
16541       else
16542         case $1 in #(
16543         -*)set "./$1";;
16544         esac;
16545         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16546         ???[sx]*):;;*)false;;esac;fi
16547     '\'' sh
16548   '
16549 fi
16550 as_executable_p=$as_test_x
16551
16552 # Sed expression to map a string onto a valid CPP name.
16553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16554
16555 # Sed expression to map a string onto a valid variable name.
16556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16557
16558
16559 exec 6>&1
16560 ## ----------------------------------- ##
16561 ## Main body of $CONFIG_STATUS script. ##
16562 ## ----------------------------------- ##
16563 _ASEOF
16564 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16565
16566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16567 # Save the log message, to keep $0 and so on meaningful, and to
16568 # report actual input values of CONFIG_FILES etc. instead of their
16569 # values after options handling.
16570 ac_log="
16571 This file was extended by bfd $as_me 2.30.51, which was
16572 generated by GNU Autoconf 2.64.  Invocation command line was
16573
16574   CONFIG_FILES    = $CONFIG_FILES
16575   CONFIG_HEADERS  = $CONFIG_HEADERS
16576   CONFIG_LINKS    = $CONFIG_LINKS
16577   CONFIG_COMMANDS = $CONFIG_COMMANDS
16578   $ $0 $@
16579
16580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16581 "
16582
16583 _ACEOF
16584
16585 case $ac_config_files in *"
16586 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16587 esac
16588
16589 case $ac_config_headers in *"
16590 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16591 esac
16592
16593
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 # Files that config.status was made for.
16596 config_files="$ac_config_files"
16597 config_headers="$ac_config_headers"
16598 config_commands="$ac_config_commands"
16599
16600 _ACEOF
16601
16602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16603 ac_cs_usage="\
16604 \`$as_me' instantiates files and other configuration actions
16605 from templates according to the current configuration.  Unless the files
16606 and actions are specified as TAGs, all are instantiated by default.
16607
16608 Usage: $0 [OPTION]... [TAG]...
16609
16610   -h, --help       print this help, then exit
16611   -V, --version    print version number and configuration settings, then exit
16612   -q, --quiet, --silent
16613                    do not print progress messages
16614   -d, --debug      don't remove temporary files
16615       --recheck    update $as_me by reconfiguring in the same conditions
16616       --file=FILE[:TEMPLATE]
16617                    instantiate the configuration file FILE
16618       --header=FILE[:TEMPLATE]
16619                    instantiate the configuration header FILE
16620
16621 Configuration files:
16622 $config_files
16623
16624 Configuration headers:
16625 $config_headers
16626
16627 Configuration commands:
16628 $config_commands
16629
16630 Report bugs to the package provider."
16631
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16634 ac_cs_version="\\
16635 bfd config.status 2.30.51
16636 configured by $0, generated by GNU Autoconf 2.64,
16637   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16638
16639 Copyright (C) 2009 Free Software Foundation, Inc.
16640 This config.status script is free software; the Free Software Foundation
16641 gives unlimited permission to copy, distribute and modify it."
16642
16643 ac_pwd='$ac_pwd'
16644 srcdir='$srcdir'
16645 INSTALL='$INSTALL'
16646 MKDIR_P='$MKDIR_P'
16647 AWK='$AWK'
16648 test -n "\$AWK" || AWK=awk
16649 _ACEOF
16650
16651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652 # The default lists apply if the user does not specify any file.
16653 ac_need_defaults=:
16654 while test $# != 0
16655 do
16656   case $1 in
16657   --*=*)
16658     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16659     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16660     ac_shift=:
16661     ;;
16662   *)
16663     ac_option=$1
16664     ac_optarg=$2
16665     ac_shift=shift
16666     ;;
16667   esac
16668
16669   case $ac_option in
16670   # Handling of the options.
16671   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16672     ac_cs_recheck=: ;;
16673   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16674     $as_echo "$ac_cs_version"; exit ;;
16675   --debug | --debu | --deb | --de | --d | -d )
16676     debug=: ;;
16677   --file | --fil | --fi | --f )
16678     $ac_shift
16679     case $ac_optarg in
16680     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16681     esac
16682     as_fn_append CONFIG_FILES " '$ac_optarg'"
16683     ac_need_defaults=false;;
16684   --header | --heade | --head | --hea )
16685     $ac_shift
16686     case $ac_optarg in
16687     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16688     esac
16689     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16690     ac_need_defaults=false;;
16691   --he | --h)
16692     # Conflict between --help and --header
16693     as_fn_error "ambiguous option: \`$1'
16694 Try \`$0 --help' for more information.";;
16695   --help | --hel | -h )
16696     $as_echo "$ac_cs_usage"; exit ;;
16697   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16698   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16699     ac_cs_silent=: ;;
16700
16701   # This is an error.
16702   -*) as_fn_error "unrecognized option: \`$1'
16703 Try \`$0 --help' for more information." ;;
16704
16705   *) as_fn_append ac_config_targets " $1"
16706      ac_need_defaults=false ;;
16707
16708   esac
16709   shift
16710 done
16711
16712 ac_configure_extra_args=
16713
16714 if $ac_cs_silent; then
16715   exec 6>/dev/null
16716   ac_configure_extra_args="$ac_configure_extra_args --silent"
16717 fi
16718
16719 _ACEOF
16720 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16721 if \$ac_cs_recheck; then
16722   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16723   shift
16724   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16725   CONFIG_SHELL='$SHELL'
16726   export CONFIG_SHELL
16727   exec "\$@"
16728 fi
16729
16730 _ACEOF
16731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16732 exec 5>>config.log
16733 {
16734   echo
16735   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16736 ## Running $as_me. ##
16737 _ASBOX
16738   $as_echo "$ac_log"
16739 } >&5
16740
16741 _ACEOF
16742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16743 #
16744 # INIT-COMMANDS
16745 #
16746 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16747
16748
16749 # The HP-UX ksh and POSIX shell print the target directory to stdout
16750 # if CDPATH is set.
16751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16752
16753 sed_quote_subst='$sed_quote_subst'
16754 double_quote_subst='$double_quote_subst'
16755 delay_variable_subst='$delay_variable_subst'
16756 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16757 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16758 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16759 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16760 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16761 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16762 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16763 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16764 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16765 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16766 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16767 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16768 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16769 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16770 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16771 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16772 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16773 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16774 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16775 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16776 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16777 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16778 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16779 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16780 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16781 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16782 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16783 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16784 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16785 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16786 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16787 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16788 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16789 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16790 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16791 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16792 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16793 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16794 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16795 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16796 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16797 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16798 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16799 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16800 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16801 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16802 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16803 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16804 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"`'
16805 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16806 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16807 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16808 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16809 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16810 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16811 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16812 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16813 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16814 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16815 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16816 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16817 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16818 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16819 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16820 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16821 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16822 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16823 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16824 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16825 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16826 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16827 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16828 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16829 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16830 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16831 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16832 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16833 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16834 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16835 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16836 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16837 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16838 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16839 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16840 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16841 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16842 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16843 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16844 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16845 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16846 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16847 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16848 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16849 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16850 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16851 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16852 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16853 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16854 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16855 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16856 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16857 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16858 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16859 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16860 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16861 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16862 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16863 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16864 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16865 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16866 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16867 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16868 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16869 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16870 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16871 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16872 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16873 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16874 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16875 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16876
16877 LTCC='$LTCC'
16878 LTCFLAGS='$LTCFLAGS'
16879 compiler='$compiler_DEFAULT'
16880
16881 # A function that is used when there is no print builtin or printf.
16882 func_fallback_echo ()
16883 {
16884   eval 'cat <<_LTECHO_EOF
16885 \$1
16886 _LTECHO_EOF'
16887 }
16888
16889 # Quote evaled strings.
16890 for var in SHELL \
16891 ECHO \
16892 SED \
16893 GREP \
16894 EGREP \
16895 FGREP \
16896 LD \
16897 NM \
16898 LN_S \
16899 lt_SP2NL \
16900 lt_NL2SP \
16901 reload_flag \
16902 OBJDUMP \
16903 deplibs_check_method \
16904 file_magic_cmd \
16905 AR \
16906 AR_FLAGS \
16907 STRIP \
16908 RANLIB \
16909 CC \
16910 CFLAGS \
16911 compiler \
16912 lt_cv_sys_global_symbol_pipe \
16913 lt_cv_sys_global_symbol_to_cdecl \
16914 lt_cv_sys_global_symbol_to_c_name_address \
16915 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16916 lt_prog_compiler_no_builtin_flag \
16917 lt_prog_compiler_wl \
16918 lt_prog_compiler_pic \
16919 lt_prog_compiler_static \
16920 lt_cv_prog_compiler_c_o \
16921 need_locks \
16922 DSYMUTIL \
16923 NMEDIT \
16924 LIPO \
16925 OTOOL \
16926 OTOOL64 \
16927 shrext_cmds \
16928 export_dynamic_flag_spec \
16929 whole_archive_flag_spec \
16930 compiler_needs_object \
16931 with_gnu_ld \
16932 allow_undefined_flag \
16933 no_undefined_flag \
16934 hardcode_libdir_flag_spec \
16935 hardcode_libdir_flag_spec_ld \
16936 hardcode_libdir_separator \
16937 fix_srcfile_path \
16938 exclude_expsyms \
16939 include_expsyms \
16940 file_list_spec \
16941 variables_saved_for_relink \
16942 libname_spec \
16943 library_names_spec \
16944 soname_spec \
16945 install_override_mode \
16946 finish_eval \
16947 old_striplib \
16948 striplib; do
16949     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16950     *[\\\\\\\`\\"\\\$]*)
16951       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16952       ;;
16953     *)
16954       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16955       ;;
16956     esac
16957 done
16958
16959 # Double-quote double-evaled strings.
16960 for var in reload_cmds \
16961 old_postinstall_cmds \
16962 old_postuninstall_cmds \
16963 old_archive_cmds \
16964 extract_expsyms_cmds \
16965 old_archive_from_new_cmds \
16966 old_archive_from_expsyms_cmds \
16967 archive_cmds \
16968 archive_expsym_cmds \
16969 module_cmds \
16970 module_expsym_cmds \
16971 export_symbols_cmds \
16972 prelink_cmds \
16973 postinstall_cmds \
16974 postuninstall_cmds \
16975 finish_cmds \
16976 sys_lib_search_path_spec \
16977 sys_lib_dlsearch_path_spec; do
16978     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16979     *[\\\\\\\`\\"\\\$]*)
16980       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16981       ;;
16982     *)
16983       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16984       ;;
16985     esac
16986 done
16987
16988 ac_aux_dir='$ac_aux_dir'
16989 xsi_shell='$xsi_shell'
16990 lt_shell_append='$lt_shell_append'
16991
16992 # See if we are running on zsh, and set the options which allow our
16993 # commands through without removal of \ escapes INIT.
16994 if test -n "\${ZSH_VERSION+set}" ; then
16995    setopt NO_GLOB_SUBST
16996 fi
16997
16998
16999     PACKAGE='$PACKAGE'
17000     VERSION='$VERSION'
17001     TIMESTAMP='$TIMESTAMP'
17002     RM='$RM'
17003     ofile='$ofile'
17004
17005
17006
17007 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17008     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
17009     # from automake.
17010     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17011     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17012     LINGUAS="${LINGUAS-%UNSET%}"
17013
17014
17015 GCC="$GCC"
17016 CC="$CC"
17017 acx_cv_header_stdint="$acx_cv_header_stdint"
17018 acx_cv_type_int8_t="$acx_cv_type_int8_t"
17019 acx_cv_type_int16_t="$acx_cv_type_int16_t"
17020 acx_cv_type_int32_t="$acx_cv_type_int32_t"
17021 acx_cv_type_int64_t="$acx_cv_type_int64_t"
17022 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
17023 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
17024 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
17025 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17026 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17027 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
17028 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17029 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17030 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
17031
17032
17033
17034 _ACEOF
17035
17036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17037
17038 # Handling of arguments.
17039 for ac_config_target in $ac_config_targets
17040 do
17041   case $ac_config_target in
17042     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17043     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17044     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17045     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17046     "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
17047     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17048     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17049     "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
17050     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
17051     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17052
17053   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17054   esac
17055 done
17056
17057
17058 # If the user did not use the arguments to specify the items to instantiate,
17059 # then the envvar interface is used.  Set only those that are not.
17060 # We use the long form for the default assignment because of an extremely
17061 # bizarre bug on SunOS 4.1.3.
17062 if $ac_need_defaults; then
17063   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17064   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17065   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17066 fi
17067
17068 # Have a temporary directory for convenience.  Make it in the build tree
17069 # simply because there is no reason against having it here, and in addition,
17070 # creating and moving files from /tmp can sometimes cause problems.
17071 # Hook for its removal unless debugging.
17072 # Note that there is a small window in which the directory will not be cleaned:
17073 # after its creation but before its name has been assigned to `$tmp'.
17074 $debug ||
17075 {
17076   tmp=
17077   trap 'exit_status=$?
17078   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17079 ' 0
17080   trap 'as_fn_exit 1' 1 2 13 15
17081 }
17082 # Create a (secure) tmp directory for tmp files.
17083
17084 {
17085   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17086   test -n "$tmp" && test -d "$tmp"
17087 }  ||
17088 {
17089   tmp=./conf$$-$RANDOM
17090   (umask 077 && mkdir "$tmp")
17091 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17092
17093 # Set up the scripts for CONFIG_FILES section.
17094 # No need to generate them if there are no CONFIG_FILES.
17095 # This happens for instance with `./config.status config.h'.
17096 if test -n "$CONFIG_FILES"; then
17097
17098
17099 ac_cr=`echo X | tr X '\015'`
17100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17101 # But we know of no other shell where ac_cr would be empty at this
17102 # point, so we can use a bashism as a fallback.
17103 if test "x$ac_cr" = x; then
17104   eval ac_cr=\$\'\\r\'
17105 fi
17106 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17108   ac_cs_awk_cr='\r'
17109 else
17110   ac_cs_awk_cr=$ac_cr
17111 fi
17112
17113 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17114 _ACEOF
17115
17116
17117 {
17118   echo "cat >conf$$subs.awk <<_ACEOF" &&
17119   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17120   echo "_ACEOF"
17121 } >conf$$subs.sh ||
17122   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17123 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17124 ac_delim='%!_!# '
17125 for ac_last_try in false false false false false :; do
17126   . ./conf$$subs.sh ||
17127     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17128
17129   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17130   if test $ac_delim_n = $ac_delim_num; then
17131     break
17132   elif $ac_last_try; then
17133     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17134   else
17135     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17136   fi
17137 done
17138 rm -f conf$$subs.sh
17139
17140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17141 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17142 _ACEOF
17143 sed -n '
17144 h
17145 s/^/S["/; s/!.*/"]=/
17146 p
17147 g
17148 s/^[^!]*!//
17149 :repl
17150 t repl
17151 s/'"$ac_delim"'$//
17152 t delim
17153 :nl
17154 h
17155 s/\(.\{148\}\).*/\1/
17156 t more1
17157 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17158 p
17159 n
17160 b repl
17161 :more1
17162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17163 p
17164 g
17165 s/.\{148\}//
17166 t nl
17167 :delim
17168 h
17169 s/\(.\{148\}\).*/\1/
17170 t more2
17171 s/["\\]/\\&/g; s/^/"/; s/$/"/
17172 p
17173 b
17174 :more2
17175 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17176 p
17177 g
17178 s/.\{148\}//
17179 t delim
17180 ' <conf$$subs.awk | sed '
17181 /^[^""]/{
17182   N
17183   s/\n//
17184 }
17185 ' >>$CONFIG_STATUS || ac_write_fail=1
17186 rm -f conf$$subs.awk
17187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17188 _ACAWK
17189 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17190   for (key in S) S_is_set[key] = 1
17191   FS = "\a"
17192
17193 }
17194 {
17195   line = $ 0
17196   nfields = split(line, field, "@")
17197   substed = 0
17198   len = length(field[1])
17199   for (i = 2; i < nfields; i++) {
17200     key = field[i]
17201     keylen = length(key)
17202     if (S_is_set[key]) {
17203       value = S[key]
17204       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17205       len += length(value) + length(field[++i])
17206       substed = 1
17207     } else
17208       len += 1 + keylen
17209   }
17210
17211   print line
17212 }
17213
17214 _ACAWK
17215 _ACEOF
17216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17217 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17218   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17219 else
17220   cat
17221 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17222   || as_fn_error "could not setup config files machinery" "$LINENO" 5
17223 _ACEOF
17224
17225 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17226 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17227 # trailing colons and then remove the whole line if VPATH becomes empty
17228 # (actually we leave an empty line to preserve line numbers).
17229 if test "x$srcdir" = x.; then
17230   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17231 s/:*\$(srcdir):*/:/
17232 s/:*\${srcdir}:*/:/
17233 s/:*@srcdir@:*/:/
17234 s/^\([^=]*=[     ]*\):*/\1/
17235 s/:*$//
17236 s/^[^=]*=[       ]*$//
17237 }'
17238 fi
17239
17240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17241 fi # test -n "$CONFIG_FILES"
17242
17243 # Set up the scripts for CONFIG_HEADERS section.
17244 # No need to generate them if there are no CONFIG_HEADERS.
17245 # This happens for instance with `./config.status Makefile'.
17246 if test -n "$CONFIG_HEADERS"; then
17247 cat >"$tmp/defines.awk" <<\_ACAWK ||
17248 BEGIN {
17249 _ACEOF
17250
17251 # Transform confdefs.h into an awk script `defines.awk', embedded as
17252 # here-document in config.status, that substitutes the proper values into
17253 # config.h.in to produce config.h.
17254
17255 # Create a delimiter string that does not exist in confdefs.h, to ease
17256 # handling of long lines.
17257 ac_delim='%!_!# '
17258 for ac_last_try in false false :; do
17259   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17260   if test -z "$ac_t"; then
17261     break
17262   elif $ac_last_try; then
17263     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17264   else
17265     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17266   fi
17267 done
17268
17269 # For the awk script, D is an array of macro values keyed by name,
17270 # likewise P contains macro parameters if any.  Preserve backslash
17271 # newline sequences.
17272
17273 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17274 sed -n '
17275 s/.\{148\}/&'"$ac_delim"'/g
17276 t rset
17277 :rset
17278 s/^[     ]*#[    ]*define[       ][      ]*/ /
17279 t def
17280 d
17281 :def
17282 s/\\$//
17283 t bsnl
17284 s/["\\]/\\&/g
17285 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17286 D["\1"]=" \3"/p
17287 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17288 d
17289 :bsnl
17290 s/["\\]/\\&/g
17291 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17292 D["\1"]=" \3\\\\\\n"\\/p
17293 t cont
17294 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17295 t cont
17296 d
17297 :cont
17298 n
17299 s/.\{148\}/&'"$ac_delim"'/g
17300 t clear
17301 :clear
17302 s/\\$//
17303 t bsnlc
17304 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17305 d
17306 :bsnlc
17307 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17308 b cont
17309 ' <confdefs.h | sed '
17310 s/'"$ac_delim"'/"\\\
17311 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17312
17313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17314   for (key in D) D_is_set[key] = 1
17315   FS = "\a"
17316 }
17317 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17318   line = \$ 0
17319   split(line, arg, " ")
17320   if (arg[1] == "#") {
17321     defundef = arg[2]
17322     mac1 = arg[3]
17323   } else {
17324     defundef = substr(arg[1], 2)
17325     mac1 = arg[2]
17326   }
17327   split(mac1, mac2, "(") #)
17328   macro = mac2[1]
17329   prefix = substr(line, 1, index(line, defundef) - 1)
17330   if (D_is_set[macro]) {
17331     # Preserve the white space surrounding the "#".
17332     print prefix "define", macro P[macro] D[macro]
17333     next
17334   } else {
17335     # Replace #undef with comments.  This is necessary, for example,
17336     # in the case of _POSIX_SOURCE, which is predefined and required
17337     # on some systems where configure will not decide to define it.
17338     if (defundef == "undef") {
17339       print "/*", prefix defundef, macro, "*/"
17340       next
17341     }
17342   }
17343 }
17344 { print }
17345 _ACAWK
17346 _ACEOF
17347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17348   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17349 fi # test -n "$CONFIG_HEADERS"
17350
17351
17352 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17353 shift
17354 for ac_tag
17355 do
17356   case $ac_tag in
17357   :[FHLC]) ac_mode=$ac_tag; continue;;
17358   esac
17359   case $ac_mode$ac_tag in
17360   :[FHL]*:*);;
17361   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17362   :[FH]-) ac_tag=-:-;;
17363   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17364   esac
17365   ac_save_IFS=$IFS
17366   IFS=:
17367   set x $ac_tag
17368   IFS=$ac_save_IFS
17369   shift
17370   ac_file=$1
17371   shift
17372
17373   case $ac_mode in
17374   :L) ac_source=$1;;
17375   :[FH])
17376     ac_file_inputs=
17377     for ac_f
17378     do
17379       case $ac_f in
17380       -) ac_f="$tmp/stdin";;
17381       *) # Look for the file first in the build tree, then in the source tree
17382          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17383          # because $ac_f cannot contain `:'.
17384          test -f "$ac_f" ||
17385            case $ac_f in
17386            [\\/$]*) false;;
17387            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17388            esac ||
17389            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17390       esac
17391       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17392       as_fn_append ac_file_inputs " '$ac_f'"
17393     done
17394
17395     # Let's still pretend it is `configure' which instantiates (i.e., don't
17396     # use $as_me), people would be surprised to read:
17397     #    /* config.h.  Generated by config.status.  */
17398     configure_input='Generated from '`
17399           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17400         `' by configure.'
17401     if test x"$ac_file" != x-; then
17402       configure_input="$ac_file.  $configure_input"
17403       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17404 $as_echo "$as_me: creating $ac_file" >&6;}
17405     fi
17406     # Neutralize special characters interpreted by sed in replacement strings.
17407     case $configure_input in #(
17408     *\&* | *\|* | *\\* )
17409        ac_sed_conf_input=`$as_echo "$configure_input" |
17410        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17411     *) ac_sed_conf_input=$configure_input;;
17412     esac
17413
17414     case $ac_tag in
17415     *:-:* | *:-) cat >"$tmp/stdin" \
17416       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17417     esac
17418     ;;
17419   esac
17420
17421   ac_dir=`$as_dirname -- "$ac_file" ||
17422 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17423          X"$ac_file" : 'X\(//\)[^/]' \| \
17424          X"$ac_file" : 'X\(//\)$' \| \
17425          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17426 $as_echo X"$ac_file" |
17427     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17428             s//\1/
17429             q
17430           }
17431           /^X\(\/\/\)[^/].*/{
17432             s//\1/
17433             q
17434           }
17435           /^X\(\/\/\)$/{
17436             s//\1/
17437             q
17438           }
17439           /^X\(\/\).*/{
17440             s//\1/
17441             q
17442           }
17443           s/.*/./; q'`
17444   as_dir="$ac_dir"; as_fn_mkdir_p
17445   ac_builddir=.
17446
17447 case "$ac_dir" in
17448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17449 *)
17450   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17451   # A ".." for each directory in $ac_dir_suffix.
17452   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17453   case $ac_top_builddir_sub in
17454   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17455   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17456   esac ;;
17457 esac
17458 ac_abs_top_builddir=$ac_pwd
17459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17460 # for backward compatibility:
17461 ac_top_builddir=$ac_top_build_prefix
17462
17463 case $srcdir in
17464   .)  # We are building in place.
17465     ac_srcdir=.
17466     ac_top_srcdir=$ac_top_builddir_sub
17467     ac_abs_top_srcdir=$ac_pwd ;;
17468   [\\/]* | ?:[\\/]* )  # Absolute name.
17469     ac_srcdir=$srcdir$ac_dir_suffix;
17470     ac_top_srcdir=$srcdir
17471     ac_abs_top_srcdir=$srcdir ;;
17472   *) # Relative name.
17473     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17474     ac_top_srcdir=$ac_top_build_prefix$srcdir
17475     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17476 esac
17477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17478
17479
17480   case $ac_mode in
17481   :F)
17482   #
17483   # CONFIG_FILE
17484   #
17485
17486   case $INSTALL in
17487   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17488   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17489   esac
17490   ac_MKDIR_P=$MKDIR_P
17491   case $MKDIR_P in
17492   [\\/$]* | ?:[\\/]* ) ;;
17493   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17494   esac
17495 _ACEOF
17496
17497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17498 # If the template does not know about datarootdir, expand it.
17499 # FIXME: This hack should be removed a few years after 2.60.
17500 ac_datarootdir_hack=; ac_datarootdir_seen=
17501 ac_sed_dataroot='
17502 /datarootdir/ {
17503   p
17504   q
17505 }
17506 /@datadir@/p
17507 /@docdir@/p
17508 /@infodir@/p
17509 /@localedir@/p
17510 /@mandir@/p'
17511 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17512 *datarootdir*) ac_datarootdir_seen=yes;;
17513 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17514   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17515 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17516 _ACEOF
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17518   ac_datarootdir_hack='
17519   s&@datadir@&$datadir&g
17520   s&@docdir@&$docdir&g
17521   s&@infodir@&$infodir&g
17522   s&@localedir@&$localedir&g
17523   s&@mandir@&$mandir&g
17524   s&\\\${datarootdir}&$datarootdir&g' ;;
17525 esac
17526 _ACEOF
17527
17528 # Neutralize VPATH when `$srcdir' = `.'.
17529 # Shell code in configure.ac might set extrasub.
17530 # FIXME: do we really want to maintain this feature?
17531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17532 ac_sed_extra="$ac_vpsub
17533 $extrasub
17534 _ACEOF
17535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17536 :t
17537 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17538 s|@configure_input@|$ac_sed_conf_input|;t t
17539 s&@top_builddir@&$ac_top_builddir_sub&;t t
17540 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17541 s&@srcdir@&$ac_srcdir&;t t
17542 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17543 s&@top_srcdir@&$ac_top_srcdir&;t t
17544 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17545 s&@builddir@&$ac_builddir&;t t
17546 s&@abs_builddir@&$ac_abs_builddir&;t t
17547 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17548 s&@INSTALL@&$ac_INSTALL&;t t
17549 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17550 $ac_datarootdir_hack
17551 "
17552 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17553   || as_fn_error "could not create $ac_file" "$LINENO" 5
17554
17555 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17556   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17557   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17559 which seems to be undefined.  Please make sure it is defined." >&5
17560 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17561 which seems to be undefined.  Please make sure it is defined." >&2;}
17562
17563   rm -f "$tmp/stdin"
17564   case $ac_file in
17565   -) cat "$tmp/out" && rm -f "$tmp/out";;
17566   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17567   esac \
17568   || as_fn_error "could not create $ac_file" "$LINENO" 5
17569  ;;
17570   :H)
17571   #
17572   # CONFIG_HEADER
17573   #
17574   if test x"$ac_file" != x-; then
17575     {
17576       $as_echo "/* $configure_input  */" \
17577       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17578     } >"$tmp/config.h" \
17579       || as_fn_error "could not create $ac_file" "$LINENO" 5
17580     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17581       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17582 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17583     else
17584       rm -f "$ac_file"
17585       mv "$tmp/config.h" "$ac_file" \
17586         || as_fn_error "could not create $ac_file" "$LINENO" 5
17587     fi
17588   else
17589     $as_echo "/* $configure_input  */" \
17590       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17591       || as_fn_error "could not create -" "$LINENO" 5
17592   fi
17593 # Compute "$ac_file"'s index in $config_headers.
17594 _am_arg="$ac_file"
17595 _am_stamp_count=1
17596 for _am_header in $config_headers :; do
17597   case $_am_header in
17598     $_am_arg | $_am_arg:* )
17599       break ;;
17600     * )
17601       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17602   esac
17603 done
17604 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17605 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17606          X"$_am_arg" : 'X\(//\)[^/]' \| \
17607          X"$_am_arg" : 'X\(//\)$' \| \
17608          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17609 $as_echo X"$_am_arg" |
17610     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17611             s//\1/
17612             q
17613           }
17614           /^X\(\/\/\)[^/].*/{
17615             s//\1/
17616             q
17617           }
17618           /^X\(\/\/\)$/{
17619             s//\1/
17620             q
17621           }
17622           /^X\(\/\).*/{
17623             s//\1/
17624             q
17625           }
17626           s/.*/./; q'`/stamp-h$_am_stamp_count
17627  ;;
17628
17629   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17630 $as_echo "$as_me: executing $ac_file commands" >&6;}
17631  ;;
17632   esac
17633
17634
17635   case $ac_file$ac_mode in
17636     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17637   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17638   # are listed without --file.  Let's play safe and only enable the eval
17639   # if we detect the quoting.
17640   case $CONFIG_FILES in
17641   *\'*) eval set x "$CONFIG_FILES" ;;
17642   *)   set x $CONFIG_FILES ;;
17643   esac
17644   shift
17645   for mf
17646   do
17647     # Strip MF so we end up with the name of the file.
17648     mf=`echo "$mf" | sed -e 's/:.*$//'`
17649     # Check whether this is an Automake generated Makefile or not.
17650     # We used to match only the files named `Makefile.in', but
17651     # some people rename them; so instead we look at the file content.
17652     # Grep'ing the first line is not enough: some people post-process
17653     # each Makefile.in and add a new line on top of each file to say so.
17654     # Grep'ing the whole file is not good either: AIX grep has a line
17655     # limit of 2048, but all sed's we know have understand at least 4000.
17656     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17657       dirpart=`$as_dirname -- "$mf" ||
17658 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17659          X"$mf" : 'X\(//\)[^/]' \| \
17660          X"$mf" : 'X\(//\)$' \| \
17661          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17662 $as_echo X"$mf" |
17663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17664             s//\1/
17665             q
17666           }
17667           /^X\(\/\/\)[^/].*/{
17668             s//\1/
17669             q
17670           }
17671           /^X\(\/\/\)$/{
17672             s//\1/
17673             q
17674           }
17675           /^X\(\/\).*/{
17676             s//\1/
17677             q
17678           }
17679           s/.*/./; q'`
17680     else
17681       continue
17682     fi
17683     # Extract the definition of DEPDIR, am__include, and am__quote
17684     # from the Makefile without running `make'.
17685     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17686     test -z "$DEPDIR" && continue
17687     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17688     test -z "am__include" && continue
17689     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17690     # When using ansi2knr, U may be empty or an underscore; expand it
17691     U=`sed -n 's/^U = //p' < "$mf"`
17692     # Find all dependency output files, they are included files with
17693     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17694     # simplest approach to changing $(DEPDIR) to its actual value in the
17695     # expansion.
17696     for file in `sed -n "
17697       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17698          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17699       # Make sure the directory exists.
17700       test -f "$dirpart/$file" && continue
17701       fdir=`$as_dirname -- "$file" ||
17702 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17703          X"$file" : 'X\(//\)[^/]' \| \
17704          X"$file" : 'X\(//\)$' \| \
17705          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17706 $as_echo X"$file" |
17707     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17708             s//\1/
17709             q
17710           }
17711           /^X\(\/\/\)[^/].*/{
17712             s//\1/
17713             q
17714           }
17715           /^X\(\/\/\)$/{
17716             s//\1/
17717             q
17718           }
17719           /^X\(\/\).*/{
17720             s//\1/
17721             q
17722           }
17723           s/.*/./; q'`
17724       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17725       # echo "creating $dirpart/$file"
17726       echo '# dummy' > "$dirpart/$file"
17727     done
17728   done
17729 }
17730  ;;
17731     "libtool":C)
17732
17733     # See if we are running on zsh, and set the options which allow our
17734     # commands through without removal of \ escapes.
17735     if test -n "${ZSH_VERSION+set}" ; then
17736       setopt NO_GLOB_SUBST
17737     fi
17738
17739     cfgfile="${ofile}T"
17740     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17741     $RM "$cfgfile"
17742
17743     cat <<_LT_EOF >> "$cfgfile"
17744 #! $SHELL
17745
17746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17750 #
17751 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17752 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17753 #   Written by Gordon Matzigkeit, 1996
17754 #
17755 #   This file is part of GNU Libtool.
17756 #
17757 # GNU Libtool is free software; you can redistribute it and/or
17758 # modify it under the terms of the GNU General Public License as
17759 # published by the Free Software Foundation; either version 2 of
17760 # the License, or (at your option) any later version.
17761 #
17762 # As a special exception to the GNU General Public License,
17763 # if you distribute this file as part of a program or library that
17764 # is built using GNU Libtool, you may include this file under the
17765 # same distribution terms that you use for the rest of that program.
17766 #
17767 # GNU Libtool is distributed in the hope that it will be useful,
17768 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17770 # GNU General Public License for more details.
17771 #
17772 # You should have received a copy of the GNU General Public License
17773 # along with GNU Libtool; see the file COPYING.  If not, a copy
17774 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17775 # obtained by writing to the Free Software Foundation, Inc.,
17776 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17777
17778
17779 # The names of the tagged configurations supported by this script.
17780 available_tags=""
17781
17782 # ### BEGIN LIBTOOL CONFIG
17783
17784 # Whether or not to build shared libraries.
17785 build_libtool_libs=$enable_shared
17786
17787 # Which release of libtool.m4 was used?
17788 macro_version=$macro_version
17789 macro_revision=$macro_revision
17790
17791 # Whether or not to build static libraries.
17792 build_old_libs=$enable_static
17793
17794 # What type of objects to build.
17795 pic_mode=$pic_mode
17796
17797 # Whether or not to optimize for fast installation.
17798 fast_install=$enable_fast_install
17799
17800 # Shell to use when invoking shell scripts.
17801 SHELL=$lt_SHELL
17802
17803 # An echo program that protects backslashes.
17804 ECHO=$lt_ECHO
17805
17806 # The host system.
17807 host_alias=$host_alias
17808 host=$host
17809 host_os=$host_os
17810
17811 # The build system.
17812 build_alias=$build_alias
17813 build=$build
17814 build_os=$build_os
17815
17816 # A sed program that does not truncate output.
17817 SED=$lt_SED
17818
17819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17820 Xsed="\$SED -e 1s/^X//"
17821
17822 # A grep program that handles long lines.
17823 GREP=$lt_GREP
17824
17825 # An ERE matcher.
17826 EGREP=$lt_EGREP
17827
17828 # A literal string matcher.
17829 FGREP=$lt_FGREP
17830
17831 # A BSD- or MS-compatible name lister.
17832 NM=$lt_NM
17833
17834 # Whether we need soft or hard links.
17835 LN_S=$lt_LN_S
17836
17837 # What is the maximum length of a command?
17838 max_cmd_len=$max_cmd_len
17839
17840 # Object file suffix (normally "o").
17841 objext=$ac_objext
17842
17843 # Executable file suffix (normally "").
17844 exeext=$exeext
17845
17846 # whether the shell understands "unset".
17847 lt_unset=$lt_unset
17848
17849 # turn spaces into newlines.
17850 SP2NL=$lt_lt_SP2NL
17851
17852 # turn newlines into spaces.
17853 NL2SP=$lt_lt_NL2SP
17854
17855 # An object symbol dumper.
17856 OBJDUMP=$lt_OBJDUMP
17857
17858 # Method to check whether dependent libraries are shared objects.
17859 deplibs_check_method=$lt_deplibs_check_method
17860
17861 # Command to use when deplibs_check_method == "file_magic".
17862 file_magic_cmd=$lt_file_magic_cmd
17863
17864 # The archiver.
17865 AR=$lt_AR
17866 AR_FLAGS=$lt_AR_FLAGS
17867
17868 # A symbol stripping program.
17869 STRIP=$lt_STRIP
17870
17871 # Commands used to install an old-style archive.
17872 RANLIB=$lt_RANLIB
17873 old_postinstall_cmds=$lt_old_postinstall_cmds
17874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17875
17876 # Whether to use a lock for old archive extraction.
17877 lock_old_archive_extraction=$lock_old_archive_extraction
17878
17879 # A C compiler.
17880 LTCC=$lt_CC
17881
17882 # LTCC compiler flags.
17883 LTCFLAGS=$lt_CFLAGS
17884
17885 # Take the output of nm and produce a listing of raw symbols and C names.
17886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17887
17888 # Transform the output of nm in a proper C declaration.
17889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17890
17891 # Transform the output of nm in a C name address pair.
17892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17893
17894 # Transform the output of nm in a C name address pair when lib prefix is needed.
17895 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17896
17897 # The name of the directory that contains temporary libtool files.
17898 objdir=$objdir
17899
17900 # Used to examine libraries when file_magic_cmd begins with "file".
17901 MAGIC_CMD=$MAGIC_CMD
17902
17903 # Must we lock files when doing compilation?
17904 need_locks=$lt_need_locks
17905
17906 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17907 DSYMUTIL=$lt_DSYMUTIL
17908
17909 # Tool to change global to local symbols on Mac OS X.
17910 NMEDIT=$lt_NMEDIT
17911
17912 # Tool to manipulate fat objects and archives on Mac OS X.
17913 LIPO=$lt_LIPO
17914
17915 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17916 OTOOL=$lt_OTOOL
17917
17918 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17919 OTOOL64=$lt_OTOOL64
17920
17921 # Old archive suffix (normally "a").
17922 libext=$libext
17923
17924 # Shared library suffix (normally ".so").
17925 shrext_cmds=$lt_shrext_cmds
17926
17927 # The commands to extract the exported symbol list from a shared archive.
17928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17929
17930 # Variables whose values should be saved in libtool wrapper scripts and
17931 # restored at link time.
17932 variables_saved_for_relink=$lt_variables_saved_for_relink
17933
17934 # Do we need the "lib" prefix for modules?
17935 need_lib_prefix=$need_lib_prefix
17936
17937 # Do we need a version for libraries?
17938 need_version=$need_version
17939
17940 # Library versioning type.
17941 version_type=$version_type
17942
17943 # Shared library runtime path variable.
17944 runpath_var=$runpath_var
17945
17946 # Shared library path variable.
17947 shlibpath_var=$shlibpath_var
17948
17949 # Is shlibpath searched before the hard-coded library search path?
17950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17951
17952 # Format of library name prefix.
17953 libname_spec=$lt_libname_spec
17954
17955 # List of archive names.  First name is the real one, the rest are links.
17956 # The last name is the one that the linker finds with -lNAME
17957 library_names_spec=$lt_library_names_spec
17958
17959 # The coded name of the library, if different from the real name.
17960 soname_spec=$lt_soname_spec
17961
17962 # Permission mode override for installation of shared libraries.
17963 install_override_mode=$lt_install_override_mode
17964
17965 # Command to use after installation of a shared archive.
17966 postinstall_cmds=$lt_postinstall_cmds
17967
17968 # Command to use after uninstallation of a shared archive.
17969 postuninstall_cmds=$lt_postuninstall_cmds
17970
17971 # Commands used to finish a libtool library installation in a directory.
17972 finish_cmds=$lt_finish_cmds
17973
17974 # As "finish_cmds", except a single script fragment to be evaled but
17975 # not shown.
17976 finish_eval=$lt_finish_eval
17977
17978 # Whether we should hardcode library paths into libraries.
17979 hardcode_into_libs=$hardcode_into_libs
17980
17981 # Compile-time system search path for libraries.
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17983
17984 # Run-time system search path for libraries.
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17986
17987 # Whether dlopen is supported.
17988 dlopen_support=$enable_dlopen
17989
17990 # Whether dlopen of programs is supported.
17991 dlopen_self=$enable_dlopen_self
17992
17993 # Whether dlopen of statically linked programs is supported.
17994 dlopen_self_static=$enable_dlopen_self_static
17995
17996 # Commands to strip libraries.
17997 old_striplib=$lt_old_striplib
17998 striplib=$lt_striplib
17999
18000
18001 # The linker used to build libraries.
18002 LD=$lt_LD
18003
18004 # How to create reloadable object files.
18005 reload_flag=$lt_reload_flag
18006 reload_cmds=$lt_reload_cmds
18007
18008 # Commands used to build an old-style archive.
18009 old_archive_cmds=$lt_old_archive_cmds
18010
18011 # A language specific compiler.
18012 CC=$lt_compiler
18013
18014 # Is the compiler the GNU compiler?
18015 with_gcc=$GCC
18016
18017 # Compiler flag to turn off builtin functions.
18018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18019
18020 # How to pass a linker flag through the compiler.
18021 wl=$lt_lt_prog_compiler_wl
18022
18023 # Additional compiler flags for building library objects.
18024 pic_flag=$lt_lt_prog_compiler_pic
18025
18026 # Compiler flag to prevent dynamic linking.
18027 link_static_flag=$lt_lt_prog_compiler_static
18028
18029 # Does compiler simultaneously support -c and -o options?
18030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18031
18032 # Whether or not to add -lc for building shared libraries.
18033 build_libtool_need_lc=$archive_cmds_need_lc
18034
18035 # Whether or not to disallow shared libs when runtime libs are static.
18036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18037
18038 # Compiler flag to allow reflexive dlopens.
18039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18040
18041 # Compiler flag to generate shared objects directly from archives.
18042 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18043
18044 # Whether the compiler copes with passing no objects directly.
18045 compiler_needs_object=$lt_compiler_needs_object
18046
18047 # Create an old-style archive from a shared archive.
18048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18049
18050 # Create a temporary old-style archive to link instead of a shared archive.
18051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18052
18053 # Commands used to build a shared archive.
18054 archive_cmds=$lt_archive_cmds
18055 archive_expsym_cmds=$lt_archive_expsym_cmds
18056
18057 # Commands used to build a loadable module if different from building
18058 # a shared archive.
18059 module_cmds=$lt_module_cmds
18060 module_expsym_cmds=$lt_module_expsym_cmds
18061
18062 # Whether we are building with GNU ld or not.
18063 with_gnu_ld=$lt_with_gnu_ld
18064
18065 # Flag that allows shared libraries with undefined symbols to be built.
18066 allow_undefined_flag=$lt_allow_undefined_flag
18067
18068 # Flag that enforces no undefined symbols.
18069 no_undefined_flag=$lt_no_undefined_flag
18070
18071 # Flag to hardcode \$libdir into a binary during linking.
18072 # This must work even if \$libdir does not exist
18073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18074
18075 # If ld is used when linking, flag to hardcode \$libdir into a binary
18076 # during linking.  This must work even if \$libdir does not exist.
18077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18078
18079 # Whether we need a single "-rpath" flag with a separated argument.
18080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18081
18082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18083 # DIR into the resulting binary.
18084 hardcode_direct=$hardcode_direct
18085
18086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18087 # DIR into the resulting binary and the resulting library dependency is
18088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18089 # library is relocated.
18090 hardcode_direct_absolute=$hardcode_direct_absolute
18091
18092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18093 # into the resulting binary.
18094 hardcode_minus_L=$hardcode_minus_L
18095
18096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18097 # into the resulting binary.
18098 hardcode_shlibpath_var=$hardcode_shlibpath_var
18099
18100 # Set to "yes" if building a shared library automatically hardcodes DIR
18101 # into the library and all subsequent libraries and executables linked
18102 # against it.
18103 hardcode_automatic=$hardcode_automatic
18104
18105 # Set to yes if linker adds runtime paths of dependent libraries
18106 # to runtime path list.
18107 inherit_rpath=$inherit_rpath
18108
18109 # Whether libtool must link a program against all its dependency libraries.
18110 link_all_deplibs=$link_all_deplibs
18111
18112 # Fix the shell variable \$srcfile for the compiler.
18113 fix_srcfile_path=$lt_fix_srcfile_path
18114
18115 # Set to "yes" if exported symbols are required.
18116 always_export_symbols=$always_export_symbols
18117
18118 # The commands to list exported symbols.
18119 export_symbols_cmds=$lt_export_symbols_cmds
18120
18121 # Symbols that should not be listed in the preloaded symbols.
18122 exclude_expsyms=$lt_exclude_expsyms
18123
18124 # Symbols that must always be exported.
18125 include_expsyms=$lt_include_expsyms
18126
18127 # Commands necessary for linking programs (against libraries) with templates.
18128 prelink_cmds=$lt_prelink_cmds
18129
18130 # Specify filename containing input files.
18131 file_list_spec=$lt_file_list_spec
18132
18133 # How to hardcode a shared library path into an executable.
18134 hardcode_action=$hardcode_action
18135
18136 # ### END LIBTOOL CONFIG
18137
18138 _LT_EOF
18139
18140   case $host_os in
18141   aix3*)
18142     cat <<\_LT_EOF >> "$cfgfile"
18143 # AIX sometimes has problems with the GCC collect2 program.  For some
18144 # reason, if we set the COLLECT_NAMES environment variable, the problems
18145 # vanish in a puff of smoke.
18146 if test "X${COLLECT_NAMES+set}" != Xset; then
18147   COLLECT_NAMES=
18148   export COLLECT_NAMES
18149 fi
18150 _LT_EOF
18151     ;;
18152   esac
18153
18154
18155 ltmain="$ac_aux_dir/ltmain.sh"
18156
18157
18158   # We use sed instead of cat because bash on DJGPP gets confused if
18159   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18160   # text mode, it properly converts lines to CR/LF.  This bash problem
18161   # is reportedly fixed, but why not run on old versions too?
18162   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18163     || (rm -f "$cfgfile"; exit 1)
18164
18165   case $xsi_shell in
18166   yes)
18167     cat << \_LT_EOF >> "$cfgfile"
18168
18169 # func_dirname file append nondir_replacement
18170 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18171 # otherwise set result to NONDIR_REPLACEMENT.
18172 func_dirname ()
18173 {
18174   case ${1} in
18175     */*) func_dirname_result="${1%/*}${2}" ;;
18176     *  ) func_dirname_result="${3}" ;;
18177   esac
18178 }
18179
18180 # func_basename file
18181 func_basename ()
18182 {
18183   func_basename_result="${1##*/}"
18184 }
18185
18186 # func_dirname_and_basename file append nondir_replacement
18187 # perform func_basename and func_dirname in a single function
18188 # call:
18189 #   dirname:  Compute the dirname of FILE.  If nonempty,
18190 #             add APPEND to the result, otherwise set result
18191 #             to NONDIR_REPLACEMENT.
18192 #             value returned in "$func_dirname_result"
18193 #   basename: Compute filename of FILE.
18194 #             value retuned in "$func_basename_result"
18195 # Implementation must be kept synchronized with func_dirname
18196 # and func_basename. For efficiency, we do not delegate to
18197 # those functions but instead duplicate the functionality here.
18198 func_dirname_and_basename ()
18199 {
18200   case ${1} in
18201     */*) func_dirname_result="${1%/*}${2}" ;;
18202     *  ) func_dirname_result="${3}" ;;
18203   esac
18204   func_basename_result="${1##*/}"
18205 }
18206
18207 # func_stripname prefix suffix name
18208 # strip PREFIX and SUFFIX off of NAME.
18209 # PREFIX and SUFFIX must not contain globbing or regex special
18210 # characters, hashes, percent signs, but SUFFIX may contain a leading
18211 # dot (in which case that matches only a dot).
18212 func_stripname ()
18213 {
18214   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
18215   # positional parameters, so assign one to ordinary parameter first.
18216   func_stripname_result=${3}
18217   func_stripname_result=${func_stripname_result#"${1}"}
18218   func_stripname_result=${func_stripname_result%"${2}"}
18219 }
18220
18221 # func_opt_split
18222 func_opt_split ()
18223 {
18224   func_opt_split_opt=${1%%=*}
18225   func_opt_split_arg=${1#*=}
18226 }
18227
18228 # func_lo2o object
18229 func_lo2o ()
18230 {
18231   case ${1} in
18232     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
18233     *)    func_lo2o_result=${1} ;;
18234   esac
18235 }
18236
18237 # func_xform libobj-or-source
18238 func_xform ()
18239 {
18240   func_xform_result=${1%.*}.lo
18241 }
18242
18243 # func_arith arithmetic-term...
18244 func_arith ()
18245 {
18246   func_arith_result=$(( $* ))
18247 }
18248
18249 # func_len string
18250 # STRING may not start with a hyphen.
18251 func_len ()
18252 {
18253   func_len_result=${#1}
18254 }
18255
18256 _LT_EOF
18257     ;;
18258   *) # Bourne compatible functions.
18259     cat << \_LT_EOF >> "$cfgfile"
18260
18261 # func_dirname file append nondir_replacement
18262 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18263 # otherwise set result to NONDIR_REPLACEMENT.
18264 func_dirname ()
18265 {
18266   # Extract subdirectory from the argument.
18267   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
18268   if test "X$func_dirname_result" = "X${1}"; then
18269     func_dirname_result="${3}"
18270   else
18271     func_dirname_result="$func_dirname_result${2}"
18272   fi
18273 }
18274
18275 # func_basename file
18276 func_basename ()
18277 {
18278   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
18279 }
18280
18281
18282 # func_stripname prefix suffix name
18283 # strip PREFIX and SUFFIX off of NAME.
18284 # PREFIX and SUFFIX must not contain globbing or regex special
18285 # characters, hashes, percent signs, but SUFFIX may contain a leading
18286 # dot (in which case that matches only a dot).
18287 # func_strip_suffix prefix name
18288 func_stripname ()
18289 {
18290   case ${2} in
18291     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
18292     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
18293   esac
18294 }
18295
18296 # sed scripts:
18297 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
18298 my_sed_long_arg='1s/^-[^=]*=//'
18299
18300 # func_opt_split
18301 func_opt_split ()
18302 {
18303   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
18304   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
18305 }
18306
18307 # func_lo2o object
18308 func_lo2o ()
18309 {
18310   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
18311 }
18312
18313 # func_xform libobj-or-source
18314 func_xform ()
18315 {
18316   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18317 }
18318
18319 # func_arith arithmetic-term...
18320 func_arith ()
18321 {
18322   func_arith_result=`expr "$@"`
18323 }
18324
18325 # func_len string
18326 # STRING may not start with a hyphen.
18327 func_len ()
18328 {
18329   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18330 }
18331
18332 _LT_EOF
18333 esac
18334
18335 case $lt_shell_append in
18336   yes)
18337     cat << \_LT_EOF >> "$cfgfile"
18338
18339 # func_append var value
18340 # Append VALUE to the end of shell variable VAR.
18341 func_append ()
18342 {
18343   eval "$1+=\$2"
18344 }
18345 _LT_EOF
18346     ;;
18347   *)
18348     cat << \_LT_EOF >> "$cfgfile"
18349
18350 # func_append var value
18351 # Append VALUE to the end of shell variable VAR.
18352 func_append ()
18353 {
18354   eval "$1=\$$1\$2"
18355 }
18356
18357 _LT_EOF
18358     ;;
18359   esac
18360
18361
18362   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18363     || (rm -f "$cfgfile"; exit 1)
18364
18365   mv -f "$cfgfile" "$ofile" ||
18366     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18367   chmod +x "$ofile"
18368
18369  ;;
18370     "default-1":C)
18371     for ac_file in $CONFIG_FILES; do
18372       # Support "outfile[:infile[:infile...]]"
18373       case "$ac_file" in
18374         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18375       esac
18376       # PO directories have a Makefile.in generated from Makefile.in.in.
18377       case "$ac_file" in */Makefile.in)
18378         # Adjust a relative srcdir.
18379         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18380         ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
18381         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18382         # In autoconf-2.13 it is called $ac_given_srcdir.
18383         # In autoconf-2.50 it is called $srcdir.
18384         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18385         case "$ac_given_srcdir" in
18386           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18387           /*) top_srcdir="$ac_given_srcdir" ;;
18388           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18389         esac
18390         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18391           rm -f "$ac_dir/POTFILES"
18392           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18393           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18394           POMAKEFILEDEPS="POTFILES.in"
18395           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18396           # on $ac_dir but don't depend on user-specified configuration
18397           # parameters.
18398           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18399             # The LINGUAS file contains the set of available languages.
18400             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18401               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete"
18402             fi
18403             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18404             # Hide the ALL_LINGUAS assigment from automake.
18405             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18406             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18407           else
18408             # The set of available languages was given in configure.ac.
18409             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18410           fi
18411           case "$ac_given_srcdir" in
18412             .) srcdirpre= ;;
18413             *) srcdirpre='$(srcdir)/' ;;
18414           esac
18415           POFILES=
18416           GMOFILES=
18417           UPDATEPOFILES=
18418           DUMMYPOFILES=
18419           for lang in $ALL_LINGUAS; do
18420             POFILES="$POFILES $srcdirpre$lang.po"
18421             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18422             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18423             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18424           done
18425           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18426           # environment variable.
18427           INST_LINGUAS=
18428           if test -n "$ALL_LINGUAS"; then
18429             for presentlang in $ALL_LINGUAS; do
18430               useit=no
18431               if test "%UNSET%" != "$LINGUAS"; then
18432                 desiredlanguages="$LINGUAS"
18433               else
18434                 desiredlanguages="$ALL_LINGUAS"
18435               fi
18436               for desiredlang in $desiredlanguages; do
18437                 # Use the presentlang catalog if desiredlang is
18438                 #   a. equal to presentlang, or
18439                 #   b. a variant of presentlang (because in this case,
18440                 #      presentlang can be used as a fallback for messages
18441                 #      which are not translated in the desiredlang catalog).
18442                 case "$desiredlang" in
18443                   "$presentlang"*) useit=yes;;
18444                 esac
18445               done
18446               if test $useit = yes; then
18447                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18448               fi
18449             done
18450           fi
18451           CATALOGS=
18452           if test -n "$INST_LINGUAS"; then
18453             for lang in $INST_LINGUAS; do
18454               CATALOGS="$CATALOGS $lang.gmo"
18455             done
18456           fi
18457           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18458           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"
18459           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18460             if test -f "$f"; then
18461               case "$f" in
18462                 *.orig | *.bak | *~) ;;
18463                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18464               esac
18465             fi
18466           done
18467         fi
18468         ;;
18469       esac
18470     done ;;
18471     "bfd_stdint.h":C)
18472 if test "$GCC" = yes; then
18473   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18474 else
18475   echo "/* generated for $CC */" > tmp-stdint.h
18476 fi
18477
18478 sed 's/^ *//' >> tmp-stdint.h <<EOF
18479
18480   #ifndef GCC_GENERATED_STDINT_H
18481   #define GCC_GENERATED_STDINT_H 1
18482
18483   #include <sys/types.h>
18484 EOF
18485
18486 if test "$acx_cv_header_stdint" != stdint.h; then
18487   echo "#include <stddef.h>" >> tmp-stdint.h
18488 fi
18489 if test "$acx_cv_header_stdint" != stddef.h; then
18490   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18491 fi
18492
18493 sed 's/^ *//' >> tmp-stdint.h <<EOF
18494   /* glibc uses these symbols as guards to prevent redefinitions.  */
18495   #ifdef __int8_t_defined
18496   #define _INT8_T
18497   #define _INT16_T
18498   #define _INT32_T
18499   #endif
18500   #ifdef __uint32_t_defined
18501   #define _UINT32_T
18502   #endif
18503
18504 EOF
18505
18506 # ----------------- done header, emit basic int types -------------
18507 if test "$acx_cv_header_stdint" = stddef.h; then
18508   sed 's/^ *//' >> tmp-stdint.h <<EOF
18509
18510     #ifndef _UINT8_T
18511     #define _UINT8_T
18512     #ifndef __uint8_t_defined
18513     #define __uint8_t_defined
18514     #ifndef uint8_t
18515     typedef unsigned $acx_cv_type_int8_t uint8_t;
18516     #endif
18517     #endif
18518     #endif
18519
18520     #ifndef _UINT16_T
18521     #define _UINT16_T
18522     #ifndef __uint16_t_defined
18523     #define __uint16_t_defined
18524     #ifndef uint16_t
18525     typedef unsigned $acx_cv_type_int16_t uint16_t;
18526     #endif
18527     #endif
18528     #endif
18529
18530     #ifndef _UINT32_T
18531     #define _UINT32_T
18532     #ifndef __uint32_t_defined
18533     #define __uint32_t_defined
18534     #ifndef uint32_t
18535     typedef unsigned $acx_cv_type_int32_t uint32_t;
18536     #endif
18537     #endif
18538     #endif
18539
18540     #ifndef _INT8_T
18541     #define _INT8_T
18542     #ifndef __int8_t_defined
18543     #define __int8_t_defined
18544     #ifndef int8_t
18545     typedef $acx_cv_type_int8_t int8_t;
18546     #endif
18547     #endif
18548     #endif
18549
18550     #ifndef _INT16_T
18551     #define _INT16_T
18552     #ifndef __int16_t_defined
18553     #define __int16_t_defined
18554     #ifndef int16_t
18555     typedef $acx_cv_type_int16_t int16_t;
18556     #endif
18557     #endif
18558     #endif
18559
18560     #ifndef _INT32_T
18561     #define _INT32_T
18562     #ifndef __int32_t_defined
18563     #define __int32_t_defined
18564     #ifndef int32_t
18565     typedef $acx_cv_type_int32_t int32_t;
18566     #endif
18567     #endif
18568     #endif
18569 EOF
18570 elif test "$ac_cv_type_u_int32_t" = yes; then
18571   sed 's/^ *//' >> tmp-stdint.h <<EOF
18572
18573     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18574     #ifndef _INT8_T
18575     #define _INT8_T
18576     #endif
18577     #ifndef _INT16_T
18578     #define _INT16_T
18579     #endif
18580     #ifndef _INT32_T
18581     #define _INT32_T
18582     #endif
18583
18584     #ifndef _UINT8_T
18585     #define _UINT8_T
18586     #ifndef __uint8_t_defined
18587     #define __uint8_t_defined
18588     #ifndef uint8_t
18589     typedef u_int8_t uint8_t;
18590     #endif
18591     #endif
18592     #endif
18593
18594     #ifndef _UINT16_T
18595     #define _UINT16_T
18596     #ifndef __uint16_t_defined
18597     #define __uint16_t_defined
18598     #ifndef uint16_t
18599     typedef u_int16_t uint16_t;
18600     #endif
18601     #endif
18602     #endif
18603
18604     #ifndef _UINT32_T
18605     #define _UINT32_T
18606     #ifndef __uint32_t_defined
18607     #define __uint32_t_defined
18608     #ifndef uint32_t
18609     typedef u_int32_t uint32_t;
18610     #endif
18611     #endif
18612     #endif
18613 EOF
18614 else
18615   sed 's/^ *//' >> tmp-stdint.h <<EOF
18616
18617     /* Some systems have guard macros to prevent redefinitions, define them.  */
18618     #ifndef _INT8_T
18619     #define _INT8_T
18620     #endif
18621     #ifndef _INT16_T
18622     #define _INT16_T
18623     #endif
18624     #ifndef _INT32_T
18625     #define _INT32_T
18626     #endif
18627     #ifndef _UINT8_T
18628     #define _UINT8_T
18629     #endif
18630     #ifndef _UINT16_T
18631     #define _UINT16_T
18632     #endif
18633     #ifndef _UINT32_T
18634     #define _UINT32_T
18635     #endif
18636 EOF
18637 fi
18638
18639 # ------------- done basic int types, emit int64_t types ------------
18640 if test "$ac_cv_type_uint64_t" = yes; then
18641   sed 's/^ *//' >> tmp-stdint.h <<EOF
18642
18643     /* system headers have good uint64_t and int64_t */
18644     #ifndef _INT64_T
18645     #define _INT64_T
18646     #endif
18647     #ifndef _UINT64_T
18648     #define _UINT64_T
18649     #endif
18650 EOF
18651 elif test "$ac_cv_type_u_int64_t" = yes; then
18652   sed 's/^ *//' >> tmp-stdint.h <<EOF
18653
18654     /* system headers have an u_int64_t (and int64_t) */
18655     #ifndef _INT64_T
18656     #define _INT64_T
18657     #endif
18658     #ifndef _UINT64_T
18659     #define _UINT64_T
18660     #ifndef __uint64_t_defined
18661     #define __uint64_t_defined
18662     #ifndef uint64_t
18663     typedef u_int64_t uint64_t;
18664     #endif
18665     #endif
18666     #endif
18667 EOF
18668 elif test -n "$acx_cv_type_int64_t"; then
18669   sed 's/^ *//' >> tmp-stdint.h <<EOF
18670
18671     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18672     #ifndef _INT64_T
18673     #define _INT64_T
18674     #ifndef int64_t
18675     typedef $acx_cv_type_int64_t int64_t;
18676     #endif
18677     #endif
18678     #ifndef _UINT64_T
18679     #define _UINT64_T
18680     #ifndef __uint64_t_defined
18681     #define __uint64_t_defined
18682     #ifndef uint64_t
18683     typedef unsigned $acx_cv_type_int64_t uint64_t;
18684     #endif
18685     #endif
18686     #endif
18687 EOF
18688 else
18689   sed 's/^ *//' >> tmp-stdint.h <<EOF
18690
18691     /* some common heuristics for int64_t, using compiler-specific tests */
18692     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18693     #ifndef _INT64_T
18694     #define _INT64_T
18695     #ifndef __int64_t_defined
18696     #ifndef int64_t
18697     typedef long long int64_t;
18698     #endif
18699     #endif
18700     #endif
18701     #ifndef _UINT64_T
18702     #define _UINT64_T
18703     #ifndef uint64_t
18704     typedef unsigned long long uint64_t;
18705     #endif
18706     #endif
18707
18708     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18709     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18710        does not implement __extension__.  But that compiler doesn't define
18711        __GNUC_MINOR__.  */
18712     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18713     # define __extension__
18714     # endif
18715
18716     # ifndef _INT64_T
18717     # define _INT64_T
18718     # ifndef int64_t
18719     __extension__ typedef long long int64_t;
18720     # endif
18721     # endif
18722     # ifndef _UINT64_T
18723     # define _UINT64_T
18724     # ifndef uint64_t
18725     __extension__ typedef unsigned long long uint64_t;
18726     # endif
18727     # endif
18728
18729     #elif !defined __STRICT_ANSI__
18730     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18731
18732     #  ifndef _INT64_T
18733     #  define _INT64_T
18734     #  ifndef int64_t
18735     typedef __int64 int64_t;
18736     #  endif
18737     #  endif
18738     #  ifndef _UINT64_T
18739     #  define _UINT64_T
18740     #  ifndef uint64_t
18741     typedef unsigned __int64 uint64_t;
18742     #  endif
18743     #  endif
18744     # endif /* compiler */
18745
18746     #endif /* ANSI version */
18747 EOF
18748 fi
18749
18750 # ------------- done int64_t types, emit intptr types ------------
18751 if test "$ac_cv_type_uintptr_t" != yes; then
18752   sed 's/^ *//' >> tmp-stdint.h <<EOF
18753
18754     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18755     #ifndef __uintptr_t_defined
18756     #ifndef uintptr_t
18757     typedef u$acx_cv_type_intptr_t uintptr_t;
18758     #endif
18759     #endif
18760     #ifndef __intptr_t_defined
18761     #ifndef intptr_t
18762     typedef $acx_cv_type_intptr_t  intptr_t;
18763     #endif
18764     #endif
18765 EOF
18766 fi
18767
18768 # ------------- done intptr types, emit int_least types ------------
18769 if test "$ac_cv_type_int_least32_t" != yes; then
18770   sed 's/^ *//' >> tmp-stdint.h <<EOF
18771
18772     /* Define int_least types */
18773     typedef int8_t     int_least8_t;
18774     typedef int16_t    int_least16_t;
18775     typedef int32_t    int_least32_t;
18776     #ifdef _INT64_T
18777     typedef int64_t    int_least64_t;
18778     #endif
18779
18780     typedef uint8_t    uint_least8_t;
18781     typedef uint16_t   uint_least16_t;
18782     typedef uint32_t   uint_least32_t;
18783     #ifdef _UINT64_T
18784     typedef uint64_t   uint_least64_t;
18785     #endif
18786 EOF
18787 fi
18788
18789 # ------------- done intptr types, emit int_fast types ------------
18790 if test "$ac_cv_type_int_fast32_t" != yes; then
18791       sed 's/^ *//' >> tmp-stdint.h <<EOF
18792
18793     /* Define int_fast types.  short is often slow */
18794     typedef int8_t       int_fast8_t;
18795     typedef int          int_fast16_t;
18796     typedef int32_t      int_fast32_t;
18797     #ifdef _INT64_T
18798     typedef int64_t      int_fast64_t;
18799     #endif
18800
18801     typedef uint8_t      uint_fast8_t;
18802     typedef unsigned int uint_fast16_t;
18803     typedef uint32_t     uint_fast32_t;
18804     #ifdef _UINT64_T
18805     typedef uint64_t     uint_fast64_t;
18806     #endif
18807 EOF
18808 fi
18809
18810 if test "$ac_cv_type_uintmax_t" != yes; then
18811   sed 's/^ *//' >> tmp-stdint.h <<EOF
18812
18813     /* Define intmax based on what we found */
18814     #ifndef intmax_t
18815     #ifdef _INT64_T
18816     typedef int64_t       intmax_t;
18817     #else
18818     typedef long          intmax_t;
18819     #endif
18820     #endif
18821     #ifndef uintmax_t
18822     #ifdef _UINT64_T
18823     typedef uint64_t      uintmax_t;
18824     #else
18825     typedef unsigned long uintmax_t;
18826     #endif
18827     #endif
18828 EOF
18829 fi
18830
18831 sed 's/^ *//' >> tmp-stdint.h <<EOF
18832
18833   #endif /* GCC_GENERATED_STDINT_H */
18834 EOF
18835
18836 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18837   rm -f tmp-stdint.h
18838 else
18839   mv -f tmp-stdint.h bfd_stdint.h
18840 fi
18841
18842  ;;
18843     "default":C)
18844 case "$srcdir" in
18845   .) srcdirpre= ;;
18846   *) srcdirpre='$(srcdir)/' ;;
18847 esac
18848 POFILES=
18849 GMOFILES=
18850 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18851   if test $lang != dummy; then
18852     POFILES="$POFILES $srcdirpre$lang.po"
18853     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18854   fi
18855 done
18856 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18857     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18858     -e "s,@POFILES@,$POFILES," \
18859     -e "s,@GMOFILES@,$GMOFILES," \
18860     po/Makefile.in > po/Makefile ;;
18861
18862   esac
18863 done # for ac_tag
18864
18865
18866 as_fn_exit 0
18867 _ACEOF
18868 ac_clean_files=$ac_clean_files_save
18869
18870 test $ac_write_fail = 0 ||
18871   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18872
18873
18874 # configure is writing to config.log, and then calls config.status.
18875 # config.status does its own redirection, appending to config.log.
18876 # Unfortunately, on DOS this fails, as config.log is still kept open
18877 # by configure, so config.status won't be able to write to it; its
18878 # output is simply discarded.  So we exec the FD to /dev/null,
18879 # effectively closing config.log, so it can be properly (re)opened and
18880 # appended to by config.status.  When coming back to configure, we
18881 # need to make the FD available again.
18882 if test "$no_create" != yes; then
18883   ac_cs_success=:
18884   ac_config_status_args=
18885   test "$silent" = yes &&
18886     ac_config_status_args="$ac_config_status_args --quiet"
18887   exec 5>/dev/null
18888   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18889   exec 5>>config.log
18890   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18891   # would make configure fail if this is the last instruction.
18892   $ac_cs_success || as_fn_exit $?
18893 fi
18894 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18895   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18896 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18897 fi
18898