2010-04-27 Kai Tietz <kai.tietz@onevision.com>
[platform/upstream/binutils.git] / bfd / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
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=
558 PACKAGE_TARNAME=
559 PACKAGE_VERSION=
560 PACKAGE_STRING=
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 tdefaults
606 bfd_ufile_ptr
607 bfd_file_ptr
608 supports_plugins
609 bfd_default_target_size
610 bfd_machines
611 bfd_backends
612 all_backends
613 bfd64_libs
614 wordsize
615 TDEFINES
616 SHARED_LIBADD
617 SHARED_LDFLAGS
618 LIBM
619 COREFLAG
620 COREFILE
621 EXEEXT_FOR_BUILD
622 CC_FOR_BUILD
623 BFD_HOSTPTR_T
624 BFD_HOST_U_64_BIT
625 BFD_HOST_64_BIT
626 BFD_HOST_64_BIT_DEFINED
627 BFD_HOST_64BIT_LONG_LONG
628 BFD_HOST_64BIT_LONG
629 HDEFINES
630 MSGMERGE
631 MSGFMT
632 MKINSTALLDIRS
633 CATOBJEXT
634 GENCAT
635 INSTOBJEXT
636 DATADIRNAME
637 CATALOGS
638 POSUB
639 GMSGFMT
640 XGETTEXT
641 INCINTL
642 LIBINTL_DEP
643 LIBINTL
644 USE_NLS
645 bfdincludedir
646 bfdlibdir
647 target_noncanonical
648 host_noncanonical
649 INSTALL_LIBBFD_FALSE
650 INSTALL_LIBBFD_TRUE
651 GENINSRC_NEVER_FALSE
652 GENINSRC_NEVER_TRUE
653 MAINT
654 MAINTAINER_MODE_FALSE
655 MAINTAINER_MODE_TRUE
656 NO_WERROR
657 WARN_CFLAGS
658 REPORT_BUGS_TEXI
659 REPORT_BUGS_TO
660 PKGVERSION
661 DEBUGDIR
662 PLUGINS_FALSE
663 PLUGINS_TRUE
664 OTOOL64
665 OTOOL
666 LIPO
667 NMEDIT
668 DSYMUTIL
669 OBJDUMP
670 LN_S
671 NM
672 ac_ct_DUMPBIN
673 DUMPBIN
674 LD
675 FGREP
676 SED
677 LIBTOOL
678 EGREP
679 GREP
680 CPP
681 RANLIB
682 AR
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 am__untar
693 am__tar
694 AMTAR
695 am__leading_dot
696 SET_MAKE
697 AWK
698 mkdir_p
699 MKDIR_P
700 INSTALL_STRIP_PROGRAM
701 STRIP
702 install_sh
703 MAKEINFO
704 AUTOHEADER
705 AUTOMAKE
706 AUTOCONF
707 ACLOCAL
708 VERSION
709 PACKAGE
710 CYGPATH_W
711 am__isrc
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files=''
773 ac_user_opts='
774 enable_option_checking
775 enable_dependency_tracking
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 with_gnu_ld
781 enable_libtool_lock
782 enable_plugins
783 enable_largefile
784 enable_64_bit_bfd
785 enable_targets
786 with_mmap
787 enable_secureplt
788 enable_leading_mingw64_underscores
789 with_separate_debug_dir
790 enable_elf_stt_common
791 with_pkgversion
792 with_bugurl
793 enable_werror
794 enable_build_warnings
795 enable_maintainer_mode
796 enable_install_libbfd
797 enable_nls
798 with_zlib
799 '
800       ac_precious_vars='build_alias
801 host_alias
802 target_alias
803 CC
804 CFLAGS
805 LDFLAGS
806 LIBS
807 CPPFLAGS
808 CPP'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures this package to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --libdir=DIR            object code libraries [EPREFIX/lib]
1391   --includedir=DIR        C header files [PREFIX/include]
1392   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395   --infodir=DIR           info documentation [DATAROOTDIR/info]
1396   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397   --mandir=DIR            man documentation [DATAROOTDIR/man]
1398   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1399   --htmldir=DIR           html documentation [DOCDIR]
1400   --dvidir=DIR            dvi documentation [DOCDIR]
1401   --pdfdir=DIR            pdf documentation [DOCDIR]
1402   --psdir=DIR             ps documentation [DOCDIR]
1403 _ACEOF
1404
1405   cat <<\_ACEOF
1406
1407 Program names:
1408   --program-prefix=PREFIX            prepend PREFIX to installed program names
1409   --program-suffix=SUFFIX            append SUFFIX to installed program names
1410   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
1412 System types:
1413   --build=BUILD     configure for building on BUILD [guessed]
1414   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415   --target=TARGET   configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420
1421   cat <<\_ACEOF
1422
1423 Optional Features:
1424   --disable-option-checking  ignore unrecognized --enable/--with options
1425   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1426   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1427   --disable-dependency-tracking  speeds up one-time build
1428   --enable-dependency-tracking   do not reject slow dependency extractors
1429   --enable-shared[=PKGS]  build shared libraries [default=no]
1430   --enable-static[=PKGS]  build static libraries [default=yes]
1431   --enable-fast-install[=PKGS]
1432                           optimize for fast installation [default=yes]
1433   --disable-libtool-lock  avoid locking (might break parallel builds)
1434   --enable-plugins        Enable support for plugins (defaults no)
1435   --disable-largefile     omit support for large files
1436   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
1437   --enable-targets        alternative target configurations
1438   --enable-secureplt      Default to creating read-only plt entries
1439   --enable-leading-mingw64-underscores
1440                           Enable leading underscores on 64 bit mingw targets
1441   --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
1442   --enable-werror         treat compile warnings as errors
1443   --enable-build-warnings enable build-time compiler warnings
1444   --enable-maintainer-mode  enable make rules and dependencies not useful
1445                           (and sometimes confusing) to the casual installer
1446   --enable-install-libbfd controls installation of libbfd and related headers
1447   --disable-nls           do not use Native Language Support
1448
1449 Optional Packages:
1450   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1451   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1452   --with-pic              try to use only PIC/non-PIC objects [default=use
1453                           both]
1454   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1455   --with-mmap             try using mmap for BFD input files if available
1456   --with-separate-debug-dir=DIR
1457                           Look for global separate debug info in DIR
1458                           [default=LIBDIR/debug]
1459   --with-pkgversion=PKG   Use PKG in the version string in place of "GNU
1460                           Binutils"
1461   --with-bugurl=URL       Direct users to URL to report a bug
1462   --with-zlib             include zlib support (auto/yes/no) default=auto
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   LIBS        libraries to pass to the linker, e.g. -l<library>
1470   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   CPP         C preprocessor
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to the package provider.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483   # If there are subdirs, report their specific --help.
1484   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485     test -d "$ac_dir" ||
1486       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487       continue
1488     ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494   # A ".." for each directory in $ac_dir_suffix.
1495   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496   case $ac_top_builddir_sub in
1497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499   esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507   .)  # We are building in place.
1508     ac_srcdir=.
1509     ac_top_srcdir=$ac_top_builddir_sub
1510     ac_abs_top_srcdir=$ac_pwd ;;
1511   [\\/]* | ?:[\\/]* )  # Absolute name.
1512     ac_srcdir=$srcdir$ac_dir_suffix;
1513     ac_top_srcdir=$srcdir
1514     ac_abs_top_srcdir=$srcdir ;;
1515   *) # Relative name.
1516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517     ac_top_srcdir=$ac_top_build_prefix$srcdir
1518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522     cd "$ac_dir" || { ac_status=$?; continue; }
1523     # Check for guested configure.
1524     if test -f "$ac_srcdir/configure.gnu"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527     elif test -f "$ac_srcdir/configure"; then
1528       echo &&
1529       $SHELL "$ac_srcdir/configure" --help=recursive
1530     else
1531       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532     fi || ac_status=$?
1533     cd "$ac_pwd" || { ac_status=$?; break; }
1534   done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539   cat <<\_ACEOF
1540 configure
1541 generated by GNU Autoconf 2.64
1542
1543 Copyright (C) 2009 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547   exit
1548 fi
1549
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1553
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1558 {
1559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560   rm -f conftest.$ac_objext
1561   if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564   *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568   (eval "$ac_compile") 2>conftest.err
1569   ac_status=$?
1570   if test -s conftest.err; then
1571     grep -v '^ *+' conftest.err >conftest.er1
1572     cat conftest.er1 >&5
1573     mv -f conftest.er1 conftest.err
1574   fi
1575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576   test $ac_status = 0; } && {
1577          test -z "$ac_c_werror_flag" ||
1578          test ! -s conftest.err
1579        } && test -s conftest.$ac_objext; then :
1580   ac_retval=0
1581 else
1582   $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1584
1585         ac_retval=1
1586 fi
1587   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588   return $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_c_try_link LINENO
1593 # -----------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_c_try_link ()
1596 {
1597   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598   rm -f conftest.$ac_objext conftest$ac_exeext
1599   if { { ac_try="$ac_link"
1600 case "(($ac_try" in
1601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602   *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606   (eval "$ac_link") 2>conftest.err
1607   ac_status=$?
1608   if test -s conftest.err; then
1609     grep -v '^ *+' conftest.err >conftest.er1
1610     cat conftest.er1 >&5
1611     mv -f conftest.er1 conftest.err
1612   fi
1613   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614   test $ac_status = 0; } && {
1615          test -z "$ac_c_werror_flag" ||
1616          test ! -s conftest.err
1617        } && test -s conftest$ac_exeext && {
1618          test "$cross_compiling" = yes ||
1619          $as_test_x conftest$ac_exeext
1620        }; then :
1621   ac_retval=0
1622 else
1623   $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626         ac_retval=1
1627 fi
1628   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630   # interfere with the next link command; also delete a directory that is
1631   # left behind by Apple's compiler.  We do this before executing the actions.
1632   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1634   return $ac_retval
1635
1636 } # ac_fn_c_try_link
1637
1638 # ac_fn_c_try_cpp LINENO
1639 # ----------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_c_try_cpp ()
1642 {
1643   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644   if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 case "(($ac_try" in
1646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647   *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652   ac_status=$?
1653   if test -s conftest.err; then
1654     grep -v '^ *+' conftest.err >conftest.er1
1655     cat conftest.er1 >&5
1656     mv -f conftest.er1 conftest.err
1657   fi
1658   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659   test $ac_status = 0; } >/dev/null && {
1660          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1661          test ! -s conftest.err
1662        }; then :
1663   ac_retval=0
1664 else
1665   $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668     ac_retval=1
1669 fi
1670   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671   return $ac_retval
1672
1673 } # ac_fn_c_try_cpp
1674
1675 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1679 # accordingly.
1680 ac_fn_c_check_header_mongrel ()
1681 {
1682   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687   $as_echo_n "(cached) " >&6
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692 else
1693   # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h.  */
1698 $4
1699 #include <$2>
1700 _ACEOF
1701 if ac_fn_c_try_compile "$LINENO"; then :
1702   ac_header_compiler=yes
1703 else
1704   ac_header_compiler=no
1705 fi
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1709
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 #include <$2>
1716 _ACEOF
1717 if ac_fn_c_try_cpp "$LINENO"; then :
1718   ac_header_preproc=yes
1719 else
1720   ac_header_preproc=no
1721 fi
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1725
1726 # So?  What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1728   yes:no: )
1729     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1733     ;;
1734   no:yes:* )
1735     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1739     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1743     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1745     ;;
1746 esac
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1750   $as_echo_n "(cached) " >&6
1751 else
1752   eval "$3=\$ac_header_compiler"
1753 fi
1754 eval ac_res=\$$3
1755                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 fi
1758   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759
1760 } # ac_fn_c_check_header_mongrel
1761
1762 # ac_fn_c_try_run LINENO
1763 # ----------------------
1764 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1765 # that executables *can* be run.
1766 ac_fn_c_try_run ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   if { { ac_try="$ac_link"
1770 case "(($ac_try" in
1771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772   *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776   (eval "$ac_link") 2>&5
1777   ac_status=$?
1778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1780   { { case "(($ac_try" in
1781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782   *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786   (eval "$ac_try") 2>&5
1787   ac_status=$?
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; }; }; then :
1790   ac_retval=0
1791 else
1792   $as_echo "$as_me: program exited with status $ac_status" >&5
1793        $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796        ac_retval=$ac_status
1797 fi
1798   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1800   return $ac_retval
1801
1802 } # ac_fn_c_try_run
1803
1804 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists and can be compiled using the include files in
1807 # INCLUDES, setting the cache variable VAR accordingly.
1808 ac_fn_c_check_header_compile ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 $4
1819 #include <$2>
1820 _ACEOF
1821 if ac_fn_c_try_compile "$LINENO"; then :
1822   eval "$3=yes"
1823 else
1824   eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827 fi
1828 eval ac_res=\$$3
1829                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1832
1833 } # ac_fn_c_check_header_compile
1834
1835 # ac_fn_c_check_func LINENO FUNC VAR
1836 # ----------------------------------
1837 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1838 ac_fn_c_check_func ()
1839 {
1840   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844   $as_echo_n "(cached) " >&6
1845 else
1846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1847 /* end confdefs.h.  */
1848 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1849    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1850 #define $2 innocuous_$2
1851
1852 /* System header to define __stub macros and hopefully few prototypes,
1853     which can conflict with char $2 (); below.
1854     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1855     <limits.h> exists even on freestanding compilers.  */
1856
1857 #ifdef __STDC__
1858 # include <limits.h>
1859 #else
1860 # include <assert.h>
1861 #endif
1862
1863 #undef $2
1864
1865 /* Override any GCC internal prototype to avoid an error.
1866    Use char because int might match the return type of a GCC
1867    builtin and then its argument prototype would still apply.  */
1868 #ifdef __cplusplus
1869 extern "C"
1870 #endif
1871 char $2 ();
1872 /* The GNU C library defines this for functions which it implements
1873     to always fail with ENOSYS.  Some functions are actually named
1874     something starting with __ and the normal name is an alias.  */
1875 #if defined __stub_$2 || defined __stub___$2
1876 choke me
1877 #endif
1878
1879 int
1880 main ()
1881 {
1882 return $2 ();
1883   ;
1884   return 0;
1885 }
1886 _ACEOF
1887 if ac_fn_c_try_link "$LINENO"; then :
1888   eval "$3=yes"
1889 else
1890   eval "$3=no"
1891 fi
1892 rm -f core conftest.err conftest.$ac_objext \
1893     conftest$ac_exeext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899
1900 } # ac_fn_c_check_func
1901
1902 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1903 # --------------------------------------------
1904 # Tries to find the compile-time value of EXPR in a program that includes
1905 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1906 # computed
1907 ac_fn_c_compute_int ()
1908 {
1909   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910   if test "$cross_compiling" = yes; then
1911     # Depending upon the size, compute the lo and hi bounds.
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h.  */
1914 $4
1915 int
1916 main ()
1917 {
1918 static int test_array [1 - 2 * !(($2) >= 0)];
1919 test_array [0] = 0
1920
1921   ;
1922   return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926   ac_lo=0 ac_mid=0
1927   while :; do
1928     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1935 test_array [0] = 0
1936
1937   ;
1938   return 0;
1939 }
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942   ac_hi=$ac_mid; break
1943 else
1944   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1945                         if test $ac_lo -le $ac_mid; then
1946                           ac_lo= ac_hi=
1947                           break
1948                         fi
1949                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1950 fi
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952   done
1953 else
1954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1955 /* end confdefs.h.  */
1956 $4
1957 int
1958 main ()
1959 {
1960 static int test_array [1 - 2 * !(($2) < 0)];
1961 test_array [0] = 0
1962
1963   ;
1964   return 0;
1965 }
1966 _ACEOF
1967 if ac_fn_c_try_compile "$LINENO"; then :
1968   ac_hi=-1 ac_mid=-1
1969   while :; do
1970     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h.  */
1972 $4
1973 int
1974 main ()
1975 {
1976 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1977 test_array [0] = 0
1978
1979   ;
1980   return 0;
1981 }
1982 _ACEOF
1983 if ac_fn_c_try_compile "$LINENO"; then :
1984   ac_lo=$ac_mid; break
1985 else
1986   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1987                         if test $ac_mid -le $ac_hi; then
1988                           ac_lo= ac_hi=
1989                           break
1990                         fi
1991                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994   done
1995 else
1996   ac_lo= ac_hi=
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 # Binary search between lo and hi bounds.
2002 while test "x$ac_lo" != "x$ac_hi"; do
2003   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 test_array [0] = 0
2012
2013   ;
2014   return 0;
2015 }
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018   ac_hi=$ac_mid
2019 else
2020   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2021 fi
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 done
2024 case $ac_lo in #((
2025 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2026 '') ac_retval=1 ;;
2027 esac
2028   else
2029     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 $4
2032 static long int longval () { return $2; }
2033 static unsigned long int ulongval () { return $2; }
2034 #include <stdio.h>
2035 #include <stdlib.h>
2036 int
2037 main ()
2038 {
2039
2040   FILE *f = fopen ("conftest.val", "w");
2041   if (! f)
2042     return 1;
2043   if (($2) < 0)
2044     {
2045       long int i = longval ();
2046       if (i != ($2))
2047         return 1;
2048       fprintf (f, "%ld", i);
2049     }
2050   else
2051     {
2052       unsigned long int i = ulongval ();
2053       if (i != ($2))
2054         return 1;
2055       fprintf (f, "%lu", i);
2056     }
2057   /* Do not output a trailing newline, as this causes \r\n confusion
2058      on some platforms.  */
2059   return ferror (f) || fclose (f) != 0;
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_run "$LINENO"; then :
2066   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2067 else
2068   ac_retval=1
2069 fi
2070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2071   conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 rm -f conftest.val
2073
2074   fi
2075   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076   return $ac_retval
2077
2078 } # ac_fn_c_compute_int
2079
2080 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2081 # -------------------------------------------
2082 # Tests whether TYPE exists after having included INCLUDES, setting cache
2083 # variable VAR accordingly.
2084 ac_fn_c_check_type ()
2085 {
2086   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2090   $as_echo_n "(cached) " >&6
2091 else
2092   eval "$3=no"
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 $4
2096 int
2097 main ()
2098 {
2099 if (sizeof ($2))
2100          return 0;
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 $4
2109 int
2110 main ()
2111 {
2112 if (sizeof (($2)))
2113             return 0;
2114   ;
2115   return 0;
2116 }
2117 _ACEOF
2118 if ac_fn_c_try_compile "$LINENO"; then :
2119
2120 else
2121   eval "$3=yes"
2122 fi
2123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 fi
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 fi
2127 eval ac_res=\$$3
2128                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131
2132 } # ac_fn_c_check_type
2133
2134 # ac_fn_c_check_decl LINENO SYMBOL VAR
2135 # ------------------------------------
2136 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2137 ac_fn_c_check_decl ()
2138 {
2139   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2141 $as_echo_n "checking whether $2 is declared... " >&6; }
2142 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2143   $as_echo_n "(cached) " >&6
2144 else
2145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h.  */
2147 $4
2148 int
2149 main ()
2150 {
2151 #ifndef $2
2152   (void) $2;
2153 #endif
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160   eval "$3=yes"
2161 else
2162   eval "$3=no"
2163 fi
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 fi
2166 eval ac_res=\$$3
2167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2170
2171 } # ac_fn_c_check_decl
2172 cat >config.log <<_ACEOF
2173 This file contains any messages produced by compilers while
2174 running configure, to aid debugging if configure makes a mistake.
2175
2176 It was created by $as_me, which was
2177 generated by GNU Autoconf 2.64.  Invocation command line was
2178
2179   $ $0 $@
2180
2181 _ACEOF
2182 exec 5>>config.log
2183 {
2184 cat <<_ASUNAME
2185 ## --------- ##
2186 ## Platform. ##
2187 ## --------- ##
2188
2189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2194
2195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2197
2198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2201 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2205
2206 _ASUNAME
2207
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213     $as_echo "PATH: $as_dir"
2214   done
2215 IFS=$as_save_IFS
2216
2217 } >&5
2218
2219 cat >&5 <<_ACEOF
2220
2221
2222 ## ----------- ##
2223 ## Core tests. ##
2224 ## ----------- ##
2225
2226 _ACEOF
2227
2228
2229 # Keep a trace of the command line.
2230 # Strip out --no-create and --no-recursion so they do not pile up.
2231 # Strip out --silent because we don't want to record it for future runs.
2232 # Also quote any args containing shell meta-characters.
2233 # Make two passes to allow for proper duplicate-argument suppression.
2234 ac_configure_args=
2235 ac_configure_args0=
2236 ac_configure_args1=
2237 ac_must_keep_next=false
2238 for ac_pass in 1 2
2239 do
2240   for ac_arg
2241   do
2242     case $ac_arg in
2243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2245     | -silent | --silent | --silen | --sile | --sil)
2246       continue ;;
2247     *\'*)
2248       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2249     esac
2250     case $ac_pass in
2251     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252     2)
2253       as_fn_append ac_configure_args1 " '$ac_arg'"
2254       if test $ac_must_keep_next = true; then
2255         ac_must_keep_next=false # Got value, back to normal.
2256       else
2257         case $ac_arg in
2258           *=* | --config-cache | -C | -disable-* | --disable-* \
2259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2261           | -with-* | --with-* | -without-* | --without-* | --x)
2262             case "$ac_configure_args0 " in
2263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2264             esac
2265             ;;
2266           -* ) ac_must_keep_next=true ;;
2267         esac
2268       fi
2269       as_fn_append ac_configure_args " '$ac_arg'"
2270       ;;
2271     esac
2272   done
2273 done
2274 { ac_configure_args0=; unset ac_configure_args0;}
2275 { ac_configure_args1=; unset ac_configure_args1;}
2276
2277 # When interrupted or exit'd, cleanup temporary files, and complete
2278 # config.log.  We remove comments because anyway the quotes in there
2279 # would cause problems or look ugly.
2280 # WARNING: Use '\'' to represent an apostrophe within the trap.
2281 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2282 trap 'exit_status=$?
2283   # Save into config.log some information that might help in debugging.
2284   {
2285     echo
2286
2287     cat <<\_ASBOX
2288 ## ---------------- ##
2289 ## Cache variables. ##
2290 ## ---------------- ##
2291 _ASBOX
2292     echo
2293     # The following way of writing the cache mishandles newlines in values,
2294 (
2295   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2296     eval ac_val=\$$ac_var
2297     case $ac_val in #(
2298     *${as_nl}*)
2299       case $ac_var in #(
2300       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2301 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2302       esac
2303       case $ac_var in #(
2304       _ | IFS | as_nl) ;; #(
2305       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2306       *) { eval $ac_var=; unset $ac_var;} ;;
2307       esac ;;
2308     esac
2309   done
2310   (set) 2>&1 |
2311     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2312     *${as_nl}ac_space=\ *)
2313       sed -n \
2314         "s/'\''/'\''\\\\'\'''\''/g;
2315           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2316       ;; #(
2317     *)
2318       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2319       ;;
2320     esac |
2321     sort
2322 )
2323     echo
2324
2325     cat <<\_ASBOX
2326 ## ----------------- ##
2327 ## Output variables. ##
2328 ## ----------------- ##
2329 _ASBOX
2330     echo
2331     for ac_var in $ac_subst_vars
2332     do
2333       eval ac_val=\$$ac_var
2334       case $ac_val in
2335       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336       esac
2337       $as_echo "$ac_var='\''$ac_val'\''"
2338     done | sort
2339     echo
2340
2341     if test -n "$ac_subst_files"; then
2342       cat <<\_ASBOX
2343 ## ------------------- ##
2344 ## File substitutions. ##
2345 ## ------------------- ##
2346 _ASBOX
2347       echo
2348       for ac_var in $ac_subst_files
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     fi
2358
2359     if test -s confdefs.h; then
2360       cat <<\_ASBOX
2361 ## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##
2364 _ASBOX
2365       echo
2366       cat confdefs.h
2367       echo
2368     fi
2369     test "$ac_signal" != 0 &&
2370       $as_echo "$as_me: caught signal $ac_signal"
2371     $as_echo "$as_me: exit $exit_status"
2372   } >&5
2373   rm -f core *.core core.conftest.* &&
2374     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375     exit $exit_status
2376 ' 0
2377 for ac_signal in 1 2 13 15; do
2378   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2379 done
2380 ac_signal=0
2381
2382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2383 rm -f -r conftest* confdefs.h
2384
2385 $as_echo "/* confdefs.h */" > confdefs.h
2386
2387 # Predefined preprocessor variables.
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 _ACEOF
2400
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 _ACEOF
2404
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 _ACEOF
2408
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_URL "$PACKAGE_URL"
2411 _ACEOF
2412
2413
2414 # Let the site file select an alternate cache file if it wants to.
2415 # Prefer an explicitly selected file to automatically selected ones.
2416 ac_site_file1=NONE
2417 ac_site_file2=NONE
2418 if test -n "$CONFIG_SITE"; then
2419   ac_site_file1=$CONFIG_SITE
2420 elif test "x$prefix" != xNONE; then
2421   ac_site_file1=$prefix/share/config.site
2422   ac_site_file2=$prefix/etc/config.site
2423 else
2424   ac_site_file1=$ac_default_prefix/share/config.site
2425   ac_site_file2=$ac_default_prefix/etc/config.site
2426 fi
2427 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2428 do
2429   test "x$ac_site_file" = xNONE && continue
2430   if test -r "$ac_site_file"; then
2431     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2432 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2433     sed 's/^/| /' "$ac_site_file" >&5
2434     . "$ac_site_file"
2435   fi
2436 done
2437
2438 if test -r "$cache_file"; then
2439   # Some versions of bash will fail to source /dev/null (special
2440   # files actually), so we avoid doing that.
2441   if test -f "$cache_file"; then
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2444     case $cache_file in
2445       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446       *)                      . "./$cache_file";;
2447     esac
2448   fi
2449 else
2450   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2452   >$cache_file
2453 fi
2454
2455 # Check that the precious variables saved in the cache have kept the same
2456 # value.
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460   eval ac_new_set=\$ac_env_${ac_var}_set
2461   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462   eval ac_new_val=\$ac_env_${ac_var}_value
2463   case $ac_old_set,$ac_new_set in
2464     set,)
2465       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467       ac_cache_corrupted=: ;;
2468     ,set)
2469       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471       ac_cache_corrupted=: ;;
2472     ,);;
2473     *)
2474       if test "x$ac_old_val" != "x$ac_new_val"; then
2475         # differences in whitespace do not lead to failure.
2476         ac_old_val_w=`echo x $ac_old_val`
2477         ac_new_val_w=`echo x $ac_new_val`
2478         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481           ac_cache_corrupted=:
2482         else
2483           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485           eval $ac_var=\$ac_old_val
2486         fi
2487         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2488 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2489         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2491       fi;;
2492   esac
2493   # Pass precious variables to config.status.
2494   if test "$ac_new_set" = set; then
2495     case $ac_new_val in
2496     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497     *) ac_arg=$ac_var=$ac_new_val ;;
2498     esac
2499     case " $ac_configure_args " in
2500       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2501       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502     esac
2503   fi
2504 done
2505 if $ac_cache_corrupted; then
2506   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511 fi
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2515
2516 ac_ext=c
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524
2525
2526
2527
2528 ac_aux_dir=
2529 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2530   for ac_t in install-sh install.sh shtool; do
2531     if test -f "$ac_dir/$ac_t"; then
2532       ac_aux_dir=$ac_dir
2533       ac_install_sh="$ac_aux_dir/$ac_t -c"
2534       break 2
2535     fi
2536   done
2537 done
2538 if test -z "$ac_aux_dir"; then
2539   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540 fi
2541
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2549
2550
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556 $as_echo_n "checking build system type... " >&6; }
2557 if test "${ac_cv_build+set}" = set; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   ac_build_alias=$build_alias
2561 test "x$ac_build_alias" = x &&
2562   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563 test "x$ac_build_alias" = x &&
2564   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570 $as_echo "$ac_cv_build" >&6; }
2571 case $ac_cv_build in
2572 *-*-*) ;;
2573 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2574 esac
2575 build=$ac_cv_build
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_build
2578 shift
2579 build_cpu=$1
2580 build_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 build_os=$*
2585 IFS=$ac_save_IFS
2586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590 $as_echo_n "checking host system type... " >&6; }
2591 if test "${ac_cv_host+set}" = set; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   if test "x$host_alias" = x; then
2595   ac_cv_host=$ac_cv_build
2596 else
2597   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2599 fi
2600
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603 $as_echo "$ac_cv_host" >&6; }
2604 case $ac_cv_host in
2605 *-*-*) ;;
2606 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2607 esac
2608 host=$ac_cv_host
2609 ac_save_IFS=$IFS; IFS='-'
2610 set x $ac_cv_host
2611 shift
2612 host_cpu=$1
2613 host_vendor=$2
2614 shift; shift
2615 # Remember, the first character of IFS is used to create $*,
2616 # except with old shells:
2617 host_os=$*
2618 IFS=$ac_save_IFS
2619 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620
2621
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2623 $as_echo_n "checking target system type... " >&6; }
2624 if test "${ac_cv_target+set}" = set; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   if test "x$target_alias" = x; then
2628   ac_cv_target=$ac_cv_host
2629 else
2630   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2631     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2632 fi
2633
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2636 $as_echo "$ac_cv_target" >&6; }
2637 case $ac_cv_target in
2638 *-*-*) ;;
2639 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2640 esac
2641 target=$ac_cv_target
2642 ac_save_IFS=$IFS; IFS='-'
2643 set x $ac_cv_target
2644 shift
2645 target_cpu=$1
2646 target_vendor=$2
2647 shift; shift
2648 # Remember, the first character of IFS is used to create $*,
2649 # except with old shells:
2650 target_os=$*
2651 IFS=$ac_save_IFS
2652 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2653
2654
2655 # The aliases save the names the user supplied, while $host etc.
2656 # will get canonicalized.
2657 test -n "$target_alias" &&
2658   test "$program_prefix$program_suffix$program_transform_name" = \
2659     NONENONEs,x,x, &&
2660   program_prefix=${target_alias}-
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666 if test -n "$ac_tool_prefix"; then
2667   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if test "${ac_cv_prog_CC+set}" = set; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$CC"; then
2675   ac_cv_prog_CC="$CC" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 CC=$ac_cv_prog_CC
2695 if test -n "$CC"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697 $as_echo "$CC" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704 fi
2705 if test -z "$ac_cv_prog_CC"; then
2706   ac_ct_CC=$CC
2707   # Extract the first word of "gcc", so it can be a program name with args.
2708 set dummy gcc; ac_word=$2
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710 $as_echo_n "checking for $ac_word... " >&6; }
2711 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   if test -n "$ac_ct_CC"; then
2715   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716 else
2717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 for as_dir in $PATH
2719 do
2720   IFS=$as_save_IFS
2721   test -z "$as_dir" && as_dir=.
2722     for ac_exec_ext in '' $ac_executable_extensions; do
2723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724     ac_cv_prog_ac_ct_CC="gcc"
2725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726     break 2
2727   fi
2728 done
2729   done
2730 IFS=$as_save_IFS
2731
2732 fi
2733 fi
2734 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735 if test -n "$ac_ct_CC"; then
2736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737 $as_echo "$ac_ct_CC" >&6; }
2738 else
2739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740 $as_echo "no" >&6; }
2741 fi
2742
2743   if test "x$ac_ct_CC" = x; then
2744     CC=""
2745   else
2746     case $cross_compiling:$ac_tool_warned in
2747 yes:)
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750 ac_tool_warned=yes ;;
2751 esac
2752     CC=$ac_ct_CC
2753   fi
2754 else
2755   CC="$ac_cv_prog_CC"
2756 fi
2757
2758 if test -z "$CC"; then
2759           if test -n "$ac_tool_prefix"; then
2760     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761 set dummy ${ac_tool_prefix}cc; ac_word=$2
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763 $as_echo_n "checking for $ac_word... " >&6; }
2764 if test "${ac_cv_prog_CC+set}" = set; then :
2765   $as_echo_n "(cached) " >&6
2766 else
2767   if test -n "$CC"; then
2768   ac_cv_prog_CC="$CC" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773   IFS=$as_save_IFS
2774   test -z "$as_dir" && as_dir=.
2775     for ac_exec_ext in '' $ac_executable_extensions; do
2776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777     ac_cv_prog_CC="${ac_tool_prefix}cc"
2778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779     break 2
2780   fi
2781 done
2782   done
2783 IFS=$as_save_IFS
2784
2785 fi
2786 fi
2787 CC=$ac_cv_prog_CC
2788 if test -n "$CC"; then
2789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2790 $as_echo "$CC" >&6; }
2791 else
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793 $as_echo "no" >&6; }
2794 fi
2795
2796
2797   fi
2798 fi
2799 if test -z "$CC"; then
2800   # Extract the first word of "cc", so it can be a program name with args.
2801 set dummy cc; ac_word=$2
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 $as_echo_n "checking for $ac_word... " >&6; }
2804 if test "${ac_cv_prog_CC+set}" = set; then :
2805   $as_echo_n "(cached) " >&6
2806 else
2807   if test -n "$CC"; then
2808   ac_cv_prog_CC="$CC" # Let the user override the test.
2809 else
2810   ac_prog_rejected=no
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814   IFS=$as_save_IFS
2815   test -z "$as_dir" && as_dir=.
2816     for ac_exec_ext in '' $ac_executable_extensions; do
2817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819        ac_prog_rejected=yes
2820        continue
2821      fi
2822     ac_cv_prog_CC="cc"
2823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827   done
2828 IFS=$as_save_IFS
2829
2830 if test $ac_prog_rejected = yes; then
2831   # We found a bogon in the path, so make sure we never use it.
2832   set dummy $ac_cv_prog_CC
2833   shift
2834   if test $# != 0; then
2835     # We chose a different compiler from the bogus one.
2836     # However, it has the same basename, so the bogon will be chosen
2837     # first if we set CC to just the basename; use the full file name.
2838     shift
2839     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840   fi
2841 fi
2842 fi
2843 fi
2844 CC=$ac_cv_prog_CC
2845 if test -n "$CC"; then
2846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847 $as_echo "$CC" >&6; }
2848 else
2849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850 $as_echo "no" >&6; }
2851 fi
2852
2853
2854 fi
2855 if test -z "$CC"; then
2856   if test -n "$ac_tool_prefix"; then
2857   for ac_prog in cl.exe
2858   do
2859     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if test "${ac_cv_prog_CC+set}" = set; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test -n "$CC"; then
2867   ac_cv_prog_CC="$CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     for ac_exec_ext in '' $ac_executable_extensions; do
2875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878     break 2
2879   fi
2880 done
2881   done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 CC=$ac_cv_prog_CC
2887 if test -n "$CC"; then
2888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889 $as_echo "$CC" >&6; }
2890 else
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896     test -n "$CC" && break
2897   done
2898 fi
2899 if test -z "$CC"; then
2900   ac_ct_CC=$CC
2901   for ac_prog in cl.exe
2902 do
2903   # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy $ac_prog; ac_word=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2908   $as_echo_n "(cached) " >&6
2909 else
2910   if test -n "$ac_ct_CC"; then
2911   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916   IFS=$as_save_IFS
2917   test -z "$as_dir" && as_dir=.
2918     for ac_exec_ext in '' $ac_executable_extensions; do
2919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920     ac_cv_prog_ac_ct_CC="$ac_prog"
2921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922     break 2
2923   fi
2924 done
2925   done
2926 IFS=$as_save_IFS
2927
2928 fi
2929 fi
2930 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931 if test -n "$ac_ct_CC"; then
2932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933 $as_echo "$ac_ct_CC" >&6; }
2934 else
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940   test -n "$ac_ct_CC" && break
2941 done
2942
2943   if test "x$ac_ct_CC" = x; then
2944     CC=""
2945   else
2946     case $cross_compiling:$ac_tool_warned in
2947 yes:)
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950 ac_tool_warned=yes ;;
2951 esac
2952     CC=$ac_ct_CC
2953   fi
2954 fi
2955
2956 fi
2957
2958
2959 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961 as_fn_error "no acceptable C compiler found in \$PATH
2962 See \`config.log' for more details." "$LINENO" 5; }
2963
2964 # Provide some information about the compiler.
2965 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2966 set X $ac_compile
2967 ac_compiler=$2
2968 for ac_option in --version -v -V -qversion; do
2969   { { ac_try="$ac_compiler $ac_option >&5"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975 $as_echo "$ac_try_echo"; } >&5
2976   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2977   ac_status=$?
2978   if test -s conftest.err; then
2979     sed '10a\
2980 ... rest of stderr output deleted ...
2981          10q' conftest.err >conftest.er1
2982     cat conftest.er1 >&5
2983     rm -f conftest.er1 conftest.err
2984   fi
2985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986   test $ac_status = 0; }
2987 done
2988
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h.  */
2991
2992 int
2993 main ()
2994 {
2995
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
3000 ac_clean_files_save=$ac_clean_files
3001 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3002 # Try to create an executable without -o first, disregard a.out.
3003 # It will help us diagnose broken compilers, and finding out an intuition
3004 # of exeext.
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3006 $as_echo_n "checking for C compiler default output file name... " >&6; }
3007 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3008
3009 # The possible output files:
3010 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3011
3012 ac_rmfiles=
3013 for ac_file in $ac_files
3014 do
3015   case $ac_file in
3016     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018   esac
3019 done
3020 rm -f $ac_rmfiles
3021
3022 if { { ac_try="$ac_link_default"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028 $as_echo "$ac_try_echo"; } >&5
3029   (eval "$ac_link_default") 2>&5
3030   ac_status=$?
3031   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032   test $ac_status = 0; }; then :
3033   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3034 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3035 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3036 # so that the user can short-circuit this test for compilers unknown to
3037 # Autoconf.
3038 for ac_file in $ac_files ''
3039 do
3040   test -f "$ac_file" || continue
3041   case $ac_file in
3042     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3043         ;;
3044     [ab].out )
3045         # We found the default executable, but exeext='' is most
3046         # certainly right.
3047         break;;
3048     *.* )
3049         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3050         then :; else
3051            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052         fi
3053         # We set ac_cv_exeext here because the later test for it is not
3054         # safe: cross compilers may not add the suffix if given an `-o'
3055         # argument, so we may need to know it at that point already.
3056         # Even if this section looks crufty: it has the advantage of
3057         # actually working.
3058         break;;
3059     * )
3060         break;;
3061   esac
3062 done
3063 test "$ac_cv_exeext" = no && ac_cv_exeext=
3064
3065 else
3066   ac_file=''
3067 fi
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3069 $as_echo "$ac_file" >&6; }
3070 if test -z "$ac_file"; then :
3071   $as_echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3073
3074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 { as_fn_set_status 77
3077 as_fn_error "C compiler cannot create executables
3078 See \`config.log' for more details." "$LINENO" 5; }; }
3079 fi
3080 ac_exeext=$ac_cv_exeext
3081
3082 # Check that the compiler produces executables we can run.  If not, either
3083 # the compiler is broken, or we cross compile.
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3085 $as_echo_n "checking whether the C compiler works... " >&6; }
3086 # If not cross compiling, check that we can run a simple program.
3087 if test "$cross_compiling" != yes; then
3088   if { ac_try='./$ac_file'
3089   { { case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095   (eval "$ac_try") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098   test $ac_status = 0; }; }; then
3099     cross_compiling=no
3100   else
3101     if test "$cross_compiling" = maybe; then
3102         cross_compiling=yes
3103     else
3104         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error "cannot run C compiled programs.
3107 If you meant to cross compile, use \`--host'.
3108 See \`config.log' for more details." "$LINENO" 5; }
3109     fi
3110   fi
3111 fi
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3114
3115 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3116 ac_clean_files=$ac_clean_files_save
3117 # Check that the compiler produces executables we can run.  If not, either
3118 # the compiler is broken, or we cross compile.
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3120 $as_echo_n "checking whether we are cross compiling... " >&6; }
3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3122 $as_echo "$cross_compiling" >&6; }
3123
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3125 $as_echo_n "checking for suffix of executables... " >&6; }
3126 if { { ac_try="$ac_link"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_link") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3136   test $ac_status = 0; }; then :
3137   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3138 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3139 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 # `rm'.
3141 for ac_file in conftest.exe conftest conftest.*; do
3142   test -f "$ac_file" || continue
3143   case $ac_file in
3144     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3145     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3146           break;;
3147     * ) break;;
3148   esac
3149 done
3150 else
3151   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3153 as_fn_error "cannot compute suffix of executables: cannot compile and link
3154 See \`config.log' for more details." "$LINENO" 5; }
3155 fi
3156 rm -f conftest$ac_cv_exeext
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3158 $as_echo "$ac_cv_exeext" >&6; }
3159
3160 rm -f conftest.$ac_ext
3161 EXEEXT=$ac_cv_exeext
3162 ac_exeext=$EXEEXT
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3164 $as_echo_n "checking for suffix of object files... " >&6; }
3165 if test "${ac_cv_objext+set}" = set; then :
3166   $as_echo_n "(cached) " >&6
3167 else
3168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174
3175   ;
3176   return 0;
3177 }
3178 _ACEOF
3179 rm -f conftest.o conftest.obj
3180 if { { ac_try="$ac_compile"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3186 $as_echo "$ac_try_echo"; } >&5
3187   (eval "$ac_compile") 2>&5
3188   ac_status=$?
3189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190   test $ac_status = 0; }; then :
3191   for ac_file in conftest.o conftest.obj conftest.*; do
3192   test -f "$ac_file" || continue;
3193   case $ac_file in
3194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3195     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3196        break;;
3197   esac
3198 done
3199 else
3200   $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error "cannot compute suffix of object files: cannot compile
3206 See \`config.log' for more details." "$LINENO" 5; }
3207 fi
3208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3209 fi
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3211 $as_echo "$ac_cv_objext" >&6; }
3212 OBJEXT=$ac_cv_objext
3213 ac_objext=$OBJEXT
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3215 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3216 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h.  */
3221
3222 int
3223 main ()
3224 {
3225 #ifndef __GNUC__
3226        choke me
3227 #endif
3228
3229   ;
3230   return 0;
3231 }
3232 _ACEOF
3233 if ac_fn_c_try_compile "$LINENO"; then :
3234   ac_compiler_gnu=yes
3235 else
3236   ac_compiler_gnu=no
3237 fi
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3240
3241 fi
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3243 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3244 if test $ac_compiler_gnu = yes; then
3245   GCC=yes
3246 else
3247   GCC=
3248 fi
3249 ac_test_CFLAGS=${CFLAGS+set}
3250 ac_save_CFLAGS=$CFLAGS
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3252 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3253 if test "${ac_cv_prog_cc_g+set}" = set; then :
3254   $as_echo_n "(cached) " >&6
3255 else
3256   ac_save_c_werror_flag=$ac_c_werror_flag
3257    ac_c_werror_flag=yes
3258    ac_cv_prog_cc_g=no
3259    CFLAGS="-g"
3260    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3261 /* end confdefs.h.  */
3262
3263 int
3264 main ()
3265 {
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 if ac_fn_c_try_compile "$LINENO"; then :
3272   ac_cv_prog_cc_g=yes
3273 else
3274   CFLAGS=""
3275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3276 /* end confdefs.h.  */
3277
3278 int
3279 main ()
3280 {
3281
3282   ;
3283   return 0;
3284 }
3285 _ACEOF
3286 if ac_fn_c_try_compile "$LINENO"; then :
3287
3288 else
3289   ac_c_werror_flag=$ac_save_c_werror_flag
3290          CFLAGS="-g"
3291          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h.  */
3293
3294 int
3295 main ()
3296 {
3297
3298   ;
3299   return 0;
3300 }
3301 _ACEOF
3302 if ac_fn_c_try_compile "$LINENO"; then :
3303   ac_cv_prog_cc_g=yes
3304 fi
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 fi
3307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3308 fi
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310    ac_c_werror_flag=$ac_save_c_werror_flag
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3313 $as_echo "$ac_cv_prog_cc_g" >&6; }
3314 if test "$ac_test_CFLAGS" = set; then
3315   CFLAGS=$ac_save_CFLAGS
3316 elif test $ac_cv_prog_cc_g = yes; then
3317   if test "$GCC" = yes; then
3318     CFLAGS="-g -O2"
3319   else
3320     CFLAGS="-g"
3321   fi
3322 else
3323   if test "$GCC" = yes; then
3324     CFLAGS="-O2"
3325   else
3326     CFLAGS=
3327   fi
3328 fi
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3330 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3331 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   ac_cv_prog_cc_c89=no
3335 ac_save_CC=$CC
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338 #include <stdarg.h>
3339 #include <stdio.h>
3340 #include <sys/types.h>
3341 #include <sys/stat.h>
3342 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3343 struct buf { int x; };
3344 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3345 static char *e (p, i)
3346      char **p;
3347      int i;
3348 {
3349   return p[i];
3350 }
3351 static char *f (char * (*g) (char **, int), char **p, ...)
3352 {
3353   char *s;
3354   va_list v;
3355   va_start (v,p);
3356   s = g (p, va_arg (v,int));
3357   va_end (v);
3358   return s;
3359 }
3360
3361 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3362    function prototypes and stuff, but not '\xHH' hex character constants.
3363    These don't provoke an error unfortunately, instead are silently treated
3364    as 'x'.  The following induces an error, until -std is added to get
3365    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3366    array size at least.  It's necessary to write '\x00'==0 to get something
3367    that's true only with -std.  */
3368 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3369
3370 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3371    inside strings and character constants.  */
3372 #define FOO(x) 'x'
3373 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3374
3375 int test (int i, double x);
3376 struct s1 {int (*f) (int a);};
3377 struct s2 {int (*f) (double a);};
3378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3379 int argc;
3380 char **argv;
3381 int
3382 main ()
3383 {
3384 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3385   ;
3386   return 0;
3387 }
3388 _ACEOF
3389 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3390         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3391 do
3392   CC="$ac_save_CC $ac_arg"
3393   if ac_fn_c_try_compile "$LINENO"; then :
3394   ac_cv_prog_cc_c89=$ac_arg
3395 fi
3396 rm -f core conftest.err conftest.$ac_objext
3397   test "x$ac_cv_prog_cc_c89" != "xno" && break
3398 done
3399 rm -f conftest.$ac_ext
3400 CC=$ac_save_CC
3401
3402 fi
3403 # AC_CACHE_VAL
3404 case "x$ac_cv_prog_cc_c89" in
3405   x)
3406     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3407 $as_echo "none needed" >&6; } ;;
3408   xno)
3409     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3410 $as_echo "unsupported" >&6; } ;;
3411   *)
3412     CC="$CC $ac_cv_prog_cc_c89"
3413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3414 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3415 esac
3416 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417
3418 fi
3419
3420 ac_ext=c
3421 ac_cpp='$CPP $CPPFLAGS'
3422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
3426
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3428 $as_echo_n "checking for library containing strerror... " >&6; }
3429 if test "${ac_cv_search_strerror+set}" = set; then :
3430   $as_echo_n "(cached) " >&6
3431 else
3432   ac_func_search_save_LIBS=$LIBS
3433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h.  */
3435
3436 /* Override any GCC internal prototype to avoid an error.
3437    Use char because int might match the return type of a GCC
3438    builtin and then its argument prototype would still apply.  */
3439 #ifdef __cplusplus
3440 extern "C"
3441 #endif
3442 char strerror ();
3443 int
3444 main ()
3445 {
3446 return strerror ();
3447   ;
3448   return 0;
3449 }
3450 _ACEOF
3451 for ac_lib in '' cposix; do
3452   if test -z "$ac_lib"; then
3453     ac_res="none required"
3454   else
3455     ac_res=-l$ac_lib
3456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3457   fi
3458   if ac_fn_c_try_link "$LINENO"; then :
3459   ac_cv_search_strerror=$ac_res
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext \
3462     conftest$ac_exeext
3463   if test "${ac_cv_search_strerror+set}" = set; then :
3464   break
3465 fi
3466 done
3467 if test "${ac_cv_search_strerror+set}" = set; then :
3468
3469 else
3470   ac_cv_search_strerror=no
3471 fi
3472 rm conftest.$ac_ext
3473 LIBS=$ac_func_search_save_LIBS
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3476 $as_echo "$ac_cv_search_strerror" >&6; }
3477 ac_res=$ac_cv_search_strerror
3478 if test "$ac_res" != no; then :
3479   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3480
3481 fi
3482
3483
3484 am__api_version='1.11'
3485
3486 # Find a good install program.  We prefer a C program (faster),
3487 # so one script is as good as another.  But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3492 # AIX /bin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # OS/2's system install, which has a completely different semantic
3498 # ./install, which can be erroneously created by make from ./install.sh.
3499 # Reject install programs that cannot install multiple files.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3502 if test -z "$INSTALL"; then
3503 if test "${ac_cv_path_install+set}" = set; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3508 do
3509   IFS=$as_save_IFS
3510   test -z "$as_dir" && as_dir=.
3511     # Account for people who put trailing slashes in PATH elements.
3512 case $as_dir/ in #((
3513   ./ | .// | /[cC]/* | \
3514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3515   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3516   /usr/ucb/* ) ;;
3517   *)
3518     # OSF1 and SCO ODT 3.0 have their own names for install.
3519     # Don't use installbsd from OSF since it installs stuff as root
3520     # by default.
3521     for ac_prog in ginstall scoinst install; do
3522       for ac_exec_ext in '' $ac_executable_extensions; do
3523         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524           if test $ac_prog = install &&
3525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526             # AIX install.  It has an incompatible calling convention.
3527             :
3528           elif test $ac_prog = install &&
3529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530             # program-specific install script used by HP pwplus--don't use.
3531             :
3532           else
3533             rm -rf conftest.one conftest.two conftest.dir
3534             echo one > conftest.one
3535             echo two > conftest.two
3536             mkdir conftest.dir
3537             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538               test -s conftest.one && test -s conftest.two &&
3539               test -s conftest.dir/conftest.one &&
3540               test -s conftest.dir/conftest.two
3541             then
3542               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3543               break 3
3544             fi
3545           fi
3546         fi
3547       done
3548     done
3549     ;;
3550 esac
3551
3552   done
3553 IFS=$as_save_IFS
3554
3555 rm -rf conftest.one conftest.two conftest.dir
3556
3557 fi
3558   if test "${ac_cv_path_install+set}" = set; then
3559     INSTALL=$ac_cv_path_install
3560   else
3561     # As a last resort, use the slow shell script.  Don't cache a
3562     # value for INSTALL within a source directory, because that will
3563     # break other packages using the cache if that directory is
3564     # removed, or if the value is a relative name.
3565     INSTALL=$ac_install_sh
3566   fi
3567 fi
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3569 $as_echo "$INSTALL" >&6; }
3570
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3574
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3576
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3578
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3580 $as_echo_n "checking whether build environment is sane... " >&6; }
3581 # Just in case
3582 sleep 1
3583 echo timestamp > conftest.file
3584 # Reject unsafe characters in $srcdir or the absolute working directory
3585 # name.  Accept space and tab only in the latter.
3586 am_lf='
3587 '
3588 case `pwd` in
3589   *[\\\"\#\$\&\'\`$am_lf]*)
3590     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3591 esac
3592 case $srcdir in
3593   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3594     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3595 esac
3596
3597 # Do `set' in a subshell so we don't clobber the current shell's
3598 # arguments.  Must try -L first in case configure is actually a
3599 # symlink; some systems play weird games with the mod time of symlinks
3600 # (eg FreeBSD returns the mod time of the symlink's containing
3601 # directory).
3602 if (
3603    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3604    if test "$*" = "X"; then
3605       # -L didn't work.
3606       set X `ls -t "$srcdir/configure" conftest.file`
3607    fi
3608    rm -f conftest.file
3609    if test "$*" != "X $srcdir/configure conftest.file" \
3610       && test "$*" != "X conftest.file $srcdir/configure"; then
3611
3612       # If neither matched, then we have a broken ls.  This can happen
3613       # if, for instance, CONFIG_SHELL is bash and it inherits a
3614       # broken ls alias from the environment.  This has actually
3615       # happened.  Such a system could not be considered "sane".
3616       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3617 alias in your environment" "$LINENO" 5
3618    fi
3619
3620    test "$2" = conftest.file
3621    )
3622 then
3623    # Ok.
3624    :
3625 else
3626    as_fn_error "newly created file is older than distributed files!
3627 Check your system clock" "$LINENO" 5
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3630 $as_echo "yes" >&6; }
3631 test "$program_prefix" != NONE &&
3632   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3633 # Use a double $ so make ignores it.
3634 test "$program_suffix" != NONE &&
3635   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3636 # Double any \ or $.
3637 # By default was `s,x,x', remove it if useless.
3638 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3639 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3640
3641 # expand $ac_aux_dir to an absolute path
3642 am_aux_dir=`cd $ac_aux_dir && pwd`
3643
3644 if test x"${MISSING+set}" != xset; then
3645   case $am_aux_dir in
3646   *\ * | *\     *)
3647     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3648   *)
3649     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3650   esac
3651 fi
3652 # Use eval to expand $SHELL
3653 if eval "$MISSING --run true"; then
3654   am_missing_run="$MISSING --run "
3655 else
3656   am_missing_run=
3657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3658 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3659 fi
3660
3661 if test x"${install_sh}" != xset; then
3662   case $am_aux_dir in
3663   *\ * | *\     *)
3664     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3665   *)
3666     install_sh="\${SHELL} $am_aux_dir/install-sh"
3667   esac
3668 fi
3669
3670 # Installed binaries are usually stripped using `strip' when the user
3671 # run `make install-strip'.  However `strip' might not be the right
3672 # tool to use in cross-compilation environments, therefore Automake
3673 # will honor the `STRIP' environment variable to overrule this program.
3674 if test "$cross_compiling" != no; then
3675   if test -n "$ac_tool_prefix"; then
3676   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3677 set dummy ${ac_tool_prefix}strip; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_STRIP+set}" = set; then :
3681   $as_echo_n "(cached) " >&6
3682 else
3683   if test -n "$STRIP"; then
3684   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689   IFS=$as_save_IFS
3690   test -z "$as_dir" && as_dir=.
3691     for ac_exec_ext in '' $ac_executable_extensions; do
3692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695     break 2
3696   fi
3697 done
3698   done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 STRIP=$ac_cv_prog_STRIP
3704 if test -n "$STRIP"; then
3705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3706 $as_echo "$STRIP" >&6; }
3707 else
3708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713 fi
3714 if test -z "$ac_cv_prog_STRIP"; then
3715   ac_ct_STRIP=$STRIP
3716   # Extract the first word of "strip", so it can be a program name with args.
3717 set dummy strip; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3721   $as_echo_n "(cached) " >&6
3722 else
3723   if test -n "$ac_ct_STRIP"; then
3724   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3725 else
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH
3728 do
3729   IFS=$as_save_IFS
3730   test -z "$as_dir" && as_dir=.
3731     for ac_exec_ext in '' $ac_executable_extensions; do
3732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733     ac_cv_prog_ac_ct_STRIP="strip"
3734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3735     break 2
3736   fi
3737 done
3738   done
3739 IFS=$as_save_IFS
3740
3741 fi
3742 fi
3743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3744 if test -n "$ac_ct_STRIP"; then
3745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3746 $as_echo "$ac_ct_STRIP" >&6; }
3747 else
3748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3750 fi
3751
3752   if test "x$ac_ct_STRIP" = x; then
3753     STRIP=":"
3754   else
3755     case $cross_compiling:$ac_tool_warned in
3756 yes:)
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3759 ac_tool_warned=yes ;;
3760 esac
3761     STRIP=$ac_ct_STRIP
3762   fi
3763 else
3764   STRIP="$ac_cv_prog_STRIP"
3765 fi
3766
3767 fi
3768 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3771 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3772 if test -z "$MKDIR_P"; then
3773   if test "${ac_cv_path_mkdir+set}" = set; then :
3774   $as_echo_n "(cached) " >&6
3775 else
3776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3778 do
3779   IFS=$as_save_IFS
3780   test -z "$as_dir" && as_dir=.
3781     for ac_prog in mkdir gmkdir; do
3782          for ac_exec_ext in '' $ac_executable_extensions; do
3783            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3784            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3785              'mkdir (GNU coreutils) '* | \
3786              'mkdir (coreutils) '* | \
3787              'mkdir (fileutils) '4.1*)
3788                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3789                break 3;;
3790            esac
3791          done
3792        done
3793   done
3794 IFS=$as_save_IFS
3795
3796 fi
3797
3798   if test "${ac_cv_path_mkdir+set}" = set; then
3799     MKDIR_P="$ac_cv_path_mkdir -p"
3800   else
3801     # As a last resort, use the slow shell script.  Don't cache a
3802     # value for MKDIR_P within a source directory, because that will
3803     # break other packages using the cache if that directory is
3804     # removed, or if the value is a relative name.
3805     test -d ./--version && rmdir ./--version
3806     MKDIR_P="$ac_install_sh -d"
3807   fi
3808 fi
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3810 $as_echo "$MKDIR_P" >&6; }
3811
3812 mkdir_p="$MKDIR_P"
3813 case $mkdir_p in
3814   [\\/$]* | ?:[\\/]*) ;;
3815   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3816 esac
3817
3818 for ac_prog in gawk mawk nawk awk
3819 do
3820   # Extract the first word of "$ac_prog", so it can be a program name with args.
3821 set dummy $ac_prog; ac_word=$2
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3823 $as_echo_n "checking for $ac_word... " >&6; }
3824 if test "${ac_cv_prog_AWK+set}" = set; then :
3825   $as_echo_n "(cached) " >&6
3826 else
3827   if test -n "$AWK"; then
3828   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3829 else
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835     for ac_exec_ext in '' $ac_executable_extensions; do
3836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3837     ac_cv_prog_AWK="$ac_prog"
3838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842   done
3843 IFS=$as_save_IFS
3844
3845 fi
3846 fi
3847 AWK=$ac_cv_prog_AWK
3848 if test -n "$AWK"; then
3849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3850 $as_echo "$AWK" >&6; }
3851 else
3852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3853 $as_echo "no" >&6; }
3854 fi
3855
3856
3857   test -n "$AWK" && break
3858 done
3859
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3861 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3862 set x ${MAKE-make}
3863 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3864 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3865   $as_echo_n "(cached) " >&6
3866 else
3867   cat >conftest.make <<\_ACEOF
3868 SHELL = /bin/sh
3869 all:
3870         @echo '@@@%%%=$(MAKE)=@@@%%%'
3871 _ACEOF
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3874   *@@@%%%=?*=@@@%%%*)
3875     eval ac_cv_prog_make_${ac_make}_set=yes;;
3876   *)
3877     eval ac_cv_prog_make_${ac_make}_set=no;;
3878 esac
3879 rm -f conftest.make
3880 fi
3881 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3883 $as_echo "yes" >&6; }
3884   SET_MAKE=
3885 else
3886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3888   SET_MAKE="MAKE=${MAKE-make}"
3889 fi
3890
3891 rm -rf .tst 2>/dev/null
3892 mkdir .tst 2>/dev/null
3893 if test -d .tst; then
3894   am__leading_dot=.
3895 else
3896   am__leading_dot=_
3897 fi
3898 rmdir .tst 2>/dev/null
3899
3900 DEPDIR="${am__leading_dot}deps"
3901
3902 ac_config_commands="$ac_config_commands depfiles"
3903
3904
3905 am_make=${MAKE-make}
3906 cat > confinc << 'END'
3907 am__doit:
3908         @echo this is the am__doit target
3909 .PHONY: am__doit
3910 END
3911 # If we don't find an include directive, just comment out the code.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3913 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3914 am__include="#"
3915 am__quote=
3916 _am_result=none
3917 # First try GNU make style include.
3918 echo "include confinc" > confmf
3919 # Ignore all kinds of additional output from `make'.
3920 case `$am_make -s -f confmf 2> /dev/null` in #(
3921 *the\ am__doit\ target*)
3922   am__include=include
3923   am__quote=
3924   _am_result=GNU
3925   ;;
3926 esac
3927 # Now try BSD make style include.
3928 if test "$am__include" = "#"; then
3929    echo '.include "confinc"' > confmf
3930    case `$am_make -s -f confmf 2> /dev/null` in #(
3931    *the\ am__doit\ target*)
3932      am__include=.include
3933      am__quote="\""
3934      _am_result=BSD
3935      ;;
3936    esac
3937 fi
3938
3939
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3941 $as_echo "$_am_result" >&6; }
3942 rm -f confinc confmf
3943
3944 # Check whether --enable-dependency-tracking was given.
3945 if test "${enable_dependency_tracking+set}" = set; then :
3946   enableval=$enable_dependency_tracking;
3947 fi
3948
3949 if test "x$enable_dependency_tracking" != xno; then
3950   am_depcomp="$ac_aux_dir/depcomp"
3951   AMDEPBACKSLASH='\'
3952 fi
3953  if test "x$enable_dependency_tracking" != xno; then
3954   AMDEP_TRUE=
3955   AMDEP_FALSE='#'
3956 else
3957   AMDEP_TRUE='#'
3958   AMDEP_FALSE=
3959 fi
3960
3961
3962 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3963   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3964   # is not polluted with repeated "-I."
3965   am__isrc=' -I$(srcdir)'
3966   # test to see if srcdir already configured
3967   if test -f $srcdir/config.status; then
3968     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3969   fi
3970 fi
3971
3972 # test whether we have cygpath
3973 if test -z "$CYGPATH_W"; then
3974   if (cygpath --version) >/dev/null 2>/dev/null; then
3975     CYGPATH_W='cygpath -w'
3976   else
3977     CYGPATH_W=echo
3978   fi
3979 fi
3980
3981
3982 # Define the identity of the package.
3983  PACKAGE=bfd
3984  VERSION=2.20.51
3985
3986
3987 cat >>confdefs.h <<_ACEOF
3988 #define PACKAGE "$PACKAGE"
3989 _ACEOF
3990
3991
3992 cat >>confdefs.h <<_ACEOF
3993 #define VERSION "$VERSION"
3994 _ACEOF
3995
3996 # Some tools Automake needs.
3997
3998 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3999
4000
4001 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4002
4003
4004 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4005
4006
4007 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4008
4009
4010 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4011
4012 # We need awk for the "check" target.  The system "awk" is bad on
4013 # some platforms.
4014 # Always define AMTAR for backward compatibility.
4015
4016 AMTAR=${AMTAR-"${am_missing_run}tar"}
4017
4018 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4019
4020
4021
4022
4023 depcc="$CC"   am_compiler_list=
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031   # We make a subdir and do the tests there.  Otherwise we can end up
4032   # making bogus files that we don't know about and never remove.  For
4033   # instance it was reported that on HP-UX the gcc test will end up
4034   # making a dummy file named `D' -- because `-MD' means `put the output
4035   # in D'.
4036   mkdir conftest.dir
4037   # Copy depcomp to subdir because otherwise we won't find it if we're
4038   # using a relative directory.
4039   cp "$am_depcomp" conftest.dir
4040   cd conftest.dir
4041   # We will build objects and dependencies in a subdirectory because
4042   # it helps to detect inapplicable dependency modes.  For instance
4043   # both Tru64's cc and ICC support -MD to output dependencies as a
4044   # side effect of compilation, but ICC will put the dependencies in
4045   # the current directory while Tru64 will put them in the object
4046   # directory.
4047   mkdir sub
4048
4049   am_cv_CC_dependencies_compiler_type=none
4050   if test "$am_compiler_list" = ""; then
4051      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4052   fi
4053   am__universal=false
4054   case " $depcc " in #(
4055      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4056      esac
4057
4058   for depmode in $am_compiler_list; do
4059     # Setup a source with many dependencies, because some compilers
4060     # like to wrap large dependency lists on column 80 (with \), and
4061     # we should not choose a depcomp mode which is confused by this.
4062     #
4063     # We need to recreate these files for each test, as the compiler may
4064     # overwrite some of them when testing with obscure command lines.
4065     # This happens at least with the AIX C compiler.
4066     : > sub/conftest.c
4067     for i in 1 2 3 4 5 6; do
4068       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4069       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4070       # Solaris 8's {/usr,}/bin/sh.
4071       touch sub/conftst$i.h
4072     done
4073     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4074
4075     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4076     # mode.  It turns out that the SunPro C++ compiler does not properly
4077     # handle `-M -o', and we need to detect this.  Also, some Intel
4078     # versions had trouble with output in subdirs
4079     am__obj=sub/conftest.${OBJEXT-o}
4080     am__minus_obj="-o $am__obj"
4081     case $depmode in
4082     gcc)
4083       # This depmode causes a compiler race in universal mode.
4084       test "$am__universal" = false || continue
4085       ;;
4086     nosideeffect)
4087       # after this tag, mechanisms are not by side-effect, so they'll
4088       # only be used when explicitly requested
4089       if test "x$enable_dependency_tracking" = xyes; then
4090         continue
4091       else
4092         break
4093       fi
4094       ;;
4095     msvisualcpp | msvcmsys)
4096       # This compiler won't grok `-c -o', but also, the minuso test has
4097       # not run yet.  These depmodes are late enough in the game, and
4098       # so weak that their functioning should not be impacted.
4099       am__obj=conftest.${OBJEXT-o}
4100       am__minus_obj=
4101       ;;
4102     none) break ;;
4103     esac
4104     if depmode=$depmode \
4105        source=sub/conftest.c object=$am__obj \
4106        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4107        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4108          >/dev/null 2>conftest.err &&
4109        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4110        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4111        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4112        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4113       # icc doesn't choke on unknown options, it will just issue warnings
4114       # or remarks (even with -Werror).  So we grep stderr for any message
4115       # that says an option was ignored or not supported.
4116       # When given -MP, icc 7.0 and 7.1 complain thusly:
4117       #   icc: Command line warning: ignoring option '-M'; no argument required
4118       # The diagnosis changed in icc 8.0:
4119       #   icc: Command line remark: option '-MP' not supported
4120       if (grep 'ignoring option' conftest.err ||
4121           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4122         am_cv_CC_dependencies_compiler_type=$depmode
4123         break
4124       fi
4125     fi
4126   done
4127
4128   cd ..
4129   rm -rf conftest.dir
4130 else
4131   am_cv_CC_dependencies_compiler_type=none
4132 fi
4133
4134 fi
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4136 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4137 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4138
4139  if
4140   test "x$enable_dependency_tracking" != xno \
4141   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4142   am__fastdepCC_TRUE=
4143   am__fastdepCC_FALSE='#'
4144 else
4145   am__fastdepCC_TRUE='#'
4146   am__fastdepCC_FALSE=
4147 fi
4148
4149
4150
4151
4152 if test -n "$ac_tool_prefix"; then
4153   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4154 set dummy ${ac_tool_prefix}ar; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if test "${ac_cv_prog_AR+set}" = set; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   if test -n "$AR"; then
4161   ac_cv_prog_AR="$AR" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4165 do
4166   IFS=$as_save_IFS
4167   test -z "$as_dir" && as_dir=.
4168     for ac_exec_ext in '' $ac_executable_extensions; do
4169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4170     ac_cv_prog_AR="${ac_tool_prefix}ar"
4171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172     break 2
4173   fi
4174 done
4175   done
4176 IFS=$as_save_IFS
4177
4178 fi
4179 fi
4180 AR=$ac_cv_prog_AR
4181 if test -n "$AR"; then
4182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4183 $as_echo "$AR" >&6; }
4184 else
4185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4187 fi
4188
4189
4190 fi
4191 if test -z "$ac_cv_prog_AR"; then
4192   ac_ct_AR=$AR
4193   # Extract the first word of "ar", so it can be a program name with args.
4194 set dummy ar; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4198   $as_echo_n "(cached) " >&6
4199 else
4200   if test -n "$ac_ct_AR"; then
4201   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206   IFS=$as_save_IFS
4207   test -z "$as_dir" && as_dir=.
4208     for ac_exec_ext in '' $ac_executable_extensions; do
4209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210     ac_cv_prog_ac_ct_AR="ar"
4211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4212     break 2
4213   fi
4214 done
4215   done
4216 IFS=$as_save_IFS
4217
4218 fi
4219 fi
4220 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4221 if test -n "$ac_ct_AR"; then
4222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4223 $as_echo "$ac_ct_AR" >&6; }
4224 else
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226 $as_echo "no" >&6; }
4227 fi
4228
4229   if test "x$ac_ct_AR" = x; then
4230     AR=""
4231   else
4232     case $cross_compiling:$ac_tool_warned in
4233 yes:)
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4236 ac_tool_warned=yes ;;
4237 esac
4238     AR=$ac_ct_AR
4239   fi
4240 else
4241   AR="$ac_cv_prog_AR"
4242 fi
4243
4244 if test -n "$ac_tool_prefix"; then
4245   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   if test -n "$RANLIB"; then
4253   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254 else
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258   IFS=$as_save_IFS
4259   test -z "$as_dir" && as_dir=.
4260     for ac_exec_ext in '' $ac_executable_extensions; do
4261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264     break 2
4265   fi
4266 done
4267   done
4268 IFS=$as_save_IFS
4269
4270 fi
4271 fi
4272 RANLIB=$ac_cv_prog_RANLIB
4273 if test -n "$RANLIB"; then
4274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4275 $as_echo "$RANLIB" >&6; }
4276 else
4277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4278 $as_echo "no" >&6; }
4279 fi
4280
4281
4282 fi
4283 if test -z "$ac_cv_prog_RANLIB"; then
4284   ac_ct_RANLIB=$RANLIB
4285   # Extract the first word of "ranlib", so it can be a program name with args.
4286 set dummy ranlib; ac_word=$2
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4288 $as_echo_n "checking for $ac_word... " >&6; }
4289 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   if test -n "$ac_ct_RANLIB"; then
4293   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300     for ac_exec_ext in '' $ac_executable_extensions; do
4301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302     ac_cv_prog_ac_ct_RANLIB="ranlib"
4303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307   done
4308 IFS=$as_save_IFS
4309
4310 fi
4311 fi
4312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4313 if test -n "$ac_ct_RANLIB"; then
4314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4315 $as_echo "$ac_ct_RANLIB" >&6; }
4316 else
4317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 $as_echo "no" >&6; }
4319 fi
4320
4321   if test "x$ac_ct_RANLIB" = x; then
4322     RANLIB=":"
4323   else
4324     case $cross_compiling:$ac_tool_warned in
4325 yes:)
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4328 ac_tool_warned=yes ;;
4329 esac
4330     RANLIB=$ac_ct_RANLIB
4331   fi
4332 else
4333   RANLIB="$ac_cv_prog_RANLIB"
4334 fi
4335
4336
4337 # Check whether --enable-shared was given.
4338 if test "${enable_shared+set}" = set; then :
4339   enableval=$enable_shared; p=${PACKAGE-default}
4340     case $enableval in
4341     yes) enable_shared=yes ;;
4342     no) enable_shared=no ;;
4343     *)
4344       enable_shared=no
4345       # Look at the argument we got.  We use all the common list separators.
4346       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4347       for pkg in $enableval; do
4348         IFS="$lt_save_ifs"
4349         if test "X$pkg" = "X$p"; then
4350           enable_shared=yes
4351         fi
4352       done
4353       IFS="$lt_save_ifs"
4354       ;;
4355     esac
4356 else
4357   enable_shared=no
4358 fi
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369 ac_ext=c
4370 ac_cpp='$CPP $CPPFLAGS'
4371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4374 if test -n "$ac_tool_prefix"; then
4375   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4376 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4378 $as_echo_n "checking for $ac_word... " >&6; }
4379 if test "${ac_cv_prog_CC+set}" = set; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   if test -n "$CC"; then
4383   ac_cv_prog_CC="$CC" # Let the user override the test.
4384 else
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH
4387 do
4388   IFS=$as_save_IFS
4389   test -z "$as_dir" && as_dir=.
4390     for ac_exec_ext in '' $ac_executable_extensions; do
4391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4392     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394     break 2
4395   fi
4396 done
4397   done
4398 IFS=$as_save_IFS
4399
4400 fi
4401 fi
4402 CC=$ac_cv_prog_CC
4403 if test -n "$CC"; then
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4405 $as_echo "$CC" >&6; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410
4411
4412 fi
4413 if test -z "$ac_cv_prog_CC"; then
4414   ac_ct_CC=$CC
4415   # Extract the first word of "gcc", so it can be a program name with args.
4416 set dummy gcc; ac_word=$2
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418 $as_echo_n "checking for $ac_word... " >&6; }
4419 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4420   $as_echo_n "(cached) " >&6
4421 else
4422   if test -n "$ac_ct_CC"; then
4423   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4424 else
4425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 for as_dir in $PATH
4427 do
4428   IFS=$as_save_IFS
4429   test -z "$as_dir" && as_dir=.
4430     for ac_exec_ext in '' $ac_executable_extensions; do
4431   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4432     ac_cv_prog_ac_ct_CC="gcc"
4433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4434     break 2
4435   fi
4436 done
4437   done
4438 IFS=$as_save_IFS
4439
4440 fi
4441 fi
4442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4443 if test -n "$ac_ct_CC"; then
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4445 $as_echo "$ac_ct_CC" >&6; }
4446 else
4447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4448 $as_echo "no" >&6; }
4449 fi
4450
4451   if test "x$ac_ct_CC" = x; then
4452     CC=""
4453   else
4454     case $cross_compiling:$ac_tool_warned in
4455 yes:)
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4458 ac_tool_warned=yes ;;
4459 esac
4460     CC=$ac_ct_CC
4461   fi
4462 else
4463   CC="$ac_cv_prog_CC"
4464 fi
4465
4466 if test -z "$CC"; then
4467           if test -n "$ac_tool_prefix"; then
4468     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4469 set dummy ${ac_tool_prefix}cc; ac_word=$2
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4471 $as_echo_n "checking for $ac_word... " >&6; }
4472 if test "${ac_cv_prog_CC+set}" = set; then :
4473   $as_echo_n "(cached) " >&6
4474 else
4475   if test -n "$CC"; then
4476   ac_cv_prog_CC="$CC" # Let the user override the test.
4477 else
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483     for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_prog_CC="${ac_tool_prefix}cc"
4486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490   done
4491 IFS=$as_save_IFS
4492
4493 fi
4494 fi
4495 CC=$ac_cv_prog_CC
4496 if test -n "$CC"; then
4497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4498 $as_echo "$CC" >&6; }
4499 else
4500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4501 $as_echo "no" >&6; }
4502 fi
4503
4504
4505   fi
4506 fi
4507 if test -z "$CC"; then
4508   # Extract the first word of "cc", so it can be a program name with args.
4509 set dummy cc; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if test "${ac_cv_prog_CC+set}" = set; then :
4513   $as_echo_n "(cached) " >&6
4514 else
4515   if test -n "$CC"; then
4516   ac_cv_prog_CC="$CC" # Let the user override the test.
4517 else
4518   ac_prog_rejected=no
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4527        ac_prog_rejected=yes
4528        continue
4529      fi
4530     ac_cv_prog_CC="cc"
4531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535   done
4536 IFS=$as_save_IFS
4537
4538 if test $ac_prog_rejected = yes; then
4539   # We found a bogon in the path, so make sure we never use it.
4540   set dummy $ac_cv_prog_CC
4541   shift
4542   if test $# != 0; then
4543     # We chose a different compiler from the bogus one.
4544     # However, it has the same basename, so the bogon will be chosen
4545     # first if we set CC to just the basename; use the full file name.
4546     shift
4547     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4548   fi
4549 fi
4550 fi
4551 fi
4552 CC=$ac_cv_prog_CC
4553 if test -n "$CC"; then
4554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4555 $as_echo "$CC" >&6; }
4556 else
4557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4559 fi
4560
4561
4562 fi
4563 if test -z "$CC"; then
4564   if test -n "$ac_tool_prefix"; then
4565   for ac_prog in cl.exe
4566   do
4567     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4568 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4570 $as_echo_n "checking for $ac_word... " >&6; }
4571 if test "${ac_cv_prog_CC+set}" = set; then :
4572   $as_echo_n "(cached) " >&6
4573 else
4574   if test -n "$CC"; then
4575   ac_cv_prog_CC="$CC" # Let the user override the test.
4576 else
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4584     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591
4592 fi
4593 fi
4594 CC=$ac_cv_prog_CC
4595 if test -n "$CC"; then
4596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4597 $as_echo "$CC" >&6; }
4598 else
4599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4600 $as_echo "no" >&6; }
4601 fi
4602
4603
4604     test -n "$CC" && break
4605   done
4606 fi
4607 if test -z "$CC"; then
4608   ac_ct_CC=$CC
4609   for ac_prog in cl.exe
4610 do
4611   # Extract the first word of "$ac_prog", so it can be a program name with args.
4612 set dummy $ac_prog; ac_word=$2
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4614 $as_echo_n "checking for $ac_word... " >&6; }
4615 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4616   $as_echo_n "(cached) " >&6
4617 else
4618   if test -n "$ac_ct_CC"; then
4619   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4620 else
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_prog_ac_ct_CC="$ac_prog"
4629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633   done
4634 IFS=$as_save_IFS
4635
4636 fi
4637 fi
4638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4639 if test -n "$ac_ct_CC"; then
4640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4641 $as_echo "$ac_ct_CC" >&6; }
4642 else
4643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4644 $as_echo "no" >&6; }
4645 fi
4646
4647
4648   test -n "$ac_ct_CC" && break
4649 done
4650
4651   if test "x$ac_ct_CC" = x; then
4652     CC=""
4653   else
4654     case $cross_compiling:$ac_tool_warned in
4655 yes:)
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4658 ac_tool_warned=yes ;;
4659 esac
4660     CC=$ac_ct_CC
4661   fi
4662 fi
4663
4664 fi
4665
4666
4667 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4669 as_fn_error "no acceptable C compiler found in \$PATH
4670 See \`config.log' for more details." "$LINENO" 5; }
4671
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4674 set X $ac_compile
4675 ac_compiler=$2
4676 for ac_option in --version -v -V -qversion; do
4677   { { ac_try="$ac_compiler $ac_option >&5"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4685   ac_status=$?
4686   if test -s conftest.err; then
4687     sed '10a\
4688 ... rest of stderr output deleted ...
4689          10q' conftest.err >conftest.er1
4690     cat conftest.er1 >&5
4691     rm -f conftest.er1 conftest.err
4692   fi
4693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694   test $ac_status = 0; }
4695 done
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4700   $as_echo_n "(cached) " >&6
4701 else
4702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h.  */
4704
4705 int
4706 main ()
4707 {
4708 #ifndef __GNUC__
4709        choke me
4710 #endif
4711
4712   ;
4713   return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_c_try_compile "$LINENO"; then :
4717   ac_compiler_gnu=yes
4718 else
4719   ac_compiler_gnu=no
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4723
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4727 if test $ac_compiler_gnu = yes; then
4728   GCC=yes
4729 else
4730   GCC=
4731 fi
4732 ac_test_CFLAGS=${CFLAGS+set}
4733 ac_save_CFLAGS=$CFLAGS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4736 if test "${ac_cv_prog_cc_g+set}" = set; then :
4737   $as_echo_n "(cached) " >&6
4738 else
4739   ac_save_c_werror_flag=$ac_c_werror_flag
4740    ac_c_werror_flag=yes
4741    ac_cv_prog_cc_g=no
4742    CFLAGS="-g"
4743    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h.  */
4745
4746 int
4747 main ()
4748 {
4749
4750   ;
4751   return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755   ac_cv_prog_cc_g=yes
4756 else
4757   CFLAGS=""
4758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h.  */
4760
4761 int
4762 main ()
4763 {
4764
4765   ;
4766   return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770
4771 else
4772   ac_c_werror_flag=$ac_save_c_werror_flag
4773          CFLAGS="-g"
4774          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h.  */
4776
4777 int
4778 main ()
4779 {
4780
4781   ;
4782   return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_c_try_compile "$LINENO"; then :
4786   ac_cv_prog_cc_g=yes
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793    ac_c_werror_flag=$ac_save_c_werror_flag
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4796 $as_echo "$ac_cv_prog_cc_g" >&6; }
4797 if test "$ac_test_CFLAGS" = set; then
4798   CFLAGS=$ac_save_CFLAGS
4799 elif test $ac_cv_prog_cc_g = yes; then
4800   if test "$GCC" = yes; then
4801     CFLAGS="-g -O2"
4802   else
4803     CFLAGS="-g"
4804   fi
4805 else
4806   if test "$GCC" = yes; then
4807     CFLAGS="-O2"
4808   else
4809     CFLAGS=
4810   fi
4811 fi
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   ac_cv_prog_cc_c89=no
4818 ac_save_CC=$CC
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h.  */
4821 #include <stdarg.h>
4822 #include <stdio.h>
4823 #include <sys/types.h>
4824 #include <sys/stat.h>
4825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4826 struct buf { int x; };
4827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4828 static char *e (p, i)
4829      char **p;
4830      int i;
4831 {
4832   return p[i];
4833 }
4834 static char *f (char * (*g) (char **, int), char **p, ...)
4835 {
4836   char *s;
4837   va_list v;
4838   va_start (v,p);
4839   s = g (p, va_arg (v,int));
4840   va_end (v);
4841   return s;
4842 }
4843
4844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4845    function prototypes and stuff, but not '\xHH' hex character constants.
4846    These don't provoke an error unfortunately, instead are silently treated
4847    as 'x'.  The following induces an error, until -std is added to get
4848    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4849    array size at least.  It's necessary to write '\x00'==0 to get something
4850    that's true only with -std.  */
4851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4852
4853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4854    inside strings and character constants.  */
4855 #define FOO(x) 'x'
4856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4857
4858 int test (int i, double x);
4859 struct s1 {int (*f) (int a);};
4860 struct s2 {int (*f) (double a);};
4861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4862 int argc;
4863 char **argv;
4864 int
4865 main ()
4866 {
4867 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4868   ;
4869   return 0;
4870 }
4871 _ACEOF
4872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4873         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4874 do
4875   CC="$ac_save_CC $ac_arg"
4876   if ac_fn_c_try_compile "$LINENO"; then :
4877   ac_cv_prog_cc_c89=$ac_arg
4878 fi
4879 rm -f core conftest.err conftest.$ac_objext
4880   test "x$ac_cv_prog_cc_c89" != "xno" && break
4881 done
4882 rm -f conftest.$ac_ext
4883 CC=$ac_save_CC
4884
4885 fi
4886 # AC_CACHE_VAL
4887 case "x$ac_cv_prog_cc_c89" in
4888   x)
4889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4890 $as_echo "none needed" >&6; } ;;
4891   xno)
4892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4893 $as_echo "unsupported" >&6; } ;;
4894   *)
4895     CC="$CC $ac_cv_prog_cc_c89"
4896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4898 esac
4899 if test "x$ac_cv_prog_cc_c89" != xno; then :
4900
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909 ac_ext=c
4910 ac_cpp='$CPP $CPPFLAGS'
4911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4915 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4916 # On Suns, sometimes $CPP names a directory.
4917 if test -n "$CPP" && test -d "$CPP"; then
4918   CPP=
4919 fi
4920 if test -z "$CPP"; then
4921   if test "${ac_cv_prog_CPP+set}" = set; then :
4922   $as_echo_n "(cached) " >&6
4923 else
4924       # Double quotes because CPP needs to be expanded
4925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4926     do
4927       ac_preproc_ok=false
4928 for ac_c_preproc_warn_flag in '' yes
4929 do
4930   # Use a header file that comes with gcc, so configuring glibc
4931   # with a fresh cross-compiler works.
4932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4933   # <limits.h> exists even on freestanding compilers.
4934   # On the NeXT, cc -E runs the code through the compiler's parser,
4935   # not just through cpp. "Syntax error" is here to catch this case.
4936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h.  */
4938 #ifdef __STDC__
4939 # include <limits.h>
4940 #else
4941 # include <assert.h>
4942 #endif
4943                      Syntax error
4944 _ACEOF
4945 if ac_fn_c_try_cpp "$LINENO"; then :
4946
4947 else
4948   # Broken: fails on valid input.
4949 continue
4950 fi
4951 rm -f conftest.err conftest.$ac_ext
4952
4953   # OK, works on sane cases.  Now check whether nonexistent headers
4954   # can be detected and how.
4955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h.  */
4957 #include <ac_nonexistent.h>
4958 _ACEOF
4959 if ac_fn_c_try_cpp "$LINENO"; then :
4960   # Broken: success on invalid input.
4961 continue
4962 else
4963   # Passes both tests.
4964 ac_preproc_ok=:
4965 break
4966 fi
4967 rm -f conftest.err conftest.$ac_ext
4968
4969 done
4970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4971 rm -f conftest.err conftest.$ac_ext
4972 if $ac_preproc_ok; then :
4973   break
4974 fi
4975
4976     done
4977     ac_cv_prog_CPP=$CPP
4978
4979 fi
4980   CPP=$ac_cv_prog_CPP
4981 else
4982   ac_cv_prog_CPP=$CPP
4983 fi
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4985 $as_echo "$CPP" >&6; }
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4988 do
4989   # Use a header file that comes with gcc, so configuring glibc
4990   # with a fresh cross-compiler works.
4991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992   # <limits.h> exists even on freestanding compilers.
4993   # On the NeXT, cc -E runs the code through the compiler's parser,
4994   # not just through cpp. "Syntax error" is here to catch this case.
4995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h.  */
4997 #ifdef __STDC__
4998 # include <limits.h>
4999 #else
5000 # include <assert.h>
5001 #endif
5002                      Syntax error
5003 _ACEOF
5004 if ac_fn_c_try_cpp "$LINENO"; then :
5005
5006 else
5007   # Broken: fails on valid input.
5008 continue
5009 fi
5010 rm -f conftest.err conftest.$ac_ext
5011
5012   # OK, works on sane cases.  Now check whether nonexistent headers
5013   # can be detected and how.
5014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h.  */
5016 #include <ac_nonexistent.h>
5017 _ACEOF
5018 if ac_fn_c_try_cpp "$LINENO"; then :
5019   # Broken: success on invalid input.
5020 continue
5021 else
5022   # Passes both tests.
5023 ac_preproc_ok=:
5024 break
5025 fi
5026 rm -f conftest.err conftest.$ac_ext
5027
5028 done
5029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5030 rm -f conftest.err conftest.$ac_ext
5031 if $ac_preproc_ok; then :
5032
5033 else
5034   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5036 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5037 See \`config.log' for more details." "$LINENO" 5; }
5038 fi
5039
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5048 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5049 if test "${ac_cv_path_GREP+set}" = set; then :
5050   $as_echo_n "(cached) " >&6
5051 else
5052   if test -z "$GREP"; then
5053   ac_path_GREP_found=false
5054   # Loop through the user's path and test for each of PROGNAME-LIST
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060     for ac_prog in grep ggrep; do
5061     for ac_exec_ext in '' $ac_executable_extensions; do
5062       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5063       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5064 # Check for GNU ac_path_GREP and select it if it is found.
5065   # Check for GNU $ac_path_GREP
5066 case `"$ac_path_GREP" --version 2>&1` in
5067 *GNU*)
5068   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5069 *)
5070   ac_count=0
5071   $as_echo_n 0123456789 >"conftest.in"
5072   while :
5073   do
5074     cat "conftest.in" "conftest.in" >"conftest.tmp"
5075     mv "conftest.tmp" "conftest.in"
5076     cp "conftest.in" "conftest.nl"
5077     $as_echo 'GREP' >> "conftest.nl"
5078     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5079     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5080     as_fn_arith $ac_count + 1 && ac_count=$as_val
5081     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5082       # Best one so far, save it but keep looking for a better one
5083       ac_cv_path_GREP="$ac_path_GREP"
5084       ac_path_GREP_max=$ac_count
5085     fi
5086     # 10*(2^10) chars as input seems more than enough
5087     test $ac_count -gt 10 && break
5088   done
5089   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5090 esac
5091
5092       $ac_path_GREP_found && break 3
5093     done
5094   done
5095   done
5096 IFS=$as_save_IFS
5097   if test -z "$ac_cv_path_GREP"; then
5098     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5099   fi
5100 else
5101   ac_cv_path_GREP=$GREP
5102 fi
5103
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5106 $as_echo "$ac_cv_path_GREP" >&6; }
5107  GREP="$ac_cv_path_GREP"
5108
5109
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5111 $as_echo_n "checking for egrep... " >&6; }
5112 if test "${ac_cv_path_EGREP+set}" = set; then :
5113   $as_echo_n "(cached) " >&6
5114 else
5115   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5116    then ac_cv_path_EGREP="$GREP -E"
5117    else
5118      if test -z "$EGREP"; then
5119   ac_path_EGREP_found=false
5120   # Loop through the user's path and test for each of PROGNAME-LIST
5121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_prog in egrep; do
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5129       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5130 # Check for GNU ac_path_EGREP and select it if it is found.
5131   # Check for GNU $ac_path_EGREP
5132 case `"$ac_path_EGREP" --version 2>&1` in
5133 *GNU*)
5134   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5135 *)
5136   ac_count=0
5137   $as_echo_n 0123456789 >"conftest.in"
5138   while :
5139   do
5140     cat "conftest.in" "conftest.in" >"conftest.tmp"
5141     mv "conftest.tmp" "conftest.in"
5142     cp "conftest.in" "conftest.nl"
5143     $as_echo 'EGREP' >> "conftest.nl"
5144     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5146     as_fn_arith $ac_count + 1 && ac_count=$as_val
5147     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5148       # Best one so far, save it but keep looking for a better one
5149       ac_cv_path_EGREP="$ac_path_EGREP"
5150       ac_path_EGREP_max=$ac_count
5151     fi
5152     # 10*(2^10) chars as input seems more than enough
5153     test $ac_count -gt 10 && break
5154   done
5155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5156 esac
5157
5158       $ac_path_EGREP_found && break 3
5159     done
5160   done
5161   done
5162 IFS=$as_save_IFS
5163   if test -z "$ac_cv_path_EGREP"; then
5164     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5165   fi
5166 else
5167   ac_cv_path_EGREP=$EGREP
5168 fi
5169
5170    fi
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174  EGREP="$ac_cv_path_EGREP"
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5178 $as_echo_n "checking for ANSI C header files... " >&6; }
5179 if test "${ac_cv_header_stdc+set}" = set; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h.  */
5184 #include <stdlib.h>
5185 #include <stdarg.h>
5186 #include <string.h>
5187 #include <float.h>
5188
5189 int
5190 main ()
5191 {
5192
5193   ;
5194   return 0;
5195 }
5196 _ACEOF
5197 if ac_fn_c_try_compile "$LINENO"; then :
5198   ac_cv_header_stdc=yes
5199 else
5200   ac_cv_header_stdc=no
5201 fi
5202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203
5204 if test $ac_cv_header_stdc = yes; then
5205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5207 /* end confdefs.h.  */
5208 #include <string.h>
5209
5210 _ACEOF
5211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5212   $EGREP "memchr" >/dev/null 2>&1; then :
5213
5214 else
5215   ac_cv_header_stdc=no
5216 fi
5217 rm -f conftest*
5218
5219 fi
5220
5221 if test $ac_cv_header_stdc = yes; then
5222   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224 /* end confdefs.h.  */
5225 #include <stdlib.h>
5226
5227 _ACEOF
5228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5229   $EGREP "free" >/dev/null 2>&1; then :
5230
5231 else
5232   ac_cv_header_stdc=no
5233 fi
5234 rm -f conftest*
5235
5236 fi
5237
5238 if test $ac_cv_header_stdc = yes; then
5239   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5240   if test "$cross_compiling" = yes; then :
5241   :
5242 else
5243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h.  */
5245 #include <ctype.h>
5246 #include <stdlib.h>
5247 #if ((' ' & 0x0FF) == 0x020)
5248 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5249 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5250 #else
5251 # define ISLOWER(c) \
5252                    (('a' <= (c) && (c) <= 'i') \
5253                      || ('j' <= (c) && (c) <= 'r') \
5254                      || ('s' <= (c) && (c) <= 'z'))
5255 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5256 #endif
5257
5258 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5259 int
5260 main ()
5261 {
5262   int i;
5263   for (i = 0; i < 256; i++)
5264     if (XOR (islower (i), ISLOWER (i))
5265         || toupper (i) != TOUPPER (i))
5266       return 2;
5267   return 0;
5268 }
5269 _ACEOF
5270 if ac_fn_c_try_run "$LINENO"; then :
5271
5272 else
5273   ac_cv_header_stdc=no
5274 fi
5275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5276   conftest.$ac_objext conftest.beam conftest.$ac_ext
5277 fi
5278
5279 fi
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5282 $as_echo "$ac_cv_header_stdc" >&6; }
5283 if test $ac_cv_header_stdc = yes; then
5284
5285 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5286
5287 fi
5288
5289 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5291                   inttypes.h stdint.h unistd.h
5292 do :
5293   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5295 "
5296 eval as_val=\$$as_ac_Header
5297    if test "x$as_val" = x""yes; then :
5298   cat >>confdefs.h <<_ACEOF
5299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300 _ACEOF
5301
5302 fi
5303
5304 done
5305
5306
5307
5308   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5309 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5310   MINIX=yes
5311 else
5312   MINIX=
5313 fi
5314
5315
5316   if test "$MINIX" = yes; then
5317
5318 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5319
5320
5321 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5322
5323
5324 $as_echo "#define _MINIX 1" >>confdefs.h
5325
5326   fi
5327
5328
5329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5330 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5331 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h.  */
5336
5337 #         define __EXTENSIONS__ 1
5338           $ac_includes_default
5339 int
5340 main ()
5341 {
5342
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_compile "$LINENO"; then :
5348   ac_cv_safe_to_define___extensions__=yes
5349 else
5350   ac_cv_safe_to_define___extensions__=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 fi
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5355 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5356   test $ac_cv_safe_to_define___extensions__ = yes &&
5357     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5358
5359   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5360
5361   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5362
5363   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5364
5365   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5366
5367
5368
5369
5370
5371 case `pwd` in
5372   *\ * | *\     *)
5373     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5374 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5375 esac
5376
5377
5378
5379 macro_version='2.2.7a'
5380 macro_revision='1.3134'
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394 ltmain="$ac_aux_dir/ltmain.sh"
5395
5396 # Backslashify metacharacters that are still active within
5397 # double-quoted strings.
5398 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5399
5400 # Same as above, but do not quote variable references.
5401 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5402
5403 # Sed substitution to delay expansion of an escaped shell variable in a
5404 # double_quote_subst'ed string.
5405 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5406
5407 # Sed substitution to delay expansion of an escaped single quote.
5408 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5409
5410 # Sed substitution to avoid accidental globbing in evaled expressions
5411 no_glob_subst='s/\*/\\\*/g'
5412
5413 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5414 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5415 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5416
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5418 $as_echo_n "checking how to print strings... " >&6; }
5419 # Test print first, because it will be a builtin if present.
5420 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5421    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5422   ECHO='print -r --'
5423 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5424   ECHO='printf %s\n'
5425 else
5426   # Use this function as a fallback that always works.
5427   func_fallback_echo ()
5428   {
5429     eval 'cat <<_LTECHO_EOF
5430 $1
5431 _LTECHO_EOF'
5432   }
5433   ECHO='func_fallback_echo'
5434 fi
5435
5436 # func_echo_all arg...
5437 # Invoke $ECHO with all args, space-separated.
5438 func_echo_all ()
5439 {
5440     $ECHO ""
5441 }
5442
5443 case "$ECHO" in
5444   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5445 $as_echo "printf" >&6; } ;;
5446   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5447 $as_echo "print -r" >&6; } ;;
5448   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5449 $as_echo "cat" >&6; } ;;
5450 esac
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5466 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5467 if test "${ac_cv_path_SED+set}" = set; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5471      for ac_i in 1 2 3 4 5 6 7; do
5472        ac_script="$ac_script$as_nl$ac_script"
5473      done
5474      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5475      { ac_script=; unset ac_script;}
5476      if test -z "$SED"; then
5477   ac_path_SED_found=false
5478   # Loop through the user's path and test for each of PROGNAME-LIST
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484     for ac_prog in sed gsed; do
5485     for ac_exec_ext in '' $ac_executable_extensions; do
5486       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5487       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5488 # Check for GNU ac_path_SED and select it if it is found.
5489   # Check for GNU $ac_path_SED
5490 case `"$ac_path_SED" --version 2>&1` in
5491 *GNU*)
5492   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5493 *)
5494   ac_count=0
5495   $as_echo_n 0123456789 >"conftest.in"
5496   while :
5497   do
5498     cat "conftest.in" "conftest.in" >"conftest.tmp"
5499     mv "conftest.tmp" "conftest.in"
5500     cp "conftest.in" "conftest.nl"
5501     $as_echo '' >> "conftest.nl"
5502     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5503     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5504     as_fn_arith $ac_count + 1 && ac_count=$as_val
5505     if test $ac_count -gt ${ac_path_SED_max-0}; then
5506       # Best one so far, save it but keep looking for a better one
5507       ac_cv_path_SED="$ac_path_SED"
5508       ac_path_SED_max=$ac_count
5509     fi
5510     # 10*(2^10) chars as input seems more than enough
5511     test $ac_count -gt 10 && break
5512   done
5513   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5514 esac
5515
5516       $ac_path_SED_found && break 3
5517     done
5518   done
5519   done
5520 IFS=$as_save_IFS
5521   if test -z "$ac_cv_path_SED"; then
5522     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5523   fi
5524 else
5525   ac_cv_path_SED=$SED
5526 fi
5527
5528 fi
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5530 $as_echo "$ac_cv_path_SED" >&6; }
5531  SED="$ac_cv_path_SED"
5532   rm -f conftest.sed
5533
5534 test -z "$SED" && SED=sed
5535 Xsed="$SED -e 1s/^X//"
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5548 $as_echo_n "checking for fgrep... " >&6; }
5549 if test "${ac_cv_path_FGREP+set}" = set; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5553    then ac_cv_path_FGREP="$GREP -F"
5554    else
5555      if test -z "$FGREP"; then
5556   ac_path_FGREP_found=false
5557   # Loop through the user's path and test for each of PROGNAME-LIST
5558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563     for ac_prog in fgrep; do
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5566       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5567 # Check for GNU ac_path_FGREP and select it if it is found.
5568   # Check for GNU $ac_path_FGREP
5569 case `"$ac_path_FGREP" --version 2>&1` in
5570 *GNU*)
5571   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5572 *)
5573   ac_count=0
5574   $as_echo_n 0123456789 >"conftest.in"
5575   while :
5576   do
5577     cat "conftest.in" "conftest.in" >"conftest.tmp"
5578     mv "conftest.tmp" "conftest.in"
5579     cp "conftest.in" "conftest.nl"
5580     $as_echo 'FGREP' >> "conftest.nl"
5581     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5582     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5583     as_fn_arith $ac_count + 1 && ac_count=$as_val
5584     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5585       # Best one so far, save it but keep looking for a better one
5586       ac_cv_path_FGREP="$ac_path_FGREP"
5587       ac_path_FGREP_max=$ac_count
5588     fi
5589     # 10*(2^10) chars as input seems more than enough
5590     test $ac_count -gt 10 && break
5591   done
5592   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5593 esac
5594
5595       $ac_path_FGREP_found && break 3
5596     done
5597   done
5598   done
5599 IFS=$as_save_IFS
5600   if test -z "$ac_cv_path_FGREP"; then
5601     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5602   fi
5603 else
5604   ac_cv_path_FGREP=$FGREP
5605 fi
5606
5607    fi
5608 fi
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5610 $as_echo "$ac_cv_path_FGREP" >&6; }
5611  FGREP="$ac_cv_path_FGREP"
5612
5613
5614 test -z "$GREP" && GREP=grep
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 # Check whether --with-gnu-ld was given.
5635 if test "${with_gnu_ld+set}" = set; then :
5636   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5637 else
5638   with_gnu_ld=no
5639 fi
5640
5641 ac_prog=ld
5642 if test "$GCC" = yes; then
5643   # Check if gcc -print-prog-name=ld gives a path.
5644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5645 $as_echo_n "checking for ld used by $CC... " >&6; }
5646   case $host in
5647   *-*-mingw*)
5648     # gcc leaves a trailing carriage return which upsets mingw
5649     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5650   *)
5651     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5652   esac
5653   case $ac_prog in
5654     # Accept absolute paths.
5655     [\\/]* | ?:[\\/]*)
5656       re_direlt='/[^/][^/]*/\.\./'
5657       # Canonicalize the pathname of ld
5658       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5659       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5660         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5661       done
5662       test -z "$LD" && LD="$ac_prog"
5663       ;;
5664   "")
5665     # If it fails, then pretend we aren't using GCC.
5666     ac_prog=ld
5667     ;;
5668   *)
5669     # If it is relative, then search for the first ld in PATH.
5670     with_gnu_ld=unknown
5671     ;;
5672   esac
5673 elif test "$with_gnu_ld" = yes; then
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5675 $as_echo_n "checking for GNU ld... " >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5678 $as_echo_n "checking for non-GNU ld... " >&6; }
5679 fi
5680 if test "${lt_cv_path_LD+set}" = set; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -z "$LD"; then
5684   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5685   for ac_dir in $PATH; do
5686     IFS="$lt_save_ifs"
5687     test -z "$ac_dir" && ac_dir=.
5688     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5689       lt_cv_path_LD="$ac_dir/$ac_prog"
5690       # Check to see if the program is GNU ld.  I'd rather use --version,
5691       # but apparently some variants of GNU ld only accept -v.
5692       # Break only if it was the GNU/non-GNU ld that we prefer.
5693       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5694       *GNU* | *'with BFD'*)
5695         test "$with_gnu_ld" != no && break
5696         ;;
5697       *)
5698         test "$with_gnu_ld" != yes && break
5699         ;;
5700       esac
5701     fi
5702   done
5703   IFS="$lt_save_ifs"
5704 else
5705   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5706 fi
5707 fi
5708
5709 LD="$lt_cv_path_LD"
5710 if test -n "$LD"; then
5711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5712 $as_echo "$LD" >&6; }
5713 else
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5719 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5720 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5724 case `$LD -v 2>&1 </dev/null` in
5725 *GNU* | *'with BFD'*)
5726   lt_cv_prog_gnu_ld=yes
5727   ;;
5728 *)
5729   lt_cv_prog_gnu_ld=no
5730   ;;
5731 esac
5732 fi
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5734 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5735 with_gnu_ld=$lt_cv_prog_gnu_ld
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5746 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5747 if test "${lt_cv_path_NM+set}" = set; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$NM"; then
5751   # Let the user override the test.
5752   lt_cv_path_NM="$NM"
5753 else
5754   lt_nm_to_check="${ac_tool_prefix}nm"
5755   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5756     lt_nm_to_check="$lt_nm_to_check nm"
5757   fi
5758   for lt_tmp_nm in $lt_nm_to_check; do
5759     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5760     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5761       IFS="$lt_save_ifs"
5762       test -z "$ac_dir" && ac_dir=.
5763       tmp_nm="$ac_dir/$lt_tmp_nm"
5764       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5765         # Check to see if the nm accepts a BSD-compat flag.
5766         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5767         #   nm: unknown option "B" ignored
5768         # Tru64's nm complains that /dev/null is an invalid object file
5769         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5770         */dev/null* | *'Invalid file or object type'*)
5771           lt_cv_path_NM="$tmp_nm -B"
5772           break
5773           ;;
5774         *)
5775           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5776           */dev/null*)
5777             lt_cv_path_NM="$tmp_nm -p"
5778             break
5779             ;;
5780           *)
5781             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5782             continue # so that we can try to find one that supports BSD flags
5783             ;;
5784           esac
5785           ;;
5786         esac
5787       fi
5788     done
5789     IFS="$lt_save_ifs"
5790   done
5791   : ${lt_cv_path_NM=no}
5792 fi
5793 fi
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5795 $as_echo "$lt_cv_path_NM" >&6; }
5796 if test "$lt_cv_path_NM" != "no"; then
5797   NM="$lt_cv_path_NM"
5798 else
5799   # Didn't find any BSD compatible name lister, look for dumpbin.
5800   if test -n "$DUMPBIN"; then :
5801     # Let the user override the test.
5802   else
5803     if test -n "$ac_tool_prefix"; then
5804   for ac_prog in dumpbin "link -dump"
5805   do
5806     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   if test -n "$DUMPBIN"; then
5814   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821     for ac_exec_ext in '' $ac_executable_extensions; do
5822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5824     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828   done
5829 IFS=$as_save_IFS
5830
5831 fi
5832 fi
5833 DUMPBIN=$ac_cv_prog_DUMPBIN
5834 if test -n "$DUMPBIN"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5836 $as_echo "$DUMPBIN" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842
5843     test -n "$DUMPBIN" && break
5844   done
5845 fi
5846 if test -z "$DUMPBIN"; then
5847   ac_ct_DUMPBIN=$DUMPBIN
5848   for ac_prog in dumpbin "link -dump"
5849 do
5850   # Extract the first word of "$ac_prog", so it can be a program name with args.
5851 set dummy $ac_prog; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5855   $as_echo_n "(cached) " >&6
5856 else
5857   if test -n "$ac_ct_DUMPBIN"; then
5858   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863   IFS=$as_save_IFS
5864   test -z "$as_dir" && as_dir=.
5865     for ac_exec_ext in '' $ac_executable_extensions; do
5866   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869     break 2
5870   fi
5871 done
5872   done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5878 if test -n "$ac_ct_DUMPBIN"; then
5879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5880 $as_echo "$ac_ct_DUMPBIN" >&6; }
5881 else
5882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886
5887   test -n "$ac_ct_DUMPBIN" && break
5888 done
5889
5890   if test "x$ac_ct_DUMPBIN" = x; then
5891     DUMPBIN=":"
5892   else
5893     case $cross_compiling:$ac_tool_warned in
5894 yes:)
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897 ac_tool_warned=yes ;;
5898 esac
5899     DUMPBIN=$ac_ct_DUMPBIN
5900   fi
5901 fi
5902
5903     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5904     *COFF*)
5905       DUMPBIN="$DUMPBIN -symbols"
5906       ;;
5907     *)
5908       DUMPBIN=:
5909       ;;
5910     esac
5911   fi
5912
5913   if test "$DUMPBIN" != ":"; then
5914     NM="$DUMPBIN"
5915   fi
5916 fi
5917 test -z "$NM" && NM=nm
5918
5919
5920
5921
5922
5923
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5925 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5926 if test "${lt_cv_nm_interface+set}" = set; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   lt_cv_nm_interface="BSD nm"
5930   echo "int some_variable = 0;" > conftest.$ac_ext
5931   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5932   (eval "$ac_compile" 2>conftest.err)
5933   cat conftest.err >&5
5934   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5935   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5936   cat conftest.err >&5
5937   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5938   cat conftest.out >&5
5939   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5940     lt_cv_nm_interface="MS dumpbin"
5941   fi
5942   rm -f conftest*
5943 fi
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5945 $as_echo "$lt_cv_nm_interface" >&6; }
5946
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5948 $as_echo_n "checking whether ln -s works... " >&6; }
5949 LN_S=$as_ln_s
5950 if test "$LN_S" = "ln -s"; then
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5952 $as_echo "yes" >&6; }
5953 else
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5955 $as_echo "no, using $LN_S" >&6; }
5956 fi
5957
5958 # find the maximum length of command line arguments
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5960 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5961 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5962   $as_echo_n "(cached) " >&6
5963 else
5964     i=0
5965   teststring="ABCD"
5966
5967   case $build_os in
5968   msdosdjgpp*)
5969     # On DJGPP, this test can blow up pretty badly due to problems in libc
5970     # (any single argument exceeding 2000 bytes causes a buffer overrun
5971     # during glob expansion).  Even if it were fixed, the result of this
5972     # check would be larger than it should be.
5973     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5974     ;;
5975
5976   gnu*)
5977     # Under GNU Hurd, this test is not required because there is
5978     # no limit to the length of command line arguments.
5979     # Libtool will interpret -1 as no limit whatsoever
5980     lt_cv_sys_max_cmd_len=-1;
5981     ;;
5982
5983   cygwin* | mingw* | cegcc*)
5984     # On Win9x/ME, this test blows up -- it succeeds, but takes
5985     # about 5 minutes as the teststring grows exponentially.
5986     # Worse, since 9x/ME are not pre-emptively multitasking,
5987     # you end up with a "frozen" computer, even though with patience
5988     # the test eventually succeeds (with a max line length of 256k).
5989     # Instead, let's just punt: use the minimum linelength reported by
5990     # all of the supported platforms: 8192 (on NT/2K/XP).
5991     lt_cv_sys_max_cmd_len=8192;
5992     ;;
5993
5994   mint*)
5995     # On MiNT this can take a long time and run out of memory.
5996     lt_cv_sys_max_cmd_len=8192;
5997     ;;
5998
5999   amigaos*)
6000     # On AmigaOS with pdksh, this test takes hours, literally.
6001     # So we just punt and use a minimum line length of 8192.
6002     lt_cv_sys_max_cmd_len=8192;
6003     ;;
6004
6005   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6006     # This has been around since 386BSD, at least.  Likely further.
6007     if test -x /sbin/sysctl; then
6008       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6009     elif test -x /usr/sbin/sysctl; then
6010       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6011     else
6012       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6013     fi
6014     # And add a safety zone
6015     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6016     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6017     ;;
6018
6019   interix*)
6020     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6021     lt_cv_sys_max_cmd_len=196608
6022     ;;
6023
6024   osf*)
6025     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6026     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6027     # nice to cause kernel panics so lets avoid the loop below.
6028     # First set a reasonable default.
6029     lt_cv_sys_max_cmd_len=16384
6030     #
6031     if test -x /sbin/sysconfig; then
6032       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6033         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6034       esac
6035     fi
6036     ;;
6037   sco3.2v5*)
6038     lt_cv_sys_max_cmd_len=102400
6039     ;;
6040   sysv5* | sco5v6* | sysv4.2uw2*)
6041     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6042     if test -n "$kargmax"; then
6043       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6044     else
6045       lt_cv_sys_max_cmd_len=32768
6046     fi
6047     ;;
6048   *)
6049     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6050     if test -n "$lt_cv_sys_max_cmd_len"; then
6051       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6052       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6053     else
6054       # Make teststring a little bigger before we do anything with it.
6055       # a 1K string should be a reasonable start.
6056       for i in 1 2 3 4 5 6 7 8 ; do
6057         teststring=$teststring$teststring
6058       done
6059       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6060       # If test is not a shell built-in, we'll probably end up computing a
6061       # maximum length that is only half of the actual maximum length, but
6062       # we can't tell.
6063       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6064                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6065               test $i != 17 # 1/2 MB should be enough
6066       do
6067         i=`expr $i + 1`
6068         teststring=$teststring$teststring
6069       done
6070       # Only check the string length outside the loop.
6071       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6072       teststring=
6073       # Add a significant safety factor because C++ compilers can tack on
6074       # massive amounts of additional arguments before passing them to the
6075       # linker.  It appears as though 1/2 is a usable value.
6076       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6077     fi
6078     ;;
6079   esac
6080
6081 fi
6082
6083 if test -n $lt_cv_sys_max_cmd_len ; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6085 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6088 $as_echo "none" >&6; }
6089 fi
6090 max_cmd_len=$lt_cv_sys_max_cmd_len
6091
6092
6093
6094
6095
6096
6097 : ${CP="cp -f"}
6098 : ${MV="mv -f"}
6099 : ${RM="rm -f"}
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6102 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6103 # Try some XSI features
6104 xsi_shell=no
6105 ( _lt_dummy="a/b/c"
6106   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6107       = c,a/b,, \
6108     && eval 'test $(( 1 + 1 )) -eq 2 \
6109     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6110   && xsi_shell=yes
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6112 $as_echo "$xsi_shell" >&6; }
6113
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6116 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6117 lt_shell_append=no
6118 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6119     >/dev/null 2>&1 \
6120   && lt_shell_append=yes
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6122 $as_echo "$lt_shell_append" >&6; }
6123
6124
6125 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6126   lt_unset=unset
6127 else
6128   lt_unset=false
6129 fi
6130
6131
6132
6133
6134
6135 # test EBCDIC or ASCII
6136 case `echo X|tr X '\101'` in
6137  A) # ASCII based system
6138     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6139   lt_SP2NL='tr \040 \012'
6140   lt_NL2SP='tr \015\012 \040\040'
6141   ;;
6142  *) # EBCDIC based system
6143   lt_SP2NL='tr \100 \n'
6144   lt_NL2SP='tr \r\n \100\100'
6145   ;;
6146 esac
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6157 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6158 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6159   $as_echo_n "(cached) " >&6
6160 else
6161   lt_cv_ld_reload_flag='-r'
6162 fi
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6164 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6165 reload_flag=$lt_cv_ld_reload_flag
6166 case $reload_flag in
6167 "" | " "*) ;;
6168 *) reload_flag=" $reload_flag" ;;
6169 esac
6170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6171 case $host_os in
6172   darwin*)
6173     if test "$GCC" = yes; then
6174       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6175     else
6176       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6177     fi
6178     ;;
6179 esac
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 if test -n "$ac_tool_prefix"; then
6190   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6191 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 $as_echo_n "checking for $ac_word... " >&6; }
6194 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6195   $as_echo_n "(cached) " >&6
6196 else
6197   if test -n "$OBJDUMP"; then
6198   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6199 else
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201 for as_dir in $PATH
6202 do
6203   IFS=$as_save_IFS
6204   test -z "$as_dir" && as_dir=.
6205     for ac_exec_ext in '' $ac_executable_extensions; do
6206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6207     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6209     break 2
6210   fi
6211 done
6212   done
6213 IFS=$as_save_IFS
6214
6215 fi
6216 fi
6217 OBJDUMP=$ac_cv_prog_OBJDUMP
6218 if test -n "$OBJDUMP"; then
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6220 $as_echo "$OBJDUMP" >&6; }
6221 else
6222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 fi
6225
6226
6227 fi
6228 if test -z "$ac_cv_prog_OBJDUMP"; then
6229   ac_ct_OBJDUMP=$OBJDUMP
6230   # Extract the first word of "objdump", so it can be a program name with args.
6231 set dummy objdump; ac_word=$2
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6233 $as_echo_n "checking for $ac_word... " >&6; }
6234 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6235   $as_echo_n "(cached) " >&6
6236 else
6237   if test -n "$ac_ct_OBJDUMP"; then
6238   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6239 else
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241 for as_dir in $PATH
6242 do
6243   IFS=$as_save_IFS
6244   test -z "$as_dir" && as_dir=.
6245     for ac_exec_ext in '' $ac_executable_extensions; do
6246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6247     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6248     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249     break 2
6250   fi
6251 done
6252   done
6253 IFS=$as_save_IFS
6254
6255 fi
6256 fi
6257 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6258 if test -n "$ac_ct_OBJDUMP"; then
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6260 $as_echo "$ac_ct_OBJDUMP" >&6; }
6261 else
6262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6263 $as_echo "no" >&6; }
6264 fi
6265
6266   if test "x$ac_ct_OBJDUMP" = x; then
6267     OBJDUMP="false"
6268   else
6269     case $cross_compiling:$ac_tool_warned in
6270 yes:)
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6273 ac_tool_warned=yes ;;
6274 esac
6275     OBJDUMP=$ac_ct_OBJDUMP
6276   fi
6277 else
6278   OBJDUMP="$ac_cv_prog_OBJDUMP"
6279 fi
6280
6281 test -z "$OBJDUMP" && OBJDUMP=objdump
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6293 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   lt_cv_file_magic_cmd='$MAGIC_CMD'
6297 lt_cv_file_magic_test_file=
6298 lt_cv_deplibs_check_method='unknown'
6299 # Need to set the preceding variable on all platforms that support
6300 # interlibrary dependencies.
6301 # 'none' -- dependencies not supported.
6302 # `unknown' -- same as none, but documents that we really don't know.
6303 # 'pass_all' -- all dependencies passed with no checks.
6304 # 'test_compile' -- check by making test program.
6305 # 'file_magic [[regex]]' -- check by looking for files in library path
6306 # which responds to the $file_magic_cmd with a given extended regex.
6307 # If you have `file' or equivalent on your system and you're not sure
6308 # whether `pass_all' will *always* work, you probably want this one.
6309
6310 case $host_os in
6311 aix[4-9]*)
6312   lt_cv_deplibs_check_method=pass_all
6313   ;;
6314
6315 beos*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 bsdi[45]*)
6320   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6321   lt_cv_file_magic_cmd='/usr/bin/file -L'
6322   lt_cv_file_magic_test_file=/shlib/libc.so
6323   ;;
6324
6325 cygwin*)
6326   # func_win32_libid is a shell function defined in ltmain.sh
6327   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6328   lt_cv_file_magic_cmd='func_win32_libid'
6329   ;;
6330
6331 mingw* | pw32*)
6332   # Base MSYS/MinGW do not provide the 'file' command needed by
6333   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6334   # unless we find 'file', for example because we are cross-compiling.
6335   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6336   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6337     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6338     lt_cv_file_magic_cmd='func_win32_libid'
6339   else
6340     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6341     lt_cv_file_magic_cmd='$OBJDUMP -f'
6342   fi
6343   ;;
6344
6345 cegcc*)
6346   # use the weaker test based on 'objdump'. See mingw*.
6347   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6348   lt_cv_file_magic_cmd='$OBJDUMP -f'
6349   ;;
6350
6351 darwin* | rhapsody*)
6352   lt_cv_deplibs_check_method=pass_all
6353   ;;
6354
6355 freebsd* | dragonfly*)
6356   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6357     case $host_cpu in
6358     i*86 )
6359       # Not sure whether the presence of OpenBSD here was a mistake.
6360       # Let's accept both of them until this is cleared up.
6361       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6362       lt_cv_file_magic_cmd=/usr/bin/file
6363       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6364       ;;
6365     esac
6366   else
6367     lt_cv_deplibs_check_method=pass_all
6368   fi
6369   ;;
6370
6371 gnu*)
6372   lt_cv_deplibs_check_method=pass_all
6373   ;;
6374
6375 haiku*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 hpux10.20* | hpux11*)
6380   lt_cv_file_magic_cmd=/usr/bin/file
6381   case $host_cpu in
6382   ia64*)
6383     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6384     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6385     ;;
6386   hppa*64*)
6387     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]'
6388     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6389     ;;
6390   *)
6391     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6392     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6393     ;;
6394   esac
6395   ;;
6396
6397 interix[3-9]*)
6398   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6399   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6400   ;;
6401
6402 irix5* | irix6* | nonstopux*)
6403   case $LD in
6404   *-32|*"-32 ") libmagic=32-bit;;
6405   *-n32|*"-n32 ") libmagic=N32;;
6406   *-64|*"-64 ") libmagic=64-bit;;
6407   *) libmagic=never-match;;
6408   esac
6409   lt_cv_deplibs_check_method=pass_all
6410   ;;
6411
6412 # This must be Linux ELF.
6413 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 netbsd*)
6418   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6419     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6420   else
6421     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6422   fi
6423   ;;
6424
6425 newos6*)
6426   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6427   lt_cv_file_magic_cmd=/usr/bin/file
6428   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6429   ;;
6430
6431 *nto* | *qnx*)
6432   lt_cv_deplibs_check_method=pass_all
6433   ;;
6434
6435 openbsd*)
6436   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6437     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6438   else
6439     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6440   fi
6441   ;;
6442
6443 osf3* | osf4* | osf5*)
6444   lt_cv_deplibs_check_method=pass_all
6445   ;;
6446
6447 rdos*)
6448   lt_cv_deplibs_check_method=pass_all
6449   ;;
6450
6451 solaris*)
6452   lt_cv_deplibs_check_method=pass_all
6453   ;;
6454
6455 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6456   lt_cv_deplibs_check_method=pass_all
6457   ;;
6458
6459 sysv4 | sysv4.3*)
6460   case $host_vendor in
6461   motorola)
6462     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]'
6463     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6464     ;;
6465   ncr)
6466     lt_cv_deplibs_check_method=pass_all
6467     ;;
6468   sequent)
6469     lt_cv_file_magic_cmd='/bin/file'
6470     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6471     ;;
6472   sni)
6473     lt_cv_file_magic_cmd='/bin/file'
6474     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6475     lt_cv_file_magic_test_file=/lib/libc.so
6476     ;;
6477   siemens)
6478     lt_cv_deplibs_check_method=pass_all
6479     ;;
6480   pc)
6481     lt_cv_deplibs_check_method=pass_all
6482     ;;
6483   esac
6484   ;;
6485
6486 tpf*)
6487   lt_cv_deplibs_check_method=pass_all
6488   ;;
6489 esac
6490
6491 fi
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6493 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6494 file_magic_cmd=$lt_cv_file_magic_cmd
6495 deplibs_check_method=$lt_cv_deplibs_check_method
6496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509 if test -n "$ac_tool_prefix"; then
6510   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6511 set dummy ${ac_tool_prefix}ar; ac_word=$2
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6513 $as_echo_n "checking for $ac_word... " >&6; }
6514 if test "${ac_cv_prog_AR+set}" = set; then :
6515   $as_echo_n "(cached) " >&6
6516 else
6517   if test -n "$AR"; then
6518   ac_cv_prog_AR="$AR" # Let the user override the test.
6519 else
6520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6521 for as_dir in $PATH
6522 do
6523   IFS=$as_save_IFS
6524   test -z "$as_dir" && as_dir=.
6525     for ac_exec_ext in '' $ac_executable_extensions; do
6526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6527     ac_cv_prog_AR="${ac_tool_prefix}ar"
6528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6529     break 2
6530   fi
6531 done
6532   done
6533 IFS=$as_save_IFS
6534
6535 fi
6536 fi
6537 AR=$ac_cv_prog_AR
6538 if test -n "$AR"; then
6539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6540 $as_echo "$AR" >&6; }
6541 else
6542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6543 $as_echo "no" >&6; }
6544 fi
6545
6546
6547 fi
6548 if test -z "$ac_cv_prog_AR"; then
6549   ac_ct_AR=$AR
6550   # Extract the first word of "ar", so it can be a program name with args.
6551 set dummy ar; ac_word=$2
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6553 $as_echo_n "checking for $ac_word... " >&6; }
6554 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6555   $as_echo_n "(cached) " >&6
6556 else
6557   if test -n "$ac_ct_AR"; then
6558   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563   IFS=$as_save_IFS
6564   test -z "$as_dir" && as_dir=.
6565     for ac_exec_ext in '' $ac_executable_extensions; do
6566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6567     ac_cv_prog_ac_ct_AR="ar"
6568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6569     break 2
6570   fi
6571 done
6572   done
6573 IFS=$as_save_IFS
6574
6575 fi
6576 fi
6577 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6578 if test -n "$ac_ct_AR"; then
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6580 $as_echo "$ac_ct_AR" >&6; }
6581 else
6582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6583 $as_echo "no" >&6; }
6584 fi
6585
6586   if test "x$ac_ct_AR" = x; then
6587     AR="false"
6588   else
6589     case $cross_compiling:$ac_tool_warned in
6590 yes:)
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6592 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6593 ac_tool_warned=yes ;;
6594 esac
6595     AR=$ac_ct_AR
6596   fi
6597 else
6598   AR="$ac_cv_prog_AR"
6599 fi
6600
6601 test -z "$AR" && AR=ar
6602 test -z "$AR_FLAGS" && AR_FLAGS=cru
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614 if test -n "$ac_tool_prefix"; then
6615   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6616 set dummy ${ac_tool_prefix}strip; ac_word=$2
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6618 $as_echo_n "checking for $ac_word... " >&6; }
6619 if test "${ac_cv_prog_STRIP+set}" = set; then :
6620   $as_echo_n "(cached) " >&6
6621 else
6622   if test -n "$STRIP"; then
6623   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6624 else
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 for as_dir in $PATH
6627 do
6628   IFS=$as_save_IFS
6629   test -z "$as_dir" && as_dir=.
6630     for ac_exec_ext in '' $ac_executable_extensions; do
6631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6632     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6634     break 2
6635   fi
6636 done
6637   done
6638 IFS=$as_save_IFS
6639
6640 fi
6641 fi
6642 STRIP=$ac_cv_prog_STRIP
6643 if test -n "$STRIP"; then
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6645 $as_echo "$STRIP" >&6; }
6646 else
6647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6648 $as_echo "no" >&6; }
6649 fi
6650
6651
6652 fi
6653 if test -z "$ac_cv_prog_STRIP"; then
6654   ac_ct_STRIP=$STRIP
6655   # Extract the first word of "strip", so it can be a program name with args.
6656 set dummy strip; ac_word=$2
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6658 $as_echo_n "checking for $ac_word... " >&6; }
6659 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6660   $as_echo_n "(cached) " >&6
6661 else
6662   if test -n "$ac_ct_STRIP"; then
6663   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6664 else
6665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6666 for as_dir in $PATH
6667 do
6668   IFS=$as_save_IFS
6669   test -z "$as_dir" && as_dir=.
6670     for ac_exec_ext in '' $ac_executable_extensions; do
6671   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6672     ac_cv_prog_ac_ct_STRIP="strip"
6673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6674     break 2
6675   fi
6676 done
6677   done
6678 IFS=$as_save_IFS
6679
6680 fi
6681 fi
6682 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6683 if test -n "$ac_ct_STRIP"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6685 $as_echo "$ac_ct_STRIP" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6688 $as_echo "no" >&6; }
6689 fi
6690
6691   if test "x$ac_ct_STRIP" = x; then
6692     STRIP=":"
6693   else
6694     case $cross_compiling:$ac_tool_warned in
6695 yes:)
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6698 ac_tool_warned=yes ;;
6699 esac
6700     STRIP=$ac_ct_STRIP
6701   fi
6702 else
6703   STRIP="$ac_cv_prog_STRIP"
6704 fi
6705
6706 test -z "$STRIP" && STRIP=:
6707
6708
6709
6710
6711
6712
6713 if test -n "$ac_tool_prefix"; then
6714   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6715 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6719   $as_echo_n "(cached) " >&6
6720 else
6721   if test -n "$RANLIB"; then
6722   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6726 do
6727   IFS=$as_save_IFS
6728   test -z "$as_dir" && as_dir=.
6729     for ac_exec_ext in '' $ac_executable_extensions; do
6730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6732     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733     break 2
6734   fi
6735 done
6736   done
6737 IFS=$as_save_IFS
6738
6739 fi
6740 fi
6741 RANLIB=$ac_cv_prog_RANLIB
6742 if test -n "$RANLIB"; then
6743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6744 $as_echo "$RANLIB" >&6; }
6745 else
6746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6748 fi
6749
6750
6751 fi
6752 if test -z "$ac_cv_prog_RANLIB"; then
6753   ac_ct_RANLIB=$RANLIB
6754   # Extract the first word of "ranlib", so it can be a program name with args.
6755 set dummy ranlib; ac_word=$2
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6757 $as_echo_n "checking for $ac_word... " >&6; }
6758 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6759   $as_echo_n "(cached) " >&6
6760 else
6761   if test -n "$ac_ct_RANLIB"; then
6762   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6763 else
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6771     ac_cv_prog_ac_ct_RANLIB="ranlib"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778
6779 fi
6780 fi
6781 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6782 if test -n "$ac_ct_RANLIB"; then
6783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6784 $as_echo "$ac_ct_RANLIB" >&6; }
6785 else
6786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6787 $as_echo "no" >&6; }
6788 fi
6789
6790   if test "x$ac_ct_RANLIB" = x; then
6791     RANLIB=":"
6792   else
6793     case $cross_compiling:$ac_tool_warned in
6794 yes:)
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6797 ac_tool_warned=yes ;;
6798 esac
6799     RANLIB=$ac_ct_RANLIB
6800   fi
6801 else
6802   RANLIB="$ac_cv_prog_RANLIB"
6803 fi
6804
6805 test -z "$RANLIB" && RANLIB=:
6806
6807
6808
6809
6810
6811
6812 # Determine commands to create old-style static archives.
6813 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6814 old_postinstall_cmds='chmod 644 $oldlib'
6815 old_postuninstall_cmds=
6816
6817 if test -n "$RANLIB"; then
6818   case $host_os in
6819   openbsd*)
6820     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6821     ;;
6822   *)
6823     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6824     ;;
6825   esac
6826   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6827 fi
6828
6829 case $host_os in
6830   darwin*)
6831     lock_old_archive_extraction=yes ;;
6832   *)
6833     lock_old_archive_extraction=no ;;
6834 esac
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874 # If no C compiler was specified, use CC.
6875 LTCC=${LTCC-"$CC"}
6876
6877 # If no C compiler flags were specified, use CFLAGS.
6878 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6879
6880 # Allow CC to be a program name with arguments.
6881 compiler=$CC
6882
6883
6884 # Check for command to grab the raw symbol name followed by C symbol from nm.
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6886 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6887 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890
6891 # These are sane defaults that work on at least a few old systems.
6892 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6893
6894 # Character class describing NM global symbol codes.
6895 symcode='[BCDEGRST]'
6896
6897 # Regexp to match symbols that can be accessed directly from C.
6898 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6899
6900 # Define system-specific variables.
6901 case $host_os in
6902 aix*)
6903   symcode='[BCDT]'
6904   ;;
6905 cygwin* | mingw* | pw32* | cegcc*)
6906   symcode='[ABCDGISTW]'
6907   ;;
6908 hpux*)
6909   if test "$host_cpu" = ia64; then
6910     symcode='[ABCDEGRST]'
6911   fi
6912   ;;
6913 irix* | nonstopux*)
6914   symcode='[BCDEGRST]'
6915   ;;
6916 osf*)
6917   symcode='[BCDEGQRST]'
6918   ;;
6919 solaris*)
6920   symcode='[BDRT]'
6921   ;;
6922 sco3.2v5*)
6923   symcode='[DT]'
6924   ;;
6925 sysv4.2uw2*)
6926   symcode='[DT]'
6927   ;;
6928 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6929   symcode='[ABDT]'
6930   ;;
6931 sysv4)
6932   symcode='[DFNSTU]'
6933   ;;
6934 esac
6935
6936 # If we're using GNU nm, then use its standard symbol codes.
6937 case `$NM -V 2>&1` in
6938 *GNU* | *'with BFD'*)
6939   symcode='[ABCDGIRSTW]' ;;
6940 esac
6941
6942 # Transform an extracted symbol line into a proper C declaration.
6943 # Some systems (esp. on ia64) link data and code symbols differently,
6944 # so use this general approach.
6945 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6946
6947 # Transform an extracted symbol line into symbol name and symbol address
6948 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6949 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'"
6950
6951 # Handle CRLF in mingw tool chain
6952 opt_cr=
6953 case $build_os in
6954 mingw*)
6955   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6956   ;;
6957 esac
6958
6959 # Try without a prefix underscore, then with it.
6960 for ac_symprfx in "" "_"; do
6961
6962   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6963   symxfrm="\\1 $ac_symprfx\\2 \\2"
6964
6965   # Write the raw and C identifiers.
6966   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6967     # Fake it for dumpbin and say T for any non-static function
6968     # and D for any global variable.
6969     # Also find C++ and __fastcall symbols from MSVC++,
6970     # which start with @ or ?.
6971     lt_cv_sys_global_symbol_pipe="$AWK '"\
6972 "     {last_section=section; section=\$ 3};"\
6973 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6974 "     \$ 0!~/External *\|/{next};"\
6975 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6976 "     {if(hide[section]) next};"\
6977 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6978 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6979 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6980 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6981 "     ' prfx=^$ac_symprfx"
6982   else
6983     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6984   fi
6985
6986   # Check to see that the pipe works correctly.
6987   pipe_works=no
6988
6989   rm -f conftest*
6990   cat > conftest.$ac_ext <<_LT_EOF
6991 #ifdef __cplusplus
6992 extern "C" {
6993 #endif
6994 char nm_test_var;
6995 void nm_test_func(void);
6996 void nm_test_func(void){}
6997 #ifdef __cplusplus
6998 }
6999 #endif
7000 int main(){nm_test_var='a';nm_test_func();return(0);}
7001 _LT_EOF
7002
7003   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7004   (eval $ac_compile) 2>&5
7005   ac_status=$?
7006   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007   test $ac_status = 0; }; then
7008     # Now try to grab the symbols.
7009     nlist=conftest.nm
7010     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7011   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7012   ac_status=$?
7013   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7014   test $ac_status = 0; } && test -s "$nlist"; then
7015       # Try sorting and uniquifying the output.
7016       if sort "$nlist" | uniq > "$nlist"T; then
7017         mv -f "$nlist"T "$nlist"
7018       else
7019         rm -f "$nlist"T
7020       fi
7021
7022       # Make sure that we snagged all the symbols we need.
7023       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7024         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7025           cat <<_LT_EOF > conftest.$ac_ext
7026 #ifdef __cplusplus
7027 extern "C" {
7028 #endif
7029
7030 _LT_EOF
7031           # Now generate the symbol file.
7032           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7033
7034           cat <<_LT_EOF >> conftest.$ac_ext
7035
7036 /* The mapping between symbol names and symbols.  */
7037 const struct {
7038   const char *name;
7039   void       *address;
7040 }
7041 lt__PROGRAM__LTX_preloaded_symbols[] =
7042 {
7043   { "@PROGRAM@", (void *) 0 },
7044 _LT_EOF
7045           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7046           cat <<\_LT_EOF >> conftest.$ac_ext
7047   {0, (void *) 0}
7048 };
7049
7050 /* This works around a problem in FreeBSD linker */
7051 #ifdef FREEBSD_WORKAROUND
7052 static const void *lt_preloaded_setup() {
7053   return lt__PROGRAM__LTX_preloaded_symbols;
7054 }
7055 #endif
7056
7057 #ifdef __cplusplus
7058 }
7059 #endif
7060 _LT_EOF
7061           # Now try linking the two files.
7062           mv conftest.$ac_objext conftstm.$ac_objext
7063           lt_save_LIBS="$LIBS"
7064           lt_save_CFLAGS="$CFLAGS"
7065           LIBS="conftstm.$ac_objext"
7066           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7067           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7068   (eval $ac_link) 2>&5
7069   ac_status=$?
7070   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7071   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7072             pipe_works=yes
7073           fi
7074           LIBS="$lt_save_LIBS"
7075           CFLAGS="$lt_save_CFLAGS"
7076         else
7077           echo "cannot find nm_test_func in $nlist" >&5
7078         fi
7079       else
7080         echo "cannot find nm_test_var in $nlist" >&5
7081       fi
7082     else
7083       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7084     fi
7085   else
7086     echo "$progname: failed program was:" >&5
7087     cat conftest.$ac_ext >&5
7088   fi
7089   rm -rf conftest* conftst*
7090
7091   # Do not use the global_symbol_pipe unless it works.
7092   if test "$pipe_works" = yes; then
7093     break
7094   else
7095     lt_cv_sys_global_symbol_pipe=
7096   fi
7097 done
7098
7099 fi
7100
7101 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7102   lt_cv_sys_global_symbol_to_cdecl=
7103 fi
7104 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7106 $as_echo "failed" >&6; }
7107 else
7108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7109 $as_echo "ok" >&6; }
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133 # Check whether --enable-libtool-lock was given.
7134 if test "${enable_libtool_lock+set}" = set; then :
7135   enableval=$enable_libtool_lock;
7136 fi
7137
7138 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7139
7140 # Some flags need to be propagated to the compiler or linker for good
7141 # libtool support.
7142 case $host in
7143 ia64-*-hpux*)
7144   # Find out which ABI we are using.
7145   echo 'int i;' > conftest.$ac_ext
7146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7147   (eval $ac_compile) 2>&5
7148   ac_status=$?
7149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7150   test $ac_status = 0; }; then
7151     case `/usr/bin/file conftest.$ac_objext` in
7152       *ELF-32*)
7153         HPUX_IA64_MODE="32"
7154         ;;
7155       *ELF-64*)
7156         HPUX_IA64_MODE="64"
7157         ;;
7158     esac
7159   fi
7160   rm -rf conftest*
7161   ;;
7162 *-*-irix6*)
7163   # Find out which ABI we are using.
7164   echo '#line '$LINENO' "configure"' > 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     if test "$lt_cv_prog_gnu_ld" = yes; then
7171       case `/usr/bin/file conftest.$ac_objext` in
7172         *32-bit*)
7173           LD="${LD-ld} -melf32bsmip"
7174           ;;
7175         *N32*)
7176           LD="${LD-ld} -melf32bmipn32"
7177           ;;
7178         *64-bit*)
7179           LD="${LD-ld} -melf64bmip"
7180         ;;
7181       esac
7182     else
7183       case `/usr/bin/file conftest.$ac_objext` in
7184         *32-bit*)
7185           LD="${LD-ld} -32"
7186           ;;
7187         *N32*)
7188           LD="${LD-ld} -n32"
7189           ;;
7190         *64-bit*)
7191           LD="${LD-ld} -64"
7192           ;;
7193       esac
7194     fi
7195   fi
7196   rm -rf conftest*
7197   ;;
7198
7199 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7200 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7201   # Find out which ABI we are using.
7202   echo 'int i;' > conftest.$ac_ext
7203   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7204   (eval $ac_compile) 2>&5
7205   ac_status=$?
7206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7207   test $ac_status = 0; }; then
7208     case `/usr/bin/file conftest.o` in
7209       *32-bit*)
7210         case $host in
7211           x86_64-*kfreebsd*-gnu)
7212             LD="${LD-ld} -m elf_i386_fbsd"
7213             ;;
7214           x86_64-*linux*)
7215             LD="${LD-ld} -m elf_i386"
7216             ;;
7217           ppc64-*linux*|powerpc64-*linux*)
7218             LD="${LD-ld} -m elf32ppclinux"
7219             ;;
7220           s390x-*linux*)
7221             LD="${LD-ld} -m elf_s390"
7222             ;;
7223           sparc64-*linux*)
7224             LD="${LD-ld} -m elf32_sparc"
7225             ;;
7226         esac
7227         ;;
7228       *64-bit*)
7229         case $host in
7230           x86_64-*kfreebsd*-gnu)
7231             LD="${LD-ld} -m elf_x86_64_fbsd"
7232             ;;
7233           x86_64-*linux*)
7234             LD="${LD-ld} -m elf_x86_64"
7235             ;;
7236           ppc*-*linux*|powerpc*-*linux*)
7237             LD="${LD-ld} -m elf64ppc"
7238             ;;
7239           s390*-*linux*|s390*-*tpf*)
7240             LD="${LD-ld} -m elf64_s390"
7241             ;;
7242           sparc*-*linux*)
7243             LD="${LD-ld} -m elf64_sparc"
7244             ;;
7245         esac
7246         ;;
7247     esac
7248   fi
7249   rm -rf conftest*
7250   ;;
7251
7252 *-*-sco3.2v5*)
7253   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7254   SAVE_CFLAGS="$CFLAGS"
7255   CFLAGS="$CFLAGS -belf"
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7257 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7258 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   ac_ext=c
7262 ac_cpp='$CPP $CPPFLAGS'
7263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7266
7267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7268 /* end confdefs.h.  */
7269
7270 int
7271 main ()
7272 {
7273
7274   ;
7275   return 0;
7276 }
7277 _ACEOF
7278 if ac_fn_c_try_link "$LINENO"; then :
7279   lt_cv_cc_needs_belf=yes
7280 else
7281   lt_cv_cc_needs_belf=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext \
7284     conftest$ac_exeext conftest.$ac_ext
7285      ac_ext=c
7286 ac_cpp='$CPP $CPPFLAGS'
7287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7293 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7294   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7295     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7296     CFLAGS="$SAVE_CFLAGS"
7297   fi
7298   ;;
7299 sparc*-*solaris*)
7300   # Find out which ABI we are using.
7301   echo 'int i;' > conftest.$ac_ext
7302   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7303   (eval $ac_compile) 2>&5
7304   ac_status=$?
7305   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7306   test $ac_status = 0; }; then
7307     case `/usr/bin/file conftest.o` in
7308     *64-bit*)
7309       case $lt_cv_prog_gnu_ld in
7310       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7311       *)
7312         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7313           LD="${LD-ld} -64"
7314         fi
7315         ;;
7316       esac
7317       ;;
7318     esac
7319   fi
7320   rm -rf conftest*
7321   ;;
7322 esac
7323
7324 need_locks="$enable_libtool_lock"
7325
7326
7327   case $host_os in
7328     rhapsody* | darwin*)
7329     if test -n "$ac_tool_prefix"; then
7330   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$DSYMUTIL"; then
7338   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7347     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7358 if test -n "$DSYMUTIL"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7360 $as_echo "$DSYMUTIL" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_DSYMUTIL"; then
7369   ac_ct_DSYMUTIL=$DSYMUTIL
7370   # Extract the first word of "dsymutil", so it can be a program name with args.
7371 set dummy dsymutil; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$ac_ct_DSYMUTIL"; then
7378   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392   done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7398 if test -n "$ac_ct_DSYMUTIL"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7400 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406   if test "x$ac_ct_DSYMUTIL" = x; then
7407     DSYMUTIL=":"
7408   else
7409     case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415     DSYMUTIL=$ac_ct_DSYMUTIL
7416   fi
7417 else
7418   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7419 fi
7420
7421     if test -n "$ac_tool_prefix"; then
7422   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   if test -n "$NMEDIT"; then
7430   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 NMEDIT=$ac_cv_prog_NMEDIT
7450 if test -n "$NMEDIT"; then
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7452 $as_echo "$NMEDIT" >&6; }
7453 else
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 fi
7460 if test -z "$ac_cv_prog_NMEDIT"; then
7461   ac_ct_NMEDIT=$NMEDIT
7462   # Extract the first word of "nmedit", so it can be a program name with args.
7463 set dummy nmedit; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   if test -n "$ac_ct_NMEDIT"; then
7470   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7490 if test -n "$ac_ct_NMEDIT"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7492 $as_echo "$ac_ct_NMEDIT" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498   if test "x$ac_ct_NMEDIT" = x; then
7499     NMEDIT=":"
7500   else
7501     case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507     NMEDIT=$ac_ct_NMEDIT
7508   fi
7509 else
7510   NMEDIT="$ac_cv_prog_NMEDIT"
7511 fi
7512
7513     if test -n "$ac_tool_prefix"; then
7514   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if test "${ac_cv_prog_LIPO+set}" = set; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$LIPO"; then
7522   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 LIPO=$ac_cv_prog_LIPO
7542 if test -n "$LIPO"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7544 $as_echo "$LIPO" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_LIPO"; then
7553   ac_ct_LIPO=$LIPO
7554   # Extract the first word of "lipo", so it can be a program name with args.
7555 set dummy lipo; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7559   $as_echo_n "(cached) " >&6
7560 else
7561   if test -n "$ac_ct_LIPO"; then
7562   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569     for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_prog_ac_ct_LIPO="lipo"
7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576   done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7582 if test -n "$ac_ct_LIPO"; then
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7584 $as_echo "$ac_ct_LIPO" >&6; }
7585 else
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590   if test "x$ac_ct_LIPO" = x; then
7591     LIPO=":"
7592   else
7593     case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599     LIPO=$ac_ct_LIPO
7600   fi
7601 else
7602   LIPO="$ac_cv_prog_LIPO"
7603 fi
7604
7605     if test -n "$ac_tool_prefix"; then
7606   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}otool; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7611   $as_echo_n "(cached) " >&6
7612 else
7613   if test -n "$OTOOL"; then
7614   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7615 else
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7617 for as_dir in $PATH
7618 do
7619   IFS=$as_save_IFS
7620   test -z "$as_dir" && as_dir=.
7621     for ac_exec_ext in '' $ac_executable_extensions; do
7622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7625     break 2
7626   fi
7627 done
7628   done
7629 IFS=$as_save_IFS
7630
7631 fi
7632 fi
7633 OTOOL=$ac_cv_prog_OTOOL
7634 if test -n "$OTOOL"; then
7635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7636 $as_echo "$OTOOL" >&6; }
7637 else
7638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7640 fi
7641
7642
7643 fi
7644 if test -z "$ac_cv_prog_OTOOL"; then
7645   ac_ct_OTOOL=$OTOOL
7646   # Extract the first word of "otool", so it can be a program name with args.
7647 set dummy otool; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7651   $as_echo_n "(cached) " >&6
7652 else
7653   if test -n "$ac_ct_OTOOL"; then
7654   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661     for ac_exec_ext in '' $ac_executable_extensions; do
7662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7663     ac_cv_prog_ac_ct_OTOOL="otool"
7664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665     break 2
7666   fi
7667 done
7668   done
7669 IFS=$as_save_IFS
7670
7671 fi
7672 fi
7673 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7674 if test -n "$ac_ct_OTOOL"; then
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7676 $as_echo "$ac_ct_OTOOL" >&6; }
7677 else
7678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 fi
7681
7682   if test "x$ac_ct_OTOOL" = x; then
7683     OTOOL=":"
7684   else
7685     case $cross_compiling:$ac_tool_warned in
7686 yes:)
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7688 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7689 ac_tool_warned=yes ;;
7690 esac
7691     OTOOL=$ac_ct_OTOOL
7692   fi
7693 else
7694   OTOOL="$ac_cv_prog_OTOOL"
7695 fi
7696
7697     if test -n "$ac_tool_prefix"; then
7698   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7699 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$OTOOL64"; then
7706   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 OTOOL64=$ac_cv_prog_OTOOL64
7726 if test -n "$OTOOL64"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7728 $as_echo "$OTOOL64" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734
7735 fi
7736 if test -z "$ac_cv_prog_OTOOL64"; then
7737   ac_ct_OTOOL64=$OTOOL64
7738   # Extract the first word of "otool64", so it can be a program name with args.
7739 set dummy otool64; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   if test -n "$ac_ct_OTOOL64"; then
7746   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7747 else
7748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7755     ac_cv_prog_ac_ct_OTOOL64="otool64"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762
7763 fi
7764 fi
7765 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7766 if test -n "$ac_ct_OTOOL64"; then
7767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7768 $as_echo "$ac_ct_OTOOL64" >&6; }
7769 else
7770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 $as_echo "no" >&6; }
7772 fi
7773
7774   if test "x$ac_ct_OTOOL64" = x; then
7775     OTOOL64=":"
7776   else
7777     case $cross_compiling:$ac_tool_warned in
7778 yes:)
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7781 ac_tool_warned=yes ;;
7782 esac
7783     OTOOL64=$ac_ct_OTOOL64
7784   fi
7785 else
7786   OTOOL64="$ac_cv_prog_OTOOL64"
7787 fi
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7816 $as_echo_n "checking for -single_module linker flag... " >&6; }
7817 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   lt_cv_apple_cc_single_mod=no
7821       if test -z "${LT_MULTI_MODULE}"; then
7822         # By default we will add the -single_module flag. You can override
7823         # by either setting the environment variable LT_MULTI_MODULE
7824         # non-empty at configure time, or by adding -multi_module to the
7825         # link flags.
7826         rm -rf libconftest.dylib*
7827         echo "int foo(void){return 1;}" > conftest.c
7828         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7829 -dynamiclib -Wl,-single_module conftest.c" >&5
7830         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7831           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7832         _lt_result=$?
7833         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7834           lt_cv_apple_cc_single_mod=yes
7835         else
7836           cat conftest.err >&5
7837         fi
7838         rm -rf libconftest.dylib*
7839         rm -f conftest.*
7840       fi
7841 fi
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7843 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7845 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7846 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   lt_cv_ld_exported_symbols_list=no
7850       save_LDFLAGS=$LDFLAGS
7851       echo "_main" > conftest.sym
7852       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7853       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7854 /* end confdefs.h.  */
7855
7856 int
7857 main ()
7858 {
7859
7860   ;
7861   return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_link "$LINENO"; then :
7865   lt_cv_ld_exported_symbols_list=yes
7866 else
7867   lt_cv_ld_exported_symbols_list=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext \
7870     conftest$ac_exeext conftest.$ac_ext
7871         LDFLAGS="$save_LDFLAGS"
7872
7873 fi
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7875 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7876     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7877 $as_echo_n "checking for -force_load linker flag... " >&6; }
7878 if test "${lt_cv_ld_force_load+set}" = set; then :
7879   $as_echo_n "(cached) " >&6
7880 else
7881   lt_cv_ld_force_load=no
7882       cat > conftest.c << _LT_EOF
7883 int forced_loaded() { return 2;}
7884 _LT_EOF
7885       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7886       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7887       echo "$AR cru libconftest.a conftest.o" >&5
7888       $AR cru libconftest.a conftest.o 2>&5
7889       cat > conftest.c << _LT_EOF
7890 int main() { return 0;}
7891 _LT_EOF
7892       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7893       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7894       _lt_result=$?
7895       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7896         lt_cv_ld_force_load=yes
7897       else
7898         cat conftest.err >&5
7899       fi
7900         rm -f conftest.err libconftest.a conftest conftest.c
7901         rm -rf conftest.dSYM
7902
7903 fi
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7905 $as_echo "$lt_cv_ld_force_load" >&6; }
7906     case $host_os in
7907     rhapsody* | darwin1.[012])
7908       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7909     darwin1.*)
7910       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7911     darwin*) # darwin 5.x on
7912       # if running on 10.5 or later, the deployment target defaults
7913       # to the OS version, if on x86, and 10.4, the deployment
7914       # target defaults to 10.4. Don't you love it?
7915       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7916         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7917           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7918         10.[012]*)
7919           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7920         10.*)
7921           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7922       esac
7923     ;;
7924   esac
7925     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7926       _lt_dar_single_mod='$single_module'
7927     fi
7928     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7929       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7930     else
7931       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7932     fi
7933     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7934       _lt_dsymutil='~$DSYMUTIL $lib || :'
7935     else
7936       _lt_dsymutil=
7937     fi
7938     ;;
7939   esac
7940
7941 for ac_header in dlfcn.h
7942 do :
7943   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7944 "
7945 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7946   cat >>confdefs.h <<_ACEOF
7947 #define HAVE_DLFCN_H 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955
7956
7957
7958 # Set options
7959 enable_dlopen=yes
7960
7961
7962
7963
7964   enable_win32_dll=no
7965
7966
7967
7968   # Check whether --enable-static was given.
7969 if test "${enable_static+set}" = set; then :
7970   enableval=$enable_static; p=${PACKAGE-default}
7971     case $enableval in
7972     yes) enable_static=yes ;;
7973     no) enable_static=no ;;
7974     *)
7975      enable_static=no
7976       # Look at the argument we got.  We use all the common list separators.
7977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978       for pkg in $enableval; do
7979         IFS="$lt_save_ifs"
7980         if test "X$pkg" = "X$p"; then
7981           enable_static=yes
7982         fi
7983       done
7984       IFS="$lt_save_ifs"
7985       ;;
7986     esac
7987 else
7988   enable_static=yes
7989 fi
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 # Check whether --with-pic was given.
8001 if test "${with_pic+set}" = set; then :
8002   withval=$with_pic; pic_mode="$withval"
8003 else
8004   pic_mode=default
8005 fi
8006
8007
8008 test -z "$pic_mode" && pic_mode=default
8009
8010
8011
8012
8013
8014
8015
8016   # Check whether --enable-fast-install was given.
8017 if test "${enable_fast_install+set}" = set; then :
8018   enableval=$enable_fast_install; p=${PACKAGE-default}
8019     case $enableval in
8020     yes) enable_fast_install=yes ;;
8021     no) enable_fast_install=no ;;
8022     *)
8023       enable_fast_install=no
8024       # Look at the argument we got.  We use all the common list separators.
8025       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026       for pkg in $enableval; do
8027         IFS="$lt_save_ifs"
8028         if test "X$pkg" = "X$p"; then
8029           enable_fast_install=yes
8030         fi
8031       done
8032       IFS="$lt_save_ifs"
8033       ;;
8034     esac
8035 else
8036   enable_fast_install=yes
8037 fi
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 # This can be used to rebuild libtool when needed
8050 LIBTOOL_DEPS="$ltmain"
8051
8052 # Always use our own libtool.
8053 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 test -z "$LN_S" && LN_S="ln -s"
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095 if test -n "${ZSH_VERSION+set}" ; then
8096    setopt NO_GLOB_SUBST
8097 fi
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8100 $as_echo_n "checking for objdir... " >&6; }
8101 if test "${lt_cv_objdir+set}" = set; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   rm -f .libs 2>/dev/null
8105 mkdir .libs 2>/dev/null
8106 if test -d .libs; then
8107   lt_cv_objdir=.libs
8108 else
8109   # MS-DOS does not allow filenames that begin with a dot.
8110   lt_cv_objdir=_libs
8111 fi
8112 rmdir .libs 2>/dev/null
8113 fi
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8115 $as_echo "$lt_cv_objdir" >&6; }
8116 objdir=$lt_cv_objdir
8117
8118
8119
8120
8121
8122 cat >>confdefs.h <<_ACEOF
8123 #define LT_OBJDIR "$lt_cv_objdir/"
8124 _ACEOF
8125
8126
8127
8128
8129 case $host_os in
8130 aix3*)
8131   # AIX sometimes has problems with the GCC collect2 program.  For some
8132   # reason, if we set the COLLECT_NAMES environment variable, the problems
8133   # vanish in a puff of smoke.
8134   if test "X${COLLECT_NAMES+set}" != Xset; then
8135     COLLECT_NAMES=
8136     export COLLECT_NAMES
8137   fi
8138   ;;
8139 esac
8140
8141 # Global variables:
8142 ofile=libtool
8143 can_build_shared=yes
8144
8145 # All known linkers require a `.a' archive for static linking (except MSVC,
8146 # which needs '.lib').
8147 libext=a
8148
8149 with_gnu_ld="$lt_cv_prog_gnu_ld"
8150
8151 old_CC="$CC"
8152 old_CFLAGS="$CFLAGS"
8153
8154 # Set sane defaults for various variables
8155 test -z "$CC" && CC=cc
8156 test -z "$LTCC" && LTCC=$CC
8157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158 test -z "$LD" && LD=ld
8159 test -z "$ac_objext" && ac_objext=o
8160
8161 for cc_temp in $compiler""; do
8162   case $cc_temp in
8163     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8164     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8165     \-*) ;;
8166     *) break;;
8167   esac
8168 done
8169 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8170
8171
8172 # Only perform the check for file, if the check method requires it
8173 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8174 case $deplibs_check_method in
8175 file_magic*)
8176   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8178 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8179 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8180   $as_echo_n "(cached) " >&6
8181 else
8182   case $MAGIC_CMD in
8183 [\\/*] |  ?:[\\/]*)
8184   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8185   ;;
8186 *)
8187   lt_save_MAGIC_CMD="$MAGIC_CMD"
8188   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8189   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8190   for ac_dir in $ac_dummy; do
8191     IFS="$lt_save_ifs"
8192     test -z "$ac_dir" && ac_dir=.
8193     if test -f $ac_dir/${ac_tool_prefix}file; then
8194       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8195       if test -n "$file_magic_test_file"; then
8196         case $deplibs_check_method in
8197         "file_magic "*)
8198           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8201             $EGREP "$file_magic_regex" > /dev/null; then
8202             :
8203           else
8204             cat <<_LT_EOF 1>&2
8205
8206 *** Warning: the command libtool uses to detect shared libraries,
8207 *** $file_magic_cmd, produces output that libtool cannot recognize.
8208 *** The result is that libtool may fail to recognize shared libraries
8209 *** as such.  This will affect the creation of libtool libraries that
8210 *** depend on shared libraries, but programs linked with such libtool
8211 *** libraries will work regardless of this problem.  Nevertheless, you
8212 *** may want to report the problem to your system manager and/or to
8213 *** bug-libtool@gnu.org
8214
8215 _LT_EOF
8216           fi ;;
8217         esac
8218       fi
8219       break
8220     fi
8221   done
8222   IFS="$lt_save_ifs"
8223   MAGIC_CMD="$lt_save_MAGIC_CMD"
8224   ;;
8225 esac
8226 fi
8227
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if test -n "$MAGIC_CMD"; then
8230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8231 $as_echo "$MAGIC_CMD" >&6; }
8232 else
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8235 fi
8236
8237
8238
8239
8240
8241 if test -z "$lt_cv_path_MAGIC_CMD"; then
8242   if test -n "$ac_tool_prefix"; then
8243     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8244 $as_echo_n "checking for file... " >&6; }
8245 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8246   $as_echo_n "(cached) " >&6
8247 else
8248   case $MAGIC_CMD in
8249 [\\/*] |  ?:[\\/]*)
8250   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8251   ;;
8252 *)
8253   lt_save_MAGIC_CMD="$MAGIC_CMD"
8254   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8255   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256   for ac_dir in $ac_dummy; do
8257     IFS="$lt_save_ifs"
8258     test -z "$ac_dir" && ac_dir=.
8259     if test -f $ac_dir/file; then
8260       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8261       if test -n "$file_magic_test_file"; then
8262         case $deplibs_check_method in
8263         "file_magic "*)
8264           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267             $EGREP "$file_magic_regex" > /dev/null; then
8268             :
8269           else
8270             cat <<_LT_EOF 1>&2
8271
8272 *** Warning: the command libtool uses to detect shared libraries,
8273 *** $file_magic_cmd, produces output that libtool cannot recognize.
8274 *** The result is that libtool may fail to recognize shared libraries
8275 *** as such.  This will affect the creation of libtool libraries that
8276 *** depend on shared libraries, but programs linked with such libtool
8277 *** libraries will work regardless of this problem.  Nevertheless, you
8278 *** may want to report the problem to your system manager and/or to
8279 *** bug-libtool@gnu.org
8280
8281 _LT_EOF
8282           fi ;;
8283         esac
8284       fi
8285       break
8286     fi
8287   done
8288   IFS="$lt_save_ifs"
8289   MAGIC_CMD="$lt_save_MAGIC_CMD"
8290   ;;
8291 esac
8292 fi
8293
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if test -n "$MAGIC_CMD"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297 $as_echo "$MAGIC_CMD" >&6; }
8298 else
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303
8304   else
8305     MAGIC_CMD=:
8306   fi
8307 fi
8308
8309   fi
8310   ;;
8311 esac
8312
8313 # Use C for the default configuration in the libtool script
8314
8315 lt_save_CC="$CC"
8316 ac_ext=c
8317 ac_cpp='$CPP $CPPFLAGS'
8318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321
8322
8323 # Source file extension for C test sources.
8324 ac_ext=c
8325
8326 # Object file extension for compiled C test sources.
8327 objext=o
8328 objext=$objext
8329
8330 # Code to be used in simple compile tests
8331 lt_simple_compile_test_code="int some_variable = 0;"
8332
8333 # Code to be used in simple link tests
8334 lt_simple_link_test_code='int main(){return(0);}'
8335
8336
8337
8338
8339
8340
8341
8342 # If no C compiler was specified, use CC.
8343 LTCC=${LTCC-"$CC"}
8344
8345 # If no C compiler flags were specified, use CFLAGS.
8346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8347
8348 # Allow CC to be a program name with arguments.
8349 compiler=$CC
8350
8351 # Save the default compiler, since it gets overwritten when the other
8352 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8353 compiler_DEFAULT=$CC
8354
8355 # save warnings/boilerplate of simple test code
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8358 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359 _lt_compiler_boilerplate=`cat conftest.err`
8360 $RM conftest*
8361
8362 ac_outfile=conftest.$ac_objext
8363 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8364 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365 _lt_linker_boilerplate=`cat conftest.err`
8366 $RM -r conftest*
8367
8368
8369 ## CAVEAT EMPTOR:
8370 ## There is no encapsulation within the following macros, do not change
8371 ## the running order or otherwise move them around unless you know exactly
8372 ## what you are doing...
8373 if test -n "$compiler"; then
8374
8375 lt_prog_compiler_no_builtin_flag=
8376
8377 if test "$GCC" = yes; then
8378   case $cc_basename in
8379   nvcc*)
8380     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8381   *)
8382     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8383   esac
8384
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8386 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8387 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   lt_cv_prog_compiler_rtti_exceptions=no
8391    ac_outfile=conftest.$ac_objext
8392    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393    lt_compiler_flag="-fno-rtti -fno-exceptions"
8394    # Insert the option either (1) after the last *FLAGS variable, or
8395    # (2) before a word containing "conftest.", or (3) at the end.
8396    # Note that $ac_compile itself does not contain backslashes and begins
8397    # with a dollar sign (not a hyphen), so the echo should work correctly.
8398    # The option is referenced via a variable to avoid confusing sed.
8399    lt_compile=`echo "$ac_compile" | $SED \
8400    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402    -e 's:$: $lt_compiler_flag:'`
8403    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8404    (eval "$lt_compile" 2>conftest.err)
8405    ac_status=$?
8406    cat conftest.err >&5
8407    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408    if (exit $ac_status) && test -s "$ac_outfile"; then
8409      # The compiler can only warn and ignore the option if not recognized
8410      # So say no if there are warnings other than the usual output.
8411      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8412      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8413      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8414        lt_cv_prog_compiler_rtti_exceptions=yes
8415      fi
8416    fi
8417    $RM conftest*
8418
8419 fi
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8421 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8422
8423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8424     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8425 else
8426     :
8427 fi
8428
8429 fi
8430
8431
8432
8433
8434
8435
8436   lt_prog_compiler_wl=
8437 lt_prog_compiler_pic=
8438 lt_prog_compiler_static=
8439
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8442
8443   if test "$GCC" = yes; then
8444     lt_prog_compiler_wl='-Wl,'
8445     lt_prog_compiler_static='-static'
8446
8447     case $host_os in
8448       aix*)
8449       # All AIX code is PIC.
8450       if test "$host_cpu" = ia64; then
8451         # AIX 5 now supports IA64 processor
8452         lt_prog_compiler_static='-Bstatic'
8453       fi
8454       ;;
8455
8456     amigaos*)
8457       case $host_cpu in
8458       powerpc)
8459             # see comment about AmigaOS4 .so support
8460             lt_prog_compiler_pic='-fPIC'
8461         ;;
8462       m68k)
8463             # FIXME: we need at least 68020 code to build shared libraries, but
8464             # adding the `-m68020' flag to GCC prevents building anything better,
8465             # like `-m68040'.
8466             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8467         ;;
8468       esac
8469       ;;
8470
8471     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8472       # PIC is the default for these OSes.
8473       ;;
8474
8475     mingw* | cygwin* | pw32* | os2* | cegcc*)
8476       # This hack is so that the source file can tell whether it is being
8477       # built for inclusion in a dll (and should export symbols for example).
8478       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8479       # (--disable-auto-import) libraries
8480       lt_prog_compiler_pic='-DDLL_EXPORT'
8481       ;;
8482
8483     darwin* | rhapsody*)
8484       # PIC is the default on this platform
8485       # Common symbols not allowed in MH_DYLIB files
8486       lt_prog_compiler_pic='-fno-common'
8487       ;;
8488
8489     haiku*)
8490       # PIC is the default for Haiku.
8491       # The "-static" flag exists, but is broken.
8492       lt_prog_compiler_static=
8493       ;;
8494
8495     hpux*)
8496       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8497       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8498       # sets the default TLS model and affects inlining.
8499       case $host_cpu in
8500       hppa*64*)
8501         # +Z the default
8502         ;;
8503       *)
8504         lt_prog_compiler_pic='-fPIC'
8505         ;;
8506       esac
8507       ;;
8508
8509     interix[3-9]*)
8510       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8511       # Instead, we relocate shared libraries at runtime.
8512       ;;
8513
8514     msdosdjgpp*)
8515       # Just because we use GCC doesn't mean we suddenly get shared libraries
8516       # on systems that don't support them.
8517       lt_prog_compiler_can_build_shared=no
8518       enable_shared=no
8519       ;;
8520
8521     *nto* | *qnx*)
8522       # QNX uses GNU C++, but need to define -shared option too, otherwise
8523       # it will coredump.
8524       lt_prog_compiler_pic='-fPIC -shared'
8525       ;;
8526
8527     sysv4*MP*)
8528       if test -d /usr/nec; then
8529         lt_prog_compiler_pic=-Kconform_pic
8530       fi
8531       ;;
8532
8533     *)
8534       lt_prog_compiler_pic='-fPIC'
8535       ;;
8536     esac
8537
8538     case $cc_basename in
8539     nvcc*) # Cuda Compiler Driver 2.2
8540       lt_prog_compiler_wl='-Xlinker '
8541       lt_prog_compiler_pic='-Xcompiler -fPIC'
8542       ;;
8543     esac
8544   else
8545     # PORTME Check for flag to pass linker flags through the system compiler.
8546     case $host_os in
8547     aix*)
8548       lt_prog_compiler_wl='-Wl,'
8549       if test "$host_cpu" = ia64; then
8550         # AIX 5 now supports IA64 processor
8551         lt_prog_compiler_static='-Bstatic'
8552       else
8553         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8554       fi
8555       ;;
8556
8557     mingw* | cygwin* | pw32* | os2* | cegcc*)
8558       # This hack is so that the source file can tell whether it is being
8559       # built for inclusion in a dll (and should export symbols for example).
8560       lt_prog_compiler_pic='-DDLL_EXPORT'
8561       ;;
8562
8563     hpux9* | hpux10* | hpux11*)
8564       lt_prog_compiler_wl='-Wl,'
8565       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8566       # not for PA HP-UX.
8567       case $host_cpu in
8568       hppa*64*|ia64*)
8569         # +Z the default
8570         ;;
8571       *)
8572         lt_prog_compiler_pic='+Z'
8573         ;;
8574       esac
8575       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8576       lt_prog_compiler_static='${wl}-a ${wl}archive'
8577       ;;
8578
8579     irix5* | irix6* | nonstopux*)
8580       lt_prog_compiler_wl='-Wl,'
8581       # PIC (with -KPIC) is the default.
8582       lt_prog_compiler_static='-non_shared'
8583       ;;
8584
8585     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8586       case $cc_basename in
8587       # old Intel for x86_64 which still supported -KPIC.
8588       ecc*)
8589         lt_prog_compiler_wl='-Wl,'
8590         lt_prog_compiler_pic='-KPIC'
8591         lt_prog_compiler_static='-static'
8592         ;;
8593       # icc used to be incompatible with GCC.
8594       # ICC 10 doesn't accept -KPIC any more.
8595       icc* | ifort*)
8596         lt_prog_compiler_wl='-Wl,'
8597         lt_prog_compiler_pic='-fPIC'
8598         lt_prog_compiler_static='-static'
8599         ;;
8600       # Lahey Fortran 8.1.
8601       lf95*)
8602         lt_prog_compiler_wl='-Wl,'
8603         lt_prog_compiler_pic='--shared'
8604         lt_prog_compiler_static='--static'
8605         ;;
8606       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8607         # Portland Group compilers (*not* the Pentium gcc compiler,
8608         # which looks to be a dead project)
8609         lt_prog_compiler_wl='-Wl,'
8610         lt_prog_compiler_pic='-fpic'
8611         lt_prog_compiler_static='-Bstatic'
8612         ;;
8613       ccc*)
8614         lt_prog_compiler_wl='-Wl,'
8615         # All Alpha code is PIC.
8616         lt_prog_compiler_static='-non_shared'
8617         ;;
8618       xl* | bgxl* | bgf* | mpixl*)
8619         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8620         lt_prog_compiler_wl='-Wl,'
8621         lt_prog_compiler_pic='-qpic'
8622         lt_prog_compiler_static='-qstaticlink'
8623         ;;
8624       *)
8625         case `$CC -V 2>&1 | sed 5q` in
8626         *Sun\ F* | *Sun*Fortran*)
8627           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8628           lt_prog_compiler_pic='-KPIC'
8629           lt_prog_compiler_static='-Bstatic'
8630           lt_prog_compiler_wl=''
8631           ;;
8632         *Sun\ C*)
8633           # Sun C 5.9
8634           lt_prog_compiler_pic='-KPIC'
8635           lt_prog_compiler_static='-Bstatic'
8636           lt_prog_compiler_wl='-Wl,'
8637           ;;
8638         esac
8639         ;;
8640       esac
8641       ;;
8642
8643     newsos6)
8644       lt_prog_compiler_pic='-KPIC'
8645       lt_prog_compiler_static='-Bstatic'
8646       ;;
8647
8648     *nto* | *qnx*)
8649       # QNX uses GNU C++, but need to define -shared option too, otherwise
8650       # it will coredump.
8651       lt_prog_compiler_pic='-fPIC -shared'
8652       ;;
8653
8654     osf3* | osf4* | osf5*)
8655       lt_prog_compiler_wl='-Wl,'
8656       # All OSF/1 code is PIC.
8657       lt_prog_compiler_static='-non_shared'
8658       ;;
8659
8660     rdos*)
8661       lt_prog_compiler_static='-non_shared'
8662       ;;
8663
8664     solaris*)
8665       lt_prog_compiler_pic='-KPIC'
8666       lt_prog_compiler_static='-Bstatic'
8667       case $cc_basename in
8668       f77* | f90* | f95*)
8669         lt_prog_compiler_wl='-Qoption ld ';;
8670       *)
8671         lt_prog_compiler_wl='-Wl,';;
8672       esac
8673       ;;
8674
8675     sunos4*)
8676       lt_prog_compiler_wl='-Qoption ld '
8677       lt_prog_compiler_pic='-PIC'
8678       lt_prog_compiler_static='-Bstatic'
8679       ;;
8680
8681     sysv4 | sysv4.2uw2* | sysv4.3*)
8682       lt_prog_compiler_wl='-Wl,'
8683       lt_prog_compiler_pic='-KPIC'
8684       lt_prog_compiler_static='-Bstatic'
8685       ;;
8686
8687     sysv4*MP*)
8688       if test -d /usr/nec ;then
8689         lt_prog_compiler_pic='-Kconform_pic'
8690         lt_prog_compiler_static='-Bstatic'
8691       fi
8692       ;;
8693
8694     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8695       lt_prog_compiler_wl='-Wl,'
8696       lt_prog_compiler_pic='-KPIC'
8697       lt_prog_compiler_static='-Bstatic'
8698       ;;
8699
8700     unicos*)
8701       lt_prog_compiler_wl='-Wl,'
8702       lt_prog_compiler_can_build_shared=no
8703       ;;
8704
8705     uts4*)
8706       lt_prog_compiler_pic='-pic'
8707       lt_prog_compiler_static='-Bstatic'
8708       ;;
8709
8710     *)
8711       lt_prog_compiler_can_build_shared=no
8712       ;;
8713     esac
8714   fi
8715
8716 case $host_os in
8717   # For platforms which do not support PIC, -DPIC is meaningless:
8718   *djgpp*)
8719     lt_prog_compiler_pic=
8720     ;;
8721   *)
8722     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8723     ;;
8724 esac
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8726 $as_echo "$lt_prog_compiler_pic" >&6; }
8727
8728
8729
8730
8731
8732
8733 #
8734 # Check to make sure the PIC flag actually works.
8735 #
8736 if test -n "$lt_prog_compiler_pic"; then
8737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8738 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8739 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8740   $as_echo_n "(cached) " >&6
8741 else
8742   lt_cv_prog_compiler_pic_works=no
8743    ac_outfile=conftest.$ac_objext
8744    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8746    # Insert the option either (1) after the last *FLAGS variable, or
8747    # (2) before a word containing "conftest.", or (3) at the end.
8748    # Note that $ac_compile itself does not contain backslashes and begins
8749    # with a dollar sign (not a hyphen), so the echo should work correctly.
8750    # The option is referenced via a variable to avoid confusing sed.
8751    lt_compile=`echo "$ac_compile" | $SED \
8752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754    -e 's:$: $lt_compiler_flag:'`
8755    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756    (eval "$lt_compile" 2>conftest.err)
8757    ac_status=$?
8758    cat conftest.err >&5
8759    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760    if (exit $ac_status) && test -s "$ac_outfile"; then
8761      # The compiler can only warn and ignore the option if not recognized
8762      # So say no if there are warnings other than the usual output.
8763      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8764      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8765      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8766        lt_cv_prog_compiler_pic_works=yes
8767      fi
8768    fi
8769    $RM conftest*
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8773 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8774
8775 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8776     case $lt_prog_compiler_pic in
8777      "" | " "*) ;;
8778      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8779      esac
8780 else
8781     lt_prog_compiler_pic=
8782      lt_prog_compiler_can_build_shared=no
8783 fi
8784
8785 fi
8786
8787
8788
8789
8790
8791
8792 #
8793 # Check to make sure the static flag actually works.
8794 #
8795 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8797 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8798 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8799   $as_echo_n "(cached) " >&6
8800 else
8801   lt_cv_prog_compiler_static_works=no
8802    save_LDFLAGS="$LDFLAGS"
8803    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8804    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8805    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8806      # The linker can only warn and ignore the option if not recognized
8807      # So say no if there are warnings
8808      if test -s conftest.err; then
8809        # Append any errors to the config.log.
8810        cat conftest.err 1>&5
8811        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8812        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8813        if diff conftest.exp conftest.er2 >/dev/null; then
8814          lt_cv_prog_compiler_static_works=yes
8815        fi
8816      else
8817        lt_cv_prog_compiler_static_works=yes
8818      fi
8819    fi
8820    $RM -r conftest*
8821    LDFLAGS="$save_LDFLAGS"
8822
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8825 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8826
8827 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8828     :
8829 else
8830     lt_prog_compiler_static=
8831 fi
8832
8833
8834
8835
8836
8837
8838
8839   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8842   $as_echo_n "(cached) " >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $RM -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8870      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $RM conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8880    $RM out/* && rmdir out
8881    cd ..
8882    $RM -r conftest
8883    $RM conftest*
8884
8885 fi
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8887 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890
8891
8892
8893
8894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   lt_cv_prog_compiler_c_o=no
8900    $RM -r conftest 2>/dev/null
8901    mkdir conftest
8902    cd conftest
8903    mkdir out
8904    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906    lt_compiler_flag="-o out/conftest2.$ac_objext"
8907    # Insert the option either (1) after the last *FLAGS variable, or
8908    # (2) before a word containing "conftest.", or (3) at the end.
8909    # Note that $ac_compile itself does not contain backslashes and begins
8910    # with a dollar sign (not a hyphen), so the echo should work correctly.
8911    lt_compile=`echo "$ac_compile" | $SED \
8912    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914    -e 's:$: $lt_compiler_flag:'`
8915    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916    (eval "$lt_compile" 2>out/conftest.err)
8917    ac_status=$?
8918    cat out/conftest.err >&5
8919    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921    then
8922      # The compiler can only warn and ignore the option if not recognized
8923      # So say no if there are warnings
8924      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927        lt_cv_prog_compiler_c_o=yes
8928      fi
8929    fi
8930    chmod u+w . 2>&5
8931    $RM conftest*
8932    # SGI C++ compiler will create directory out/ii_files/ for
8933    # template instantiation
8934    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935    $RM out/* && rmdir out
8936    cd ..
8937    $RM -r conftest
8938    $RM conftest*
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947 hard_links="nottested"
8948 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8949   # do not overwrite the value of need_locks provided by the user
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8951 $as_echo_n "checking if we can lock with hard links... " >&6; }
8952   hard_links=yes
8953   $RM conftest*
8954   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8955   touch conftest.a
8956   ln conftest.a conftest.b 2>&5 || hard_links=no
8957   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8959 $as_echo "$hard_links" >&6; }
8960   if test "$hard_links" = no; then
8961     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8962 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8963     need_locks=warn
8964   fi
8965 else
8966   need_locks=no
8967 fi
8968
8969
8970
8971
8972
8973
8974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8975 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8976
8977   runpath_var=
8978   allow_undefined_flag=
8979   always_export_symbols=no
8980   archive_cmds=
8981   archive_expsym_cmds=
8982   compiler_needs_object=no
8983   enable_shared_with_static_runtimes=no
8984   export_dynamic_flag_spec=
8985   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8986   hardcode_automatic=no
8987   hardcode_direct=no
8988   hardcode_direct_absolute=no
8989   hardcode_libdir_flag_spec=
8990   hardcode_libdir_flag_spec_ld=
8991   hardcode_libdir_separator=
8992   hardcode_minus_L=no
8993   hardcode_shlibpath_var=unsupported
8994   inherit_rpath=no
8995   link_all_deplibs=unknown
8996   module_cmds=
8997   module_expsym_cmds=
8998   old_archive_from_new_cmds=
8999   old_archive_from_expsyms_cmds=
9000   thread_safe_flag_spec=
9001   whole_archive_flag_spec=
9002   # include_expsyms should be a list of space-separated symbols to be *always*
9003   # included in the symbol list
9004   include_expsyms=
9005   # exclude_expsyms can be an extended regexp of symbols to exclude
9006   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9007   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9008   # as well as any symbol that contains `d'.
9009   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9010   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9011   # platforms (ab)use it in PIC code, but their linkers get confused if
9012   # the symbol is explicitly referenced.  Since portable code cannot
9013   # rely on this symbol name, it's probably fine to never include it in
9014   # preloaded symbol tables.
9015   # Exclude shared library initialization/finalization symbols.
9016   extract_expsyms_cmds=
9017
9018   case $host_os in
9019   cygwin* | mingw* | pw32* | cegcc*)
9020     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9021     # When not using gcc, we currently assume that we are using
9022     # Microsoft Visual C++.
9023     if test "$GCC" != yes; then
9024       with_gnu_ld=no
9025     fi
9026     ;;
9027   interix*)
9028     # we just hope/assume this is gcc and not c89 (= MSVC++)
9029     with_gnu_ld=yes
9030     ;;
9031   openbsd*)
9032     with_gnu_ld=no
9033     ;;
9034   esac
9035
9036   ld_shlibs=yes
9037
9038   # On some targets, GNU ld is compatible enough with the native linker
9039   # that we're better off using the native interface for both.
9040   lt_use_gnu_ld_interface=no
9041   if test "$with_gnu_ld" = yes; then
9042     case $host_os in
9043       aix*)
9044         # The AIX port of GNU ld has always aspired to compatibility
9045         # with the native linker.  However, as the warning in the GNU ld
9046         # block says, versions before 2.19.5* couldn't really create working
9047         # shared libraries, regardless of the interface used.
9048         case `$LD -v 2>&1` in
9049           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9050           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9051           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9052           *)
9053             lt_use_gnu_ld_interface=yes
9054             ;;
9055         esac
9056         ;;
9057       *)
9058         lt_use_gnu_ld_interface=yes
9059         ;;
9060     esac
9061   fi
9062
9063   if test "$lt_use_gnu_ld_interface" = yes; then
9064     # If archive_cmds runs LD, not CC, wlarc should be empty
9065     wlarc='${wl}'
9066
9067     # Set some defaults for GNU ld with shared library support. These
9068     # are reset later if shared libraries are not supported. Putting them
9069     # here allows them to be overridden if necessary.
9070     runpath_var=LD_RUN_PATH
9071     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9072     export_dynamic_flag_spec='${wl}--export-dynamic'
9073     # ancient GNU ld didn't support --whole-archive et. al.
9074     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9075       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9076     else
9077       whole_archive_flag_spec=
9078     fi
9079     supports_anon_versioning=no
9080     case `$LD -v 2>&1` in
9081       *GNU\ gold*) supports_anon_versioning=yes ;;
9082       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9083       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9084       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9085       *\ 2.11.*) ;; # other 2.11 versions
9086       *) supports_anon_versioning=yes ;;
9087     esac
9088
9089     # See if GNU ld supports shared libraries.
9090     case $host_os in
9091     aix[3-9]*)
9092       # On AIX/PPC, the GNU linker is very broken
9093       if test "$host_cpu" != ia64; then
9094         ld_shlibs=no
9095         cat <<_LT_EOF 1>&2
9096
9097 *** Warning: the GNU linker, at least up to release 2.19, is reported
9098 *** to be unable to reliably create shared libraries on AIX.
9099 *** Therefore, libtool is disabling shared libraries support.  If you
9100 *** really care for shared libraries, you may want to install binutils
9101 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9102 *** You will then need to restart the configuration process.
9103
9104 _LT_EOF
9105       fi
9106       ;;
9107
9108     amigaos*)
9109       case $host_cpu in
9110       powerpc)
9111             # see comment about AmigaOS4 .so support
9112             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9113             archive_expsym_cmds=''
9114         ;;
9115       m68k)
9116             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)'
9117             hardcode_libdir_flag_spec='-L$libdir'
9118             hardcode_minus_L=yes
9119         ;;
9120       esac
9121       ;;
9122
9123     beos*)
9124       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9125         allow_undefined_flag=unsupported
9126         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9127         # support --undefined.  This deserves some investigation.  FIXME
9128         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129       else
9130         ld_shlibs=no
9131       fi
9132       ;;
9133
9134     cygwin* | mingw* | pw32* | cegcc*)
9135       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9136       # as there is no search path for DLLs.
9137       hardcode_libdir_flag_spec='-L$libdir'
9138       export_dynamic_flag_spec='${wl}--export-all-symbols'
9139       allow_undefined_flag=unsupported
9140       always_export_symbols=no
9141       enable_shared_with_static_runtimes=yes
9142       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9143
9144       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9145         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9146         # If the export-symbols file already is a .def file (1st line
9147         # is EXPORTS), use it as is; otherwise, prepend...
9148         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9149           cp $export_symbols $output_objdir/$soname.def;
9150         else
9151           echo EXPORTS > $output_objdir/$soname.def;
9152           cat $export_symbols >> $output_objdir/$soname.def;
9153         fi~
9154         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9155       else
9156         ld_shlibs=no
9157       fi
9158       ;;
9159
9160     haiku*)
9161       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162       link_all_deplibs=yes
9163       ;;
9164
9165     interix[3-9]*)
9166       hardcode_direct=no
9167       hardcode_shlibpath_var=no
9168       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9169       export_dynamic_flag_spec='${wl}-E'
9170       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9171       # Instead, shared libraries are loaded at an image base (0x10000000 by
9172       # default) and relocated if they conflict, which is a slow very memory
9173       # consuming and fragmenting process.  To avoid this, we pick a random,
9174       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9175       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9176       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9177       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'
9178       ;;
9179
9180     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9181       tmp_diet=no
9182       if test "$host_os" = linux-dietlibc; then
9183         case $cc_basename in
9184           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9185         esac
9186       fi
9187       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9188          && test "$tmp_diet" = no
9189       then
9190         tmp_addflag=
9191         tmp_sharedflag='-shared'
9192         case $cc_basename,$host_cpu in
9193         pgcc*)                          # Portland Group C compiler
9194           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'
9195           tmp_addflag=' $pic_flag'
9196           ;;
9197         pgf77* | pgf90* | pgf95* | pgfortran*)
9198                                         # Portland Group f77 and f90 compilers
9199           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'
9200           tmp_addflag=' $pic_flag -Mnomain' ;;
9201         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9202           tmp_addflag=' -i_dynamic' ;;
9203         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9204           tmp_addflag=' -i_dynamic -nofor_main' ;;
9205         ifc* | ifort*)                  # Intel Fortran compiler
9206           tmp_addflag=' -nofor_main' ;;
9207         lf95*)                          # Lahey Fortran 8.1
9208           whole_archive_flag_spec=
9209           tmp_sharedflag='--shared' ;;
9210         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9211           tmp_sharedflag='-qmkshrobj'
9212           tmp_addflag= ;;
9213         nvcc*)  # Cuda Compiler Driver 2.2
9214           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'
9215           compiler_needs_object=yes
9216           ;;
9217         esac
9218         case `$CC -V 2>&1 | sed 5q` in
9219         *Sun\ C*)                       # Sun C 5.9
9220           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'
9221           compiler_needs_object=yes
9222           tmp_sharedflag='-G' ;;
9223         *Sun\ F*)                       # Sun Fortran 8.3
9224           tmp_sharedflag='-G' ;;
9225         esac
9226         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9227
9228         if test "x$supports_anon_versioning" = xyes; then
9229           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9230             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9231             echo "local: *; };" >> $output_objdir/$libname.ver~
9232             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9233         fi
9234
9235         case $cc_basename in
9236         xlf* | bgf* | bgxlf* | mpixlf*)
9237           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9238           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9239           hardcode_libdir_flag_spec=
9240           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9241           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9242           if test "x$supports_anon_versioning" = xyes; then
9243             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9244               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9245               echo "local: *; };" >> $output_objdir/$libname.ver~
9246               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9247           fi
9248           ;;
9249         esac
9250       else
9251         ld_shlibs=no
9252       fi
9253       ;;
9254
9255     netbsd*)
9256       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9257         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9258         wlarc=
9259       else
9260         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262       fi
9263       ;;
9264
9265     solaris*)
9266       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9267         ld_shlibs=no
9268         cat <<_LT_EOF 1>&2
9269
9270 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9271 *** create shared libraries on Solaris systems.  Therefore, libtool
9272 *** is disabling shared libraries support.  We urge you to upgrade GNU
9273 *** binutils to release 2.9.1 or newer.  Another option is to modify
9274 *** your PATH or compiler configuration so that the native linker is
9275 *** used, and then restart.
9276
9277 _LT_EOF
9278       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9279         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9280         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9281       else
9282         ld_shlibs=no
9283       fi
9284       ;;
9285
9286     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9287       case `$LD -v 2>&1` in
9288         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9289         ld_shlibs=no
9290         cat <<_LT_EOF 1>&2
9291
9292 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9293 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9294 *** is disabling shared libraries support.  We urge you to upgrade GNU
9295 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9296 *** your PATH or compiler configuration so that the native linker is
9297 *** used, and then restart.
9298
9299 _LT_EOF
9300         ;;
9301         *)
9302           # For security reasons, it is highly recommended that you always
9303           # use absolute paths for naming shared libraries, and exclude the
9304           # DT_RUNPATH tag from executables and libraries.  But doing so
9305           # requires that you compile everything twice, which is a pain.
9306           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9307             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9308             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9309             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9310           else
9311             ld_shlibs=no
9312           fi
9313         ;;
9314       esac
9315       ;;
9316
9317     sunos4*)
9318       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9319       wlarc=
9320       hardcode_direct=yes
9321       hardcode_shlibpath_var=no
9322       ;;
9323
9324     *)
9325       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9326         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9327         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9328       else
9329         ld_shlibs=no
9330       fi
9331       ;;
9332     esac
9333
9334     if test "$ld_shlibs" = no; then
9335       runpath_var=
9336       hardcode_libdir_flag_spec=
9337       export_dynamic_flag_spec=
9338       whole_archive_flag_spec=
9339     fi
9340   else
9341     # PORTME fill in a description of your system's linker (not GNU ld)
9342     case $host_os in
9343     aix3*)
9344       allow_undefined_flag=unsupported
9345       always_export_symbols=yes
9346       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'
9347       # Note: this linker hardcodes the directories in LIBPATH if there
9348       # are no directories specified by -L.
9349       hardcode_minus_L=yes
9350       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9351         # Neither direct hardcoding nor static linking is supported with a
9352         # broken collect2.
9353         hardcode_direct=unsupported
9354       fi
9355       ;;
9356
9357     aix[4-9]*)
9358       if test "$host_cpu" = ia64; then
9359         # On IA64, the linker does run time linking by default, so we don't
9360         # have to do anything special.
9361         aix_use_runtimelinking=no
9362         exp_sym_flag='-Bexport'
9363         no_entry_flag=""
9364       else
9365         # If we're using GNU nm, then we don't want the "-C" option.
9366         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9367         # Also, AIX nm treats weak defined symbols like other global
9368         # defined symbols, whereas GNU nm marks them as "W".
9369         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9370           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'
9371         else
9372           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9373         fi
9374         aix_use_runtimelinking=no
9375
9376         # Test if we are trying to use run time linking or normal
9377         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9378         # need to do runtime linking.
9379         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9380           for ld_flag in $LDFLAGS; do
9381           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9382             aix_use_runtimelinking=yes
9383             break
9384           fi
9385           done
9386           ;;
9387         esac
9388
9389         exp_sym_flag='-bexport'
9390         no_entry_flag='-bnoentry'
9391       fi
9392
9393       # When large executables or shared objects are built, AIX ld can
9394       # have problems creating the table of contents.  If linking a library
9395       # or program results in "error TOC overflow" add -mminimal-toc to
9396       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9397       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9398
9399       archive_cmds=''
9400       hardcode_direct=yes
9401       hardcode_direct_absolute=yes
9402       hardcode_libdir_separator=':'
9403       link_all_deplibs=yes
9404       file_list_spec='${wl}-f,'
9405
9406       if test "$GCC" = yes; then
9407         case $host_os in aix4.[012]|aix4.[012].*)
9408         # We only want to do this on AIX 4.2 and lower, the check
9409         # below for broken collect2 doesn't work under 4.3+
9410           collect2name=`${CC} -print-prog-name=collect2`
9411           if test -f "$collect2name" &&
9412            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9413           then
9414           # We have reworked collect2
9415           :
9416           else
9417           # We have old collect2
9418           hardcode_direct=unsupported
9419           # It fails to find uninstalled libraries when the uninstalled
9420           # path is not listed in the libpath.  Setting hardcode_minus_L
9421           # to unsupported forces relinking
9422           hardcode_minus_L=yes
9423           hardcode_libdir_flag_spec='-L$libdir'
9424           hardcode_libdir_separator=
9425           fi
9426           ;;
9427         esac
9428         shared_flag='-shared'
9429         if test "$aix_use_runtimelinking" = yes; then
9430           shared_flag="$shared_flag "'${wl}-G'
9431         fi
9432       else
9433         # not using gcc
9434         if test "$host_cpu" = ia64; then
9435         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9436         # chokes on -Wl,-G. The following line is correct:
9437           shared_flag='-G'
9438         else
9439           if test "$aix_use_runtimelinking" = yes; then
9440             shared_flag='${wl}-G'
9441           else
9442             shared_flag='${wl}-bM:SRE'
9443           fi
9444         fi
9445       fi
9446
9447       export_dynamic_flag_spec='${wl}-bexpall'
9448       # It seems that -bexpall does not export symbols beginning with
9449       # underscore (_), so it is better to generate a list of symbols to export.
9450       always_export_symbols=yes
9451       if test "$aix_use_runtimelinking" = yes; then
9452         # Warning - without using the other runtime loading flags (-brtl),
9453         # -berok will link without error, but may produce a broken library.
9454         allow_undefined_flag='-berok'
9455         # Determine the default libpath from the value encoded in an
9456         # empty executable.
9457         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h.  */
9459
9460 int
9461 main ()
9462 {
9463
9464   ;
9465   return 0;
9466 }
9467 _ACEOF
9468 if ac_fn_c_try_link "$LINENO"; then :
9469
9470 lt_aix_libpath_sed='
9471     /Import File Strings/,/^$/ {
9472         /^0/ {
9473             s/^0  *\(.*\)$/\1/
9474             p
9475         }
9476     }'
9477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9478 # Check for a 64-bit object if we didn't find anything.
9479 if test -z "$aix_libpath"; then
9480   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9481 fi
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext \
9484     conftest$ac_exeext conftest.$ac_ext
9485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9486
9487         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9488         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"
9489       else
9490         if test "$host_cpu" = ia64; then
9491           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9492           allow_undefined_flag="-z nodefs"
9493           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"
9494         else
9495          # Determine the default libpath from the value encoded in an
9496          # empty executable.
9497          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h.  */
9499
9500 int
9501 main ()
9502 {
9503
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 if ac_fn_c_try_link "$LINENO"; then :
9509
9510 lt_aix_libpath_sed='
9511     /Import File Strings/,/^$/ {
9512         /^0/ {
9513             s/^0  *\(.*\)$/\1/
9514             p
9515         }
9516     }'
9517 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9518 # Check for a 64-bit object if we didn't find anything.
9519 if test -z "$aix_libpath"; then
9520   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9521 fi
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext \
9524     conftest$ac_exeext conftest.$ac_ext
9525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526
9527          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9528           # Warning - without using the other run time loading flags,
9529           # -berok will link without error, but may produce a broken library.
9530           no_undefined_flag=' ${wl}-bernotok'
9531           allow_undefined_flag=' ${wl}-berok'
9532           if test "$with_gnu_ld" = yes; then
9533             # We only use this code for GNU lds that support --whole-archive.
9534             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9535           else
9536             # Exported symbols can be pulled into shared objects from archives
9537             whole_archive_flag_spec='$convenience'
9538           fi
9539           archive_cmds_need_lc=yes
9540           # This is similar to how AIX traditionally builds its shared libraries.
9541           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'
9542         fi
9543       fi
9544       ;;
9545
9546     amigaos*)
9547       case $host_cpu in
9548       powerpc)
9549             # see comment about AmigaOS4 .so support
9550             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551             archive_expsym_cmds=''
9552         ;;
9553       m68k)
9554             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)'
9555             hardcode_libdir_flag_spec='-L$libdir'
9556             hardcode_minus_L=yes
9557         ;;
9558       esac
9559       ;;
9560
9561     bsdi[45]*)
9562       export_dynamic_flag_spec=-rdynamic
9563       ;;
9564
9565     cygwin* | mingw* | pw32* | cegcc*)
9566       # When not using gcc, we currently assume that we are using
9567       # Microsoft Visual C++.
9568       # hardcode_libdir_flag_spec is actually meaningless, as there is
9569       # no search path for DLLs.
9570       hardcode_libdir_flag_spec=' '
9571       allow_undefined_flag=unsupported
9572       # Tell ltmain to make .lib files, not .a files.
9573       libext=lib
9574       # Tell ltmain to make .dll files, not .so files.
9575       shrext_cmds=".dll"
9576       # FIXME: Setting linknames here is a bad hack.
9577       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9578       # The linker will automatically build a .lib file if we build a DLL.
9579       old_archive_from_new_cmds='true'
9580       # FIXME: Should let the user specify the lib program.
9581       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9582       fix_srcfile_path='`cygpath -w "$srcfile"`'
9583       enable_shared_with_static_runtimes=yes
9584       ;;
9585
9586     darwin* | rhapsody*)
9587
9588
9589   archive_cmds_need_lc=no
9590   hardcode_direct=no
9591   hardcode_automatic=yes
9592   hardcode_shlibpath_var=unsupported
9593   if test "$lt_cv_ld_force_load" = "yes"; then
9594     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\"`'
9595   else
9596     whole_archive_flag_spec=''
9597   fi
9598   link_all_deplibs=yes
9599   allow_undefined_flag="$_lt_dar_allow_undefined"
9600   case $cc_basename in
9601      ifort*) _lt_dar_can_shared=yes ;;
9602      *) _lt_dar_can_shared=$GCC ;;
9603   esac
9604   if test "$_lt_dar_can_shared" = "yes"; then
9605     output_verbose_link_cmd=func_echo_all
9606     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9607     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9608     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}"
9609     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}"
9610
9611   else
9612   ld_shlibs=no
9613   fi
9614
9615       ;;
9616
9617     dgux*)
9618       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9619       hardcode_libdir_flag_spec='-L$libdir'
9620       hardcode_shlibpath_var=no
9621       ;;
9622
9623     freebsd1*)
9624       ld_shlibs=no
9625       ;;
9626
9627     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9628     # support.  Future versions do this automatically, but an explicit c++rt0.o
9629     # does not break anything, and helps significantly (at the cost of a little
9630     # extra space).
9631     freebsd2.2*)
9632       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9633       hardcode_libdir_flag_spec='-R$libdir'
9634       hardcode_direct=yes
9635       hardcode_shlibpath_var=no
9636       ;;
9637
9638     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9639     freebsd2*)
9640       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9641       hardcode_direct=yes
9642       hardcode_minus_L=yes
9643       hardcode_shlibpath_var=no
9644       ;;
9645
9646     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9647     freebsd* | dragonfly*)
9648       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9649       hardcode_libdir_flag_spec='-R$libdir'
9650       hardcode_direct=yes
9651       hardcode_shlibpath_var=no
9652       ;;
9653
9654     hpux9*)
9655       if test "$GCC" = yes; then
9656         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'
9657       else
9658         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'
9659       fi
9660       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9661       hardcode_libdir_separator=:
9662       hardcode_direct=yes
9663
9664       # hardcode_minus_L: Not really in the search PATH,
9665       # but as the default location of the library.
9666       hardcode_minus_L=yes
9667       export_dynamic_flag_spec='${wl}-E'
9668       ;;
9669
9670     hpux10*)
9671       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9672         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9673       else
9674         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9675       fi
9676       if test "$with_gnu_ld" = no; then
9677         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9678         hardcode_libdir_flag_spec_ld='+b $libdir'
9679         hardcode_libdir_separator=:
9680         hardcode_direct=yes
9681         hardcode_direct_absolute=yes
9682         export_dynamic_flag_spec='${wl}-E'
9683         # hardcode_minus_L: Not really in the search PATH,
9684         # but as the default location of the library.
9685         hardcode_minus_L=yes
9686       fi
9687       ;;
9688
9689     hpux11*)
9690       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9691         case $host_cpu in
9692         hppa*64*)
9693           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694           ;;
9695         ia64*)
9696           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697           ;;
9698         *)
9699           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700           ;;
9701         esac
9702       else
9703         case $host_cpu in
9704         hppa*64*)
9705           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9706           ;;
9707         ia64*)
9708           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709           ;;
9710         *)
9711
9712           # Older versions of the 11.00 compiler do not understand -b yet
9713           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715 $as_echo_n "checking if $CC understands -b... " >&6; }
9716 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9717   $as_echo_n "(cached) " >&6
9718 else
9719   lt_cv_prog_compiler__b=no
9720    save_LDFLAGS="$LDFLAGS"
9721    LDFLAGS="$LDFLAGS -b"
9722    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724      # The linker can only warn and ignore the option if not recognized
9725      # So say no if there are warnings
9726      if test -s conftest.err; then
9727        # Append any errors to the config.log.
9728        cat conftest.err 1>&5
9729        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731        if diff conftest.exp conftest.er2 >/dev/null; then
9732          lt_cv_prog_compiler__b=yes
9733        fi
9734      else
9735        lt_cv_prog_compiler__b=yes
9736      fi
9737    fi
9738    $RM -r conftest*
9739    LDFLAGS="$save_LDFLAGS"
9740
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745 if test x"$lt_cv_prog_compiler__b" = xyes; then
9746     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 fi
9750
9751           ;;
9752         esac
9753       fi
9754       if test "$with_gnu_ld" = no; then
9755         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756         hardcode_libdir_separator=:
9757
9758         case $host_cpu in
9759         hppa*64*|ia64*)
9760           hardcode_direct=no
9761           hardcode_shlibpath_var=no
9762           ;;
9763         *)
9764           hardcode_direct=yes
9765           hardcode_direct_absolute=yes
9766           export_dynamic_flag_spec='${wl}-E'
9767
9768           # hardcode_minus_L: Not really in the search PATH,
9769           # but as the default location of the library.
9770           hardcode_minus_L=yes
9771           ;;
9772         esac
9773       fi
9774       ;;
9775
9776     irix5* | irix6* | nonstopux*)
9777       if test "$GCC" = yes; then
9778         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'
9779         # Try to use the -exported_symbol ld option, if it does not
9780         # work, assume that -exports_file does not work either and
9781         # implicitly export all symbols.
9782         save_LDFLAGS="$LDFLAGS"
9783         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9784         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h.  */
9786 int foo(void) {}
9787 _ACEOF
9788 if ac_fn_c_try_link "$LINENO"; then :
9789   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'
9790
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext \
9793     conftest$ac_exeext conftest.$ac_ext
9794         LDFLAGS="$save_LDFLAGS"
9795       else
9796         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'
9797         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'
9798       fi
9799       archive_cmds_need_lc='no'
9800       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9801       hardcode_libdir_separator=:
9802       inherit_rpath=yes
9803       link_all_deplibs=yes
9804       ;;
9805
9806     netbsd*)
9807       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9808         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9809       else
9810         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9811       fi
9812       hardcode_libdir_flag_spec='-R$libdir'
9813       hardcode_direct=yes
9814       hardcode_shlibpath_var=no
9815       ;;
9816
9817     newsos6)
9818       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9819       hardcode_direct=yes
9820       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821       hardcode_libdir_separator=:
9822       hardcode_shlibpath_var=no
9823       ;;
9824
9825     *nto* | *qnx*)
9826       ;;
9827
9828     openbsd*)
9829       if test -f /usr/libexec/ld.so; then
9830         hardcode_direct=yes
9831         hardcode_shlibpath_var=no
9832         hardcode_direct_absolute=yes
9833         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9834           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9836           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837           export_dynamic_flag_spec='${wl}-E'
9838         else
9839           case $host_os in
9840            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9841              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9842              hardcode_libdir_flag_spec='-R$libdir'
9843              ;;
9844            *)
9845              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9846              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9847              ;;
9848           esac
9849         fi
9850       else
9851         ld_shlibs=no
9852       fi
9853       ;;
9854
9855     os2*)
9856       hardcode_libdir_flag_spec='-L$libdir'
9857       hardcode_minus_L=yes
9858       allow_undefined_flag=unsupported
9859       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'
9860       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9861       ;;
9862
9863     osf3*)
9864       if test "$GCC" = yes; then
9865         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9866         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'
9867       else
9868         allow_undefined_flag=' -expect_unresolved \*'
9869         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'
9870       fi
9871       archive_cmds_need_lc='no'
9872       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9873       hardcode_libdir_separator=:
9874       ;;
9875
9876     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9877       if test "$GCC" = yes; then
9878         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9879         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'
9880         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9881       else
9882         allow_undefined_flag=' -expect_unresolved \*'
9883         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'
9884         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~
9885         $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'
9886
9887         # Both c and cxx compiler support -rpath directly
9888         hardcode_libdir_flag_spec='-rpath $libdir'
9889       fi
9890       archive_cmds_need_lc='no'
9891       hardcode_libdir_separator=:
9892       ;;
9893
9894     solaris*)
9895       no_undefined_flag=' -z defs'
9896       if test "$GCC" = yes; then
9897         wlarc='${wl}'
9898         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9899         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9900           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9901       else
9902         case `$CC -V 2>&1` in
9903         *"Compilers 5.0"*)
9904           wlarc=''
9905           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9906           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9907           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9908           ;;
9909         *)
9910           wlarc='${wl}'
9911           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9912           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9914           ;;
9915         esac
9916       fi
9917       hardcode_libdir_flag_spec='-R$libdir'
9918       hardcode_shlibpath_var=no
9919       case $host_os in
9920       solaris2.[0-5] | solaris2.[0-5].*) ;;
9921       *)
9922         # The compiler driver will combine and reorder linker options,
9923         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9924         # but is careful enough not to reorder.
9925         # Supported since Solaris 2.6 (maybe 2.5.1?)
9926         if test "$GCC" = yes; then
9927           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9928         else
9929           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9930         fi
9931         ;;
9932       esac
9933       link_all_deplibs=yes
9934       ;;
9935
9936     sunos4*)
9937       if test "x$host_vendor" = xsequent; then
9938         # Use $CC to link under sequent, because it throws in some extra .o
9939         # files that make .init and .fini sections work.
9940         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9941       else
9942         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9943       fi
9944       hardcode_libdir_flag_spec='-L$libdir'
9945       hardcode_direct=yes
9946       hardcode_minus_L=yes
9947       hardcode_shlibpath_var=no
9948       ;;
9949
9950     sysv4)
9951       case $host_vendor in
9952         sni)
9953           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9954           hardcode_direct=yes # is this really true???
9955         ;;
9956         siemens)
9957           ## LD is ld it makes a PLAMLIB
9958           ## CC just makes a GrossModule.
9959           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9960           reload_cmds='$CC -r -o $output$reload_objs'
9961           hardcode_direct=no
9962         ;;
9963         motorola)
9964           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9966         ;;
9967       esac
9968       runpath_var='LD_RUN_PATH'
9969       hardcode_shlibpath_var=no
9970       ;;
9971
9972     sysv4.3*)
9973       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974       hardcode_shlibpath_var=no
9975       export_dynamic_flag_spec='-Bexport'
9976       ;;
9977
9978     sysv4*MP*)
9979       if test -d /usr/nec; then
9980         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981         hardcode_shlibpath_var=no
9982         runpath_var=LD_RUN_PATH
9983         hardcode_runpath_var=yes
9984         ld_shlibs=yes
9985       fi
9986       ;;
9987
9988     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9989       no_undefined_flag='${wl}-z,text'
9990       archive_cmds_need_lc=no
9991       hardcode_shlibpath_var=no
9992       runpath_var='LD_RUN_PATH'
9993
9994       if test "$GCC" = yes; then
9995         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9997       else
9998         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9999         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000       fi
10001       ;;
10002
10003     sysv5* | sco3.2v5* | sco5v6*)
10004       # Note: We can NOT use -z defs as we might desire, because we do not
10005       # link with -lc, and that would cause any symbols used from libc to
10006       # always be unresolved, which means just about no library would
10007       # ever link correctly.  If we're not using GNU ld we use -z text
10008       # though, which does catch some bad symbols but isn't as heavy-handed
10009       # as -z defs.
10010       no_undefined_flag='${wl}-z,text'
10011       allow_undefined_flag='${wl}-z,nodefs'
10012       archive_cmds_need_lc=no
10013       hardcode_shlibpath_var=no
10014       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10015       hardcode_libdir_separator=':'
10016       link_all_deplibs=yes
10017       export_dynamic_flag_spec='${wl}-Bexport'
10018       runpath_var='LD_RUN_PATH'
10019
10020       if test "$GCC" = yes; then
10021         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023       else
10024         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026       fi
10027       ;;
10028
10029     uts4*)
10030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10031       hardcode_libdir_flag_spec='-L$libdir'
10032       hardcode_shlibpath_var=no
10033       ;;
10034
10035     *)
10036       ld_shlibs=no
10037       ;;
10038     esac
10039
10040     if test x$host_vendor = xsni; then
10041       case $host in
10042       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10043         export_dynamic_flag_spec='${wl}-Blargedynsym'
10044         ;;
10045       esac
10046     fi
10047   fi
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10050 $as_echo "$ld_shlibs" >&6; }
10051 test "$ld_shlibs" = no && can_build_shared=no
10052
10053 with_gnu_ld=$with_gnu_ld
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069 #
10070 # Do we need to explicitly link libc?
10071 #
10072 case "x$archive_cmds_need_lc" in
10073 x|xyes)
10074   # Assume -lc should be added
10075   archive_cmds_need_lc=yes
10076
10077   if test "$enable_shared" = yes && test "$GCC" = yes; then
10078     case $archive_cmds in
10079     *'~'*)
10080       # FIXME: we may have to deal with multi-command sequences.
10081       ;;
10082     '$CC '*)
10083       # Test whether the compiler implicitly links with -lc since on some
10084       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10085       # to ld, don't add -lc before -lgcc.
10086       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10087 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10088 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10089   $as_echo_n "(cached) " >&6
10090 else
10091   $RM conftest*
10092         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10093
10094         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10095   (eval $ac_compile) 2>&5
10096   ac_status=$?
10097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098   test $ac_status = 0; } 2>conftest.err; then
10099           soname=conftest
10100           lib=conftest
10101           libobjs=conftest.$ac_objext
10102           deplibs=
10103           wl=$lt_prog_compiler_wl
10104           pic_flag=$lt_prog_compiler_pic
10105           compiler_flags=-v
10106           linker_flags=-v
10107           verstring=
10108           output_objdir=.
10109           libname=conftest
10110           lt_save_allow_undefined_flag=$allow_undefined_flag
10111           allow_undefined_flag=
10112           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10113   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10114   ac_status=$?
10115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10116   test $ac_status = 0; }
10117           then
10118             lt_cv_archive_cmds_need_lc=no
10119           else
10120             lt_cv_archive_cmds_need_lc=yes
10121           fi
10122           allow_undefined_flag=$lt_save_allow_undefined_flag
10123         else
10124           cat conftest.err 1>&5
10125         fi
10126         $RM conftest*
10127
10128 fi
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10130 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10131       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10132       ;;
10133     esac
10134   fi
10135   ;;
10136 esac
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10295 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10296
10297 if test "$GCC" = yes; then
10298   case $host_os in
10299     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10300     *) lt_awk_arg="/^libraries:/" ;;
10301   esac
10302   case $host_os in
10303     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10304     *) lt_sed_strip_eq="s,=/,/,g" ;;
10305   esac
10306   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10307   case $lt_search_path_spec in
10308   *\;*)
10309     # if the path contains ";" then we assume it to be the separator
10310     # otherwise default to the standard path separator (i.e. ":") - it is
10311     # assumed that no part of a normal pathname contains ";" but that should
10312     # okay in the real world where ";" in dirpaths is itself problematic.
10313     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10314     ;;
10315   *)
10316     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10317     ;;
10318   esac
10319   # Ok, now we have the path, separated by spaces, we can step through it
10320   # and add multilib dir if necessary.
10321   lt_tmp_lt_search_path_spec=
10322   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10323   for lt_sys_path in $lt_search_path_spec; do
10324     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10325       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10326     else
10327       test -d "$lt_sys_path" && \
10328         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10329     fi
10330   done
10331   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10332 BEGIN {RS=" "; FS="/|\n";} {
10333   lt_foo="";
10334   lt_count=0;
10335   for (lt_i = NF; lt_i > 0; lt_i--) {
10336     if ($lt_i != "" && $lt_i != ".") {
10337       if ($lt_i == "..") {
10338         lt_count++;
10339       } else {
10340         if (lt_count == 0) {
10341           lt_foo="/" $lt_i lt_foo;
10342         } else {
10343           lt_count--;
10344         }
10345       }
10346     }
10347   }
10348   if (lt_foo != "") { lt_freq[lt_foo]++; }
10349   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10350 }'`
10351   # AWK program above erroneously prepends '/' to C:/dos/paths
10352   # for these hosts.
10353   case $host_os in
10354     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10355       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10356   esac
10357   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10358 else
10359   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10360 fi
10361 library_names_spec=
10362 libname_spec='lib$name'
10363 soname_spec=
10364 shrext_cmds=".so"
10365 postinstall_cmds=
10366 postuninstall_cmds=
10367 finish_cmds=
10368 finish_eval=
10369 shlibpath_var=
10370 shlibpath_overrides_runpath=unknown
10371 version_type=none
10372 dynamic_linker="$host_os ld.so"
10373 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10374 need_lib_prefix=unknown
10375 hardcode_into_libs=no
10376
10377 # when you set need_version to no, make sure it does not cause -set_version
10378 # flags to be left without arguments
10379 need_version=unknown
10380
10381 case $host_os in
10382 aix3*)
10383   version_type=linux
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10385   shlibpath_var=LIBPATH
10386
10387   # AIX 3 has no versioning support, so we append a major version to the name.
10388   soname_spec='${libname}${release}${shared_ext}$major'
10389   ;;
10390
10391 aix[4-9]*)
10392   version_type=linux
10393   need_lib_prefix=no
10394   need_version=no
10395   hardcode_into_libs=yes
10396   if test "$host_cpu" = ia64; then
10397     # AIX 5 supports IA64
10398     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10399     shlibpath_var=LD_LIBRARY_PATH
10400   else
10401     # With GCC up to 2.95.x, collect2 would create an import file
10402     # for dependence libraries.  The import file would start with
10403     # the line `#! .'.  This would cause the generated library to
10404     # depend on `.', always an invalid library.  This was fixed in
10405     # development snapshots of GCC prior to 3.0.
10406     case $host_os in
10407       aix4 | aix4.[01] | aix4.[01].*)
10408       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10409            echo ' yes '
10410            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10411         :
10412       else
10413         can_build_shared=no
10414       fi
10415       ;;
10416     esac
10417     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10418     # soname into executable. Probably we can add versioning support to
10419     # collect2, so additional links can be useful in future.
10420     if test "$aix_use_runtimelinking" = yes; then
10421       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10422       # instead of lib<name>.a to let people know that these are not
10423       # typical AIX shared libraries.
10424       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10425     else
10426       # We preserve .a as extension for shared libraries through AIX4.2
10427       # and later when we are not doing run time linking.
10428       library_names_spec='${libname}${release}.a $libname.a'
10429       soname_spec='${libname}${release}${shared_ext}$major'
10430     fi
10431     shlibpath_var=LIBPATH
10432   fi
10433   ;;
10434
10435 amigaos*)
10436   case $host_cpu in
10437   powerpc)
10438     # Since July 2007 AmigaOS4 officially supports .so libraries.
10439     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10440     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10441     ;;
10442   m68k)
10443     library_names_spec='$libname.ixlibrary $libname.a'
10444     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10445     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'
10446     ;;
10447   esac
10448   ;;
10449
10450 beos*)
10451   library_names_spec='${libname}${shared_ext}'
10452   dynamic_linker="$host_os ld.so"
10453   shlibpath_var=LIBRARY_PATH
10454   ;;
10455
10456 bsdi[45]*)
10457   version_type=linux
10458   need_version=no
10459   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460   soname_spec='${libname}${release}${shared_ext}$major'
10461   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10462   shlibpath_var=LD_LIBRARY_PATH
10463   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10464   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10465   # the default ld.so.conf also contains /usr/contrib/lib and
10466   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10467   # libtool to hard-code these into programs
10468   ;;
10469
10470 cygwin* | mingw* | pw32* | cegcc*)
10471   version_type=windows
10472   shrext_cmds=".dll"
10473   need_version=no
10474   need_lib_prefix=no
10475
10476   case $GCC,$host_os in
10477   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10478     library_names_spec='$libname.dll.a'
10479     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10480     postinstall_cmds='base_file=`basename \${file}`~
10481       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10482       dldir=$destdir/`dirname \$dlpath`~
10483       test -d \$dldir || mkdir -p \$dldir~
10484       $install_prog $dir/$dlname \$dldir/$dlname~
10485       chmod a+x \$dldir/$dlname~
10486       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10487         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10488       fi'
10489     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10490       dlpath=$dir/\$dldll~
10491        $RM \$dlpath'
10492     shlibpath_overrides_runpath=yes
10493
10494     case $host_os in
10495     cygwin*)
10496       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10497       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10498
10499       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10500       ;;
10501     mingw* | cegcc*)
10502       # MinGW DLLs use traditional 'lib' prefix
10503       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10504       ;;
10505     pw32*)
10506       # pw32 DLLs use 'pw' prefix rather than 'lib'
10507       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10508       ;;
10509     esac
10510     ;;
10511
10512   *)
10513     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10514     ;;
10515   esac
10516   dynamic_linker='Win32 ld.exe'
10517   # FIXME: first we should search . and the directory the executable is in
10518   shlibpath_var=PATH
10519   ;;
10520
10521 darwin* | rhapsody*)
10522   dynamic_linker="$host_os dyld"
10523   version_type=darwin
10524   need_lib_prefix=no
10525   need_version=no
10526   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10527   soname_spec='${libname}${release}${major}$shared_ext'
10528   shlibpath_overrides_runpath=yes
10529   shlibpath_var=DYLD_LIBRARY_PATH
10530   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10531
10532   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10533   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10534   ;;
10535
10536 dgux*)
10537   version_type=linux
10538   need_lib_prefix=no
10539   need_version=no
10540   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10541   soname_spec='${libname}${release}${shared_ext}$major'
10542   shlibpath_var=LD_LIBRARY_PATH
10543   ;;
10544
10545 freebsd1*)
10546   dynamic_linker=no
10547   ;;
10548
10549 freebsd* | dragonfly*)
10550   # DragonFly does not have aout.  When/if they implement a new
10551   # versioning mechanism, adjust this.
10552   if test -x /usr/bin/objformat; then
10553     objformat=`/usr/bin/objformat`
10554   else
10555     case $host_os in
10556     freebsd[123]*) objformat=aout ;;
10557     *) objformat=elf ;;
10558     esac
10559   fi
10560   version_type=freebsd-$objformat
10561   case $version_type in
10562     freebsd-elf*)
10563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10564       need_version=no
10565       need_lib_prefix=no
10566       ;;
10567     freebsd-*)
10568       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10569       need_version=yes
10570       ;;
10571   esac
10572   shlibpath_var=LD_LIBRARY_PATH
10573   case $host_os in
10574   freebsd2*)
10575     shlibpath_overrides_runpath=yes
10576     ;;
10577   freebsd3.[01]* | freebsdelf3.[01]*)
10578     shlibpath_overrides_runpath=yes
10579     hardcode_into_libs=yes
10580     ;;
10581   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10582   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10583     shlibpath_overrides_runpath=no
10584     hardcode_into_libs=yes
10585     ;;
10586   *) # from 4.6 on, and DragonFly
10587     shlibpath_overrides_runpath=yes
10588     hardcode_into_libs=yes
10589     ;;
10590   esac
10591   ;;
10592
10593 gnu*)
10594   version_type=linux
10595   need_lib_prefix=no
10596   need_version=no
10597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598   soname_spec='${libname}${release}${shared_ext}$major'
10599   shlibpath_var=LD_LIBRARY_PATH
10600   hardcode_into_libs=yes
10601   ;;
10602
10603 haiku*)
10604   version_type=linux
10605   need_lib_prefix=no
10606   need_version=no
10607   dynamic_linker="$host_os runtime_loader"
10608   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10609   soname_spec='${libname}${release}${shared_ext}$major'
10610   shlibpath_var=LIBRARY_PATH
10611   shlibpath_overrides_runpath=yes
10612   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10613   hardcode_into_libs=yes
10614   ;;
10615
10616 hpux9* | hpux10* | hpux11*)
10617   # Give a soname corresponding to the major version so that dld.sl refuses to
10618   # link against other versions.
10619   version_type=sunos
10620   need_lib_prefix=no
10621   need_version=no
10622   case $host_cpu in
10623   ia64*)
10624     shrext_cmds='.so'
10625     hardcode_into_libs=yes
10626     dynamic_linker="$host_os dld.so"
10627     shlibpath_var=LD_LIBRARY_PATH
10628     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10629     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10630     soname_spec='${libname}${release}${shared_ext}$major'
10631     if test "X$HPUX_IA64_MODE" = X32; then
10632       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10633     else
10634       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10635     fi
10636     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10637     ;;
10638   hppa*64*)
10639     shrext_cmds='.sl'
10640     hardcode_into_libs=yes
10641     dynamic_linker="$host_os dld.sl"
10642     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10643     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10644     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10645     soname_spec='${libname}${release}${shared_ext}$major'
10646     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10647     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10648     ;;
10649   *)
10650     shrext_cmds='.sl'
10651     dynamic_linker="$host_os dld.sl"
10652     shlibpath_var=SHLIB_PATH
10653     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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     ;;
10657   esac
10658   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10659   postinstall_cmds='chmod 555 $lib'
10660   # or fails outright, so override atomically:
10661   install_override_mode=555
10662   ;;
10663
10664 interix[3-9]*)
10665   version_type=linux
10666   need_lib_prefix=no
10667   need_version=no
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=no
10673   hardcode_into_libs=yes
10674   ;;
10675
10676 irix5* | irix6* | nonstopux*)
10677   case $host_os in
10678     nonstopux*) version_type=nonstopux ;;
10679     *)
10680         if test "$lt_cv_prog_gnu_ld" = yes; then
10681                 version_type=linux
10682         else
10683                 version_type=irix
10684         fi ;;
10685   esac
10686   need_lib_prefix=no
10687   need_version=no
10688   soname_spec='${libname}${release}${shared_ext}$major'
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10690   case $host_os in
10691   irix5* | nonstopux*)
10692     libsuff= shlibsuff=
10693     ;;
10694   *)
10695     case $LD in # libtool.m4 will add one of these switches to LD
10696     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10697       libsuff= shlibsuff= libmagic=32-bit;;
10698     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10699       libsuff=32 shlibsuff=N32 libmagic=N32;;
10700     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10701       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10702     *) libsuff= shlibsuff= libmagic=never-match;;
10703     esac
10704     ;;
10705   esac
10706   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10707   shlibpath_overrides_runpath=no
10708   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10709   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10710   hardcode_into_libs=yes
10711   ;;
10712
10713 # No shared lib support for Linux oldld, aout, or coff.
10714 linux*oldld* | linux*aout* | linux*coff*)
10715   dynamic_linker=no
10716   ;;
10717
10718 # This must be Linux ELF.
10719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10720   version_type=linux
10721   need_lib_prefix=no
10722   need_version=no
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10726   shlibpath_var=LD_LIBRARY_PATH
10727   shlibpath_overrides_runpath=no
10728
10729   # Some binutils ld are patched to set DT_RUNPATH
10730   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10731   $as_echo_n "(cached) " >&6
10732 else
10733   lt_cv_shlibpath_overrides_runpath=no
10734     save_LDFLAGS=$LDFLAGS
10735     save_libdir=$libdir
10736     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10737          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739 /* end confdefs.h.  */
10740
10741 int
10742 main ()
10743 {
10744
10745   ;
10746   return 0;
10747 }
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10751   lt_cv_shlibpath_overrides_runpath=yes
10752 fi
10753 fi
10754 rm -f core conftest.err conftest.$ac_objext \
10755     conftest$ac_exeext conftest.$ac_ext
10756     LDFLAGS=$save_LDFLAGS
10757     libdir=$save_libdir
10758
10759 fi
10760
10761   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10762
10763   # This implies no fast_install, which is unacceptable.
10764   # Some rework will be needed to allow for fast_install
10765   # before this can be enabled.
10766   hardcode_into_libs=yes
10767
10768   # Append ld.so.conf contents to the search path
10769   if test -f /etc/ld.so.conf; then
10770     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' ' '`
10771     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10772   fi
10773
10774   # We used to test for /lib/ld.so.1 and disable shared libraries on
10775   # powerpc, because MkLinux only supported shared libraries with the
10776   # GNU dynamic linker.  Since this was broken with cross compilers,
10777   # most powerpc-linux boxes support dynamic linking these days and
10778   # people can always --disable-shared, the test was removed, and we
10779   # assume the GNU/Linux dynamic linker is in use.
10780   dynamic_linker='GNU/Linux ld.so'
10781   ;;
10782
10783 netbsd*)
10784   version_type=sunos
10785   need_lib_prefix=no
10786   need_version=no
10787   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10788     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10789     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10790     dynamic_linker='NetBSD (a.out) ld.so'
10791   else
10792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10793     soname_spec='${libname}${release}${shared_ext}$major'
10794     dynamic_linker='NetBSD ld.elf_so'
10795   fi
10796   shlibpath_var=LD_LIBRARY_PATH
10797   shlibpath_overrides_runpath=yes
10798   hardcode_into_libs=yes
10799   ;;
10800
10801 newsos6)
10802   version_type=linux
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10804   shlibpath_var=LD_LIBRARY_PATH
10805   shlibpath_overrides_runpath=yes
10806   ;;
10807
10808 *nto* | *qnx*)
10809   version_type=qnx
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813   soname_spec='${libname}${release}${shared_ext}$major'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   shlibpath_overrides_runpath=no
10816   hardcode_into_libs=yes
10817   dynamic_linker='ldqnx.so'
10818   ;;
10819
10820 openbsd*)
10821   version_type=sunos
10822   sys_lib_dlsearch_path_spec="/usr/lib"
10823   need_lib_prefix=no
10824   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10825   case $host_os in
10826     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10827     *)                          need_version=no  ;;
10828   esac
10829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10830   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10831   shlibpath_var=LD_LIBRARY_PATH
10832   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10833     case $host_os in
10834       openbsd2.[89] | openbsd2.[89].*)
10835         shlibpath_overrides_runpath=no
10836         ;;
10837       *)
10838         shlibpath_overrides_runpath=yes
10839         ;;
10840       esac
10841   else
10842     shlibpath_overrides_runpath=yes
10843   fi
10844   ;;
10845
10846 os2*)
10847   libname_spec='$name'
10848   shrext_cmds=".dll"
10849   need_lib_prefix=no
10850   library_names_spec='$libname${shared_ext} $libname.a'
10851   dynamic_linker='OS/2 ld.exe'
10852   shlibpath_var=LIBPATH
10853   ;;
10854
10855 osf3* | osf4* | osf5*)
10856   version_type=osf
10857   need_lib_prefix=no
10858   need_version=no
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10863   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10864   ;;
10865
10866 rdos*)
10867   dynamic_linker=no
10868   ;;
10869
10870 solaris*)
10871   version_type=linux
10872   need_lib_prefix=no
10873   need_version=no
10874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10875   soname_spec='${libname}${release}${shared_ext}$major'
10876   shlibpath_var=LD_LIBRARY_PATH
10877   shlibpath_overrides_runpath=yes
10878   hardcode_into_libs=yes
10879   # ldd complains unless libraries are executable
10880   postinstall_cmds='chmod +x $lib'
10881   ;;
10882
10883 sunos4*)
10884   version_type=sunos
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10886   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10887   shlibpath_var=LD_LIBRARY_PATH
10888   shlibpath_overrides_runpath=yes
10889   if test "$with_gnu_ld" = yes; then
10890     need_lib_prefix=no
10891   fi
10892   need_version=yes
10893   ;;
10894
10895 sysv4 | sysv4.3*)
10896   version_type=linux
10897   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10898   soname_spec='${libname}${release}${shared_ext}$major'
10899   shlibpath_var=LD_LIBRARY_PATH
10900   case $host_vendor in
10901     sni)
10902       shlibpath_overrides_runpath=no
10903       need_lib_prefix=no
10904       runpath_var=LD_RUN_PATH
10905       ;;
10906     siemens)
10907       need_lib_prefix=no
10908       ;;
10909     motorola)
10910       need_lib_prefix=no
10911       need_version=no
10912       shlibpath_overrides_runpath=no
10913       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10914       ;;
10915   esac
10916   ;;
10917
10918 sysv4*MP*)
10919   if test -d /usr/nec ;then
10920     version_type=linux
10921     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10922     soname_spec='$libname${shared_ext}.$major'
10923     shlibpath_var=LD_LIBRARY_PATH
10924   fi
10925   ;;
10926
10927 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10928   version_type=freebsd-elf
10929   need_lib_prefix=no
10930   need_version=no
10931   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10932   soname_spec='${libname}${release}${shared_ext}$major'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   shlibpath_overrides_runpath=yes
10935   hardcode_into_libs=yes
10936   if test "$with_gnu_ld" = yes; then
10937     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10938   else
10939     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10940     case $host_os in
10941       sco3.2v5*)
10942         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10943         ;;
10944     esac
10945   fi
10946   sys_lib_dlsearch_path_spec='/usr/lib'
10947   ;;
10948
10949 tpf*)
10950   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10951   version_type=linux
10952   need_lib_prefix=no
10953   need_version=no
10954   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955   shlibpath_var=LD_LIBRARY_PATH
10956   shlibpath_overrides_runpath=no
10957   hardcode_into_libs=yes
10958   ;;
10959
10960 uts4*)
10961   version_type=linux
10962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963   soname_spec='${libname}${release}${shared_ext}$major'
10964   shlibpath_var=LD_LIBRARY_PATH
10965   ;;
10966
10967 *)
10968   dynamic_linker=no
10969   ;;
10970 esac
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10972 $as_echo "$dynamic_linker" >&6; }
10973 test "$dynamic_linker" = no && can_build_shared=no
10974
10975 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10976 if test "$GCC" = yes; then
10977   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10978 fi
10979
10980 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10981   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10982 fi
10983 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10984   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10985 fi
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11079 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11080 hardcode_action=
11081 if test -n "$hardcode_libdir_flag_spec" ||
11082    test -n "$runpath_var" ||
11083    test "X$hardcode_automatic" = "Xyes" ; then
11084
11085   # We can hardcode non-existent directories.
11086   if test "$hardcode_direct" != no &&
11087      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11088      # have to relink, otherwise we might link with an installed library
11089      # when we should be linking with a yet-to-be-installed one
11090      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11091      test "$hardcode_minus_L" != no; then
11092     # Linking always hardcodes the temporary library directory.
11093     hardcode_action=relink
11094   else
11095     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11096     hardcode_action=immediate
11097   fi
11098 else
11099   # We cannot hardcode anything, or else we can only hardcode existing
11100   # directories.
11101   hardcode_action=unsupported
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11104 $as_echo "$hardcode_action" >&6; }
11105
11106 if test "$hardcode_action" = relink ||
11107    test "$inherit_rpath" = yes; then
11108   # Fast installation is not supported
11109   enable_fast_install=no
11110 elif test "$shlibpath_overrides_runpath" = yes ||
11111      test "$enable_shared" = no; then
11112   # Fast installation is not necessary
11113   enable_fast_install=needless
11114 fi
11115
11116
11117
11118
11119
11120
11121   if test "x$enable_dlopen" != xyes; then
11122   enable_dlopen=unknown
11123   enable_dlopen_self=unknown
11124   enable_dlopen_self_static=unknown
11125 else
11126   lt_cv_dlopen=no
11127   lt_cv_dlopen_libs=
11128
11129   case $host_os in
11130   beos*)
11131     lt_cv_dlopen="load_add_on"
11132     lt_cv_dlopen_libs=
11133     lt_cv_dlopen_self=yes
11134     ;;
11135
11136   mingw* | pw32* | cegcc*)
11137     lt_cv_dlopen="LoadLibrary"
11138     lt_cv_dlopen_libs=
11139     ;;
11140
11141   cygwin*)
11142     lt_cv_dlopen="dlopen"
11143     lt_cv_dlopen_libs=
11144     ;;
11145
11146   darwin*)
11147   # if libdl is installed we need to link against it
11148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11149 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11150 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   ac_check_lib_save_LIBS=$LIBS
11154 LIBS="-ldl  $LIBS"
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h.  */
11157
11158 /* Override any GCC internal prototype to avoid an error.
11159    Use char because int might match the return type of a GCC
11160    builtin and then its argument prototype would still apply.  */
11161 #ifdef __cplusplus
11162 extern "C"
11163 #endif
11164 char dlopen ();
11165 int
11166 main ()
11167 {
11168 return dlopen ();
11169   ;
11170   return 0;
11171 }
11172 _ACEOF
11173 if ac_fn_c_try_link "$LINENO"; then :
11174   ac_cv_lib_dl_dlopen=yes
11175 else
11176   ac_cv_lib_dl_dlopen=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext \
11179     conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11183 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11184 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11185   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11186 else
11187
11188     lt_cv_dlopen="dyld"
11189     lt_cv_dlopen_libs=
11190     lt_cv_dlopen_self=yes
11191
11192 fi
11193
11194     ;;
11195
11196   *)
11197     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11198 if test "x$ac_cv_func_shl_load" = x""yes; then :
11199   lt_cv_dlopen="shl_load"
11200 else
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11202 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11203 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-ldld  $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h.  */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212    Use char because int might match the return type of a GCC
11213    builtin and then its argument prototype would still apply.  */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char shl_load ();
11218 int
11219 main ()
11220 {
11221 return shl_load ();
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227   ac_cv_lib_dld_shl_load=yes
11228 else
11229   ac_cv_lib_dld_shl_load=no
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext \
11232     conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11236 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11237 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11238   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11239 else
11240   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11241 if test "x$ac_cv_func_dlopen" = x""yes; then :
11242   lt_cv_dlopen="dlopen"
11243 else
11244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11245 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11246 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11247   $as_echo_n "(cached) " >&6
11248 else
11249   ac_check_lib_save_LIBS=$LIBS
11250 LIBS="-ldl  $LIBS"
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h.  */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255    Use char because int might match the return type of a GCC
11256    builtin and then its argument prototype would still apply.  */
11257 #ifdef __cplusplus
11258 extern "C"
11259 #endif
11260 char dlopen ();
11261 int
11262 main ()
11263 {
11264 return dlopen ();
11265   ;
11266   return 0;
11267 }
11268 _ACEOF
11269 if ac_fn_c_try_link "$LINENO"; then :
11270   ac_cv_lib_dl_dlopen=yes
11271 else
11272   ac_cv_lib_dl_dlopen=no
11273 fi
11274 rm -f core conftest.err conftest.$ac_objext \
11275     conftest$ac_exeext conftest.$ac_ext
11276 LIBS=$ac_check_lib_save_LIBS
11277 fi
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11279 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11280 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11281   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11282 else
11283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11284 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11285 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11286   $as_echo_n "(cached) " >&6
11287 else
11288   ac_check_lib_save_LIBS=$LIBS
11289 LIBS="-lsvld  $LIBS"
11290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11291 /* end confdefs.h.  */
11292
11293 /* Override any GCC internal prototype to avoid an error.
11294    Use char because int might match the return type of a GCC
11295    builtin and then its argument prototype would still apply.  */
11296 #ifdef __cplusplus
11297 extern "C"
11298 #endif
11299 char dlopen ();
11300 int
11301 main ()
11302 {
11303 return dlopen ();
11304   ;
11305   return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"; then :
11309   ac_cv_lib_svld_dlopen=yes
11310 else
11311   ac_cv_lib_svld_dlopen=no
11312 fi
11313 rm -f core conftest.err conftest.$ac_objext \
11314     conftest$ac_exeext conftest.$ac_ext
11315 LIBS=$ac_check_lib_save_LIBS
11316 fi
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11318 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11319 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11320   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11321 else
11322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11323 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-ldld  $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11330 /* end confdefs.h.  */
11331
11332 /* Override any GCC internal prototype to avoid an error.
11333    Use char because int might match the return type of a GCC
11334    builtin and then its argument prototype would still apply.  */
11335 #ifdef __cplusplus
11336 extern "C"
11337 #endif
11338 char dld_link ();
11339 int
11340 main ()
11341 {
11342 return dld_link ();
11343   ;
11344   return 0;
11345 }
11346 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then :
11348   ac_cv_lib_dld_dld_link=yes
11349 else
11350   ac_cv_lib_dld_dld_link=no
11351 fi
11352 rm -f core conftest.err conftest.$ac_objext \
11353     conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS
11355 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11357 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11358 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11359   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11360 fi
11361
11362
11363 fi
11364
11365
11366 fi
11367
11368
11369 fi
11370
11371
11372 fi
11373
11374
11375 fi
11376
11377     ;;
11378   esac
11379
11380   if test "x$lt_cv_dlopen" != xno; then
11381     enable_dlopen=yes
11382   else
11383     enable_dlopen=no
11384   fi
11385
11386   case $lt_cv_dlopen in
11387   dlopen)
11388     save_CPPFLAGS="$CPPFLAGS"
11389     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11390
11391     save_LDFLAGS="$LDFLAGS"
11392     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11393
11394     save_LIBS="$LIBS"
11395     LIBS="$lt_cv_dlopen_libs $LIBS"
11396
11397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11398 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11399 if test "${lt_cv_dlopen_self+set}" = set; then :
11400   $as_echo_n "(cached) " >&6
11401 else
11402           if test "$cross_compiling" = yes; then :
11403   lt_cv_dlopen_self=cross
11404 else
11405   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11406   lt_status=$lt_dlunknown
11407   cat > conftest.$ac_ext <<_LT_EOF
11408 #line 11408 "configure"
11409 #include "confdefs.h"
11410
11411 #if HAVE_DLFCN_H
11412 #include <dlfcn.h>
11413 #endif
11414
11415 #include <stdio.h>
11416
11417 #ifdef RTLD_GLOBAL
11418 #  define LT_DLGLOBAL           RTLD_GLOBAL
11419 #else
11420 #  ifdef DL_GLOBAL
11421 #    define LT_DLGLOBAL         DL_GLOBAL
11422 #  else
11423 #    define LT_DLGLOBAL         0
11424 #  endif
11425 #endif
11426
11427 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11428    find out it does not work in some platform. */
11429 #ifndef LT_DLLAZY_OR_NOW
11430 #  ifdef RTLD_LAZY
11431 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11432 #  else
11433 #    ifdef DL_LAZY
11434 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11435 #    else
11436 #      ifdef RTLD_NOW
11437 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11438 #      else
11439 #        ifdef DL_NOW
11440 #          define LT_DLLAZY_OR_NOW      DL_NOW
11441 #        else
11442 #          define LT_DLLAZY_OR_NOW      0
11443 #        endif
11444 #      endif
11445 #    endif
11446 #  endif
11447 #endif
11448
11449 /* When -fvisbility=hidden is used, assume the code has been annotated
11450    correspondingly for the symbols needed.  */
11451 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11452 void fnord () __attribute__((visibility("default")));
11453 #endif
11454
11455 void fnord () { int i=42; }
11456 int main ()
11457 {
11458   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11459   int status = $lt_dlunknown;
11460
11461   if (self)
11462     {
11463       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11464       else
11465         {
11466           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11467           else puts (dlerror ());
11468         }
11469       /* dlclose (self); */
11470     }
11471   else
11472     puts (dlerror ());
11473
11474   return status;
11475 }
11476 _LT_EOF
11477   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11478   (eval $ac_link) 2>&5
11479   ac_status=$?
11480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11481   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11482     (./conftest; exit; ) >&5 2>/dev/null
11483     lt_status=$?
11484     case x$lt_status in
11485       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11486       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11487       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11488     esac
11489   else :
11490     # compilation failed
11491     lt_cv_dlopen_self=no
11492   fi
11493 fi
11494 rm -fr conftest*
11495
11496
11497 fi
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11499 $as_echo "$lt_cv_dlopen_self" >&6; }
11500
11501     if test "x$lt_cv_dlopen_self" = xyes; then
11502       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11503       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11504 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11505 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11506   $as_echo_n "(cached) " >&6
11507 else
11508           if test "$cross_compiling" = yes; then :
11509   lt_cv_dlopen_self_static=cross
11510 else
11511   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11512   lt_status=$lt_dlunknown
11513   cat > conftest.$ac_ext <<_LT_EOF
11514 #line 11514 "configure"
11515 #include "confdefs.h"
11516
11517 #if HAVE_DLFCN_H
11518 #include <dlfcn.h>
11519 #endif
11520
11521 #include <stdio.h>
11522
11523 #ifdef RTLD_GLOBAL
11524 #  define LT_DLGLOBAL           RTLD_GLOBAL
11525 #else
11526 #  ifdef DL_GLOBAL
11527 #    define LT_DLGLOBAL         DL_GLOBAL
11528 #  else
11529 #    define LT_DLGLOBAL         0
11530 #  endif
11531 #endif
11532
11533 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11534    find out it does not work in some platform. */
11535 #ifndef LT_DLLAZY_OR_NOW
11536 #  ifdef RTLD_LAZY
11537 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11538 #  else
11539 #    ifdef DL_LAZY
11540 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11541 #    else
11542 #      ifdef RTLD_NOW
11543 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11544 #      else
11545 #        ifdef DL_NOW
11546 #          define LT_DLLAZY_OR_NOW      DL_NOW
11547 #        else
11548 #          define LT_DLLAZY_OR_NOW      0
11549 #        endif
11550 #      endif
11551 #    endif
11552 #  endif
11553 #endif
11554
11555 /* When -fvisbility=hidden is used, assume the code has been annotated
11556    correspondingly for the symbols needed.  */
11557 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11558 void fnord () __attribute__((visibility("default")));
11559 #endif
11560
11561 void fnord () { int i=42; }
11562 int main ()
11563 {
11564   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11565   int status = $lt_dlunknown;
11566
11567   if (self)
11568     {
11569       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11570       else
11571         {
11572           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11573           else puts (dlerror ());
11574         }
11575       /* dlclose (self); */
11576     }
11577   else
11578     puts (dlerror ());
11579
11580   return status;
11581 }
11582 _LT_EOF
11583   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11584   (eval $ac_link) 2>&5
11585   ac_status=$?
11586   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11587   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11588     (./conftest; exit; ) >&5 2>/dev/null
11589     lt_status=$?
11590     case x$lt_status in
11591       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11592       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11593       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11594     esac
11595   else :
11596     # compilation failed
11597     lt_cv_dlopen_self_static=no
11598   fi
11599 fi
11600 rm -fr conftest*
11601
11602
11603 fi
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11605 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11606     fi
11607
11608     CPPFLAGS="$save_CPPFLAGS"
11609     LDFLAGS="$save_LDFLAGS"
11610     LIBS="$save_LIBS"
11611     ;;
11612   esac
11613
11614   case $lt_cv_dlopen_self in
11615   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11616   *) enable_dlopen_self=unknown ;;
11617   esac
11618
11619   case $lt_cv_dlopen_self_static in
11620   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11621   *) enable_dlopen_self_static=unknown ;;
11622   esac
11623 fi
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 striplib=
11642 old_striplib=
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11644 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11645 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11646   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11647   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649 $as_echo "yes" >&6; }
11650 else
11651 # FIXME - insert some real tests, host_os isn't really good enough
11652   case $host_os in
11653   darwin*)
11654     if test -n "$STRIP" ; then
11655       striplib="$STRIP -x"
11656       old_striplib="$STRIP -S"
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658 $as_echo "yes" >&6; }
11659     else
11660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661 $as_echo "no" >&6; }
11662     fi
11663     ;;
11664   *)
11665     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11667     ;;
11668   esac
11669 fi
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682   # Report which library types will actually be built
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11684 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11686 $as_echo "$can_build_shared" >&6; }
11687
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11689 $as_echo_n "checking whether to build shared libraries... " >&6; }
11690   test "$can_build_shared" = "no" && enable_shared=no
11691
11692   # On AIX, shared libraries and static libraries use the same namespace, and
11693   # are all built from PIC.
11694   case $host_os in
11695   aix3*)
11696     test "$enable_shared" = yes && enable_static=no
11697     if test -n "$RANLIB"; then
11698       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11699       postinstall_cmds='$RANLIB $lib'
11700     fi
11701     ;;
11702
11703   aix[4-9]*)
11704     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11705       test "$enable_shared" = yes && enable_static=no
11706     fi
11707     ;;
11708   esac
11709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11710 $as_echo "$enable_shared" >&6; }
11711
11712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11713 $as_echo_n "checking whether to build static libraries... " >&6; }
11714   # Make sure either enable_shared or enable_static is yes.
11715   test "$enable_shared" = yes || enable_static=yes
11716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11717 $as_echo "$enable_static" >&6; }
11718
11719
11720
11721
11722 fi
11723 ac_ext=c
11724 ac_cpp='$CPP $CPPFLAGS'
11725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11728
11729 CC="$lt_save_CC"
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743         ac_config_commands="$ac_config_commands libtool"
11744
11745
11746
11747
11748 # Only expand once:
11749
11750
11751
11752 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
11753
11754 # The tests for host and target for $enable_largefile require
11755 # canonical names.
11756
11757
11758
11759 # As the $enable_largefile decision depends on --enable-plugins we must set it
11760 # even in directories otherwise not depending on the $plugins option.
11761
11762
11763 # Check whether --enable-plugins was given.
11764 if test "${enable_plugins+set}" = set; then :
11765   enableval=$enable_plugins; case "${enableval}" in
11766   yes | "") plugins=yes ;;
11767   no) plugins=no ;;
11768   *) plugins=yes ;;
11769  esac
11770 else
11771   plugins=no
11772 fi
11773
11774
11775
11776 case "${host}" in
11777   sparc-*-solaris*|i[3-7]86-*-solaris*)
11778     # On native 32bit sparc and ia32 solaris, large-file and procfs support
11779     # are mutually exclusive; and without procfs support, the bfd/ elf module
11780     # cannot provide certain routines such as elfcore_write_prpsinfo
11781     # or elfcore_write_prstatus.  So unless the user explicitly requested
11782     # large-file support through the --enable-largefile switch, disable
11783     # large-file support in favor of procfs support.
11784     test "${target}" = "${host}" -a "x$plugins" = xno \
11785       && : ${enable_largefile="no"}
11786     ;;
11787 esac
11788
11789 # Check whether --enable-largefile was given.
11790 if test "${enable_largefile+set}" = set; then :
11791   enableval=$enable_largefile;
11792 fi
11793
11794 if test "$enable_largefile" != no; then
11795
11796   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11797 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11798 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11799   $as_echo_n "(cached) " >&6
11800 else
11801   ac_cv_sys_largefile_CC=no
11802      if test "$GCC" != yes; then
11803        ac_save_CC=$CC
11804        while :; do
11805          # IRIX 6.2 and later do not support large files by default,
11806          # so use the C compiler's -n32 option if that helps.
11807          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h.  */
11809 #include <sys/types.h>
11810  /* Check that off_t can represent 2**63 - 1 correctly.
11811     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11812     since some C++ compilers masquerading as C compilers
11813     incorrectly reject 9223372036854775807.  */
11814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11815   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11816                        && LARGE_OFF_T % 2147483647 == 1)
11817                       ? 1 : -1];
11818 int
11819 main ()
11820 {
11821
11822   ;
11823   return 0;
11824 }
11825 _ACEOF
11826          if ac_fn_c_try_compile "$LINENO"; then :
11827   break
11828 fi
11829 rm -f core conftest.err conftest.$ac_objext
11830          CC="$CC -n32"
11831          if ac_fn_c_try_compile "$LINENO"; then :
11832   ac_cv_sys_largefile_CC=' -n32'; break
11833 fi
11834 rm -f core conftest.err conftest.$ac_objext
11835          break
11836        done
11837        CC=$ac_save_CC
11838        rm -f conftest.$ac_ext
11839     fi
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11842 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
11843   if test "$ac_cv_sys_largefile_CC" != no; then
11844     CC=$CC$ac_cv_sys_largefile_CC
11845   fi
11846
11847   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11848 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11849 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   while :; do
11853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h.  */
11855 #include <sys/types.h>
11856  /* Check that off_t can represent 2**63 - 1 correctly.
11857     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11858     since some C++ compilers masquerading as C compilers
11859     incorrectly reject 9223372036854775807.  */
11860 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11861   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11862                        && LARGE_OFF_T % 2147483647 == 1)
11863                       ? 1 : -1];
11864 int
11865 main ()
11866 {
11867
11868   ;
11869   return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"; then :
11873   ac_cv_sys_file_offset_bits=no; break
11874 fi
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11877 /* end confdefs.h.  */
11878 #define _FILE_OFFSET_BITS 64
11879 #include <sys/types.h>
11880  /* Check that off_t can represent 2**63 - 1 correctly.
11881     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11882     since some C++ compilers masquerading as C compilers
11883     incorrectly reject 9223372036854775807.  */
11884 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11885   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11886                        && LARGE_OFF_T % 2147483647 == 1)
11887                       ? 1 : -1];
11888 int
11889 main ()
11890 {
11891
11892   ;
11893   return 0;
11894 }
11895 _ACEOF
11896 if ac_fn_c_try_compile "$LINENO"; then :
11897   ac_cv_sys_file_offset_bits=64; break
11898 fi
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900   ac_cv_sys_file_offset_bits=unknown
11901   break
11902 done
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11905 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11906 case $ac_cv_sys_file_offset_bits in #(
11907   no | unknown) ;;
11908   *)
11909 cat >>confdefs.h <<_ACEOF
11910 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11911 _ACEOF
11912 ;;
11913 esac
11914 rm -rf conftest*
11915   if test $ac_cv_sys_file_offset_bits = unknown; then
11916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11917 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11918 if test "${ac_cv_sys_large_files+set}" = set; then :
11919   $as_echo_n "(cached) " >&6
11920 else
11921   while :; do
11922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11923 /* end confdefs.h.  */
11924 #include <sys/types.h>
11925  /* Check that off_t can represent 2**63 - 1 correctly.
11926     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11927     since some C++ compilers masquerading as C compilers
11928     incorrectly reject 9223372036854775807.  */
11929 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11930   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11931                        && LARGE_OFF_T % 2147483647 == 1)
11932                       ? 1 : -1];
11933 int
11934 main ()
11935 {
11936
11937   ;
11938   return 0;
11939 }
11940 _ACEOF
11941 if ac_fn_c_try_compile "$LINENO"; then :
11942   ac_cv_sys_large_files=no; break
11943 fi
11944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h.  */
11947 #define _LARGE_FILES 1
11948 #include <sys/types.h>
11949  /* Check that off_t can represent 2**63 - 1 correctly.
11950     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11951     since some C++ compilers masquerading as C compilers
11952     incorrectly reject 9223372036854775807.  */
11953 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11954   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11955                        && LARGE_OFF_T % 2147483647 == 1)
11956                       ? 1 : -1];
11957 int
11958 main ()
11959 {
11960
11961   ;
11962   return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_compile "$LINENO"; then :
11966   ac_cv_sys_large_files=1; break
11967 fi
11968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11969   ac_cv_sys_large_files=unknown
11970   break
11971 done
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11974 $as_echo "$ac_cv_sys_large_files" >&6; }
11975 case $ac_cv_sys_large_files in #(
11976   no | unknown) ;;
11977   *)
11978 cat >>confdefs.h <<_ACEOF
11979 #define _LARGE_FILES $ac_cv_sys_large_files
11980 _ACEOF
11981 ;;
11982 esac
11983 rm -rf conftest*
11984   fi
11985 fi
11986
11987
11988
11989  if test "$plugins" = "yes"; then
11990   PLUGINS_TRUE=
11991   PLUGINS_FALSE='#'
11992 else
11993   PLUGINS_TRUE='#'
11994   PLUGINS_FALSE=
11995 fi
11996
11997
11998 if test "$plugins" = "yes"; then
11999   if test "$enable_dlopen" != "yes" ; then
12000     as_fn_error "
12001       Building BFD with plugin support requires a host that supports -ldl." "$LINENO" 5
12002   fi
12003   enable_targets="$enable_targets plugin"
12004 fi
12005
12006 # Check whether --enable-64-bit-bfd was given.
12007 if test "${enable_64_bit_bfd+set}" = set; then :
12008   enableval=$enable_64_bit_bfd; case "${enableval}" in
12009   yes)  want64=true  ;;
12010   no)   want64=false ;;
12011   *)    as_fn_error "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;;
12012 esac
12013 else
12014   want64=false
12015 fi
12016
12017 # Check whether --enable-targets was given.
12018 if test "${enable_targets+set}" = set; then :
12019   enableval=$enable_targets; case "${enableval}" in
12020   yes | "") as_fn_error "enable-targets option must specify target names or 'all'" "$LINENO" 5
12021             ;;
12022   no)       enable_targets= ;;
12023   *)        enable_targets=$enableval ;;
12024 esac
12025 fi
12026
12027
12028 # Check whether --with-mmap was given.
12029 if test "${with_mmap+set}" = set; then :
12030   withval=$with_mmap; case "${withval}" in
12031   yes)  want_mmap=true ;;
12032   no)   want_mmap=false ;;
12033   *)    as_fn_error "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;;
12034 esac
12035 else
12036   want_mmap=false
12037 fi
12038
12039 # Check whether --enable-secureplt was given.
12040 if test "${enable_secureplt+set}" = set; then :
12041   enableval=$enable_secureplt; case "${enableval}" in
12042   yes)  use_secureplt=true  ;;
12043   no)   use_secureplt=false ;;
12044   *)    as_fn_error "bad value ${enableval} for secureplt option" "$LINENO" 5 ;;
12045 esac
12046 else
12047   use_secureplt=false
12048 fi
12049 if test $use_secureplt = true; then
12050
12051 $as_echo "#define USE_SECUREPLT 1" >>confdefs.h
12052
12053 fi
12054
12055 # Check whether --enable-leading-mingw64-underscores was given.
12056 if test "${enable_leading_mingw64_underscores+set}" = set; then :
12057   enableval=$enable_leading_mingw64_underscores;
12058 fi
12059
12060 if  test x"$enable_leading_mingw64_underscores" = xyes ; then :
12061
12062 $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h
12063
12064 fi
12065
12066 DEBUGDIR=${libdir}/debug
12067
12068 # Check whether --with-separate-debug-dir was given.
12069 if test "${with_separate_debug_dir+set}" = set; then :
12070   withval=$with_separate_debug_dir; DEBUGDIR="${withval}"
12071 fi
12072
12073
12074
12075 # Check to see if we should allow the generation of
12076 # symbols with the ELF standard's STT_COMMON type.
12077 # Check whether --enable-elf-stt-common was given.
12078 if test "${enable_elf_stt_common+set}" = set; then :
12079   enableval=$enable_elf_stt_common; case "${enableval}" in
12080   yes) want_elf_stt_common=true ;;
12081   no)  want_elf_stt_common=false ;;
12082   *)   as_fn_error "bad value ${enableval} for ELF STT_COMMON option" "$LINENO" 5 ;;
12083  esac
12084 else
12085   # We have to choose a default behaviour.  For native builds we could
12086 # test whether the loader supports the STT_COMMON type, but that would
12087 # mean that built binaries could not be exported to older systems where
12088 # the loader does not support it. So by default we always choose to
12089 # disable this feature.
12090   want_elf_stt_common=false
12091 fi
12092 if test $want_elf_stt_common = true; then
12093
12094 $as_echo "#define USE_STT_COMMON 1" >>confdefs.h
12095
12096 fi
12097
12098
12099
12100 # Check whether --with-pkgversion was given.
12101 if test "${with_pkgversion+set}" = set; then :
12102   withval=$with_pkgversion; case "$withval" in
12103       yes) as_fn_error "package version not specified" "$LINENO" 5 ;;
12104       no)  PKGVERSION= ;;
12105       *)   PKGVERSION="($withval) " ;;
12106      esac
12107 else
12108   PKGVERSION="(GNU Binutils) "
12109
12110 fi
12111
12112
12113
12114
12115
12116 # Check whether --with-bugurl was given.
12117 if test "${with_bugurl+set}" = set; then :
12118   withval=$with_bugurl; case "$withval" in
12119       yes) as_fn_error "bug URL not specified" "$LINENO" 5 ;;
12120       no)  BUGURL=
12121            ;;
12122       *)   BUGURL="$withval"
12123            ;;
12124      esac
12125 else
12126   BUGURL="http://www.sourceware.org/bugzilla/"
12127
12128 fi
12129
12130   case ${BUGURL} in
12131   "")
12132     REPORT_BUGS_TO=
12133     REPORT_BUGS_TEXI=
12134     ;;
12135   *)
12136     REPORT_BUGS_TO="<$BUGURL>"
12137     REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
12138     ;;
12139   esac;
12140
12141
12142
12143
12144
12145 GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148 __GNUC__
12149 _ACEOF
12150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12151   $EGREP "^[0-3]$" >/dev/null 2>&1; then :
12152
12153 else
12154   GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12155 fi
12156 rm -f conftest*
12157
12158
12159 # Check whether --enable-werror was given.
12160 if test "${enable_werror+set}" = set; then :
12161   enableval=$enable_werror; case "${enableval}" in
12162      yes | y) ERROR_ON_WARNING="yes" ;;
12163      no | n)  ERROR_ON_WARNING="no" ;;
12164      *) as_fn_error "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
12165    esac
12166 fi
12167
12168
12169 # Disable -Wformat by default when using gcc on mingw
12170 case "${host}" in
12171   *-*-mingw32*)
12172     if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12173       GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
12174     fi
12175     ;;
12176   *) ;;
12177 esac
12178
12179 # Enable -Werror by default when using gcc
12180 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12181     ERROR_ON_WARNING=yes
12182 fi
12183
12184 NO_WERROR=
12185 if test "${ERROR_ON_WARNING}" = yes ; then
12186     GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
12187     NO_WERROR="-Wno-error"
12188 fi
12189
12190 if test "${GCC}" = yes ; then
12191   WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12192 fi
12193
12194 # Check whether --enable-build-warnings was given.
12195 if test "${enable_build_warnings+set}" = set; then :
12196   enableval=$enable_build_warnings; case "${enableval}" in
12197   yes)  WARN_CFLAGS="${GCC_WARN_CFLAGS}";;
12198   no)   if test "${GCC}" = yes ; then
12199           WARN_CFLAGS="-w"
12200         fi;;
12201   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12202         WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";;
12203   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
12204         WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";;
12205   *)    WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;;
12206 esac
12207 fi
12208
12209
12210 if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12211   echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12212 fi
12213
12214
12215
12216
12217
12218 ac_config_headers="$ac_config_headers config.h:config.in"
12219
12220
12221 if test -z "$target" ; then
12222     as_fn_error "Unrecognized target system type; please check config.sub." "$LINENO" 5
12223 fi
12224
12225
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12227 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12228     # Check whether --enable-maintainer-mode was given.
12229 if test "${enable_maintainer_mode+set}" = set; then :
12230   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12231 else
12232   USE_MAINTAINER_MODE=no
12233 fi
12234
12235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12236 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12237    if test $USE_MAINTAINER_MODE = yes; then
12238   MAINTAINER_MODE_TRUE=
12239   MAINTAINER_MODE_FALSE='#'
12240 else
12241   MAINTAINER_MODE_TRUE='#'
12242   MAINTAINER_MODE_FALSE=
12243 fi
12244
12245   MAINT=$MAINTAINER_MODE_TRUE
12246
12247
12248  if false; then
12249   GENINSRC_NEVER_TRUE=
12250   GENINSRC_NEVER_FALSE='#'
12251 else
12252   GENINSRC_NEVER_TRUE='#'
12253   GENINSRC_NEVER_FALSE=
12254 fi
12255
12256  case ${build_alias} in
12257   "") build_noncanonical=${build} ;;
12258   *) build_noncanonical=${build_alias} ;;
12259 esac
12260
12261  case ${host_alias} in
12262   "") host_noncanonical=${build_noncanonical} ;;
12263   *) host_noncanonical=${host_alias} ;;
12264 esac
12265
12266  case ${target_alias} in
12267   "") target_noncanonical=${host_noncanonical} ;;
12268   *) target_noncanonical=${target_alias} ;;
12269 esac
12270
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5
12272 $as_echo_n "checking whether to install libbfd... " >&6; }
12273   # Check whether --enable-install-libbfd was given.
12274 if test "${enable_install_libbfd+set}" = set; then :
12275   enableval=$enable_install_libbfd; install_libbfd_p=$enableval
12276 else
12277   if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then
12278         install_libbfd_p=yes
12279       else
12280         install_libbfd_p=no
12281       fi
12282 fi
12283
12284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5
12285 $as_echo "$install_libbfd_p" >&6; }
12286    if test $install_libbfd_p = yes; then
12287   INSTALL_LIBBFD_TRUE=
12288   INSTALL_LIBBFD_FALSE='#'
12289 else
12290   INSTALL_LIBBFD_TRUE='#'
12291   INSTALL_LIBBFD_FALSE=
12292 fi
12293
12294   # Need _noncanonical variables for this.
12295
12296
12297
12298
12299   # libbfd.a is a host library containing target dependent code
12300   bfdlibdir='$(libdir)'
12301   bfdincludedir='$(includedir)'
12302   if test "${host}" != "${target}"; then
12303     bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib'
12304     bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include'
12305   fi
12306
12307
12308
12309
12310
12311
12312
12313
12314 host64=false
12315 target64=false
12316 bfd_default_target_size=32
12317
12318 # host stuff:
12319
12320 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
12321 # If we haven't got the data from the intl directory,
12322 # assume NLS is disabled.
12323 USE_NLS=no
12324 LIBINTL=
12325 LIBINTL_DEP=
12326 INCINTL=
12327 XGETTEXT=
12328 GMSGFMT=
12329 POSUB=
12330
12331 if test -f  ../intl/config.intl; then
12332   .  ../intl/config.intl
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12335 $as_echo_n "checking whether NLS is requested... " >&6; }
12336 if test x"$USE_NLS" != xyes; then
12337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 $as_echo "no" >&6; }
12339 else
12340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12341 $as_echo "yes" >&6; }
12342
12343 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12344
12345
12346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12347 $as_echo_n "checking for catalogs to be installed... " >&6; }
12348   # Look for .po and .gmo files in the source directory.
12349   CATALOGS=
12350   XLINGUAS=
12351   for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
12352     # If there aren't any .gmo files the shell will give us the
12353     # literal string "../path/to/srcdir/po/*.gmo" which has to be
12354     # weeded out.
12355     case "$cat" in *\**)
12356       continue;;
12357     esac
12358     # The quadruple backslash is collapsed to a double backslash
12359     # by the backticks, then collapsed again by the double quotes,
12360     # leaving us with one backslash in the sed expression (right
12361     # before the dot that mustn't act as a wildcard).
12362     cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
12363     lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
12364     # The user is allowed to set LINGUAS to a list of languages to
12365     # install catalogs for.  If it's empty that means "all of them."
12366     if test "x$LINGUAS" = x; then
12367       CATALOGS="$CATALOGS $cat"
12368       XLINGUAS="$XLINGUAS $lang"
12369     else
12370       case "$LINGUAS" in *$lang*)
12371         CATALOGS="$CATALOGS $cat"
12372         XLINGUAS="$XLINGUAS $lang"
12373         ;;
12374       esac
12375     fi
12376   done
12377   LINGUAS="$XLINGUAS"
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12379 $as_echo "$LINGUAS" >&6; }
12380
12381
12382     DATADIRNAME=share
12383
12384   INSTOBJEXT=.mo
12385
12386   GENCAT=gencat
12387
12388   CATOBJEXT=.gmo
12389
12390 fi
12391
12392         MKINSTALLDIRS=
12393   if test -n "$ac_aux_dir"; then
12394     case "$ac_aux_dir" in
12395       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
12396       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
12397     esac
12398   fi
12399   if test -z "$MKINSTALLDIRS"; then
12400     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12401   fi
12402
12403
12404
12405   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12406 $as_echo_n "checking whether NLS is requested... " >&6; }
12407     # Check whether --enable-nls was given.
12408 if test "${enable_nls+set}" = set; then :
12409   enableval=$enable_nls; USE_NLS=$enableval
12410 else
12411   USE_NLS=yes
12412 fi
12413
12414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12415 $as_echo "$USE_NLS" >&6; }
12416
12417
12418
12419
12420
12421
12422 # Prepare PATH_SEPARATOR.
12423 # The user is always right.
12424 if test "${PATH_SEPARATOR+set}" != set; then
12425   echo "#! /bin/sh" >conf$$.sh
12426   echo  "exit 0"   >>conf$$.sh
12427   chmod +x conf$$.sh
12428   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12429     PATH_SEPARATOR=';'
12430   else
12431     PATH_SEPARATOR=:
12432   fi
12433   rm -f conf$$.sh
12434 fi
12435
12436 # Find out how to test for executable files. Don't use a zero-byte file,
12437 # as systems may use methods other than mode bits to determine executability.
12438 cat >conf$$.file <<_ASEOF
12439 #! /bin/sh
12440 exit 0
12441 _ASEOF
12442 chmod +x conf$$.file
12443 if test -x conf$$.file >/dev/null 2>&1; then
12444   ac_executable_p="test -x"
12445 else
12446   ac_executable_p="test -f"
12447 fi
12448 rm -f conf$$.file
12449
12450 # Extract the first word of "msgfmt", so it can be a program name with args.
12451 set dummy msgfmt; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_path_MSGFMT+set}" = set; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   case "$MSGFMT" in
12458   [\\/]* | ?:[\\/]*)
12459     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12460     ;;
12461   *)
12462     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12463     for ac_dir in $PATH; do
12464       IFS="$ac_save_IFS"
12465       test -z "$ac_dir" && ac_dir=.
12466       for ac_exec_ext in '' $ac_executable_extensions; do
12467         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12468           if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
12469      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12470             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12471             break 2
12472           fi
12473         fi
12474       done
12475     done
12476     IFS="$ac_save_IFS"
12477   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12478     ;;
12479 esac
12480 fi
12481 MSGFMT="$ac_cv_path_MSGFMT"
12482 if test "$MSGFMT" != ":"; then
12483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12484 $as_echo "$MSGFMT" >&6; }
12485 else
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12487 $as_echo "no" >&6; }
12488 fi
12489
12490   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12491 set dummy gmsgfmt; ac_word=$2
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493 $as_echo_n "checking for $ac_word... " >&6; }
12494 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12495   $as_echo_n "(cached) " >&6
12496 else
12497   case $GMSGFMT in
12498   [\\/]* | ?:[\\/]*)
12499   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12500   ;;
12501   *)
12502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503 for as_dir in $PATH
12504 do
12505   IFS=$as_save_IFS
12506   test -z "$as_dir" && as_dir=.
12507     for ac_exec_ext in '' $ac_executable_extensions; do
12508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12509     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12511     break 2
12512   fi
12513 done
12514   done
12515 IFS=$as_save_IFS
12516
12517   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12518   ;;
12519 esac
12520 fi
12521 GMSGFMT=$ac_cv_path_GMSGFMT
12522 if test -n "$GMSGFMT"; then
12523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12524 $as_echo "$GMSGFMT" >&6; }
12525 else
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12528 fi
12529
12530
12531
12532
12533 # Prepare PATH_SEPARATOR.
12534 # The user is always right.
12535 if test "${PATH_SEPARATOR+set}" != set; then
12536   echo "#! /bin/sh" >conf$$.sh
12537   echo  "exit 0"   >>conf$$.sh
12538   chmod +x conf$$.sh
12539   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12540     PATH_SEPARATOR=';'
12541   else
12542     PATH_SEPARATOR=:
12543   fi
12544   rm -f conf$$.sh
12545 fi
12546
12547 # Find out how to test for executable files. Don't use a zero-byte file,
12548 # as systems may use methods other than mode bits to determine executability.
12549 cat >conf$$.file <<_ASEOF
12550 #! /bin/sh
12551 exit 0
12552 _ASEOF
12553 chmod +x conf$$.file
12554 if test -x conf$$.file >/dev/null 2>&1; then
12555   ac_executable_p="test -x"
12556 else
12557   ac_executable_p="test -f"
12558 fi
12559 rm -f conf$$.file
12560
12561 # Extract the first word of "xgettext", so it can be a program name with args.
12562 set dummy xgettext; ac_word=$2
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12564 $as_echo_n "checking for $ac_word... " >&6; }
12565 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12566   $as_echo_n "(cached) " >&6
12567 else
12568   case "$XGETTEXT" in
12569   [\\/]* | ?:[\\/]*)
12570     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12571     ;;
12572   *)
12573     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12574     for ac_dir in $PATH; do
12575       IFS="$ac_save_IFS"
12576       test -z "$ac_dir" && ac_dir=.
12577       for ac_exec_ext in '' $ac_executable_extensions; do
12578         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12579           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12580      (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
12581             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12582             break 2
12583           fi
12584         fi
12585       done
12586     done
12587     IFS="$ac_save_IFS"
12588   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12589     ;;
12590 esac
12591 fi
12592 XGETTEXT="$ac_cv_path_XGETTEXT"
12593 if test "$XGETTEXT" != ":"; then
12594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12595 $as_echo "$XGETTEXT" >&6; }
12596 else
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598 $as_echo "no" >&6; }
12599 fi
12600
12601     rm -f messages.po
12602
12603
12604 # Prepare PATH_SEPARATOR.
12605 # The user is always right.
12606 if test "${PATH_SEPARATOR+set}" != set; then
12607   echo "#! /bin/sh" >conf$$.sh
12608   echo  "exit 0"   >>conf$$.sh
12609   chmod +x conf$$.sh
12610   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12611     PATH_SEPARATOR=';'
12612   else
12613     PATH_SEPARATOR=:
12614   fi
12615   rm -f conf$$.sh
12616 fi
12617
12618 # Find out how to test for executable files. Don't use a zero-byte file,
12619 # as systems may use methods other than mode bits to determine executability.
12620 cat >conf$$.file <<_ASEOF
12621 #! /bin/sh
12622 exit 0
12623 _ASEOF
12624 chmod +x conf$$.file
12625 if test -x conf$$.file >/dev/null 2>&1; then
12626   ac_executable_p="test -x"
12627 else
12628   ac_executable_p="test -f"
12629 fi
12630 rm -f conf$$.file
12631
12632 # Extract the first word of "msgmerge", so it can be a program name with args.
12633 set dummy msgmerge; ac_word=$2
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12635 $as_echo_n "checking for $ac_word... " >&6; }
12636 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
12637   $as_echo_n "(cached) " >&6
12638 else
12639   case "$MSGMERGE" in
12640   [\\/]* | ?:[\\/]*)
12641     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12642     ;;
12643   *)
12644     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12645     for ac_dir in $PATH; do
12646       IFS="$ac_save_IFS"
12647       test -z "$ac_dir" && ac_dir=.
12648       for ac_exec_ext in '' $ac_executable_extensions; do
12649         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12650           if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
12651             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12652             break 2
12653           fi
12654         fi
12655       done
12656     done
12657     IFS="$ac_save_IFS"
12658   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12659     ;;
12660 esac
12661 fi
12662 MSGMERGE="$ac_cv_path_MSGMERGE"
12663 if test "$MSGMERGE" != ":"; then
12664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12665 $as_echo "$MSGMERGE" >&6; }
12666 else
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668 $as_echo "no" >&6; }
12669 fi
12670
12671
12672       if test "$GMSGFMT" != ":"; then
12673             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
12674        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12675       : ;
12676     else
12677       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
12678       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
12679 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
12680       GMSGFMT=":"
12681     fi
12682   fi
12683
12684       if test "$XGETTEXT" != ":"; then
12685             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
12686        (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
12687       : ;
12688     else
12689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12690 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12691       XGETTEXT=":"
12692     fi
12693         rm -f messages.po
12694   fi
12695
12696   ac_config_commands="$ac_config_commands default-1"
12697
12698
12699
12700 # Permit host specific settings.
12701 . ${srcdir}/configure.host
12702
12703
12704
12705
12706 BFD_HOST_64BIT_LONG=0
12707 BFD_HOST_64BIT_LONG_LONG=0
12708 BFD_HOST_64_BIT_DEFINED=0
12709 BFD_HOST_64_BIT=
12710 BFD_HOST_U_64_BIT=
12711 BFD_HOSTPTR_T="unsigned long"
12712
12713 # The cast to long int works around a bug in the HP C Compiler
12714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12716 # This bug is HP SR number 8606223364.
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12718 $as_echo_n "checking size of long long... " >&6; }
12719 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12720   $as_echo_n "(cached) " >&6
12721 else
12722   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
12723
12724 else
12725   if test "$ac_cv_type_long_long" = yes; then
12726      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12728 { as_fn_set_status 77
12729 as_fn_error "cannot compute sizeof (long long)
12730 See \`config.log' for more details." "$LINENO" 5; }; }
12731    else
12732      ac_cv_sizeof_long_long=0
12733    fi
12734 fi
12735
12736 fi
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12738 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12739
12740
12741
12742 cat >>confdefs.h <<_ACEOF
12743 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12744 _ACEOF
12745
12746
12747 # The cast to long int works around a bug in the HP C Compiler
12748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12750 # This bug is HP SR number 8606223364.
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
12752 $as_echo_n "checking size of void *... " >&6; }
12753 if test "${ac_cv_sizeof_void_p+set}" = set; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
12757
12758 else
12759   if test "$ac_cv_type_void_p" = yes; then
12760      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12762 { as_fn_set_status 77
12763 as_fn_error "cannot compute sizeof (void *)
12764 See \`config.log' for more details." "$LINENO" 5; }; }
12765    else
12766      ac_cv_sizeof_void_p=0
12767    fi
12768 fi
12769
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
12772 $as_echo "$ac_cv_sizeof_void_p" >&6; }
12773
12774
12775
12776 cat >>confdefs.h <<_ACEOF
12777 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12778 _ACEOF
12779
12780
12781 # The cast to long int works around a bug in the HP C Compiler
12782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12784 # This bug is HP SR number 8606223364.
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12786 $as_echo_n "checking size of long... " >&6; }
12787 if test "${ac_cv_sizeof_long+set}" = set; then :
12788   $as_echo_n "(cached) " >&6
12789 else
12790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
12791
12792 else
12793   if test "$ac_cv_type_long" = yes; then
12794      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12796 { as_fn_set_status 77
12797 as_fn_error "cannot compute sizeof (long)
12798 See \`config.log' for more details." "$LINENO" 5; }; }
12799    else
12800      ac_cv_sizeof_long=0
12801    fi
12802 fi
12803
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12806 $as_echo "$ac_cv_sizeof_long" >&6; }
12807
12808
12809
12810 cat >>confdefs.h <<_ACEOF
12811 #define SIZEOF_LONG $ac_cv_sizeof_long
12812 _ACEOF
12813
12814
12815
12816 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12817   host64=true
12818 fi
12819
12820 if test "x${ac_cv_sizeof_long}" = "x8"; then
12821   BFD_HOST_64BIT_LONG=1
12822   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
12823   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
12824 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
12825   BFD_HOST_64BIT_LONG_LONG=1
12826   test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
12827   test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
12828   if test "x${ac_cv_sizeof_void_p}" = "x8"; then
12829     BFD_HOSTPTR_T="unsigned long long"
12830   fi
12831 fi
12832
12833 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
12834   BFD_HOST_64_BIT_DEFINED=1
12835   BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
12836   BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
12837 fi
12838
12839
12840
12841
12842
12843
12844
12845
12846 # Put a plausible default for CC_FOR_BUILD in Makefile.
12847 if test -z "$CC_FOR_BUILD"; then
12848   if test "x$cross_compiling" = "xno"; then
12849     CC_FOR_BUILD='$(CC)'
12850   else
12851     CC_FOR_BUILD=gcc
12852   fi
12853 fi
12854
12855 # Also set EXEEXT_FOR_BUILD.
12856 if test "x$cross_compiling" = "xno"; then
12857   EXEEXT_FOR_BUILD='$(EXEEXT)'
12858 else
12859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12860 $as_echo_n "checking for build system executable suffix... " >&6; }
12861 if test "${bfd_cv_build_exeext+set}" = set; then :
12862   $as_echo_n "(cached) " >&6
12863 else
12864   rm -f conftest*
12865      echo 'int main () { return 0; }' > conftest.c
12866      bfd_cv_build_exeext=
12867      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12868      for file in conftest.*; do
12869        case $file in
12870        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12871        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12872        esac
12873      done
12874      rm -f conftest*
12875      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12876 fi
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12878 $as_echo "$bfd_cv_build_exeext" >&6; }
12879   EXEEXT_FOR_BUILD=""
12880   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12881 fi
12882
12883
12884 for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h
12885 do :
12886   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12888 eval as_val=\$$as_ac_Header
12889    if test "x$as_val" = x""yes; then :
12890   cat >>confdefs.h <<_ACEOF
12891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12892 _ACEOF
12893
12894 fi
12895
12896 done
12897
12898 for ac_header in fcntl.h sys/file.h sys/time.h sys/stat.h
12899 do :
12900   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12901 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12902 eval as_val=\$$as_ac_Header
12903    if test "x$as_val" = x""yes; then :
12904   cat >>confdefs.h <<_ACEOF
12905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12906 _ACEOF
12907
12908 fi
12909
12910 done
12911
12912
12913
12914 inttype_headers=`echo inttypes.h sys/inttypes.h  | sed -e 's/,/ /g'`
12915
12916 acx_cv_header_stdint=stddef.h
12917 acx_cv_header_stdint_kind="(already complete)"
12918 for i in stdint.h $inttype_headers; do
12919   unset ac_cv_type_uintptr_t
12920   unset ac_cv_type_uintmax_t
12921   unset ac_cv_type_int_least32_t
12922   unset ac_cv_type_int_fast32_t
12923   unset ac_cv_type_uint64_t
12924   $as_echo_n "looking for a compliant stdint.h in $i, " >&6
12925   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
12926 #include <$i>
12927 "
12928 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
12929   acx_cv_header_stdint=$i
12930 else
12931   continue
12932 fi
12933
12934   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12935 #include <$i>
12936 "
12937 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12938
12939 else
12940   acx_cv_header_stdint_kind="(mostly complete)"
12941 fi
12942
12943   ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
12944 #include <$i>
12945 "
12946 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
12947
12948 else
12949   acx_cv_header_stdint_kind="(mostly complete)"
12950 fi
12951
12952   ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
12953 #include <$i>
12954 "
12955 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
12956
12957 else
12958   acx_cv_header_stdint_kind="(mostly complete)"
12959 fi
12960
12961   ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12962 #include <$i>
12963 "
12964 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12965
12966 else
12967   acx_cv_header_stdint_kind="(lacks uint64_t)"
12968 fi
12969
12970   break
12971 done
12972 if test "$acx_cv_header_stdint" = stddef.h; then
12973   acx_cv_header_stdint_kind="(lacks uintmax_t)"
12974   for i in stdint.h $inttype_headers; do
12975     unset ac_cv_type_uintptr_t
12976     unset ac_cv_type_uint32_t
12977     unset ac_cv_type_uint64_t
12978     $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
12979     ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
12980 #include <$i>
12981 "
12982 if test "x$ac_cv_type_uint32_t" = x""yes; then :
12983   acx_cv_header_stdint=$i
12984 else
12985   continue
12986 fi
12987
12988     ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
12989 #include <$i>
12990 "
12991 if test "x$ac_cv_type_uint64_t" = x""yes; then :
12992
12993 fi
12994
12995     ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
12996 #include <$i>
12997 "
12998 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
12999
13000 fi
13001
13002     break
13003   done
13004 fi
13005 if test "$acx_cv_header_stdint" = stddef.h; then
13006   acx_cv_header_stdint_kind="(u_intXX_t style)"
13007   for i in sys/types.h $inttype_headers; do
13008     unset ac_cv_type_u_int32_t
13009     unset ac_cv_type_u_int64_t
13010     $as_echo_n "looking for u_intXX_t types in $i, " >&6
13011     ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
13012 #include <$i>
13013 "
13014 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
13015   acx_cv_header_stdint=$i
13016 else
13017   continue
13018 fi
13019
13020     ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
13021 #include <$i>
13022 "
13023 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
13024
13025 fi
13026
13027     break
13028   done
13029 fi
13030 if test "$acx_cv_header_stdint" = stddef.h; then
13031   acx_cv_header_stdint_kind="(using manual detection)"
13032 fi
13033
13034 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
13035 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
13036 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
13037 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
13038 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
13039
13040 # ----------------- Summarize what we found so far
13041
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in bfd_stdint.h" >&5
13043 $as_echo_n "checking what to include in bfd_stdint.h... " >&6; }
13044
13045 case `$as_basename -- bfd_stdint.h ||
13046 $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
13047          Xbfd_stdint.h : 'X\(//\)$' \| \
13048          Xbfd_stdint.h : 'X\(/\)' \| . 2>/dev/null ||
13049 $as_echo X/bfd_stdint.h |
13050     sed '/^.*\/\([^/][^/]*\)\/*$/{
13051             s//\1/
13052             q
13053           }
13054           /^X\/\(\/\/\)$/{
13055             s//\1/
13056             q
13057           }
13058           /^X\/\(\/\).*/{
13059             s//\1/
13060             q
13061           }
13062           s/.*/./; q'` in
13063   stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13064 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13065   inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
13066 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
13067   *) ;;
13068 esac
13069
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
13071 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
13072
13073 # ----------------- done included file, check C basic types --------
13074
13075 # Lacking an uintptr_t?  Test size of void *
13076 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
13077   stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
13078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13080 # This bug is HP SR number 8606223364.
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
13082 $as_echo_n "checking size of void *... " >&6; }
13083 if test "${ac_cv_sizeof_void_p+set}" = set; then :
13084   $as_echo_n "(cached) " >&6
13085 else
13086   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
13087
13088 else
13089   if test "$ac_cv_type_void_p" = yes; then
13090      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13091 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13092 { as_fn_set_status 77
13093 as_fn_error "cannot compute sizeof (void *)
13094 See \`config.log' for more details." "$LINENO" 5; }; }
13095    else
13096      ac_cv_sizeof_void_p=0
13097    fi
13098 fi
13099
13100 fi
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
13102 $as_echo "$ac_cv_sizeof_void_p" >&6; }
13103
13104
13105
13106 cat >>confdefs.h <<_ACEOF
13107 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13108 _ACEOF
13109
13110  ;;
13111 esac
13112
13113 # Lacking an uint64_t?  Test size of long
13114 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
13115   stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
13116 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13117 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13118 # This bug is HP SR number 8606223364.
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13120 $as_echo_n "checking size of long... " >&6; }
13121 if test "${ac_cv_sizeof_long+set}" = set; then :
13122   $as_echo_n "(cached) " >&6
13123 else
13124   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13125
13126 else
13127   if test "$ac_cv_type_long" = yes; then
13128      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13130 { as_fn_set_status 77
13131 as_fn_error "cannot compute sizeof (long)
13132 See \`config.log' for more details." "$LINENO" 5; }; }
13133    else
13134      ac_cv_sizeof_long=0
13135    fi
13136 fi
13137
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13140 $as_echo "$ac_cv_sizeof_long" >&6; }
13141
13142
13143
13144 cat >>confdefs.h <<_ACEOF
13145 #define SIZEOF_LONG $ac_cv_sizeof_long
13146 _ACEOF
13147
13148  ;;
13149 esac
13150
13151 if test $acx_cv_header_stdint = stddef.h; then
13152   # Lacking a good header?  Test size of everything and deduce all types.
13153   # The cast to long int works around a bug in the HP C Compiler
13154 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13155 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13156 # This bug is HP SR number 8606223364.
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13158 $as_echo_n "checking size of int... " >&6; }
13159 if test "${ac_cv_sizeof_int+set}" = set; then :
13160   $as_echo_n "(cached) " >&6
13161 else
13162   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13163
13164 else
13165   if test "$ac_cv_type_int" = yes; then
13166      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13168 { as_fn_set_status 77
13169 as_fn_error "cannot compute sizeof (int)
13170 See \`config.log' for more details." "$LINENO" 5; }; }
13171    else
13172      ac_cv_sizeof_int=0
13173    fi
13174 fi
13175
13176 fi
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13178 $as_echo "$ac_cv_sizeof_int" >&6; }
13179
13180
13181
13182 cat >>confdefs.h <<_ACEOF
13183 #define SIZEOF_INT $ac_cv_sizeof_int
13184 _ACEOF
13185
13186
13187   # The cast to long int works around a bug in the HP C Compiler
13188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13190 # This bug is HP SR number 8606223364.
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13192 $as_echo_n "checking size of short... " >&6; }
13193 if test "${ac_cv_sizeof_short+set}" = set; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13197
13198 else
13199   if test "$ac_cv_type_short" = yes; then
13200      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13202 { as_fn_set_status 77
13203 as_fn_error "cannot compute sizeof (short)
13204 See \`config.log' for more details." "$LINENO" 5; }; }
13205    else
13206      ac_cv_sizeof_short=0
13207    fi
13208 fi
13209
13210 fi
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13212 $as_echo "$ac_cv_sizeof_short" >&6; }
13213
13214
13215
13216 cat >>confdefs.h <<_ACEOF
13217 #define SIZEOF_SHORT $ac_cv_sizeof_short
13218 _ACEOF
13219
13220
13221   # The cast to long int works around a bug in the HP C Compiler
13222 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13223 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13224 # This bug is HP SR number 8606223364.
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13226 $as_echo_n "checking size of char... " >&6; }
13227 if test "${ac_cv_sizeof_char+set}" = set; then :
13228   $as_echo_n "(cached) " >&6
13229 else
13230   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13231
13232 else
13233   if test "$ac_cv_type_char" = yes; then
13234      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13235 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 { as_fn_set_status 77
13237 as_fn_error "cannot compute sizeof (char)
13238 See \`config.log' for more details." "$LINENO" 5; }; }
13239    else
13240      ac_cv_sizeof_char=0
13241    fi
13242 fi
13243
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13246 $as_echo "$ac_cv_sizeof_char" >&6; }
13247
13248
13249
13250 cat >>confdefs.h <<_ACEOF
13251 #define SIZEOF_CHAR $ac_cv_sizeof_char
13252 _ACEOF
13253
13254
13255
13256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
13257 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
13258   case "$ac_cv_sizeof_char" in
13259     1) acx_cv_type_int8_t=char ;;
13260     *) { as_fn_set_status please report a bug
13261 as_fn_error "no 8-bit type" "$LINENO" 5; }
13262   esac
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
13264 $as_echo "$acx_cv_type_int8_t" >&6; }
13265
13266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
13267 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
13268   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
13269     2:*) acx_cv_type_int16_t=int ;;
13270     *:2) acx_cv_type_int16_t=short ;;
13271     *) { as_fn_set_status please report a bug
13272 as_fn_error "no 16-bit type" "$LINENO" 5; }
13273   esac
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
13275 $as_echo "$acx_cv_type_int16_t" >&6; }
13276
13277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
13278 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
13279   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
13280     4:*) acx_cv_type_int32_t=int ;;
13281     *:4) acx_cv_type_int32_t=long ;;
13282     *) { as_fn_set_status please report a bug
13283 as_fn_error "no 32-bit type" "$LINENO" 5; }
13284   esac
13285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
13286 $as_echo "$acx_cv_type_int32_t" >&6; }
13287 fi
13288
13289 # These tests are here to make the output prettier
13290
13291 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
13292   case "$ac_cv_sizeof_long" in
13293     8) acx_cv_type_int64_t=long ;;
13294   esac
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
13296 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
13297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
13298 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
13299 fi
13300
13301 # Now we can use the above types
13302
13303 if test "$ac_cv_type_uintptr_t" != yes; then
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
13305 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
13306   case $ac_cv_sizeof_void_p in
13307     2) acx_cv_type_intptr_t=int16_t ;;
13308     4) acx_cv_type_intptr_t=int32_t ;;
13309     8) acx_cv_type_intptr_t=int64_t ;;
13310     *) { as_fn_set_status please report a bug
13311 as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
13312   esac
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
13314 $as_echo "$acx_cv_type_intptr_t" >&6; }
13315 fi
13316
13317 # ----------------- done all checks, emit header -------------
13318 ac_config_commands="$ac_config_commands bfd_stdint.h"
13319
13320
13321
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13323 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13324 if test "${ac_cv_header_time+set}" = set; then :
13325   $as_echo_n "(cached) " >&6
13326 else
13327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13328 /* end confdefs.h.  */
13329 #include <sys/types.h>
13330 #include <sys/time.h>
13331 #include <time.h>
13332
13333 int
13334 main ()
13335 {
13336 if ((struct tm *) 0)
13337 return 0;
13338   ;
13339   return 0;
13340 }
13341 _ACEOF
13342 if ac_fn_c_try_compile "$LINENO"; then :
13343   ac_cv_header_time=yes
13344 else
13345   ac_cv_header_time=no
13346 fi
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 fi
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13350 $as_echo "$ac_cv_header_time" >&6; }
13351 if test $ac_cv_header_time = yes; then
13352
13353 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13354
13355 fi
13356
13357 ac_header_dirent=no
13358 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13359   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13361 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13363   $as_echo_n "(cached) " >&6
13364 else
13365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h.  */
13367 #include <sys/types.h>
13368 #include <$ac_hdr>
13369
13370 int
13371 main ()
13372 {
13373 if ((DIR *) 0)
13374 return 0;
13375   ;
13376   return 0;
13377 }
13378 _ACEOF
13379 if ac_fn_c_try_compile "$LINENO"; then :
13380   eval "$as_ac_Header=yes"
13381 else
13382   eval "$as_ac_Header=no"
13383 fi
13384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13385 fi
13386 eval ac_res=\$$as_ac_Header
13387                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13388 $as_echo "$ac_res" >&6; }
13389 eval as_val=\$$as_ac_Header
13390    if test "x$as_val" = x""yes; then :
13391   cat >>confdefs.h <<_ACEOF
13392 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13393 _ACEOF
13394
13395 ac_header_dirent=$ac_hdr; break
13396 fi
13397
13398 done
13399 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13400 if test $ac_header_dirent = dirent.h; then
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13402 $as_echo_n "checking for library containing opendir... " >&6; }
13403 if test "${ac_cv_search_opendir+set}" = set; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406   ac_func_search_save_LIBS=$LIBS
13407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408 /* end confdefs.h.  */
13409
13410 /* Override any GCC internal prototype to avoid an error.
13411    Use char because int might match the return type of a GCC
13412    builtin and then its argument prototype would still apply.  */
13413 #ifdef __cplusplus
13414 extern "C"
13415 #endif
13416 char opendir ();
13417 int
13418 main ()
13419 {
13420 return opendir ();
13421   ;
13422   return 0;
13423 }
13424 _ACEOF
13425 for ac_lib in '' dir; do
13426   if test -z "$ac_lib"; then
13427     ac_res="none required"
13428   else
13429     ac_res=-l$ac_lib
13430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13431   fi
13432   if ac_fn_c_try_link "$LINENO"; then :
13433   ac_cv_search_opendir=$ac_res
13434 fi
13435 rm -f core conftest.err conftest.$ac_objext \
13436     conftest$ac_exeext
13437   if test "${ac_cv_search_opendir+set}" = set; then :
13438   break
13439 fi
13440 done
13441 if test "${ac_cv_search_opendir+set}" = set; then :
13442
13443 else
13444   ac_cv_search_opendir=no
13445 fi
13446 rm conftest.$ac_ext
13447 LIBS=$ac_func_search_save_LIBS
13448 fi
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13450 $as_echo "$ac_cv_search_opendir" >&6; }
13451 ac_res=$ac_cv_search_opendir
13452 if test "$ac_res" != no; then :
13453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13454
13455 fi
13456
13457 else
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13459 $as_echo_n "checking for library containing opendir... " >&6; }
13460 if test "${ac_cv_search_opendir+set}" = set; then :
13461   $as_echo_n "(cached) " >&6
13462 else
13463   ac_func_search_save_LIBS=$LIBS
13464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13465 /* end confdefs.h.  */
13466
13467 /* Override any GCC internal prototype to avoid an error.
13468    Use char because int might match the return type of a GCC
13469    builtin and then its argument prototype would still apply.  */
13470 #ifdef __cplusplus
13471 extern "C"
13472 #endif
13473 char opendir ();
13474 int
13475 main ()
13476 {
13477 return opendir ();
13478   ;
13479   return 0;
13480 }
13481 _ACEOF
13482 for ac_lib in '' x; do
13483   if test -z "$ac_lib"; then
13484     ac_res="none required"
13485   else
13486     ac_res=-l$ac_lib
13487     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13488   fi
13489   if ac_fn_c_try_link "$LINENO"; then :
13490   ac_cv_search_opendir=$ac_res
13491 fi
13492 rm -f core conftest.err conftest.$ac_objext \
13493     conftest$ac_exeext
13494   if test "${ac_cv_search_opendir+set}" = set; then :
13495   break
13496 fi
13497 done
13498 if test "${ac_cv_search_opendir+set}" = set; then :
13499
13500 else
13501   ac_cv_search_opendir=no
13502 fi
13503 rm conftest.$ac_ext
13504 LIBS=$ac_func_search_save_LIBS
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13507 $as_echo "$ac_cv_search_opendir" >&6; }
13508 ac_res=$ac_cv_search_opendir
13509 if test "$ac_res" != no; then :
13510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13511
13512 fi
13513
13514 fi
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
13517 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
13518 if test "${gcc_cv_header_string+set}" = set; then :
13519   $as_echo_n "(cached) " >&6
13520 else
13521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13522 /* end confdefs.h.  */
13523 #include <string.h>
13524 #include <strings.h>
13525 int
13526 main ()
13527 {
13528
13529   ;
13530   return 0;
13531 }
13532 _ACEOF
13533 if ac_fn_c_try_compile "$LINENO"; then :
13534   gcc_cv_header_string=yes
13535 else
13536   gcc_cv_header_string=no
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
13541 $as_echo "$gcc_cv_header_string" >&6; }
13542 if test $gcc_cv_header_string = yes; then
13543
13544 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
13545
13546 fi
13547
13548 for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno
13549 do :
13550   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13551 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13552 eval as_val=\$$as_ac_var
13553    if test "x$as_val" = x""yes; then :
13554   cat >>confdefs.h <<_ACEOF
13555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13556 _ACEOF
13557
13558 fi
13559 done
13560
13561 for ac_func in strtoull
13562 do :
13563   ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13564 if test "x$ac_cv_func_strtoull" = x""yes; then :
13565   cat >>confdefs.h <<_ACEOF
13566 #define HAVE_STRTOULL 1
13567 _ACEOF
13568
13569 fi
13570 done
13571
13572
13573 ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default"
13574 if test "x$ac_cv_have_decl_basename" = x""yes; then :
13575   ac_have_decl=1
13576 else
13577   ac_have_decl=0
13578 fi
13579
13580 cat >>confdefs.h <<_ACEOF
13581 #define HAVE_DECL_BASENAME $ac_have_decl
13582 _ACEOF
13583
13584 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
13585 if test "x$ac_cv_have_decl_ftello" = x""yes; then :
13586   ac_have_decl=1
13587 else
13588   ac_have_decl=0
13589 fi
13590
13591 cat >>confdefs.h <<_ACEOF
13592 #define HAVE_DECL_FTELLO $ac_have_decl
13593 _ACEOF
13594
13595 ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default"
13596 if test "x$ac_cv_have_decl_ftello64" = x""yes; then :
13597   ac_have_decl=1
13598 else
13599   ac_have_decl=0
13600 fi
13601
13602 cat >>confdefs.h <<_ACEOF
13603 #define HAVE_DECL_FTELLO64 $ac_have_decl
13604 _ACEOF
13605
13606 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
13607 if test "x$ac_cv_have_decl_fseeko" = x""yes; then :
13608   ac_have_decl=1
13609 else
13610   ac_have_decl=0
13611 fi
13612
13613 cat >>confdefs.h <<_ACEOF
13614 #define HAVE_DECL_FSEEKO $ac_have_decl
13615 _ACEOF
13616
13617 ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default"
13618 if test "x$ac_cv_have_decl_fseeko64" = x""yes; then :
13619   ac_have_decl=1
13620 else
13621   ac_have_decl=0
13622 fi
13623
13624 cat >>confdefs.h <<_ACEOF
13625 #define HAVE_DECL_FSEEKO64 $ac_have_decl
13626 _ACEOF
13627
13628
13629
13630 case "${host}" in
13631 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
13632
13633 $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
13634  ;;
13635 esac
13636
13637 ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default"
13638 if test "x$ac_cv_have_decl_ffs" = x""yes; then :
13639   ac_have_decl=1
13640 else
13641   ac_have_decl=0
13642 fi
13643
13644 cat >>confdefs.h <<_ACEOF
13645 #define HAVE_DECL_FFS $ac_have_decl
13646 _ACEOF
13647
13648 ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
13649 if test "x$ac_cv_have_decl_free" = x""yes; then :
13650   ac_have_decl=1
13651 else
13652   ac_have_decl=0
13653 fi
13654
13655 cat >>confdefs.h <<_ACEOF
13656 #define HAVE_DECL_FREE $ac_have_decl
13657 _ACEOF
13658
13659 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13660 if test "x$ac_cv_have_decl_getenv" = x""yes; then :
13661   ac_have_decl=1
13662 else
13663   ac_have_decl=0
13664 fi
13665
13666 cat >>confdefs.h <<_ACEOF
13667 #define HAVE_DECL_GETENV $ac_have_decl
13668 _ACEOF
13669
13670 ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
13671 if test "x$ac_cv_have_decl_malloc" = x""yes; then :
13672   ac_have_decl=1
13673 else
13674   ac_have_decl=0
13675 fi
13676
13677 cat >>confdefs.h <<_ACEOF
13678 #define HAVE_DECL_MALLOC $ac_have_decl
13679 _ACEOF
13680
13681 ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
13682 if test "x$ac_cv_have_decl_realloc" = x""yes; then :
13683   ac_have_decl=1
13684 else
13685   ac_have_decl=0
13686 fi
13687
13688 cat >>confdefs.h <<_ACEOF
13689 #define HAVE_DECL_REALLOC $ac_have_decl
13690 _ACEOF
13691
13692 ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
13693 if test "x$ac_cv_have_decl_stpcpy" = x""yes; then :
13694   ac_have_decl=1
13695 else
13696   ac_have_decl=0
13697 fi
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define HAVE_DECL_STPCPY $ac_have_decl
13701 _ACEOF
13702
13703 ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
13704 if test "x$ac_cv_have_decl_strstr" = x""yes; then :
13705   ac_have_decl=1
13706 else
13707   ac_have_decl=0
13708 fi
13709
13710 cat >>confdefs.h <<_ACEOF
13711 #define HAVE_DECL_STRSTR $ac_have_decl
13712 _ACEOF
13713
13714 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
13715 if test "x$ac_cv_have_decl_snprintf" = x""yes; then :
13716   ac_have_decl=1
13717 else
13718   ac_have_decl=0
13719 fi
13720
13721 cat >>confdefs.h <<_ACEOF
13722 #define HAVE_DECL_SNPRINTF $ac_have_decl
13723 _ACEOF
13724
13725 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
13726 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
13727   ac_have_decl=1
13728 else
13729   ac_have_decl=0
13730 fi
13731
13732 cat >>confdefs.h <<_ACEOF
13733 #define HAVE_DECL_VSNPRINTF $ac_have_decl
13734 _ACEOF
13735
13736
13737 # Link in zlib if we can.  This allows us to read compressed debug sections.
13738 # This is used only by compress.c.
13739
13740   # See if the user specified whether he wants zlib support or not.
13741
13742 # Check whether --with-zlib was given.
13743 if test "${with_zlib+set}" = set; then :
13744   withval=$with_zlib;
13745 else
13746   with_zlib=auto
13747 fi
13748
13749
13750   if test "$with_zlib" != "no"; then
13751     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
13752 $as_echo_n "checking for library containing zlibVersion... " >&6; }
13753 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13754   $as_echo_n "(cached) " >&6
13755 else
13756   ac_func_search_save_LIBS=$LIBS
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759
13760 /* Override any GCC internal prototype to avoid an error.
13761    Use char because int might match the return type of a GCC
13762    builtin and then its argument prototype would still apply.  */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char zlibVersion ();
13767 int
13768 main ()
13769 {
13770 return zlibVersion ();
13771   ;
13772   return 0;
13773 }
13774 _ACEOF
13775 for ac_lib in '' z; do
13776   if test -z "$ac_lib"; then
13777     ac_res="none required"
13778   else
13779     ac_res=-l$ac_lib
13780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13781   fi
13782   if ac_fn_c_try_link "$LINENO"; then :
13783   ac_cv_search_zlibVersion=$ac_res
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext \
13786     conftest$ac_exeext
13787   if test "${ac_cv_search_zlibVersion+set}" = set; then :
13788   break
13789 fi
13790 done
13791 if test "${ac_cv_search_zlibVersion+set}" = set; then :
13792
13793 else
13794   ac_cv_search_zlibVersion=no
13795 fi
13796 rm conftest.$ac_ext
13797 LIBS=$ac_func_search_save_LIBS
13798 fi
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
13800 $as_echo "$ac_cv_search_zlibVersion" >&6; }
13801 ac_res=$ac_cv_search_zlibVersion
13802 if test "$ac_res" != no; then :
13803   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13804   for ac_header in zlib.h
13805 do :
13806   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13807 if test "x$ac_cv_header_zlib_h" = x""yes; then :
13808   cat >>confdefs.h <<_ACEOF
13809 #define HAVE_ZLIB_H 1
13810 _ACEOF
13811
13812 fi
13813
13814 done
13815
13816 fi
13817
13818     if test "$with_zlib" = "yes" -a "$ac_cv_header_zlib_h" != "yes"; then
13819       as_fn_error "zlib (libz) library was explicitly requested but not found" "$LINENO" 5
13820     fi
13821   fi
13822
13823
13824 # If we are configured native, pick a core file support file.
13825 COREFILE=
13826 COREFLAG=
13827 CORE_HEADER=
13828 TRAD_HEADER=
13829 if test "${target}" = "${host}"; then
13830   case "${host}" in
13831   alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
13832         COREFILE=''
13833         ;;
13834   alpha*-*-linux-*)
13835         COREFILE=trad-core.lo
13836         TRAD_HEADER='"hosts/alphalinux.h"'
13837         ;;
13838   alpha*-*-netbsd* | alpha*-*-openbsd*)
13839         COREFILE=netbsd-core.lo
13840         ;;
13841   alpha*-*-*)           COREFILE=osf-core.lo ;;
13842   arm-*-freebsd* | arm-*-kfreebsd*-gnu)
13843                         COREFILE='' ;;
13844   arm-*-netbsd* | arm-*-openbsd*)
13845         COREFILE=netbsd-core.lo
13846         ;;
13847   arm-*-riscix)         COREFILE=trad-core.lo ;;
13848   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
13849   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
13850   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
13851   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
13852                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
13853   hppa*-*-netbsd* | hppa*-*-openbsd*)
13854         COREFILE=netbsd-core.lo
13855         ;;
13856
13857   i370-*-*)
13858         COREFILE=trad-core.lo
13859         TRAD_HEADER='"hosts/i370linux.h"'
13860         ;;
13861
13862   i[3-7]86-sequent-bsd*)
13863         COREFILE=trad-core.lo
13864         TRAD_HEADER='"hosts/symmetry.h"'
13865         ;;
13866   i[3-7]86-sequent-sysv4*) ;;
13867   i[3-7]86-sequent-sysv*)
13868         COREFILE=trad-core.lo
13869         TRAD_HEADER='"hosts/symmetry.h"'
13870         ;;
13871   i[3-7]86-*-bsdi)
13872         COREFILE=
13873         ;;
13874   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*)
13875         COREFILE=trad-core.lo
13876         TRAD_HEADER='"hosts/i386bsd.h"'
13877         ;;
13878   i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
13879         COREFILE=''
13880         TRAD_HEADER='"hosts/i386bsd.h"'
13881         ;;
13882   i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
13883         COREFILE=netbsd-core.lo
13884         ;;
13885   i[3-7]86-esix-sysv3*)
13886         COREFILE=trad-core.lo
13887         TRAD_HEADER='"hosts/esix.h"'
13888         ;;
13889   i[3-7]86-*-sco3.2v5*)
13890         COREFILE=sco5-core.lo
13891         ;;
13892   i[3-7]86-*-sco* | i[3-7]86-*-isc*)
13893         COREFILE=trad-core.lo
13894         TRAD_HEADER='"hosts/i386sco.h"'
13895         ;;
13896   i[3-7]86-*-mach3*)
13897         COREFILE=trad-core.lo
13898         TRAD_HEADER='"hosts/i386mach3.h"'
13899         ;;
13900   i[3-7]86-*-linux-*)
13901         COREFILE=trad-core.lo
13902         TRAD_HEADER='"hosts/i386linux.h"'
13903         ;;
13904   i[3-7]86-*-isc*)      COREFILE=trad-core.lo ;;
13905   i[3-7]86-*-aix*)      COREFILE=aix386-core.lo ;;
13906   i860-*-mach3* | i860-*-osf1*)
13907         COREFILE=trad-core.lo
13908         TRAD_HEADER='"hosts/i860mach3.h"'
13909         ;;
13910   mips-*-netbsd* | mips*-*-openbsd*)
13911         COREFILE=netbsd-core.lo
13912         ;;
13913   mips-dec-*)
13914         COREFILE=trad-core.lo
13915         TRAD_HEADER='"hosts/decstation.h"'
13916         ;;
13917   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
13918   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
13919   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
13920   mips-*-sysv4*)        ;;
13921   mips-*-sysv* | mips-*-riscos*)
13922         COREFILE=trad-core.lo
13923         TRAD_HEADER='"hosts/riscos.h"'
13924         ;;
13925   mips-sony-bsd*)
13926         COREFILE=trad-core.lo
13927         TRAD_HEADER='"hosts/news-mips.h"'
13928         ;;
13929   m68*-bull*-sysv*)
13930         COREFILE=trad-core.lo
13931         TRAD_HEADER='"hosts/dpx2.h"'
13932         ;;
13933   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
13934   m68*-hp-bsd*)
13935         COREFILE=trad-core.lo
13936         TRAD_HEADER='"hosts/hp300bsd.h"'
13937         ;;
13938   m68*-*-linux-*)
13939         COREFILE=trad-core.lo
13940         TRAD_HEADER='"hosts/m68klinux.h"'
13941         ;;
13942   m68*-motorola-sysv*)
13943         COREFILE=trad-core.lo
13944         TRAD_HEADER='"hosts/delta68.h"'
13945         ;;
13946   m68*-sony-*)
13947         COREFILE=trad-core.lo
13948         TRAD_HEADER='"hosts/news.h"'
13949         ;;
13950   m68*-*-netbsd* | m68*-*-openbsd*)
13951         COREFILE=netbsd-core.lo
13952         ;;
13953   m68*-apple-aux*)
13954         COREFILE=trad-core.lo
13955         TRAD_HEADER='"hosts/m68kaux.h"'
13956         ;;
13957   m88*-*-sysv4*)
13958         ;;
13959   m88*-motorola-sysv*)
13960         COREFILE=ptrace-core.lo
13961         ;;
13962   m88*-*-mach3*)
13963         COREFILE=trad-core.lo
13964         TRAD_HEADER='"hosts/m88kmach3.h"'
13965         ;;
13966   m88*-*-openbsd*)
13967         COREFILE=netbsd-core.lo
13968         ;;
13969   ns32k-pc532-mach)
13970         COREFILE=trad-core.lo
13971         TRAD_HEADER='"hosts/pc532mach.h"'
13972         ;;
13973   ns32k-*-netbsd* | ns32k-*-openbsd*)
13974         COREFILE=netbsd-core.lo
13975         ;;
13976   rs6000-*-lynx*)
13977         COREFILE=lynx-core.lo
13978         ;;
13979   rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
13980         COREFILE=rs6000-core.lo
13981         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
13982         ;;
13983   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
13984         COREFILE=rs6000-core.lo
13985         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
13986         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
13987         # have c_impl as a member of struct core_dumpx
13988         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5
13989 $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; }
13990         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h.  */
13992 #include <core.h>
13993 int
13994 main ()
13995 {
13996 struct core_dumpx c; c.c_impl = 0;
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 if ac_fn_c_try_compile "$LINENO"; then :
14002
14003 $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h
14004
14005           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14006 $as_echo "yes" >&6; }
14007 else
14008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012         ;;
14013   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
14014   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
14015   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
14016   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
14017   powerpc-*-beos*)      ;;
14018   powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
14019                         COREFILE='' ;;
14020   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
14021   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
14022   s390*-*-*)            COREFILE=trad-core.lo ;;
14023   sh*-*-netbsd* | sh*-*-openbsd*)
14024         COREFILE=netbsd-core.lo
14025         ;;
14026   sparc-*-netbsd* | sparc*-*-openbsd*)
14027         COREFILE=netbsd-core.lo
14028         ;;
14029   tahoe-*-*)
14030         COREFILE=trad-core.lo
14031         TRAD_HEADER='"hosts/tahoe.h"'
14032         ;;
14033   vax-*-netbsd* | vax-*-openbsd*)
14034         COREFILE=netbsd-core.lo
14035         ;;
14036   vax-*-ultrix2*)
14037         COREFILE=trad-core.lo
14038         TRAD_HEADER='"hosts/vaxult2.h"'
14039         ;;
14040   vax-*-ultrix*)
14041         COREFILE=trad-core.lo
14042         TRAD_HEADER='"hosts/vaxult2.h"'
14043         ;;
14044   vax-*-linux-*)
14045         COREFILE=trad-core.lo
14046         TRAD_HEADER='"hosts/vaxlinux.h"'
14047         ;;
14048   vax-*-*)
14049         COREFILE=trad-core.lo
14050         TRAD_HEADER='"hosts/vaxbsd.h"'
14051         ;;
14052   x86_64-*-linux*)
14053         CORE_HEADER='"hosts/x86-64linux.h"'
14054         ;;
14055   x86_64-*-netbsd* | x86_64-*-openbsd*)
14056         COREFILE=netbsd-core.lo
14057         ;;
14058   esac
14059
14060   case "$COREFILE" in
14061   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
14062   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
14063   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
14064   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
14065   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
14066   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
14067   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
14068   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
14069   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
14070   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
14071   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
14072   esac
14073
14074   # ELF corefile support has several flavors, but all of
14075   # them use something called <sys/procfs.h>
14076   for ac_header in sys/procfs.h
14077 do :
14078   ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default"
14079 if test "x$ac_cv_header_sys_procfs_h" = x""yes; then :
14080   cat >>confdefs.h <<_ACEOF
14081 #define HAVE_SYS_PROCFS_H 1
14082 _ACEOF
14083
14084 fi
14085
14086 done
14087
14088   if test "$ac_cv_header_sys_procfs_h" = yes; then
14089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5
14090 $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; }
14091  if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then :
14092   $as_echo_n "(cached) " >&6
14093 else
14094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h.  */
14096
14097 #define _SYSCALL32
14098 /* Needed for new procfs interface on sparc-solaris.  */
14099 #define _STRUCTURED_PROC 1
14100 #include <sys/procfs.h>
14101 int
14102 main ()
14103 {
14104 prstatus_t avar
14105   ;
14106   return 0;
14107 }
14108 _ACEOF
14109 if ac_fn_c_try_compile "$LINENO"; then :
14110   bfd_cv_have_sys_procfs_type_prstatus_t=yes
14111 else
14112   bfd_cv_have_sys_procfs_type_prstatus_t=no
14113
14114 fi
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 fi
14117
14118  if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then
14119
14120 $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h
14121
14122  fi
14123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5
14124 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; }
14125
14126     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5
14127 $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; }
14128  if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then :
14129   $as_echo_n "(cached) " >&6
14130 else
14131   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h.  */
14133
14134 #define _SYSCALL32
14135 /* Needed for new procfs interface on sparc-solaris.  */
14136 #define _STRUCTURED_PROC 1
14137 #include <sys/procfs.h>
14138 int
14139 main ()
14140 {
14141 prstatus32_t avar
14142   ;
14143   return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_compile "$LINENO"; then :
14147   bfd_cv_have_sys_procfs_type_prstatus32_t=yes
14148 else
14149   bfd_cv_have_sys_procfs_type_prstatus32_t=no
14150
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153 fi
14154
14155  if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then
14156
14157 $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h
14158
14159  fi
14160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5
14161 $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; }
14162
14163     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5
14164 $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; }
14165  if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then :
14166   $as_echo_n "(cached) " >&6
14167 else
14168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h.  */
14170
14171 #define _SYSCALL32
14172 /* Needed for new procfs interface on sparc-solaris.  */
14173 #define _STRUCTURED_PROC 1
14174 #include <sys/procfs.h>
14175 int
14176 main ()
14177 {
14178 prstatus_t avar; void* aref = (void*) &avar.pr_who
14179   ;
14180   return 0;
14181 }
14182 _ACEOF
14183 if ac_fn_c_try_compile "$LINENO"; then :
14184   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes
14185 else
14186   bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no
14187
14188 fi
14189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 fi
14191
14192  if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then
14193
14194 $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h
14195
14196  fi
14197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5
14198 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; }
14199
14200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5
14201 $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; }
14202  if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then :
14203   $as_echo_n "(cached) " >&6
14204 else
14205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14206 /* end confdefs.h.  */
14207
14208 #define _SYSCALL32
14209 /* Needed for new procfs interface on sparc-solaris.  */
14210 #define _STRUCTURED_PROC 1
14211 #include <sys/procfs.h>
14212 int
14213 main ()
14214 {
14215 prstatus32_t avar; void* aref = (void*) &avar.pr_who
14216   ;
14217   return 0;
14218 }
14219 _ACEOF
14220 if ac_fn_c_try_compile "$LINENO"; then :
14221   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes
14222 else
14223   bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no
14224
14225 fi
14226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228
14229  if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then
14230
14231 $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h
14232
14233  fi
14234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5
14235 $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; }
14236
14237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5
14238 $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; }
14239  if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then :
14240   $as_echo_n "(cached) " >&6
14241 else
14242   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14243 /* end confdefs.h.  */
14244
14245 #define _SYSCALL32
14246 /* Needed for new procfs interface on sparc-solaris.  */
14247 #define _STRUCTURED_PROC 1
14248 #include <sys/procfs.h>
14249 int
14250 main ()
14251 {
14252 pstatus_t avar
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 if ac_fn_c_try_compile "$LINENO"; then :
14258   bfd_cv_have_sys_procfs_type_pstatus_t=yes
14259 else
14260   bfd_cv_have_sys_procfs_type_pstatus_t=no
14261
14262 fi
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14264 fi
14265
14266  if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
14267
14268 $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h
14269
14270  fi
14271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
14272 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; }
14273
14274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5
14275 $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; }
14276  if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then :
14277   $as_echo_n "(cached) " >&6
14278 else
14279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h.  */
14281
14282 #define _SYSCALL32
14283 /* Needed for new procfs interface on sparc-solaris.  */
14284 #define _STRUCTURED_PROC 1
14285 #include <sys/procfs.h>
14286 int
14287 main ()
14288 {
14289 pxstatus_t avar
14290   ;
14291   return 0;
14292 }
14293 _ACEOF
14294 if ac_fn_c_try_compile "$LINENO"; then :
14295   bfd_cv_have_sys_procfs_type_pxstatus_t=yes
14296 else
14297   bfd_cv_have_sys_procfs_type_pxstatus_t=no
14298
14299 fi
14300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14301 fi
14302
14303  if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then
14304
14305 $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h
14306
14307  fi
14308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5
14309 $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; }
14310
14311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5
14312 $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; }
14313  if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then :
14314   $as_echo_n "(cached) " >&6
14315 else
14316   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14317 /* end confdefs.h.  */
14318
14319 #define _SYSCALL32
14320 /* Needed for new procfs interface on sparc-solaris.  */
14321 #define _STRUCTURED_PROC 1
14322 #include <sys/procfs.h>
14323 int
14324 main ()
14325 {
14326 pstatus32_t avar
14327   ;
14328   return 0;
14329 }
14330 _ACEOF
14331 if ac_fn_c_try_compile "$LINENO"; then :
14332   bfd_cv_have_sys_procfs_type_pstatus32_t=yes
14333 else
14334   bfd_cv_have_sys_procfs_type_pstatus32_t=no
14335
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 fi
14339
14340  if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then
14341
14342 $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h
14343
14344  fi
14345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5
14346 $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; }
14347
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5
14349 $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; }
14350  if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then :
14351   $as_echo_n "(cached) " >&6
14352 else
14353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h.  */
14355
14356 #define _SYSCALL32
14357 /* Needed for new procfs interface on sparc-solaris.  */
14358 #define _STRUCTURED_PROC 1
14359 #include <sys/procfs.h>
14360 int
14361 main ()
14362 {
14363 prpsinfo_t avar
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 if ac_fn_c_try_compile "$LINENO"; then :
14369   bfd_cv_have_sys_procfs_type_prpsinfo_t=yes
14370 else
14371   bfd_cv_have_sys_procfs_type_prpsinfo_t=no
14372
14373 fi
14374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14375 fi
14376
14377  if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then
14378
14379 $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h
14380
14381  fi
14382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5
14383 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; }
14384
14385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5
14386 $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; }
14387  if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then :
14388   $as_echo_n "(cached) " >&6
14389 else
14390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h.  */
14392
14393 #define _SYSCALL32
14394 /* Needed for new procfs interface on sparc-solaris.  */
14395 #define _STRUCTURED_PROC 1
14396 #include <sys/procfs.h>
14397 int
14398 main ()
14399 {
14400 prpsinfo32_t avar
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 if ac_fn_c_try_compile "$LINENO"; then :
14406   bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes
14407 else
14408   bfd_cv_have_sys_procfs_type_prpsinfo32_t=no
14409
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 fi
14413
14414  if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then
14415
14416 $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h
14417
14418  fi
14419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5
14420 $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; }
14421
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5
14423 $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; }
14424  if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then :
14425   $as_echo_n "(cached) " >&6
14426 else
14427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h.  */
14429
14430 #define _SYSCALL32
14431 /* Needed for new procfs interface on sparc-solaris.  */
14432 #define _STRUCTURED_PROC 1
14433 #include <sys/procfs.h>
14434 int
14435 main ()
14436 {
14437 psinfo_t avar
14438   ;
14439   return 0;
14440 }
14441 _ACEOF
14442 if ac_fn_c_try_compile "$LINENO"; then :
14443   bfd_cv_have_sys_procfs_type_psinfo_t=yes
14444 else
14445   bfd_cv_have_sys_procfs_type_psinfo_t=no
14446
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450
14451  if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then
14452
14453 $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h
14454
14455  fi
14456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5
14457 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; }
14458
14459     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5
14460 $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; }
14461  if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466
14467 #define _SYSCALL32
14468 /* Needed for new procfs interface on sparc-solaris.  */
14469 #define _STRUCTURED_PROC 1
14470 #include <sys/procfs.h>
14471 int
14472 main ()
14473 {
14474 psinfo32_t avar
14475   ;
14476   return 0;
14477 }
14478 _ACEOF
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480   bfd_cv_have_sys_procfs_type_psinfo32_t=yes
14481 else
14482   bfd_cv_have_sys_procfs_type_psinfo32_t=no
14483
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486 fi
14487
14488  if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then
14489
14490 $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h
14491
14492  fi
14493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5
14494 $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; }
14495
14496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5
14497 $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; }
14498  if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then :
14499   $as_echo_n "(cached) " >&6
14500 else
14501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h.  */
14503
14504 #define _SYSCALL32
14505 /* Needed for new procfs interface on sparc-solaris.  */
14506 #define _STRUCTURED_PROC 1
14507 #include <sys/procfs.h>
14508 int
14509 main ()
14510 {
14511 lwpstatus_t avar
14512   ;
14513   return 0;
14514 }
14515 _ACEOF
14516 if ac_fn_c_try_compile "$LINENO"; then :
14517   bfd_cv_have_sys_procfs_type_lwpstatus_t=yes
14518 else
14519   bfd_cv_have_sys_procfs_type_lwpstatus_t=no
14520
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524
14525  if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then
14526
14527 $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h
14528
14529  fi
14530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5
14531 $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; }
14532
14533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5
14534 $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; }
14535  if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14539 /* end confdefs.h.  */
14540
14541 #define _SYSCALL32
14542 /* Needed for new procfs interface on sparc-solaris.  */
14543 #define _STRUCTURED_PROC 1
14544 #include <sys/procfs.h>
14545 int
14546 main ()
14547 {
14548 lwpxstatus_t avar
14549   ;
14550   return 0;
14551 }
14552 _ACEOF
14553 if ac_fn_c_try_compile "$LINENO"; then :
14554   bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes
14555 else
14556   bfd_cv_have_sys_procfs_type_lwpxstatus_t=no
14557
14558 fi
14559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14560 fi
14561
14562  if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then
14563
14564 $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h
14565
14566  fi
14567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5
14568 $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; }
14569
14570     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5
14571 $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; }
14572  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then :
14573   $as_echo_n "(cached) " >&6
14574 else
14575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577
14578 #define _SYSCALL32
14579 /* Needed for new procfs interface on sparc-solaris.  */
14580 #define _STRUCTURED_PROC 1
14581 #include <sys/procfs.h>
14582 int
14583 main ()
14584 {
14585 lwpstatus_t avar; void* aref = (void*) &avar.pr_context
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 if ac_fn_c_try_compile "$LINENO"; then :
14591   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes
14592 else
14593   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no
14594
14595 fi
14596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14597 fi
14598
14599  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then
14600
14601 $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h
14602
14603  fi
14604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5
14605 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; }
14606
14607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5
14608 $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; }
14609  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then :
14610   $as_echo_n "(cached) " >&6
14611 else
14612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14613 /* end confdefs.h.  */
14614
14615 #define _SYSCALL32
14616 /* Needed for new procfs interface on sparc-solaris.  */
14617 #define _STRUCTURED_PROC 1
14618 #include <sys/procfs.h>
14619 int
14620 main ()
14621 {
14622 lwpstatus_t avar; void* aref = (void*) &avar.pr_reg
14623   ;
14624   return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_compile "$LINENO"; then :
14628   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes
14629 else
14630   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no
14631
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14634 fi
14635
14636  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then
14637
14638 $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h
14639
14640  fi
14641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5
14642 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; }
14643
14644     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5
14645 $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; }
14646  if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+set}" = set; then :
14647   $as_echo_n "(cached) " >&6
14648 else
14649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h.  */
14651
14652 #define _SYSCALL32
14653 /* Needed for new procfs interface on sparc-solaris.  */
14654 #define _STRUCTURED_PROC 1
14655 #include <sys/procfs.h>
14656 int
14657 main ()
14658 {
14659 lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg
14660   ;
14661   return 0;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_compile "$LINENO"; then :
14665   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes
14666 else
14667   bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no
14668
14669 fi
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 fi
14672
14673  if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then
14674
14675 $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h
14676
14677  fi
14678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5
14679 $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; }
14680
14681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5
14682 $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; }
14683  if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then :
14684   $as_echo_n "(cached) " >&6
14685 else
14686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14687 /* end confdefs.h.  */
14688
14689 #define _SYSCALL32
14690 /* Needed for new procfs interface on sparc-solaris.  */
14691 #define _STRUCTURED_PROC 1
14692 #include <sys/procfs.h>
14693 int
14694 main ()
14695 {
14696 win32_pstatus_t avar
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_compile "$LINENO"; then :
14702   bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes
14703 else
14704   bfd_cv_have_sys_procfs_type_win32_pstatus_t=no
14705
14706 fi
14707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14708 fi
14709
14710  if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then
14711
14712 $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h
14713
14714  fi
14715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5
14716 $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; }
14717
14718   fi
14719 fi
14720
14721
14722 if test -n "$CORE_HEADER"; then
14723
14724 cat >>confdefs.h <<_ACEOF
14725 #define CORE_HEADER $CORE_HEADER
14726 _ACEOF
14727
14728 fi
14729 if test -n "$TRAD_HEADER"; then
14730
14731 cat >>confdefs.h <<_ACEOF
14732 #define TRAD_HEADER $TRAD_HEADER
14733 _ACEOF
14734
14735 fi
14736
14737 # Check if linker supports --as-needed and --no-as-needed options
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5
14739 $as_echo_n "checking linker --as-needed support... " >&6; }
14740 if test "${bfd_cv_ld_as_needed+set}" = set; then :
14741   $as_echo_n "(cached) " >&6
14742 else
14743   bfd_cv_ld_as_needed=no
14744         if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
14745                 bfd_cv_ld_as_needed=yes
14746         fi
14747
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5
14750 $as_echo "$bfd_cv_ld_as_needed" >&6; }
14751
14752 LIBM=
14753 case $host in
14754 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14755   # These system don't have libm, or don't need it
14756   ;;
14757 *-ncr-sysv4.3*)
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14759 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
14760 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
14761   $as_echo_n "(cached) " >&6
14762 else
14763   ac_check_lib_save_LIBS=$LIBS
14764 LIBS="-lmw  $LIBS"
14765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14766 /* end confdefs.h.  */
14767
14768 /* Override any GCC internal prototype to avoid an error.
14769    Use char because int might match the return type of a GCC
14770    builtin and then its argument prototype would still apply.  */
14771 #ifdef __cplusplus
14772 extern "C"
14773 #endif
14774 char _mwvalidcheckl ();
14775 int
14776 main ()
14777 {
14778 return _mwvalidcheckl ();
14779   ;
14780   return 0;
14781 }
14782 _ACEOF
14783 if ac_fn_c_try_link "$LINENO"; then :
14784   ac_cv_lib_mw__mwvalidcheckl=yes
14785 else
14786   ac_cv_lib_mw__mwvalidcheckl=no
14787 fi
14788 rm -f core conftest.err conftest.$ac_objext \
14789     conftest$ac_exeext conftest.$ac_ext
14790 LIBS=$ac_check_lib_save_LIBS
14791 fi
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14793 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14794 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
14795   LIBM="-lmw"
14796 fi
14797
14798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14799 $as_echo_n "checking for cos in -lm... " >&6; }
14800 if test "${ac_cv_lib_m_cos+set}" = set; then :
14801   $as_echo_n "(cached) " >&6
14802 else
14803   ac_check_lib_save_LIBS=$LIBS
14804 LIBS="-lm  $LIBS"
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h.  */
14807
14808 /* Override any GCC internal prototype to avoid an error.
14809    Use char because int might match the return type of a GCC
14810    builtin and then its argument prototype would still apply.  */
14811 #ifdef __cplusplus
14812 extern "C"
14813 #endif
14814 char cos ();
14815 int
14816 main ()
14817 {
14818 return cos ();
14819   ;
14820   return 0;
14821 }
14822 _ACEOF
14823 if ac_fn_c_try_link "$LINENO"; then :
14824   ac_cv_lib_m_cos=yes
14825 else
14826   ac_cv_lib_m_cos=no
14827 fi
14828 rm -f core conftest.err conftest.$ac_objext \
14829     conftest$ac_exeext conftest.$ac_ext
14830 LIBS=$ac_check_lib_save_LIBS
14831 fi
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14833 $as_echo "$ac_cv_lib_m_cos" >&6; }
14834 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14835   LIBM="$LIBM -lm"
14836 fi
14837
14838   ;;
14839 *)
14840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14841 $as_echo_n "checking for cos in -lm... " >&6; }
14842 if test "${ac_cv_lib_m_cos+set}" = set; then :
14843   $as_echo_n "(cached) " >&6
14844 else
14845   ac_check_lib_save_LIBS=$LIBS
14846 LIBS="-lm  $LIBS"
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848 /* end confdefs.h.  */
14849
14850 /* Override any GCC internal prototype to avoid an error.
14851    Use char because int might match the return type of a GCC
14852    builtin and then its argument prototype would still apply.  */
14853 #ifdef __cplusplus
14854 extern "C"
14855 #endif
14856 char cos ();
14857 int
14858 main ()
14859 {
14860 return cos ();
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"; then :
14866   ac_cv_lib_m_cos=yes
14867 else
14868   ac_cv_lib_m_cos=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871     conftest$ac_exeext conftest.$ac_ext
14872 LIBS=$ac_check_lib_save_LIBS
14873 fi
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14875 $as_echo "$ac_cv_lib_m_cos" >&6; }
14876 if test "x$ac_cv_lib_m_cos" = x""yes; then :
14877   LIBM="-lm"
14878 fi
14879
14880   ;;
14881 esac
14882
14883
14884
14885 # When building a shared libbfd, link against the pic version of libiberty
14886 # so that apps that use libbfd won't need libiberty just to satisfy any
14887 # libbfd references.
14888 # We can't do that if a pic libiberty is unavailable since including non-pic
14889 # code would insert text relocations into libbfd.
14890 SHARED_LIBADD=
14891 SHARED_LDFLAGS=
14892 if test "$enable_shared" = "yes"; then
14893   x=`sed -n -e 's/^[    ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | sed -n '$p'`
14894   if test -n "$x"; then
14895     SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
14896   fi
14897
14898 # More hacks to build DLLs on Windows.
14899   case "${host}" in
14900   *-*-cygwin*)
14901     SHARED_LDFLAGS="-no-undefined"
14902     SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
14903   ;;
14904   esac
14905
14906   if test -n "$SHARED_LIBADD"; then
14907     if test -n "$LIBM"; then
14908       if test x"$bfd_cv_ld_as_needed" = xyes; then
14909         # Link against libm only when needed.  Put -lc, -lm inside -Wl
14910         # to stop libtool reordering these options.
14911         SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
14912       else
14913         SHARED_LIBADD="$SHARED_LIBADD $LIBM"
14914       fi
14915     fi
14916   fi
14917 fi
14918
14919
14920
14921 # target stuff:
14922
14923 # Canonicalize the secondary target names.
14924 if test -n "$enable_targets" ; then
14925     for targ in `echo $enable_targets | sed 's/,/ /g'`
14926     do
14927         result=`$ac_config_sub $targ 2>/dev/null`
14928         if test -n "$result" ; then
14929             canon_targets="$canon_targets $result"
14930         else
14931             # Allow targets that config.sub doesn't recognize, like "all".
14932             canon_targets="$canon_targets $targ"
14933         fi
14934     done
14935 fi
14936
14937 all_targets=false
14938 defvec=
14939 selvecs=
14940 assocvecs=
14941 selarchs=
14942 TDEFINES=
14943 for targ in $target $canon_targets
14944 do
14945     if test "x$targ" = "xall"; then
14946         all_targets=true
14947         assocvecs="$assocvecs $targ_defvec $targ_selvecs"
14948     else
14949         . $srcdir/config.bfd
14950         if test "x$targ" = "x$target"; then
14951             defvec=$targ_defvec
14952         fi
14953         selvecs="$selvecs $targ_defvec $targ_selvecs"
14954         selarchs="$selarchs $targ_archs"
14955         TDEFINES="$TDEFINES $targ_cflags"
14956     fi
14957 done
14958
14959
14960 # This processing still needs to be done if we're to decide properly whether
14961 # 64-bit support needs to be compiled in.  Currently, it will be included if
14962 # the default or any other explicitly requested target requires it; it
14963 # will not be included on a 32-bit host if no 64-bit target is requested, and
14964 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
14965 # used.
14966
14967 # uniq the default and selected vectors in all the configured targets.
14968 f=""
14969 for i in $selvecs ; do
14970     case " $f " in
14971     *" $i "*) ;;
14972     *) f="$f $i" ;;
14973     esac
14974 done
14975 selvecs="$f"
14976
14977
14978 # uniq the associated vectors in all the configured targets.
14979 f=""
14980 for i in $assocvecs ; do
14981     case " $f " in
14982     *" $i "*) ;;
14983     *) f="$f $i" ;;
14984     esac
14985 done
14986 assocvecs="$f"
14987
14988
14989 # uniq the architectures in all the configured targets.
14990 f=""
14991 for i in $selarchs ; do
14992     case " $f " in
14993     *" $i "*) ;;
14994     *) f="$f $i" ;;
14995     esac
14996 done
14997 selarchs="$f"
14998
14999 # Target backend .o files.
15000 tb=
15001
15002 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
15003      elf-eh-frame.lo dwarf1.lo"
15004
15005 for vec in $selvecs
15006 do
15007     target_size=32
15008     case "$vec" in
15009     # This list is alphabetized to make it easy to compare
15010     # with the two vector lists in targets.c.  For the same reason,
15011     # use one entry per line, even though this leads to long lines.
15012     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
15013     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15014     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
15015     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
15016     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
15017     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
15018     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
15019     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
15020     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
15021     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
15022     arm_wince_pe_big_vec)       tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
15023     arm_wince_pe_little_vec)    tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
15024     arm_wince_pei_big_vec)      tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15025     arm_wince_pei_little_vec)   tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
15026     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
15027     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
15028     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
15029     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15030     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
15031     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15032     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
15033     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
15034     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
15035     bfd_pei_ia64_vec)           tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
15036     bfd_elf32_am33lin_vec)      tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
15037     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
15038     bfd_elf32_bfin_vec)         tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15039     bfd_elf32_bfinfdpic_vec)    tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
15040     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15041     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15042     bfd_elf32_bigarm_vec)       tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15043     bfd_elf32_bigarm_symbian_vec)
15044                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15045     bfd_elf32_bigarm_vxworks_vec)
15046                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15047     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15048     bfd_elf32_bigmips_vxworks_vec)
15049                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15050     bfd_elf32_cr16_vec)         tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
15051     bfd_elf32_cr16c_vec)        tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
15052     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15053     bfd_elf32_crx_vec)          tb="$tb elf32-crx.lo elf32.lo $elf" ;;
15054     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
15055     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
15056     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
15057     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
15058     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15059     bfd_elf32_frvfdpic_vec)     tb="$tb elf32-frv.lo elf32.lo $elf" ;;
15060     bfd_elf32_moxie_vec)        tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
15061     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
15062     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15063     bfd_elf32_hppa_nbsd_vec)    tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15064     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
15065     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
15066     bfd_elf32_i386_dragonfly_vec)
15067                                 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15068     bfd_elf32_i386_sol2_vec)    tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15069     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15070     bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15071     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
15072     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15073     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
15074     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
15075     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
15076     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
15077     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
15078     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
15079     bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15080     bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
15081     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
15082     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
15083     bfd_elf32_littlearm_symbian_vec)
15084                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15085     bfd_elf32_littlearm_vxworks_vec)
15086                                 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15087     bfd_elf32_littlearm_vec)    tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
15088     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15089     bfd_elf32_littlemips_vxworks_vec)
15090                                 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15091     bfd_elf32_m32c_vec)         tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
15092     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15093     bfd_elf32_m32rle_vec)       tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15094     bfd_elf32_m32rlin_vec)      tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15095     bfd_elf32_m32rlelin_vec)    tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
15096     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15097     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
15098     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
15099     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
15100     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15101     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
15102     bfd_elf32_mep_vec)          tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15103     bfd_elf32_mep_little_vec)   tb="$tb elf32-mep.lo elf32.lo $elf" ;;
15104     bfd_elf32_microblaze_vec)   tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
15105     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
15106     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
15107     bfd_elf32_mt_vec)           tb="$tb elf32-mt.lo elf32.lo $elf" ;;
15108     bfd_elf32_msp430_vec)       tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
15109     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15110     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15111     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15112     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15113     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
15114     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
15115     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
15116     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
15117     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15118     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15119     bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
15120     bfd_elf32_rx_le_vec)        tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15121     bfd_elf32_rx_be_vec)        tb="$tb elf32-rx.lo elf32.lo $elf" ;;
15122     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
15123     bfd_elf32_bigscore_vec)     tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15124     bfd_elf32_littlescore_vec)  tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
15125     # FIXME: We include cofflink.lo not because it's needed for
15126     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
15127     # which needs it but does not list it.  Should be fixed in right place.
15128     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15129     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15130     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15131     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
15132     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15133     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
15134     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15135     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15136     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15137     bfd_elf32_shl_symbian_vec)  tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15138     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15139     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15140     bfd_elf32_shlvxworks_vec)   tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15141     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
15142     bfd_elf32_shvxworks_vec)    tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
15143     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15144     bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
15145     bfd_elf32_spu_vec)          tb="$tb elf32-spu.lo elf32.lo $elf" ;;
15146     bfd_elf32_tic6x_be_vec)     tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15147     bfd_elf32_tic6x_le_vec)     tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
15148     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15149     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
15150     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
15151     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
15152     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
15153     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
15154     bfd_elf32_xc16x_vec)                tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
15155     bfd_elf32_xtensa_le_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15156     bfd_elf32_xtensa_be_vec)    tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
15157     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15158     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
15159     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15160     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15161     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15162     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
15163     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15164     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15165     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15166     bfd_elf64_ia64_vms_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
15167     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15168     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15169     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
15170     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
15171     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
15172     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
15173     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15174     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15175     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15176     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15177     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15178     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
15179     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15180     bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
15181     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15182     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
15183     bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15184     bfd_elf64_x86_64_sol2_vec)  tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15185     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15186     bfd_elf64_l1om_vec)         tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15187     bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
15188     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
15189     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15190     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15191     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
15192     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
15193     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
15194     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
15195     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15196     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15197     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
15198     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
15199     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
15200     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
15201     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
15202     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
15203     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
15204     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
15205     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
15206     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
15207     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
15208     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
15209     x86_64coff_vec)             tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
15210     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
15211     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
15212     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
15213     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
15214     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
15215     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
15216     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
15217     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
15218     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
15219     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
15220     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
15221     x86_64pe_vec)               tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15222     x86_64pei_vec)              tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
15223     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
15224     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
15225     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
15226     ieee_vec)                   tb="$tb ieee.lo" ;;
15227     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
15228     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
15229     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
15230     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
15231     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
15232     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
15233     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
15234     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
15235     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
15236     m88kopenbsd_vec)            tb="$tb m88kopenbsd.lo aout32.lo" ;;
15237     maxqcoff_vec)               tb="$tb coff-maxq.lo" ;;
15238     mach_o_be_vec)              tb="$tb mach-o.lo" ;;
15239     mach_o_le_vec)              tb="$tb mach-o.lo" ;;
15240     mach_o_fat_vec)             tb="$tb mach-o.lo" ;;
15241     mach_o_i386_vec)            tb="$tb mach-o-i386.lo" ;;
15242     mach_o_x86_64_vec)          tb="$tb mach-o-x86-64.lo" ;;
15243     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15244     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
15245     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15246     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
15247     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
15248     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
15249     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
15250     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
15251     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
15252     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
15253     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
15254     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
15255     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
15256     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
15257     pef_vec)                    tb="$tb pef.lo" ;;
15258     pef_xlib_vec)               tb="$tb pef.lo" ;;
15259     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
15260     plugin_vec)                 tb="$tb plugin.lo" ;;
15261     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15262     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
15263     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
15264     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
15265     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
15266     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
15267     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
15268     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
15269     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
15270     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15271     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
15272     som_vec)                    tb="$tb som.lo" ;;
15273     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
15274     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
15275     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
15276     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
15277     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
15278     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
15279     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
15280     sym_vec)                    tb="$tb xsym.lo" ;;
15281     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
15282     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
15283     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
15284     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
15285     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
15286     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
15287     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
15288     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
15289     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
15290     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
15291     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
15292     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
15293     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
15294     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
15295     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
15296     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
15297     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
15298     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
15299     versados_vec)               tb="$tb versados.lo" ;;
15300     vms_alpha_vec)              tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
15301     vms_lib_txt_vec)            tb="$tb vms-lib.lo vms-misc.lo" ;;
15302     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
15303     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
15304     z80coff_vec)                tb="$tb coff-z80.lo reloc16.lo" ;;
15305     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
15306
15307     # These appear out of order in targets.c
15308     srec_vec)                   tb="$tb srec.lo" ;;
15309     symbolsrec_vec)             tb="$tb srec.lo" ;;
15310     tekhex_vec)                 tb="$tb tekhex.lo" ;;
15311     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
15312     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
15313
15314     "")                 ;;
15315     *) as_fn_error "*** unknown target vector $vec" "$LINENO" 5 ;;
15316     esac
15317
15318     if test ${target_size} = 64; then
15319         target64=true
15320     fi
15321     if test x"${vec}" = x"${defvec}"; then
15322         bfd_default_target_size=${target_size}
15323     fi
15324 done
15325
15326 # Target architecture .o files.
15327 # A couple of CPUs use shorter file names to avoid problems on DOS
15328 # filesystems.
15329 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
15330
15331 # Weed out duplicate .o files.
15332 f=""
15333 for i in $tb ; do
15334     case " $f " in
15335     *" $i "*) ;;
15336     *) f="$f $i" ;;
15337     esac
15338 done
15339 tb="$f"
15340
15341 f=""
15342 for i in $ta ; do
15343     case " $f " in
15344     *" $i "*) ;;
15345     *) f="$f $i" ;;
15346     esac
15347 done
15348 ta="$f"
15349
15350 bfd_backends="$tb"
15351 bfd_machines="$ta"
15352
15353 if test x${all_targets} = xtrue ; then
15354   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
15355   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
15356   selvecs=
15357   havevecs=
15358   selarchs=
15359   test -n "$assocvecs" &&
15360     assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15361 else    # all_targets is true
15362   # Only set these if they will be nonempty, for the clever echo.
15363   havevecs=
15364   assocvecs=
15365   test -n "$selvecs" &&
15366     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
15367   test -n "$selvecs" &&
15368     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15369   test -n "$selarchs" &&
15370     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
15371 fi      # all_targets is true
15372
15373 case ${host64}-${target64}-${want64} in
15374   *true*)
15375     wordsize=64
15376     bfd64_libs='$(BFD64_LIBS)'
15377     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
15378     if test $BFD_HOST_64_BIT_DEFINED = 0; then
15379       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5
15380 $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;}
15381       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5
15382 $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;}
15383     fi
15384     if test -n "$GCC" ; then
15385        bad_64bit_gcc=no;
15386        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5
15387 $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; }
15388        # Add more tests for gcc versions with non-working 64-bit support here.
15389        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h.  */
15391 :__GNUC__:__GNUC_MINOR__:__i386__:
15392 _ACEOF
15393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15394   $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then :
15395   bad_64bit_gcc=yes;
15396                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5
15397 $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; }
15398 else
15399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15401 fi
15402 rm -f conftest*
15403
15404        if test $bad_64bit_gcc = yes ; then
15405          as_fn_error "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5
15406        fi
15407     fi
15408     ;;
15409   false-false-false)
15410     wordsize=32
15411     all_backends='$(BFD32_BACKENDS)'
15412     ;;
15413 esac
15414
15415
15416
15417
15418
15419
15420
15421
15422 if test "$plugins" = "yes"; then
15423   supports_plugins=1
15424 else
15425   supports_plugins=0
15426 fi
15427
15428
15429 # Determine the host dependant file_ptr a.k.a. off_t type.  In order
15430 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
15431 # fseeko, long.  This assumes that sizeof off_t is .ge. sizeof long.
15432 # Hopefully a reasonable assumption since fseeko et.al. should be
15433 # upward compatible.
15434 for ac_func in ftello ftello64 fseeko fseeko64 fopen64
15435 do :
15436   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15438 eval as_val=\$$as_ac_var
15439    if test "x$as_val" = x""yes; then :
15440   cat >>confdefs.h <<_ACEOF
15441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15442 _ACEOF
15443
15444 fi
15445 done
15446
15447 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
15448     # The cast to long int works around a bug in the HP C Compiler
15449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15451 # This bug is HP SR number 8606223364.
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
15453 $as_echo_n "checking size of off_t... " >&6; }
15454 if test "${ac_cv_sizeof_off_t+set}" = set; then :
15455   $as_echo_n "(cached) " >&6
15456 else
15457   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
15458
15459 else
15460   if test "$ac_cv_type_off_t" = yes; then
15461      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15463 { as_fn_set_status 77
15464 as_fn_error "cannot compute sizeof (off_t)
15465 See \`config.log' for more details." "$LINENO" 5; }; }
15466    else
15467      ac_cv_sizeof_off_t=0
15468    fi
15469 fi
15470
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
15473 $as_echo "$ac_cv_sizeof_off_t" >&6; }
15474
15475
15476
15477 cat >>confdefs.h <<_ACEOF
15478 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
15479 _ACEOF
15480
15481
15482 fi
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5
15484 $as_echo_n "checking file_ptr type... " >&6; }
15485 bfd_file_ptr="long"
15486 bfd_ufile_ptr="unsigned long"
15487 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
15488         -o x"${ac_cv_sizeof_off_t}" = x8; then
15489     bfd_file_ptr=BFD_HOST_64_BIT
15490     bfd_ufile_ptr=BFD_HOST_U_64_BIT
15491 fi
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5
15493 $as_echo "$bfd_file_ptr" >&6; }
15494
15495
15496
15497
15498 tdefaults=""
15499 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
15500 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
15501 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
15502 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
15503 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
15504
15505
15506 for ac_header in stdlib.h unistd.h
15507 do :
15508   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15509 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15510 eval as_val=\$$as_ac_Header
15511    if test "x$as_val" = x""yes; then :
15512   cat >>confdefs.h <<_ACEOF
15513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15514 _ACEOF
15515
15516 fi
15517
15518 done
15519
15520 for ac_func in getpagesize
15521 do :
15522   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
15523 if test "x$ac_cv_func_getpagesize" = x""yes; then :
15524   cat >>confdefs.h <<_ACEOF
15525 #define HAVE_GETPAGESIZE 1
15526 _ACEOF
15527
15528 fi
15529 done
15530
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
15532 $as_echo_n "checking for working mmap... " >&6; }
15533 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
15534   $as_echo_n "(cached) " >&6
15535 else
15536   if test "$cross_compiling" = yes; then :
15537   ac_cv_func_mmap_fixed_mapped=no
15538 else
15539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15540 /* end confdefs.h.  */
15541 $ac_includes_default
15542 /* malloc might have been renamed as rpl_malloc. */
15543 #undef malloc
15544
15545 /* Thanks to Mike Haertel and Jim Avera for this test.
15546    Here is a matrix of mmap possibilities:
15547         mmap private not fixed
15548         mmap private fixed at somewhere currently unmapped
15549         mmap private fixed at somewhere already mapped
15550         mmap shared not fixed
15551         mmap shared fixed at somewhere currently unmapped
15552         mmap shared fixed at somewhere already mapped
15553    For private mappings, we should verify that changes cannot be read()
15554    back from the file, nor mmap's back from the file at a different
15555    address.  (There have been systems where private was not correctly
15556    implemented like the infamous i386 svr4.0, and systems where the
15557    VM page cache was not coherent with the file system buffer cache
15558    like early versions of FreeBSD and possibly contemporary NetBSD.)
15559    For shared mappings, we should conversely verify that changes get
15560    propagated back to all the places they're supposed to be.
15561
15562    Grep wants private fixed already mapped.
15563    The main things grep needs to know about mmap are:
15564    * does it exist and is it safe to write into the mmap'd area
15565    * how to use it (BSD variants)  */
15566
15567 #include <fcntl.h>
15568 #include <sys/mman.h>
15569
15570 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
15571 char *malloc ();
15572 #endif
15573
15574 /* This mess was copied from the GNU getpagesize.h.  */
15575 #ifndef HAVE_GETPAGESIZE
15576 /* Assume that all systems that can run configure have sys/param.h.  */
15577 # ifndef HAVE_SYS_PARAM_H
15578 #  define HAVE_SYS_PARAM_H 1
15579 # endif
15580
15581 # ifdef _SC_PAGESIZE
15582 #  define getpagesize() sysconf(_SC_PAGESIZE)
15583 # else /* no _SC_PAGESIZE */
15584 #  ifdef HAVE_SYS_PARAM_H
15585 #   include <sys/param.h>
15586 #   ifdef EXEC_PAGESIZE
15587 #    define getpagesize() EXEC_PAGESIZE
15588 #   else /* no EXEC_PAGESIZE */
15589 #    ifdef NBPG
15590 #     define getpagesize() NBPG * CLSIZE
15591 #     ifndef CLSIZE
15592 #      define CLSIZE 1
15593 #     endif /* no CLSIZE */
15594 #    else /* no NBPG */
15595 #     ifdef NBPC
15596 #      define getpagesize() NBPC
15597 #     else /* no NBPC */
15598 #      ifdef PAGESIZE
15599 #       define getpagesize() PAGESIZE
15600 #      endif /* PAGESIZE */
15601 #     endif /* no NBPC */
15602 #    endif /* no NBPG */
15603 #   endif /* no EXEC_PAGESIZE */
15604 #  else /* no HAVE_SYS_PARAM_H */
15605 #   define getpagesize() 8192   /* punt totally */
15606 #  endif /* no HAVE_SYS_PARAM_H */
15607 # endif /* no _SC_PAGESIZE */
15608
15609 #endif /* no HAVE_GETPAGESIZE */
15610
15611 int
15612 main ()
15613 {
15614   char *data, *data2, *data3;
15615   int i, pagesize;
15616   int fd;
15617
15618   pagesize = getpagesize ();
15619
15620   /* First, make a file with some known garbage in it. */
15621   data = (char *) malloc (pagesize);
15622   if (!data)
15623     return 1;
15624   for (i = 0; i < pagesize; ++i)
15625     *(data + i) = rand ();
15626   umask (0);
15627   fd = creat ("conftest.mmap", 0600);
15628   if (fd < 0)
15629     return 1;
15630   if (write (fd, data, pagesize) != pagesize)
15631     return 1;
15632   close (fd);
15633
15634   /* Next, try to mmap the file at a fixed address which already has
15635      something else allocated at it.  If we can, also make sure that
15636      we see the same garbage.  */
15637   fd = open ("conftest.mmap", O_RDWR);
15638   if (fd < 0)
15639     return 1;
15640   data2 = (char *) malloc (2 * pagesize);
15641   if (!data2)
15642     return 1;
15643   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
15644   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15645                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
15646     return 1;
15647   for (i = 0; i < pagesize; ++i)
15648     if (*(data + i) != *(data2 + i))
15649       return 1;
15650
15651   /* Finally, make sure that changes to the mapped area do not
15652      percolate back to the file as seen by read().  (This is a bug on
15653      some variants of i386 svr4.0.)  */
15654   for (i = 0; i < pagesize; ++i)
15655     *(data2 + i) = *(data2 + i) + 1;
15656   data3 = (char *) malloc (pagesize);
15657   if (!data3)
15658     return 1;
15659   if (read (fd, data3, pagesize) != pagesize)
15660     return 1;
15661   for (i = 0; i < pagesize; ++i)
15662     if (*(data + i) != *(data3 + i))
15663       return 1;
15664   close (fd);
15665   return 0;
15666 }
15667 _ACEOF
15668 if ac_fn_c_try_run "$LINENO"; then :
15669   ac_cv_func_mmap_fixed_mapped=yes
15670 else
15671   ac_cv_func_mmap_fixed_mapped=no
15672 fi
15673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15674   conftest.$ac_objext conftest.beam conftest.$ac_ext
15675 fi
15676
15677 fi
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
15679 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
15680 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15681
15682 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
15683
15684 fi
15685 rm -f conftest.mmap
15686
15687 for ac_func in madvise mprotect
15688 do :
15689   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15690 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15691 eval as_val=\$$as_ac_var
15692    if test "x$as_val" = x""yes; then :
15693   cat >>confdefs.h <<_ACEOF
15694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15695 _ACEOF
15696
15697 fi
15698 done
15699
15700 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
15701   true+yes )
15702 $as_echo "#define USE_MMAP 1" >>confdefs.h
15703  ;;
15704 esac
15705
15706 rm -f doc/config.status
15707 ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in"
15708
15709
15710 ac_config_commands="$ac_config_commands default"
15711
15712
15713
15714
15715
15716
15717
15718 cat >confcache <<\_ACEOF
15719 # This file is a shell script that caches the results of configure
15720 # tests run on this system so they can be shared between configure
15721 # scripts and configure runs, see configure's option --config-cache.
15722 # It is not useful on other systems.  If it contains results you don't
15723 # want to keep, you may remove or edit it.
15724 #
15725 # config.status only pays attention to the cache file if you give it
15726 # the --recheck option to rerun configure.
15727 #
15728 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15729 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15730 # following values.
15731
15732 _ACEOF
15733
15734 # The following way of writing the cache mishandles newlines in values,
15735 # but we know of no workaround that is simple, portable, and efficient.
15736 # So, we kill variables containing newlines.
15737 # Ultrix sh set writes to stderr and can't be redirected directly,
15738 # and sets the high bit in the cache file unless we assign to the vars.
15739 (
15740   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15741     eval ac_val=\$$ac_var
15742     case $ac_val in #(
15743     *${as_nl}*)
15744       case $ac_var in #(
15745       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15746 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15747       esac
15748       case $ac_var in #(
15749       _ | IFS | as_nl) ;; #(
15750       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15751       *) { eval $ac_var=; unset $ac_var;} ;;
15752       esac ;;
15753     esac
15754   done
15755
15756   (set) 2>&1 |
15757     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15758     *${as_nl}ac_space=\ *)
15759       # `set' does not quote correctly, so add quotes: double-quote
15760       # substitution turns \\\\ into \\, and sed turns \\ into \.
15761       sed -n \
15762         "s/'/'\\\\''/g;
15763           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15764       ;; #(
15765     *)
15766       # `set' quotes correctly as required by POSIX, so do not add quotes.
15767       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15768       ;;
15769     esac |
15770     sort
15771 ) |
15772   sed '
15773      /^ac_cv_env_/b end
15774      t clear
15775      :clear
15776      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15777      t end
15778      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15779      :end' >>confcache
15780 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15781   if test -w "$cache_file"; then
15782     test "x$cache_file" != "x/dev/null" &&
15783       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15784 $as_echo "$as_me: updating cache $cache_file" >&6;}
15785     cat confcache >$cache_file
15786   else
15787     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15788 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15789   fi
15790 fi
15791 rm -f confcache
15792
15793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15794 # Let make expand exec_prefix.
15795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15796
15797 DEFS=-DHAVE_CONFIG_H
15798
15799 ac_libobjs=
15800 ac_ltlibobjs=
15801 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15802   # 1. Remove the extension, and $U if already installed.
15803   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15804   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15805   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15806   #    will be set to the directory where LIBOBJS objects are built.
15807   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15808   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15809 done
15810 LIBOBJS=$ac_libobjs
15811
15812 LTLIBOBJS=$ac_ltlibobjs
15813
15814
15815 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15816   as_fn_error "conditional \"AMDEP\" was never defined.
15817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15818 fi
15819 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15820   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15822 fi
15823  if test -n "$EXEEXT"; then
15824   am__EXEEXT_TRUE=
15825   am__EXEEXT_FALSE='#'
15826 else
15827   am__EXEEXT_TRUE='#'
15828   am__EXEEXT_FALSE=
15829 fi
15830
15831 if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
15832   as_fn_error "conditional \"PLUGINS\" was never defined.
15833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15834 fi
15835 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15836   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15838 fi
15839 if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
15840   as_fn_error "conditional \"GENINSRC_NEVER\" was never defined.
15841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15842 fi
15843 if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then
15844   as_fn_error "conditional \"INSTALL_LIBBFD\" was never defined.
15845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15846 fi
15847
15848 : ${CONFIG_STATUS=./config.status}
15849 ac_write_fail=0
15850 ac_clean_files_save=$ac_clean_files
15851 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15853 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15854 as_write_fail=0
15855 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15856 #! $SHELL
15857 # Generated by $as_me.
15858 # Run this file to recreate the current configuration.
15859 # Compiler output produced by configure, useful for debugging
15860 # configure, is in config.log if it exists.
15861
15862 debug=false
15863 ac_cs_recheck=false
15864 ac_cs_silent=false
15865
15866 SHELL=\${CONFIG_SHELL-$SHELL}
15867 export SHELL
15868 _ASEOF
15869 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15870 ## -------------------- ##
15871 ## M4sh Initialization. ##
15872 ## -------------------- ##
15873
15874 # Be more Bourne compatible
15875 DUALCASE=1; export DUALCASE # for MKS sh
15876 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15877   emulate sh
15878   NULLCMD=:
15879   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15880   # is contrary to our usage.  Disable this feature.
15881   alias -g '${1+"$@"}'='"$@"'
15882   setopt NO_GLOB_SUBST
15883 else
15884   case `(set -o) 2>/dev/null` in #(
15885   *posix*) :
15886     set -o posix ;; #(
15887   *) :
15888      ;;
15889 esac
15890 fi
15891
15892
15893 as_nl='
15894 '
15895 export as_nl
15896 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15897 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15898 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15900 # Prefer a ksh shell builtin over an external printf program on Solaris,
15901 # but without wasting forks for bash or zsh.
15902 if test -z "$BASH_VERSION$ZSH_VERSION" \
15903     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15904   as_echo='print -r --'
15905   as_echo_n='print -rn --'
15906 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15907   as_echo='printf %s\n'
15908   as_echo_n='printf %s'
15909 else
15910   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15911     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15912     as_echo_n='/usr/ucb/echo -n'
15913   else
15914     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15915     as_echo_n_body='eval
15916       arg=$1;
15917       case $arg in #(
15918       *"$as_nl"*)
15919         expr "X$arg" : "X\\(.*\\)$as_nl";
15920         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15921       esac;
15922       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15923     '
15924     export as_echo_n_body
15925     as_echo_n='sh -c $as_echo_n_body as_echo'
15926   fi
15927   export as_echo_body
15928   as_echo='sh -c $as_echo_body as_echo'
15929 fi
15930
15931 # The user is always right.
15932 if test "${PATH_SEPARATOR+set}" != set; then
15933   PATH_SEPARATOR=:
15934   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15935     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15936       PATH_SEPARATOR=';'
15937   }
15938 fi
15939
15940
15941 # IFS
15942 # We need space, tab and new line, in precisely that order.  Quoting is
15943 # there to prevent editors from complaining about space-tab.
15944 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15945 # splitting by setting IFS to empty value.)
15946 IFS=" ""        $as_nl"
15947
15948 # Find who we are.  Look in the path if we contain no directory separator.
15949 case $0 in #((
15950   *[\\/]* ) as_myself=$0 ;;
15951   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15953 do
15954   IFS=$as_save_IFS
15955   test -z "$as_dir" && as_dir=.
15956     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15957   done
15958 IFS=$as_save_IFS
15959
15960      ;;
15961 esac
15962 # We did not find ourselves, most probably we were run as `sh COMMAND'
15963 # in which case we are not to be found in the path.
15964 if test "x$as_myself" = x; then
15965   as_myself=$0
15966 fi
15967 if test ! -f "$as_myself"; then
15968   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15969   exit 1
15970 fi
15971
15972 # Unset variables that we do not need and which cause bugs (e.g. in
15973 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15974 # suppresses any "Segmentation fault" message there.  '((' could
15975 # trigger a bug in pdksh 5.2.14.
15976 for as_var in BASH_ENV ENV MAIL MAILPATH
15977 do eval test x\${$as_var+set} = xset \
15978   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15979 done
15980 PS1='$ '
15981 PS2='> '
15982 PS4='+ '
15983
15984 # NLS nuisances.
15985 LC_ALL=C
15986 export LC_ALL
15987 LANGUAGE=C
15988 export LANGUAGE
15989
15990 # CDPATH.
15991 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15992
15993
15994 # as_fn_error ERROR [LINENO LOG_FD]
15995 # ---------------------------------
15996 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15997 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15998 # script with status $?, using 1 if that was 0.
15999 as_fn_error ()
16000 {
16001   as_status=$?; test $as_status -eq 0 && as_status=1
16002   if test "$3"; then
16003     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16004     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16005   fi
16006   $as_echo "$as_me: error: $1" >&2
16007   as_fn_exit $as_status
16008 } # as_fn_error
16009
16010
16011 # as_fn_set_status STATUS
16012 # -----------------------
16013 # Set $? to STATUS, without forking.
16014 as_fn_set_status ()
16015 {
16016   return $1
16017 } # as_fn_set_status
16018
16019 # as_fn_exit STATUS
16020 # -----------------
16021 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16022 as_fn_exit ()
16023 {
16024   set +e
16025   as_fn_set_status $1
16026   exit $1
16027 } # as_fn_exit
16028
16029 # as_fn_unset VAR
16030 # ---------------
16031 # Portably unset VAR.
16032 as_fn_unset ()
16033 {
16034   { eval $1=; unset $1;}
16035 }
16036 as_unset=as_fn_unset
16037 # as_fn_append VAR VALUE
16038 # ----------------------
16039 # Append the text in VALUE to the end of the definition contained in VAR. Take
16040 # advantage of any shell optimizations that allow amortized linear growth over
16041 # repeated appends, instead of the typical quadratic growth present in naive
16042 # implementations.
16043 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16044   eval 'as_fn_append ()
16045   {
16046     eval $1+=\$2
16047   }'
16048 else
16049   as_fn_append ()
16050   {
16051     eval $1=\$$1\$2
16052   }
16053 fi # as_fn_append
16054
16055 # as_fn_arith ARG...
16056 # ------------------
16057 # Perform arithmetic evaluation on the ARGs, and store the result in the
16058 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16059 # must be portable across $(()) and expr.
16060 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16061   eval 'as_fn_arith ()
16062   {
16063     as_val=$(( $* ))
16064   }'
16065 else
16066   as_fn_arith ()
16067   {
16068     as_val=`expr "$@" || test $? -eq 1`
16069   }
16070 fi # as_fn_arith
16071
16072
16073 if expr a : '\(a\)' >/dev/null 2>&1 &&
16074    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16075   as_expr=expr
16076 else
16077   as_expr=false
16078 fi
16079
16080 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16081   as_basename=basename
16082 else
16083   as_basename=false
16084 fi
16085
16086 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16087   as_dirname=dirname
16088 else
16089   as_dirname=false
16090 fi
16091
16092 as_me=`$as_basename -- "$0" ||
16093 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16094          X"$0" : 'X\(//\)$' \| \
16095          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16096 $as_echo X/"$0" |
16097     sed '/^.*\/\([^/][^/]*\)\/*$/{
16098             s//\1/
16099             q
16100           }
16101           /^X\/\(\/\/\)$/{
16102             s//\1/
16103             q
16104           }
16105           /^X\/\(\/\).*/{
16106             s//\1/
16107             q
16108           }
16109           s/.*/./; q'`
16110
16111 # Avoid depending upon Character Ranges.
16112 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16113 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16114 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16115 as_cr_digits='0123456789'
16116 as_cr_alnum=$as_cr_Letters$as_cr_digits
16117
16118 ECHO_C= ECHO_N= ECHO_T=
16119 case `echo -n x` in #(((((
16120 -n*)
16121   case `echo 'xy\c'` in
16122   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16123   xy)  ECHO_C='\c';;
16124   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16125        ECHO_T=' ';;
16126   esac;;
16127 *)
16128   ECHO_N='-n';;
16129 esac
16130
16131 rm -f conf$$ conf$$.exe conf$$.file
16132 if test -d conf$$.dir; then
16133   rm -f conf$$.dir/conf$$.file
16134 else
16135   rm -f conf$$.dir
16136   mkdir conf$$.dir 2>/dev/null
16137 fi
16138 if (echo >conf$$.file) 2>/dev/null; then
16139   if ln -s conf$$.file conf$$ 2>/dev/null; then
16140     as_ln_s='ln -s'
16141     # ... but there are two gotchas:
16142     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16143     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16144     # In both cases, we have to default to `cp -p'.
16145     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16146       as_ln_s='cp -p'
16147   elif ln conf$$.file conf$$ 2>/dev/null; then
16148     as_ln_s=ln
16149   else
16150     as_ln_s='cp -p'
16151   fi
16152 else
16153   as_ln_s='cp -p'
16154 fi
16155 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16156 rmdir conf$$.dir 2>/dev/null
16157
16158
16159 # as_fn_mkdir_p
16160 # -------------
16161 # Create "$as_dir" as a directory, including parents if necessary.
16162 as_fn_mkdir_p ()
16163 {
16164
16165   case $as_dir in #(
16166   -*) as_dir=./$as_dir;;
16167   esac
16168   test -d "$as_dir" || eval $as_mkdir_p || {
16169     as_dirs=
16170     while :; do
16171       case $as_dir in #(
16172       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16173       *) as_qdir=$as_dir;;
16174       esac
16175       as_dirs="'$as_qdir' $as_dirs"
16176       as_dir=`$as_dirname -- "$as_dir" ||
16177 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16178          X"$as_dir" : 'X\(//\)[^/]' \| \
16179          X"$as_dir" : 'X\(//\)$' \| \
16180          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16181 $as_echo X"$as_dir" |
16182     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16183             s//\1/
16184             q
16185           }
16186           /^X\(\/\/\)[^/].*/{
16187             s//\1/
16188             q
16189           }
16190           /^X\(\/\/\)$/{
16191             s//\1/
16192             q
16193           }
16194           /^X\(\/\).*/{
16195             s//\1/
16196             q
16197           }
16198           s/.*/./; q'`
16199       test -d "$as_dir" && break
16200     done
16201     test -z "$as_dirs" || eval "mkdir $as_dirs"
16202   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16203
16204
16205 } # as_fn_mkdir_p
16206 if mkdir -p . 2>/dev/null; then
16207   as_mkdir_p='mkdir -p "$as_dir"'
16208 else
16209   test -d ./-p && rmdir ./-p
16210   as_mkdir_p=false
16211 fi
16212
16213 if test -x / >/dev/null 2>&1; then
16214   as_test_x='test -x'
16215 else
16216   if ls -dL / >/dev/null 2>&1; then
16217     as_ls_L_option=L
16218   else
16219     as_ls_L_option=
16220   fi
16221   as_test_x='
16222     eval sh -c '\''
16223       if test -d "$1"; then
16224         test -d "$1/.";
16225       else
16226         case $1 in #(
16227         -*)set "./$1";;
16228         esac;
16229         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16230         ???[sx]*):;;*)false;;esac;fi
16231     '\'' sh
16232   '
16233 fi
16234 as_executable_p=$as_test_x
16235
16236 # Sed expression to map a string onto a valid CPP name.
16237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16238
16239 # Sed expression to map a string onto a valid variable name.
16240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16241
16242
16243 exec 6>&1
16244 ## ----------------------------------- ##
16245 ## Main body of $CONFIG_STATUS script. ##
16246 ## ----------------------------------- ##
16247 _ASEOF
16248 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16249
16250 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16251 # Save the log message, to keep $0 and so on meaningful, and to
16252 # report actual input values of CONFIG_FILES etc. instead of their
16253 # values after options handling.
16254 ac_log="
16255 This file was extended by $as_me, which was
16256 generated by GNU Autoconf 2.64.  Invocation command line was
16257
16258   CONFIG_FILES    = $CONFIG_FILES
16259   CONFIG_HEADERS  = $CONFIG_HEADERS
16260   CONFIG_LINKS    = $CONFIG_LINKS
16261   CONFIG_COMMANDS = $CONFIG_COMMANDS
16262   $ $0 $@
16263
16264 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16265 "
16266
16267 _ACEOF
16268
16269 case $ac_config_files in *"
16270 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16271 esac
16272
16273 case $ac_config_headers in *"
16274 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16275 esac
16276
16277
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279 # Files that config.status was made for.
16280 config_files="$ac_config_files"
16281 config_headers="$ac_config_headers"
16282 config_commands="$ac_config_commands"
16283
16284 _ACEOF
16285
16286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16287 ac_cs_usage="\
16288 \`$as_me' instantiates files and other configuration actions
16289 from templates according to the current configuration.  Unless the files
16290 and actions are specified as TAGs, all are instantiated by default.
16291
16292 Usage: $0 [OPTION]... [TAG]...
16293
16294   -h, --help       print this help, then exit
16295   -V, --version    print version number and configuration settings, then exit
16296   -q, --quiet, --silent
16297                    do not print progress messages
16298   -d, --debug      don't remove temporary files
16299       --recheck    update $as_me by reconfiguring in the same conditions
16300       --file=FILE[:TEMPLATE]
16301                    instantiate the configuration file FILE
16302       --header=FILE[:TEMPLATE]
16303                    instantiate the configuration header FILE
16304
16305 Configuration files:
16306 $config_files
16307
16308 Configuration headers:
16309 $config_headers
16310
16311 Configuration commands:
16312 $config_commands
16313
16314 Report bugs to the package provider."
16315
16316 _ACEOF
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 ac_cs_version="\\
16319 config.status
16320 configured by $0, generated by GNU Autoconf 2.64,
16321   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16322
16323 Copyright (C) 2009 Free Software Foundation, Inc.
16324 This config.status script is free software; the Free Software Foundation
16325 gives unlimited permission to copy, distribute and modify it."
16326
16327 ac_pwd='$ac_pwd'
16328 srcdir='$srcdir'
16329 INSTALL='$INSTALL'
16330 MKDIR_P='$MKDIR_P'
16331 AWK='$AWK'
16332 test -n "\$AWK" || AWK=awk
16333 _ACEOF
16334
16335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16336 # The default lists apply if the user does not specify any file.
16337 ac_need_defaults=:
16338 while test $# != 0
16339 do
16340   case $1 in
16341   --*=*)
16342     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16343     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16344     ac_shift=:
16345     ;;
16346   *)
16347     ac_option=$1
16348     ac_optarg=$2
16349     ac_shift=shift
16350     ;;
16351   esac
16352
16353   case $ac_option in
16354   # Handling of the options.
16355   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16356     ac_cs_recheck=: ;;
16357   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16358     $as_echo "$ac_cs_version"; exit ;;
16359   --debug | --debu | --deb | --de | --d | -d )
16360     debug=: ;;
16361   --file | --fil | --fi | --f )
16362     $ac_shift
16363     case $ac_optarg in
16364     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16365     esac
16366     as_fn_append CONFIG_FILES " '$ac_optarg'"
16367     ac_need_defaults=false;;
16368   --header | --heade | --head | --hea )
16369     $ac_shift
16370     case $ac_optarg in
16371     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16372     esac
16373     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16374     ac_need_defaults=false;;
16375   --he | --h)
16376     # Conflict between --help and --header
16377     as_fn_error "ambiguous option: \`$1'
16378 Try \`$0 --help' for more information.";;
16379   --help | --hel | -h )
16380     $as_echo "$ac_cs_usage"; exit ;;
16381   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16382   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16383     ac_cs_silent=: ;;
16384
16385   # This is an error.
16386   -*) as_fn_error "unrecognized option: \`$1'
16387 Try \`$0 --help' for more information." ;;
16388
16389   *) as_fn_append ac_config_targets " $1"
16390      ac_need_defaults=false ;;
16391
16392   esac
16393   shift
16394 done
16395
16396 ac_configure_extra_args=
16397
16398 if $ac_cs_silent; then
16399   exec 6>/dev/null
16400   ac_configure_extra_args="$ac_configure_extra_args --silent"
16401 fi
16402
16403 _ACEOF
16404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16405 if \$ac_cs_recheck; then
16406   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16407   shift
16408   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16409   CONFIG_SHELL='$SHELL'
16410   export CONFIG_SHELL
16411   exec "\$@"
16412 fi
16413
16414 _ACEOF
16415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16416 exec 5>>config.log
16417 {
16418   echo
16419   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16420 ## Running $as_me. ##
16421 _ASBOX
16422   $as_echo "$ac_log"
16423 } >&5
16424
16425 _ACEOF
16426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16427 #
16428 # INIT-COMMANDS
16429 #
16430 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16431
16432
16433 # The HP-UX ksh and POSIX shell print the target directory to stdout
16434 # if CDPATH is set.
16435 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16436
16437 sed_quote_subst='$sed_quote_subst'
16438 double_quote_subst='$double_quote_subst'
16439 delay_variable_subst='$delay_variable_subst'
16440 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16441 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16442 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16443 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16444 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16445 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16446 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16447 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16448 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16449 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16450 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16451 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16452 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16453 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16454 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16455 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16456 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16457 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16458 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16459 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16460 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16461 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16462 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16463 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16464 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16465 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16466 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16467 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16468 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16469 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16470 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16471 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16472 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16473 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16474 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16475 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16476 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16477 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16478 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16479 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16480 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16481 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16482 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16483 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16484 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16485 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16486 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16487 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16488 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"`'
16489 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16490 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16491 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16492 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16493 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16494 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16495 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16496 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16497 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16498 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16499 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16500 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16501 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16502 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16503 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16504 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16505 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16506 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16507 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16508 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16509 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16510 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16511 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16512 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16513 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16514 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16515 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16516 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16517 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16518 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16519 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16520 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
16521 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16522 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16523 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16524 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16525 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16526 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16527 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16528 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16529 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
16530 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16531 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16532 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16533 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16534 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16535 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16536 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16537 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16538 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16539 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16540 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16541 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16542 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16543 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16544 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16545 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16546 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16547 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16548 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16549 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16550 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16551 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16552 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16553 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16554 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16555 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16556 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16557 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16558 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16559 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16560
16561 LTCC='$LTCC'
16562 LTCFLAGS='$LTCFLAGS'
16563 compiler='$compiler_DEFAULT'
16564
16565 # A function that is used when there is no print builtin or printf.
16566 func_fallback_echo ()
16567 {
16568   eval 'cat <<_LTECHO_EOF
16569 \$1
16570 _LTECHO_EOF'
16571 }
16572
16573 # Quote evaled strings.
16574 for var in SHELL \
16575 ECHO \
16576 SED \
16577 GREP \
16578 EGREP \
16579 FGREP \
16580 LD \
16581 NM \
16582 LN_S \
16583 lt_SP2NL \
16584 lt_NL2SP \
16585 reload_flag \
16586 OBJDUMP \
16587 deplibs_check_method \
16588 file_magic_cmd \
16589 AR \
16590 AR_FLAGS \
16591 STRIP \
16592 RANLIB \
16593 CC \
16594 CFLAGS \
16595 compiler \
16596 lt_cv_sys_global_symbol_pipe \
16597 lt_cv_sys_global_symbol_to_cdecl \
16598 lt_cv_sys_global_symbol_to_c_name_address \
16599 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16600 lt_prog_compiler_no_builtin_flag \
16601 lt_prog_compiler_wl \
16602 lt_prog_compiler_pic \
16603 lt_prog_compiler_static \
16604 lt_cv_prog_compiler_c_o \
16605 need_locks \
16606 DSYMUTIL \
16607 NMEDIT \
16608 LIPO \
16609 OTOOL \
16610 OTOOL64 \
16611 shrext_cmds \
16612 export_dynamic_flag_spec \
16613 whole_archive_flag_spec \
16614 compiler_needs_object \
16615 with_gnu_ld \
16616 allow_undefined_flag \
16617 no_undefined_flag \
16618 hardcode_libdir_flag_spec \
16619 hardcode_libdir_flag_spec_ld \
16620 hardcode_libdir_separator \
16621 fix_srcfile_path \
16622 exclude_expsyms \
16623 include_expsyms \
16624 file_list_spec \
16625 variables_saved_for_relink \
16626 libname_spec \
16627 library_names_spec \
16628 soname_spec \
16629 install_override_mode \
16630 finish_eval \
16631 old_striplib \
16632 striplib; do
16633     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16634     *[\\\\\\\`\\"\\\$]*)
16635       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16636       ;;
16637     *)
16638       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16639       ;;
16640     esac
16641 done
16642
16643 # Double-quote double-evaled strings.
16644 for var in reload_cmds \
16645 old_postinstall_cmds \
16646 old_postuninstall_cmds \
16647 old_archive_cmds \
16648 extract_expsyms_cmds \
16649 old_archive_from_new_cmds \
16650 old_archive_from_expsyms_cmds \
16651 archive_cmds \
16652 archive_expsym_cmds \
16653 module_cmds \
16654 module_expsym_cmds \
16655 export_symbols_cmds \
16656 prelink_cmds \
16657 postinstall_cmds \
16658 postuninstall_cmds \
16659 finish_cmds \
16660 sys_lib_search_path_spec \
16661 sys_lib_dlsearch_path_spec; do
16662     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16663     *[\\\\\\\`\\"\\\$]*)
16664       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16665       ;;
16666     *)
16667       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16668       ;;
16669     esac
16670 done
16671
16672 ac_aux_dir='$ac_aux_dir'
16673 xsi_shell='$xsi_shell'
16674 lt_shell_append='$lt_shell_append'
16675
16676 # See if we are running on zsh, and set the options which allow our
16677 # commands through without removal of \ escapes INIT.
16678 if test -n "\${ZSH_VERSION+set}" ; then
16679    setopt NO_GLOB_SUBST
16680 fi
16681
16682
16683     PACKAGE='$PACKAGE'
16684     VERSION='$VERSION'
16685     TIMESTAMP='$TIMESTAMP'
16686     RM='$RM'
16687     ofile='$ofile'
16688
16689
16690
16691 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16692     # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16693     # from automake.
16694     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16695     # Capture the value of LINGUAS because we need it to compute CATALOGS.
16696     LINGUAS="${LINGUAS-%UNSET%}"
16697
16698
16699 GCC="$GCC"
16700 CC="$CC"
16701 acx_cv_header_stdint="$acx_cv_header_stdint"
16702 acx_cv_type_int8_t="$acx_cv_type_int8_t"
16703 acx_cv_type_int16_t="$acx_cv_type_int16_t"
16704 acx_cv_type_int32_t="$acx_cv_type_int32_t"
16705 acx_cv_type_int64_t="$acx_cv_type_int64_t"
16706 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
16707 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
16708 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
16709 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16710 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16711 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
16712 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16713 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16714 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
16715
16716
16717
16718 _ACEOF
16719
16720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16721
16722 # Handling of arguments.
16723 for ac_config_target in $ac_config_targets
16724 do
16725   case $ac_config_target in
16726     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16727     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16728     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16729     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16730     "bfd_stdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;;
16731     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16732     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16733     "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;;
16734     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16735     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16736
16737   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16738   esac
16739 done
16740
16741
16742 # If the user did not use the arguments to specify the items to instantiate,
16743 # then the envvar interface is used.  Set only those that are not.
16744 # We use the long form for the default assignment because of an extremely
16745 # bizarre bug on SunOS 4.1.3.
16746 if $ac_need_defaults; then
16747   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16748   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16749   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16750 fi
16751
16752 # Have a temporary directory for convenience.  Make it in the build tree
16753 # simply because there is no reason against having it here, and in addition,
16754 # creating and moving files from /tmp can sometimes cause problems.
16755 # Hook for its removal unless debugging.
16756 # Note that there is a small window in which the directory will not be cleaned:
16757 # after its creation but before its name has been assigned to `$tmp'.
16758 $debug ||
16759 {
16760   tmp=
16761   trap 'exit_status=$?
16762   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16763 ' 0
16764   trap 'as_fn_exit 1' 1 2 13 15
16765 }
16766 # Create a (secure) tmp directory for tmp files.
16767
16768 {
16769   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16770   test -n "$tmp" && test -d "$tmp"
16771 }  ||
16772 {
16773   tmp=./conf$$-$RANDOM
16774   (umask 077 && mkdir "$tmp")
16775 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16776
16777 # Set up the scripts for CONFIG_FILES section.
16778 # No need to generate them if there are no CONFIG_FILES.
16779 # This happens for instance with `./config.status config.h'.
16780 if test -n "$CONFIG_FILES"; then
16781
16782
16783 ac_cr=`echo X | tr X '\015'`
16784 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16785 # But we know of no other shell where ac_cr would be empty at this
16786 # point, so we can use a bashism as a fallback.
16787 if test "x$ac_cr" = x; then
16788   eval ac_cr=\$\'\\r\'
16789 fi
16790 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16791 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16792   ac_cs_awk_cr='\r'
16793 else
16794   ac_cs_awk_cr=$ac_cr
16795 fi
16796
16797 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16798 _ACEOF
16799
16800
16801 {
16802   echo "cat >conf$$subs.awk <<_ACEOF" &&
16803   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16804   echo "_ACEOF"
16805 } >conf$$subs.sh ||
16806   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16808 ac_delim='%!_!# '
16809 for ac_last_try in false false false false false :; do
16810   . ./conf$$subs.sh ||
16811     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16812
16813   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16814   if test $ac_delim_n = $ac_delim_num; then
16815     break
16816   elif $ac_last_try; then
16817     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16818   else
16819     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16820   fi
16821 done
16822 rm -f conf$$subs.sh
16823
16824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16825 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16826 _ACEOF
16827 sed -n '
16828 h
16829 s/^/S["/; s/!.*/"]=/
16830 p
16831 g
16832 s/^[^!]*!//
16833 :repl
16834 t repl
16835 s/'"$ac_delim"'$//
16836 t delim
16837 :nl
16838 h
16839 s/\(.\{148\}\).*/\1/
16840 t more1
16841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16842 p
16843 n
16844 b repl
16845 :more1
16846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16847 p
16848 g
16849 s/.\{148\}//
16850 t nl
16851 :delim
16852 h
16853 s/\(.\{148\}\).*/\1/
16854 t more2
16855 s/["\\]/\\&/g; s/^/"/; s/$/"/
16856 p
16857 b
16858 :more2
16859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16860 p
16861 g
16862 s/.\{148\}//
16863 t delim
16864 ' <conf$$subs.awk | sed '
16865 /^[^""]/{
16866   N
16867   s/\n//
16868 }
16869 ' >>$CONFIG_STATUS || ac_write_fail=1
16870 rm -f conf$$subs.awk
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 _ACAWK
16873 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16874   for (key in S) S_is_set[key] = 1
16875   FS = "\a"
16876
16877 }
16878 {
16879   line = $ 0
16880   nfields = split(line, field, "@")
16881   substed = 0
16882   len = length(field[1])
16883   for (i = 2; i < nfields; i++) {
16884     key = field[i]
16885     keylen = length(key)
16886     if (S_is_set[key]) {
16887       value = S[key]
16888       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16889       len += length(value) + length(field[++i])
16890       substed = 1
16891     } else
16892       len += 1 + keylen
16893   }
16894
16895   print line
16896 }
16897
16898 _ACAWK
16899 _ACEOF
16900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16902   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16903 else
16904   cat
16905 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16906   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16907 _ACEOF
16908
16909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16911 # trailing colons and then remove the whole line if VPATH becomes empty
16912 # (actually we leave an empty line to preserve line numbers).
16913 if test "x$srcdir" = x.; then
16914   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16915 s/:*\$(srcdir):*/:/
16916 s/:*\${srcdir}:*/:/
16917 s/:*@srcdir@:*/:/
16918 s/^\([^=]*=[     ]*\):*/\1/
16919 s/:*$//
16920 s/^[^=]*=[       ]*$//
16921 }'
16922 fi
16923
16924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16925 fi # test -n "$CONFIG_FILES"
16926
16927 # Set up the scripts for CONFIG_HEADERS section.
16928 # No need to generate them if there are no CONFIG_HEADERS.
16929 # This happens for instance with `./config.status Makefile'.
16930 if test -n "$CONFIG_HEADERS"; then
16931 cat >"$tmp/defines.awk" <<\_ACAWK ||
16932 BEGIN {
16933 _ACEOF
16934
16935 # Transform confdefs.h into an awk script `defines.awk', embedded as
16936 # here-document in config.status, that substitutes the proper values into
16937 # config.h.in to produce config.h.
16938
16939 # Create a delimiter string that does not exist in confdefs.h, to ease
16940 # handling of long lines.
16941 ac_delim='%!_!# '
16942 for ac_last_try in false false :; do
16943   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16944   if test -z "$ac_t"; then
16945     break
16946   elif $ac_last_try; then
16947     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16948   else
16949     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16950   fi
16951 done
16952
16953 # For the awk script, D is an array of macro values keyed by name,
16954 # likewise P contains macro parameters if any.  Preserve backslash
16955 # newline sequences.
16956
16957 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16958 sed -n '
16959 s/.\{148\}/&'"$ac_delim"'/g
16960 t rset
16961 :rset
16962 s/^[     ]*#[    ]*define[       ][      ]*/ /
16963 t def
16964 d
16965 :def
16966 s/\\$//
16967 t bsnl
16968 s/["\\]/\\&/g
16969 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16970 D["\1"]=" \3"/p
16971 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16972 d
16973 :bsnl
16974 s/["\\]/\\&/g
16975 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16976 D["\1"]=" \3\\\\\\n"\\/p
16977 t cont
16978 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16979 t cont
16980 d
16981 :cont
16982 n
16983 s/.\{148\}/&'"$ac_delim"'/g
16984 t clear
16985 :clear
16986 s/\\$//
16987 t bsnlc
16988 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16989 d
16990 :bsnlc
16991 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16992 b cont
16993 ' <confdefs.h | sed '
16994 s/'"$ac_delim"'/"\\\
16995 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16996
16997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16998   for (key in D) D_is_set[key] = 1
16999   FS = "\a"
17000 }
17001 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17002   line = \$ 0
17003   split(line, arg, " ")
17004   if (arg[1] == "#") {
17005     defundef = arg[2]
17006     mac1 = arg[3]
17007   } else {
17008     defundef = substr(arg[1], 2)
17009     mac1 = arg[2]
17010   }
17011   split(mac1, mac2, "(") #)
17012   macro = mac2[1]
17013   prefix = substr(line, 1, index(line, defundef) - 1)
17014   if (D_is_set[macro]) {
17015     # Preserve the white space surrounding the "#".
17016     print prefix "define", macro P[macro] D[macro]
17017     next
17018   } else {
17019     # Replace #undef with comments.  This is necessary, for example,
17020     # in the case of _POSIX_SOURCE, which is predefined and required
17021     # on some systems where configure will not decide to define it.
17022     if (defundef == "undef") {
17023       print "/*", prefix defundef, macro, "*/"
17024       next
17025     }
17026   }
17027 }
17028 { print }
17029 _ACAWK
17030 _ACEOF
17031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17032   as_fn_error "could not setup config headers machinery" "$LINENO" 5
17033 fi # test -n "$CONFIG_HEADERS"
17034
17035
17036 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17037 shift
17038 for ac_tag
17039 do
17040   case $ac_tag in
17041   :[FHLC]) ac_mode=$ac_tag; continue;;
17042   esac
17043   case $ac_mode$ac_tag in
17044   :[FHL]*:*);;
17045   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17046   :[FH]-) ac_tag=-:-;;
17047   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17048   esac
17049   ac_save_IFS=$IFS
17050   IFS=:
17051   set x $ac_tag
17052   IFS=$ac_save_IFS
17053   shift
17054   ac_file=$1
17055   shift
17056
17057   case $ac_mode in
17058   :L) ac_source=$1;;
17059   :[FH])
17060     ac_file_inputs=
17061     for ac_f
17062     do
17063       case $ac_f in
17064       -) ac_f="$tmp/stdin";;
17065       *) # Look for the file first in the build tree, then in the source tree
17066          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17067          # because $ac_f cannot contain `:'.
17068          test -f "$ac_f" ||
17069            case $ac_f in
17070            [\\/$]*) false;;
17071            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17072            esac ||
17073            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17074       esac
17075       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17076       as_fn_append ac_file_inputs " '$ac_f'"
17077     done
17078
17079     # Let's still pretend it is `configure' which instantiates (i.e., don't
17080     # use $as_me), people would be surprised to read:
17081     #    /* config.h.  Generated by config.status.  */
17082     configure_input='Generated from '`
17083           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17084         `' by configure.'
17085     if test x"$ac_file" != x-; then
17086       configure_input="$ac_file.  $configure_input"
17087       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17088 $as_echo "$as_me: creating $ac_file" >&6;}
17089     fi
17090     # Neutralize special characters interpreted by sed in replacement strings.
17091     case $configure_input in #(
17092     *\&* | *\|* | *\\* )
17093        ac_sed_conf_input=`$as_echo "$configure_input" |
17094        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17095     *) ac_sed_conf_input=$configure_input;;
17096     esac
17097
17098     case $ac_tag in
17099     *:-:* | *:-) cat >"$tmp/stdin" \
17100       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17101     esac
17102     ;;
17103   esac
17104
17105   ac_dir=`$as_dirname -- "$ac_file" ||
17106 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17107          X"$ac_file" : 'X\(//\)[^/]' \| \
17108          X"$ac_file" : 'X\(//\)$' \| \
17109          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17110 $as_echo X"$ac_file" |
17111     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17112             s//\1/
17113             q
17114           }
17115           /^X\(\/\/\)[^/].*/{
17116             s//\1/
17117             q
17118           }
17119           /^X\(\/\/\)$/{
17120             s//\1/
17121             q
17122           }
17123           /^X\(\/\).*/{
17124             s//\1/
17125             q
17126           }
17127           s/.*/./; q'`
17128   as_dir="$ac_dir"; as_fn_mkdir_p
17129   ac_builddir=.
17130
17131 case "$ac_dir" in
17132 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17133 *)
17134   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17135   # A ".." for each directory in $ac_dir_suffix.
17136   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17137   case $ac_top_builddir_sub in
17138   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17139   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17140   esac ;;
17141 esac
17142 ac_abs_top_builddir=$ac_pwd
17143 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17144 # for backward compatibility:
17145 ac_top_builddir=$ac_top_build_prefix
17146
17147 case $srcdir in
17148   .)  # We are building in place.
17149     ac_srcdir=.
17150     ac_top_srcdir=$ac_top_builddir_sub
17151     ac_abs_top_srcdir=$ac_pwd ;;
17152   [\\/]* | ?:[\\/]* )  # Absolute name.
17153     ac_srcdir=$srcdir$ac_dir_suffix;
17154     ac_top_srcdir=$srcdir
17155     ac_abs_top_srcdir=$srcdir ;;
17156   *) # Relative name.
17157     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17158     ac_top_srcdir=$ac_top_build_prefix$srcdir
17159     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17160 esac
17161 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17162
17163
17164   case $ac_mode in
17165   :F)
17166   #
17167   # CONFIG_FILE
17168   #
17169
17170   case $INSTALL in
17171   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17172   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17173   esac
17174   ac_MKDIR_P=$MKDIR_P
17175   case $MKDIR_P in
17176   [\\/$]* | ?:[\\/]* ) ;;
17177   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17178   esac
17179 _ACEOF
17180
17181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 # If the template does not know about datarootdir, expand it.
17183 # FIXME: This hack should be removed a few years after 2.60.
17184 ac_datarootdir_hack=; ac_datarootdir_seen=
17185 ac_sed_dataroot='
17186 /datarootdir/ {
17187   p
17188   q
17189 }
17190 /@datadir@/p
17191 /@docdir@/p
17192 /@infodir@/p
17193 /@localedir@/p
17194 /@mandir@/p'
17195 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17196 *datarootdir*) ac_datarootdir_seen=yes;;
17197 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17198   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17199 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17200 _ACEOF
17201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17202   ac_datarootdir_hack='
17203   s&@datadir@&$datadir&g
17204   s&@docdir@&$docdir&g
17205   s&@infodir@&$infodir&g
17206   s&@localedir@&$localedir&g
17207   s&@mandir@&$mandir&g
17208   s&\\\${datarootdir}&$datarootdir&g' ;;
17209 esac
17210 _ACEOF
17211
17212 # Neutralize VPATH when `$srcdir' = `.'.
17213 # Shell code in configure.ac might set extrasub.
17214 # FIXME: do we really want to maintain this feature?
17215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17216 ac_sed_extra="$ac_vpsub
17217 $extrasub
17218 _ACEOF
17219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17220 :t
17221 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17222 s|@configure_input@|$ac_sed_conf_input|;t t
17223 s&@top_builddir@&$ac_top_builddir_sub&;t t
17224 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17225 s&@srcdir@&$ac_srcdir&;t t
17226 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17227 s&@top_srcdir@&$ac_top_srcdir&;t t
17228 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17229 s&@builddir@&$ac_builddir&;t t
17230 s&@abs_builddir@&$ac_abs_builddir&;t t
17231 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17232 s&@INSTALL@&$ac_INSTALL&;t t
17233 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17234 $ac_datarootdir_hack
17235 "
17236 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17237   || as_fn_error "could not create $ac_file" "$LINENO" 5
17238
17239 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17240   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17241   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17242   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17243 which seems to be undefined.  Please make sure it is defined." >&5
17244 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17245 which seems to be undefined.  Please make sure it is defined." >&2;}
17246
17247   rm -f "$tmp/stdin"
17248   case $ac_file in
17249   -) cat "$tmp/out" && rm -f "$tmp/out";;
17250   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17251   esac \
17252   || as_fn_error "could not create $ac_file" "$LINENO" 5
17253  ;;
17254   :H)
17255   #
17256   # CONFIG_HEADER
17257   #
17258   if test x"$ac_file" != x-; then
17259     {
17260       $as_echo "/* $configure_input  */" \
17261       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17262     } >"$tmp/config.h" \
17263       || as_fn_error "could not create $ac_file" "$LINENO" 5
17264     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17265       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17266 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17267     else
17268       rm -f "$ac_file"
17269       mv "$tmp/config.h" "$ac_file" \
17270         || as_fn_error "could not create $ac_file" "$LINENO" 5
17271     fi
17272   else
17273     $as_echo "/* $configure_input  */" \
17274       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17275       || as_fn_error "could not create -" "$LINENO" 5
17276   fi
17277 # Compute "$ac_file"'s index in $config_headers.
17278 _am_arg="$ac_file"
17279 _am_stamp_count=1
17280 for _am_header in $config_headers :; do
17281   case $_am_header in
17282     $_am_arg | $_am_arg:* )
17283       break ;;
17284     * )
17285       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17286   esac
17287 done
17288 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17289 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17290          X"$_am_arg" : 'X\(//\)[^/]' \| \
17291          X"$_am_arg" : 'X\(//\)$' \| \
17292          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17293 $as_echo X"$_am_arg" |
17294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17295             s//\1/
17296             q
17297           }
17298           /^X\(\/\/\)[^/].*/{
17299             s//\1/
17300             q
17301           }
17302           /^X\(\/\/\)$/{
17303             s//\1/
17304             q
17305           }
17306           /^X\(\/\).*/{
17307             s//\1/
17308             q
17309           }
17310           s/.*/./; q'`/stamp-h$_am_stamp_count
17311  ;;
17312
17313   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17314 $as_echo "$as_me: executing $ac_file commands" >&6;}
17315  ;;
17316   esac
17317
17318
17319   case $ac_file$ac_mode in
17320     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17321   # Autoconf 2.62 quotes --file arguments for eval, but not when files
17322   # are listed without --file.  Let's play safe and only enable the eval
17323   # if we detect the quoting.
17324   case $CONFIG_FILES in
17325   *\'*) eval set x "$CONFIG_FILES" ;;
17326   *)   set x $CONFIG_FILES ;;
17327   esac
17328   shift
17329   for mf
17330   do
17331     # Strip MF so we end up with the name of the file.
17332     mf=`echo "$mf" | sed -e 's/:.*$//'`
17333     # Check whether this is an Automake generated Makefile or not.
17334     # We used to match only the files named `Makefile.in', but
17335     # some people rename them; so instead we look at the file content.
17336     # Grep'ing the first line is not enough: some people post-process
17337     # each Makefile.in and add a new line on top of each file to say so.
17338     # Grep'ing the whole file is not good either: AIX grep has a line
17339     # limit of 2048, but all sed's we know have understand at least 4000.
17340     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17341       dirpart=`$as_dirname -- "$mf" ||
17342 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343          X"$mf" : 'X\(//\)[^/]' \| \
17344          X"$mf" : 'X\(//\)$' \| \
17345          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17346 $as_echo X"$mf" |
17347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17348             s//\1/
17349             q
17350           }
17351           /^X\(\/\/\)[^/].*/{
17352             s//\1/
17353             q
17354           }
17355           /^X\(\/\/\)$/{
17356             s//\1/
17357             q
17358           }
17359           /^X\(\/\).*/{
17360             s//\1/
17361             q
17362           }
17363           s/.*/./; q'`
17364     else
17365       continue
17366     fi
17367     # Extract the definition of DEPDIR, am__include, and am__quote
17368     # from the Makefile without running `make'.
17369     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17370     test -z "$DEPDIR" && continue
17371     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17372     test -z "am__include" && continue
17373     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17374     # When using ansi2knr, U may be empty or an underscore; expand it
17375     U=`sed -n 's/^U = //p' < "$mf"`
17376     # Find all dependency output files, they are included files with
17377     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17378     # simplest approach to changing $(DEPDIR) to its actual value in the
17379     # expansion.
17380     for file in `sed -n "
17381       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17382          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17383       # Make sure the directory exists.
17384       test -f "$dirpart/$file" && continue
17385       fdir=`$as_dirname -- "$file" ||
17386 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17387          X"$file" : 'X\(//\)[^/]' \| \
17388          X"$file" : 'X\(//\)$' \| \
17389          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17390 $as_echo X"$file" |
17391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17392             s//\1/
17393             q
17394           }
17395           /^X\(\/\/\)[^/].*/{
17396             s//\1/
17397             q
17398           }
17399           /^X\(\/\/\)$/{
17400             s//\1/
17401             q
17402           }
17403           /^X\(\/\).*/{
17404             s//\1/
17405             q
17406           }
17407           s/.*/./; q'`
17408       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17409       # echo "creating $dirpart/$file"
17410       echo '# dummy' > "$dirpart/$file"
17411     done
17412   done
17413 }
17414  ;;
17415     "libtool":C)
17416
17417     # See if we are running on zsh, and set the options which allow our
17418     # commands through without removal of \ escapes.
17419     if test -n "${ZSH_VERSION+set}" ; then
17420       setopt NO_GLOB_SUBST
17421     fi
17422
17423     cfgfile="${ofile}T"
17424     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17425     $RM "$cfgfile"
17426
17427     cat <<_LT_EOF >> "$cfgfile"
17428 #! $SHELL
17429
17430 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17431 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17432 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17433 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17434 #
17435 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17436 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
17437 #   Written by Gordon Matzigkeit, 1996
17438 #
17439 #   This file is part of GNU Libtool.
17440 #
17441 # GNU Libtool is free software; you can redistribute it and/or
17442 # modify it under the terms of the GNU General Public License as
17443 # published by the Free Software Foundation; either version 2 of
17444 # the License, or (at your option) any later version.
17445 #
17446 # As a special exception to the GNU General Public License,
17447 # if you distribute this file as part of a program or library that
17448 # is built using GNU Libtool, you may include this file under the
17449 # same distribution terms that you use for the rest of that program.
17450 #
17451 # GNU Libtool is distributed in the hope that it will be useful,
17452 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17453 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17454 # GNU General Public License for more details.
17455 #
17456 # You should have received a copy of the GNU General Public License
17457 # along with GNU Libtool; see the file COPYING.  If not, a copy
17458 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17459 # obtained by writing to the Free Software Foundation, Inc.,
17460 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17461
17462
17463 # The names of the tagged configurations supported by this script.
17464 available_tags=""
17465
17466 # ### BEGIN LIBTOOL CONFIG
17467
17468 # Whether or not to build shared libraries.
17469 build_libtool_libs=$enable_shared
17470
17471 # Which release of libtool.m4 was used?
17472 macro_version=$macro_version
17473 macro_revision=$macro_revision
17474
17475 # Whether or not to build static libraries.
17476 build_old_libs=$enable_static
17477
17478 # What type of objects to build.
17479 pic_mode=$pic_mode
17480
17481 # Whether or not to optimize for fast installation.
17482 fast_install=$enable_fast_install
17483
17484 # Shell to use when invoking shell scripts.
17485 SHELL=$lt_SHELL
17486
17487 # An echo program that protects backslashes.
17488 ECHO=$lt_ECHO
17489
17490 # The host system.
17491 host_alias=$host_alias
17492 host=$host
17493 host_os=$host_os
17494
17495 # The build system.
17496 build_alias=$build_alias
17497 build=$build
17498 build_os=$build_os
17499
17500 # A sed program that does not truncate output.
17501 SED=$lt_SED
17502
17503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17504 Xsed="\$SED -e 1s/^X//"
17505
17506 # A grep program that handles long lines.
17507 GREP=$lt_GREP
17508
17509 # An ERE matcher.
17510 EGREP=$lt_EGREP
17511
17512 # A literal string matcher.
17513 FGREP=$lt_FGREP
17514
17515 # A BSD- or MS-compatible name lister.
17516 NM=$lt_NM
17517
17518 # Whether we need soft or hard links.
17519 LN_S=$lt_LN_S
17520
17521 # What is the maximum length of a command?
17522 max_cmd_len=$max_cmd_len
17523
17524 # Object file suffix (normally "o").
17525 objext=$ac_objext
17526
17527 # Executable file suffix (normally "").
17528 exeext=$exeext
17529
17530 # whether the shell understands "unset".
17531 lt_unset=$lt_unset
17532
17533 # turn spaces into newlines.
17534 SP2NL=$lt_lt_SP2NL
17535
17536 # turn newlines into spaces.
17537 NL2SP=$lt_lt_NL2SP
17538
17539 # An object symbol dumper.
17540 OBJDUMP=$lt_OBJDUMP
17541
17542 # Method to check whether dependent libraries are shared objects.
17543 deplibs_check_method=$lt_deplibs_check_method
17544
17545 # Command to use when deplibs_check_method == "file_magic".
17546 file_magic_cmd=$lt_file_magic_cmd
17547
17548 # The archiver.
17549 AR=$lt_AR
17550 AR_FLAGS=$lt_AR_FLAGS
17551
17552 # A symbol stripping program.
17553 STRIP=$lt_STRIP
17554
17555 # Commands used to install an old-style archive.
17556 RANLIB=$lt_RANLIB
17557 old_postinstall_cmds=$lt_old_postinstall_cmds
17558 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17559
17560 # Whether to use a lock for old archive extraction.
17561 lock_old_archive_extraction=$lock_old_archive_extraction
17562
17563 # A C compiler.
17564 LTCC=$lt_CC
17565
17566 # LTCC compiler flags.
17567 LTCFLAGS=$lt_CFLAGS
17568
17569 # Take the output of nm and produce a listing of raw symbols and C names.
17570 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17571
17572 # Transform the output of nm in a proper C declaration.
17573 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17574
17575 # Transform the output of nm in a C name address pair.
17576 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17577
17578 # Transform the output of nm in a C name address pair when lib prefix is needed.
17579 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17580
17581 # The name of the directory that contains temporary libtool files.
17582 objdir=$objdir
17583
17584 # Used to examine libraries when file_magic_cmd begins with "file".
17585 MAGIC_CMD=$MAGIC_CMD
17586
17587 # Must we lock files when doing compilation?
17588 need_locks=$lt_need_locks
17589
17590 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17591 DSYMUTIL=$lt_DSYMUTIL
17592
17593 # Tool to change global to local symbols on Mac OS X.
17594 NMEDIT=$lt_NMEDIT
17595
17596 # Tool to manipulate fat objects and archives on Mac OS X.
17597 LIPO=$lt_LIPO
17598
17599 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17600 OTOOL=$lt_OTOOL
17601
17602 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17603 OTOOL64=$lt_OTOOL64
17604
17605 # Old archive suffix (normally "a").
17606 libext=$libext
17607
17608 # Shared library suffix (normally ".so").
17609 shrext_cmds=$lt_shrext_cmds
17610
17611 # The commands to extract the exported symbol list from a shared archive.
17612 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17613
17614 # Variables whose values should be saved in libtool wrapper scripts and
17615 # restored at link time.
17616 variables_saved_for_relink=$lt_variables_saved_for_relink
17617
17618 # Do we need the "lib" prefix for modules?
17619 need_lib_prefix=$need_lib_prefix
17620
17621 # Do we need a version for libraries?
17622 need_version=$need_version
17623
17624 # Library versioning type.
17625 version_type=$version_type
17626
17627 # Shared library runtime path variable.
17628 runpath_var=$runpath_var
17629
17630 # Shared library path variable.
17631 shlibpath_var=$shlibpath_var
17632
17633 # Is shlibpath searched before the hard-coded library search path?
17634 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17635
17636 # Format of library name prefix.
17637 libname_spec=$lt_libname_spec
17638
17639 # List of archive names.  First name is the real one, the rest are links.
17640 # The last name is the one that the linker finds with -lNAME
17641 library_names_spec=$lt_library_names_spec
17642
17643 # The coded name of the library, if different from the real name.
17644 soname_spec=$lt_soname_spec
17645
17646 # Permission mode override for installation of shared libraries.
17647 install_override_mode=$lt_install_override_mode
17648
17649 # Command to use after installation of a shared archive.
17650 postinstall_cmds=$lt_postinstall_cmds
17651
17652 # Command to use after uninstallation of a shared archive.
17653 postuninstall_cmds=$lt_postuninstall_cmds
17654
17655 # Commands used to finish a libtool library installation in a directory.
17656 finish_cmds=$lt_finish_cmds
17657
17658 # As "finish_cmds", except a single script fragment to be evaled but
17659 # not shown.
17660 finish_eval=$lt_finish_eval
17661
17662 # Whether we should hardcode library paths into libraries.
17663 hardcode_into_libs=$hardcode_into_libs
17664
17665 # Compile-time system search path for libraries.
17666 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17667
17668 # Run-time system search path for libraries.
17669 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17670
17671 # Whether dlopen is supported.
17672 dlopen_support=$enable_dlopen
17673
17674 # Whether dlopen of programs is supported.
17675 dlopen_self=$enable_dlopen_self
17676
17677 # Whether dlopen of statically linked programs is supported.
17678 dlopen_self_static=$enable_dlopen_self_static
17679
17680 # Commands to strip libraries.
17681 old_striplib=$lt_old_striplib
17682 striplib=$lt_striplib
17683
17684
17685 # The linker used to build libraries.
17686 LD=$lt_LD
17687
17688 # How to create reloadable object files.
17689 reload_flag=$lt_reload_flag
17690 reload_cmds=$lt_reload_cmds
17691
17692 # Commands used to build an old-style archive.
17693 old_archive_cmds=$lt_old_archive_cmds
17694
17695 # A language specific compiler.
17696 CC=$lt_compiler
17697
17698 # Is the compiler the GNU compiler?
17699 with_gcc=$GCC
17700
17701 # Compiler flag to turn off builtin functions.
17702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17703
17704 # How to pass a linker flag through the compiler.
17705 wl=$lt_lt_prog_compiler_wl
17706
17707 # Additional compiler flags for building library objects.
17708 pic_flag=$lt_lt_prog_compiler_pic
17709
17710 # Compiler flag to prevent dynamic linking.
17711 link_static_flag=$lt_lt_prog_compiler_static
17712
17713 # Does compiler simultaneously support -c and -o options?
17714 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17715
17716 # Whether or not to add -lc for building shared libraries.
17717 build_libtool_need_lc=$archive_cmds_need_lc
17718
17719 # Whether or not to disallow shared libs when runtime libs are static.
17720 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17721
17722 # Compiler flag to allow reflexive dlopens.
17723 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17724
17725 # Compiler flag to generate shared objects directly from archives.
17726 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17727
17728 # Whether the compiler copes with passing no objects directly.
17729 compiler_needs_object=$lt_compiler_needs_object
17730
17731 # Create an old-style archive from a shared archive.
17732 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17733
17734 # Create a temporary old-style archive to link instead of a shared archive.
17735 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17736
17737 # Commands used to build a shared archive.
17738 archive_cmds=$lt_archive_cmds
17739 archive_expsym_cmds=$lt_archive_expsym_cmds
17740
17741 # Commands used to build a loadable module if different from building
17742 # a shared archive.
17743 module_cmds=$lt_module_cmds
17744 module_expsym_cmds=$lt_module_expsym_cmds
17745
17746 # Whether we are building with GNU ld or not.
17747 with_gnu_ld=$lt_with_gnu_ld
17748
17749 # Flag that allows shared libraries with undefined symbols to be built.
17750 allow_undefined_flag=$lt_allow_undefined_flag
17751
17752 # Flag that enforces no undefined symbols.
17753 no_undefined_flag=$lt_no_undefined_flag
17754
17755 # Flag to hardcode \$libdir into a binary during linking.
17756 # This must work even if \$libdir does not exist
17757 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17758
17759 # If ld is used when linking, flag to hardcode \$libdir into a binary
17760 # during linking.  This must work even if \$libdir does not exist.
17761 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17762
17763 # Whether we need a single "-rpath" flag with a separated argument.
17764 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17765
17766 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17767 # DIR into the resulting binary.
17768 hardcode_direct=$hardcode_direct
17769
17770 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17771 # DIR into the resulting binary and the resulting library dependency is
17772 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17773 # library is relocated.
17774 hardcode_direct_absolute=$hardcode_direct_absolute
17775
17776 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17777 # into the resulting binary.
17778 hardcode_minus_L=$hardcode_minus_L
17779
17780 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17781 # into the resulting binary.
17782 hardcode_shlibpath_var=$hardcode_shlibpath_var
17783
17784 # Set to "yes" if building a shared library automatically hardcodes DIR
17785 # into the library and all subsequent libraries and executables linked
17786 # against it.
17787 hardcode_automatic=$hardcode_automatic
17788
17789 # Set to yes if linker adds runtime paths of dependent libraries
17790 # to runtime path list.
17791 inherit_rpath=$inherit_rpath
17792
17793 # Whether libtool must link a program against all its dependency libraries.
17794 link_all_deplibs=$link_all_deplibs
17795
17796 # Fix the shell variable \$srcfile for the compiler.
17797 fix_srcfile_path=$lt_fix_srcfile_path
17798
17799 # Set to "yes" if exported symbols are required.
17800 always_export_symbols=$always_export_symbols
17801
17802 # The commands to list exported symbols.
17803 export_symbols_cmds=$lt_export_symbols_cmds
17804
17805 # Symbols that should not be listed in the preloaded symbols.
17806 exclude_expsyms=$lt_exclude_expsyms
17807
17808 # Symbols that must always be exported.
17809 include_expsyms=$lt_include_expsyms
17810
17811 # Commands necessary for linking programs (against libraries) with templates.
17812 prelink_cmds=$lt_prelink_cmds
17813
17814 # Specify filename containing input files.
17815 file_list_spec=$lt_file_list_spec
17816
17817 # How to hardcode a shared library path into an executable.
17818 hardcode_action=$hardcode_action
17819
17820 # ### END LIBTOOL CONFIG
17821
17822 _LT_EOF
17823
17824   case $host_os in
17825   aix3*)
17826     cat <<\_LT_EOF >> "$cfgfile"
17827 # AIX sometimes has problems with the GCC collect2 program.  For some
17828 # reason, if we set the COLLECT_NAMES environment variable, the problems
17829 # vanish in a puff of smoke.
17830 if test "X${COLLECT_NAMES+set}" != Xset; then
17831   COLLECT_NAMES=
17832   export COLLECT_NAMES
17833 fi
17834 _LT_EOF
17835     ;;
17836   esac
17837
17838
17839 ltmain="$ac_aux_dir/ltmain.sh"
17840
17841
17842   # We use sed instead of cat because bash on DJGPP gets confused if
17843   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17844   # text mode, it properly converts lines to CR/LF.  This bash problem
17845   # is reportedly fixed, but why not run on old versions too?
17846   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17847     || (rm -f "$cfgfile"; exit 1)
17848
17849   case $xsi_shell in
17850   yes)
17851     cat << \_LT_EOF >> "$cfgfile"
17852
17853 # func_dirname file append nondir_replacement
17854 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17855 # otherwise set result to NONDIR_REPLACEMENT.
17856 func_dirname ()
17857 {
17858   case ${1} in
17859     */*) func_dirname_result="${1%/*}${2}" ;;
17860     *  ) func_dirname_result="${3}" ;;
17861   esac
17862 }
17863
17864 # func_basename file
17865 func_basename ()
17866 {
17867   func_basename_result="${1##*/}"
17868 }
17869
17870 # func_dirname_and_basename file append nondir_replacement
17871 # perform func_basename and func_dirname in a single function
17872 # call:
17873 #   dirname:  Compute the dirname of FILE.  If nonempty,
17874 #             add APPEND to the result, otherwise set result
17875 #             to NONDIR_REPLACEMENT.
17876 #             value returned in "$func_dirname_result"
17877 #   basename: Compute filename of FILE.
17878 #             value retuned in "$func_basename_result"
17879 # Implementation must be kept synchronized with func_dirname
17880 # and func_basename. For efficiency, we do not delegate to
17881 # those functions but instead duplicate the functionality here.
17882 func_dirname_and_basename ()
17883 {
17884   case ${1} in
17885     */*) func_dirname_result="${1%/*}${2}" ;;
17886     *  ) func_dirname_result="${3}" ;;
17887   esac
17888   func_basename_result="${1##*/}"
17889 }
17890
17891 # func_stripname prefix suffix name
17892 # strip PREFIX and SUFFIX off of NAME.
17893 # PREFIX and SUFFIX must not contain globbing or regex special
17894 # characters, hashes, percent signs, but SUFFIX may contain a leading
17895 # dot (in which case that matches only a dot).
17896 func_stripname ()
17897 {
17898   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17899   # positional parameters, so assign one to ordinary parameter first.
17900   func_stripname_result=${3}
17901   func_stripname_result=${func_stripname_result#"${1}"}
17902   func_stripname_result=${func_stripname_result%"${2}"}
17903 }
17904
17905 # func_opt_split
17906 func_opt_split ()
17907 {
17908   func_opt_split_opt=${1%%=*}
17909   func_opt_split_arg=${1#*=}
17910 }
17911
17912 # func_lo2o object
17913 func_lo2o ()
17914 {
17915   case ${1} in
17916     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17917     *)    func_lo2o_result=${1} ;;
17918   esac
17919 }
17920
17921 # func_xform libobj-or-source
17922 func_xform ()
17923 {
17924   func_xform_result=${1%.*}.lo
17925 }
17926
17927 # func_arith arithmetic-term...
17928 func_arith ()
17929 {
17930   func_arith_result=$(( $* ))
17931 }
17932
17933 # func_len string
17934 # STRING may not start with a hyphen.
17935 func_len ()
17936 {
17937   func_len_result=${#1}
17938 }
17939
17940 _LT_EOF
17941     ;;
17942   *) # Bourne compatible functions.
17943     cat << \_LT_EOF >> "$cfgfile"
17944
17945 # func_dirname file append nondir_replacement
17946 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17947 # otherwise set result to NONDIR_REPLACEMENT.
17948 func_dirname ()
17949 {
17950   # Extract subdirectory from the argument.
17951   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17952   if test "X$func_dirname_result" = "X${1}"; then
17953     func_dirname_result="${3}"
17954   else
17955     func_dirname_result="$func_dirname_result${2}"
17956   fi
17957 }
17958
17959 # func_basename file
17960 func_basename ()
17961 {
17962   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17963 }
17964
17965
17966 # func_stripname prefix suffix name
17967 # strip PREFIX and SUFFIX off of NAME.
17968 # PREFIX and SUFFIX must not contain globbing or regex special
17969 # characters, hashes, percent signs, but SUFFIX may contain a leading
17970 # dot (in which case that matches only a dot).
17971 # func_strip_suffix prefix name
17972 func_stripname ()
17973 {
17974   case ${2} in
17975     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17976     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17977   esac
17978 }
17979
17980 # sed scripts:
17981 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17982 my_sed_long_arg='1s/^-[^=]*=//'
17983
17984 # func_opt_split
17985 func_opt_split ()
17986 {
17987   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17988   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17989 }
17990
17991 # func_lo2o object
17992 func_lo2o ()
17993 {
17994   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17995 }
17996
17997 # func_xform libobj-or-source
17998 func_xform ()
17999 {
18000   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
18001 }
18002
18003 # func_arith arithmetic-term...
18004 func_arith ()
18005 {
18006   func_arith_result=`expr "$@"`
18007 }
18008
18009 # func_len string
18010 # STRING may not start with a hyphen.
18011 func_len ()
18012 {
18013   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
18014 }
18015
18016 _LT_EOF
18017 esac
18018
18019 case $lt_shell_append in
18020   yes)
18021     cat << \_LT_EOF >> "$cfgfile"
18022
18023 # func_append var value
18024 # Append VALUE to the end of shell variable VAR.
18025 func_append ()
18026 {
18027   eval "$1+=\$2"
18028 }
18029 _LT_EOF
18030     ;;
18031   *)
18032     cat << \_LT_EOF >> "$cfgfile"
18033
18034 # func_append var value
18035 # Append VALUE to the end of shell variable VAR.
18036 func_append ()
18037 {
18038   eval "$1=\$$1\$2"
18039 }
18040
18041 _LT_EOF
18042     ;;
18043   esac
18044
18045
18046   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
18047     || (rm -f "$cfgfile"; exit 1)
18048
18049   mv -f "$cfgfile" "$ofile" ||
18050     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18051   chmod +x "$ofile"
18052
18053  ;;
18054     "default-1":C)
18055     for ac_file in $CONFIG_FILES; do
18056       # Support "outfile[:infile[:infile...]]"
18057       case "$ac_file" in
18058         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18059       esac
18060       # PO directories have a Makefile.in generated from Makefile.in.in.
18061       case "$ac_file" in */Makefile.in)
18062         # Adjust a relative srcdir.
18063         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18064         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18065         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18066         # In autoconf-2.13 it is called $ac_given_srcdir.
18067         # In autoconf-2.50 it is called $srcdir.
18068         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18069         case "$ac_given_srcdir" in
18070           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18071           /*) top_srcdir="$ac_given_srcdir" ;;
18072           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18073         esac
18074         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18075           rm -f "$ac_dir/POTFILES"
18076           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18077           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
18078           POMAKEFILEDEPS="POTFILES.in"
18079           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
18080           # on $ac_dir but don't depend on user-specified configuration
18081           # parameters.
18082           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
18083             # The LINGUAS file contains the set of available languages.
18084             if test -n "$OBSOLETE_ALL_LINGUAS"; then
18085               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
18086             fi
18087             ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
18088             # Hide the ALL_LINGUAS assigment from automake.
18089             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
18090             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
18091           else
18092             # The set of available languages was given in configure.in.
18093             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
18094           fi
18095           case "$ac_given_srcdir" in
18096             .) srcdirpre= ;;
18097             *) srcdirpre='$(srcdir)/' ;;
18098           esac
18099           POFILES=
18100           GMOFILES=
18101           UPDATEPOFILES=
18102           DUMMYPOFILES=
18103           for lang in $ALL_LINGUAS; do
18104             POFILES="$POFILES $srcdirpre$lang.po"
18105             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18106             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
18107             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
18108           done
18109           # CATALOGS depends on both $ac_dir and the user's LINGUAS
18110           # environment variable.
18111           INST_LINGUAS=
18112           if test -n "$ALL_LINGUAS"; then
18113             for presentlang in $ALL_LINGUAS; do
18114               useit=no
18115               if test "%UNSET%" != "$LINGUAS"; then
18116                 desiredlanguages="$LINGUAS"
18117               else
18118                 desiredlanguages="$ALL_LINGUAS"
18119               fi
18120               for desiredlang in $desiredlanguages; do
18121                 # Use the presentlang catalog if desiredlang is
18122                 #   a. equal to presentlang, or
18123                 #   b. a variant of presentlang (because in this case,
18124                 #      presentlang can be used as a fallback for messages
18125                 #      which are not translated in the desiredlang catalog).
18126                 case "$desiredlang" in
18127                   "$presentlang"*) useit=yes;;
18128                 esac
18129               done
18130               if test $useit = yes; then
18131                 INST_LINGUAS="$INST_LINGUAS $presentlang"
18132               fi
18133             done
18134           fi
18135           CATALOGS=
18136           if test -n "$INST_LINGUAS"; then
18137             for lang in $INST_LINGUAS; do
18138               CATALOGS="$CATALOGS $lang.gmo"
18139             done
18140           fi
18141           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18142           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"
18143           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
18144             if test -f "$f"; then
18145               case "$f" in
18146                 *.orig | *.bak | *~) ;;
18147                 *) cat "$f" >> "$ac_dir/Makefile" ;;
18148               esac
18149             fi
18150           done
18151         fi
18152         ;;
18153       esac
18154     done ;;
18155     "bfd_stdint.h":C)
18156 if test "$GCC" = yes; then
18157   echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
18158 else
18159   echo "/* generated for $CC */" > tmp-stdint.h
18160 fi
18161
18162 sed 's/^ *//' >> tmp-stdint.h <<EOF
18163
18164   #ifndef GCC_GENERATED_STDINT_H
18165   #define GCC_GENERATED_STDINT_H 1
18166
18167   #include <sys/types.h>
18168 EOF
18169
18170 if test "$acx_cv_header_stdint" != stdint.h; then
18171   echo "#include <stddef.h>" >> tmp-stdint.h
18172 fi
18173 if test "$acx_cv_header_stdint" != stddef.h; then
18174   echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
18175 fi
18176
18177 sed 's/^ *//' >> tmp-stdint.h <<EOF
18178   /* glibc uses these symbols as guards to prevent redefinitions.  */
18179   #ifdef __int8_t_defined
18180   #define _INT8_T
18181   #define _INT16_T
18182   #define _INT32_T
18183   #endif
18184   #ifdef __uint32_t_defined
18185   #define _UINT32_T
18186   #endif
18187
18188 EOF
18189
18190 # ----------------- done header, emit basic int types -------------
18191 if test "$acx_cv_header_stdint" = stddef.h; then
18192   sed 's/^ *//' >> tmp-stdint.h <<EOF
18193
18194     #ifndef _UINT8_T
18195     #define _UINT8_T
18196     #ifndef __uint8_t_defined
18197     #define __uint8_t_defined
18198     typedef unsigned $acx_cv_type_int8_t uint8_t;
18199     #endif
18200     #endif
18201
18202     #ifndef _UINT16_T
18203     #define _UINT16_T
18204     #ifndef __uint16_t_defined
18205     #define __uint16_t_defined
18206     typedef unsigned $acx_cv_type_int16_t uint16_t;
18207     #endif
18208     #endif
18209
18210     #ifndef _UINT32_T
18211     #define _UINT32_T
18212     #ifndef __uint32_t_defined
18213     #define __uint32_t_defined
18214     typedef unsigned $acx_cv_type_int32_t uint32_t;
18215     #endif
18216     #endif
18217
18218     #ifndef _INT8_T
18219     #define _INT8_T
18220     #ifndef __int8_t_defined
18221     #define __int8_t_defined
18222     typedef $acx_cv_type_int8_t int8_t;
18223     #endif
18224     #endif
18225
18226     #ifndef _INT16_T
18227     #define _INT16_T
18228     #ifndef __int16_t_defined
18229     #define __int16_t_defined
18230     typedef $acx_cv_type_int16_t int16_t;
18231     #endif
18232     #endif
18233
18234     #ifndef _INT32_T
18235     #define _INT32_T
18236     #ifndef __int32_t_defined
18237     #define __int32_t_defined
18238     typedef $acx_cv_type_int32_t int32_t;
18239     #endif
18240     #endif
18241 EOF
18242 elif test "$ac_cv_type_u_int32_t" = yes; then
18243   sed 's/^ *//' >> tmp-stdint.h <<EOF
18244
18245     /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
18246     #ifndef _INT8_T
18247     #define _INT8_T
18248     #endif
18249     #ifndef _INT16_T
18250     #define _INT16_T
18251     #endif
18252     #ifndef _INT32_T
18253     #define _INT32_T
18254     #endif
18255
18256     #ifndef _UINT8_T
18257     #define _UINT8_T
18258     #ifndef __uint8_t_defined
18259     #define __uint8_t_defined
18260     typedef u_int8_t uint8_t;
18261     #endif
18262     #endif
18263
18264     #ifndef _UINT16_T
18265     #define _UINT16_T
18266     #ifndef __uint16_t_defined
18267     #define __uint16_t_defined
18268     typedef u_int16_t uint16_t;
18269     #endif
18270     #endif
18271
18272     #ifndef _UINT32_T
18273     #define _UINT32_T
18274     #ifndef __uint32_t_defined
18275     #define __uint32_t_defined
18276     typedef u_int32_t uint32_t;
18277     #endif
18278     #endif
18279 EOF
18280 else
18281   sed 's/^ *//' >> tmp-stdint.h <<EOF
18282
18283     /* Some systems have guard macros to prevent redefinitions, define them.  */
18284     #ifndef _INT8_T
18285     #define _INT8_T
18286     #endif
18287     #ifndef _INT16_T
18288     #define _INT16_T
18289     #endif
18290     #ifndef _INT32_T
18291     #define _INT32_T
18292     #endif
18293     #ifndef _UINT8_T
18294     #define _UINT8_T
18295     #endif
18296     #ifndef _UINT16_T
18297     #define _UINT16_T
18298     #endif
18299     #ifndef _UINT32_T
18300     #define _UINT32_T
18301     #endif
18302 EOF
18303 fi
18304
18305 # ------------- done basic int types, emit int64_t types ------------
18306 if test "$ac_cv_type_uint64_t" = yes; then
18307   sed 's/^ *//' >> tmp-stdint.h <<EOF
18308
18309     /* system headers have good uint64_t and int64_t */
18310     #ifndef _INT64_T
18311     #define _INT64_T
18312     #endif
18313     #ifndef _UINT64_T
18314     #define _UINT64_T
18315     #endif
18316 EOF
18317 elif test "$ac_cv_type_u_int64_t" = yes; then
18318   sed 's/^ *//' >> tmp-stdint.h <<EOF
18319
18320     /* system headers have an u_int64_t (and int64_t) */
18321     #ifndef _INT64_T
18322     #define _INT64_T
18323     #endif
18324     #ifndef _UINT64_T
18325     #define _UINT64_T
18326     #ifndef __uint64_t_defined
18327     #define __uint64_t_defined
18328     typedef u_int64_t uint64_t;
18329     #endif
18330     #endif
18331 EOF
18332 elif test -n "$acx_cv_type_int64_t"; then
18333   sed 's/^ *//' >> tmp-stdint.h <<EOF
18334
18335     /* architecture has a 64-bit type, $acx_cv_type_int64_t */
18336     #ifndef _INT64_T
18337     #define _INT64_T
18338     typedef $acx_cv_type_int64_t int64_t;
18339     #endif
18340     #ifndef _UINT64_T
18341     #define _UINT64_T
18342     #ifndef __uint64_t_defined
18343     #define __uint64_t_defined
18344     typedef unsigned $acx_cv_type_int64_t uint64_t;
18345     #endif
18346     #endif
18347 EOF
18348 else
18349   sed 's/^ *//' >> tmp-stdint.h <<EOF
18350
18351     /* some common heuristics for int64_t, using compiler-specific tests */
18352     #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
18353     #ifndef _INT64_T
18354     #define _INT64_T
18355     #ifndef __int64_t_defined
18356     typedef long long int64_t;
18357     #endif
18358     #endif
18359     #ifndef _UINT64_T
18360     #define _UINT64_T
18361     typedef unsigned long long uint64_t;
18362     #endif
18363
18364     #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
18365     /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
18366        does not implement __extension__.  But that compiler doesn't define
18367        __GNUC_MINOR__.  */
18368     # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
18369     # define __extension__
18370     # endif
18371
18372     # ifndef _INT64_T
18373     # define _INT64_T
18374     __extension__ typedef long long int64_t;
18375     # endif
18376     # ifndef _UINT64_T
18377     # define _UINT64_T
18378     __extension__ typedef unsigned long long uint64_t;
18379     # endif
18380
18381     #elif !defined __STRICT_ANSI__
18382     # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18383
18384     #  ifndef _INT64_T
18385     #  define _INT64_T
18386     typedef __int64 int64_t;
18387     #  endif
18388     #  ifndef _UINT64_T
18389     #  define _UINT64_T
18390     typedef unsigned __int64 uint64_t;
18391     #  endif
18392     # endif /* compiler */
18393
18394     #endif /* ANSI version */
18395 EOF
18396 fi
18397
18398 # ------------- done int64_t types, emit intptr types ------------
18399 if test "$ac_cv_type_uintptr_t" != yes; then
18400   sed 's/^ *//' >> tmp-stdint.h <<EOF
18401
18402     /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
18403     #ifndef __uintptr_t_defined
18404     typedef u$acx_cv_type_intptr_t uintptr_t;
18405     #endif
18406     #ifndef __intptr_t_defined
18407     typedef $acx_cv_type_intptr_t  intptr_t;
18408     #endif
18409 EOF
18410 fi
18411
18412 # ------------- done intptr types, emit int_least types ------------
18413 if test "$ac_cv_type_int_least32_t" != yes; then
18414   sed 's/^ *//' >> tmp-stdint.h <<EOF
18415
18416     /* Define int_least types */
18417     typedef int8_t     int_least8_t;
18418     typedef int16_t    int_least16_t;
18419     typedef int32_t    int_least32_t;
18420     #ifdef _INT64_T
18421     typedef int64_t    int_least64_t;
18422     #endif
18423
18424     typedef uint8_t    uint_least8_t;
18425     typedef uint16_t   uint_least16_t;
18426     typedef uint32_t   uint_least32_t;
18427     #ifdef _UINT64_T
18428     typedef uint64_t   uint_least64_t;
18429     #endif
18430 EOF
18431 fi
18432
18433 # ------------- done intptr types, emit int_fast types ------------
18434 if test "$ac_cv_type_int_fast32_t" != yes; then
18435       sed 's/^ *//' >> tmp-stdint.h <<EOF
18436
18437     /* Define int_fast types.  short is often slow */
18438     typedef int8_t       int_fast8_t;
18439     typedef int          int_fast16_t;
18440     typedef int32_t      int_fast32_t;
18441     #ifdef _INT64_T
18442     typedef int64_t      int_fast64_t;
18443     #endif
18444
18445     typedef uint8_t      uint_fast8_t;
18446     typedef unsigned int uint_fast16_t;
18447     typedef uint32_t     uint_fast32_t;
18448     #ifdef _UINT64_T
18449     typedef uint64_t     uint_fast64_t;
18450     #endif
18451 EOF
18452 fi
18453
18454 if test "$ac_cv_type_uintmax_t" != yes; then
18455   sed 's/^ *//' >> tmp-stdint.h <<EOF
18456
18457     /* Define intmax based on what we found */
18458     #ifdef _INT64_T
18459     typedef int64_t       intmax_t;
18460     #else
18461     typedef long          intmax_t;
18462     #endif
18463     #ifdef _UINT64_T
18464     typedef uint64_t      uintmax_t;
18465     #else
18466     typedef unsigned long uintmax_t;
18467     #endif
18468 EOF
18469 fi
18470
18471 sed 's/^ *//' >> tmp-stdint.h <<EOF
18472
18473   #endif /* GCC_GENERATED_STDINT_H */
18474 EOF
18475
18476 if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then
18477   rm -f tmp-stdint.h
18478 else
18479   mv -f tmp-stdint.h bfd_stdint.h
18480 fi
18481
18482  ;;
18483     "default":C)
18484 case "$srcdir" in
18485   .) srcdirpre= ;;
18486   *) srcdirpre='$(srcdir)/' ;;
18487 esac
18488 POFILES=
18489 GMOFILES=
18490 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
18491   if test $lang != dummy; then
18492     POFILES="$POFILES $srcdirpre$lang.po"
18493     GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
18494   fi
18495 done
18496 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
18497     -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
18498     -e "s,@POFILES@,$POFILES," \
18499     -e "s,@GMOFILES@,$GMOFILES," \
18500     po/Makefile.in > po/Makefile ;;
18501
18502   esac
18503 done # for ac_tag
18504
18505
18506 as_fn_exit 0
18507 _ACEOF
18508 ac_clean_files=$ac_clean_files_save
18509
18510 test $ac_write_fail = 0 ||
18511   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18512
18513
18514 # configure is writing to config.log, and then calls config.status.
18515 # config.status does its own redirection, appending to config.log.
18516 # Unfortunately, on DOS this fails, as config.log is still kept open
18517 # by configure, so config.status won't be able to write to it; its
18518 # output is simply discarded.  So we exec the FD to /dev/null,
18519 # effectively closing config.log, so it can be properly (re)opened and
18520 # appended to by config.status.  When coming back to configure, we
18521 # need to make the FD available again.
18522 if test "$no_create" != yes; then
18523   ac_cs_success=:
18524   ac_config_status_args=
18525   test "$silent" = yes &&
18526     ac_config_status_args="$ac_config_status_args --quiet"
18527   exec 5>/dev/null
18528   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18529   exec 5>>config.log
18530   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18531   # would make configure fail if this is the last instruction.
18532   $ac_cs_success || as_fn_exit $?
18533 fi
18534 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18535   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18536 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18537 fi
18538
18539