OSDN Git Service

* fileread.cc (File_read::clear_views): Don't delete the whole
[pf3gnuchains/sourceware.git] / newlib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for newlib 1.19.0.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$?; test $as_status -eq 0 && as_status=1
375   if test "$3"; then
376     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378   fi
379   $as_echo "$as_me: error: $1" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='newlib'
561 PACKAGE_TARNAME='newlib'
562 PACKAGE_VERSION='1.19.0'
563 PACKAGE_STRING='newlib 1.19.0'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_unique_file="libc"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 enable_option_checking=no
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 HAVE_LONG_DOUBLE_FALSE
610 HAVE_LONG_DOUBLE_TRUE
611 libc_cv_initfinit_array
612 CC_FOR_BUILD
613 STDIO64_OBJECTLIST
614 UNIX_OBJECTLIST
615 SYSCALL_OBJECTLIST
616 SIGNAL_OBJECTLIST
617 POSIX_OBJECTLIST
618 SYS_MACH_OBJECTLIST
619 SYS_OBJECTLIST
620 MACHINE_OBJECTLIST
621 LIBM_MACHINE_OBJECTLIST
622 CRT1_DIR
623 CRT1
624 CRT0_DIR
625 CRT0
626 EXTRA_DIRS
627 HAVE_DOC_FALSE
628 HAVE_DOC_TRUE
629 subdirs
630 CC_FOR_NEWLIB
631 NEWLIB_HW_FP_FALSE
632 NEWLIB_HW_FP_TRUE
633 CPP
634 OTOOL64
635 OTOOL
636 LIPO
637 NMEDIT
638 DSYMUTIL
639 LN_S
640 NM
641 ac_ct_DUMPBIN
642 DUMPBIN
643 LD
644 FGREP
645 EGREP
646 GREP
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 CFLAGS
651 LIBTOOL
652 OBJDUMP
653 DLLTOOL
654 SED
655 sys_dir
656 machine_dir
657 libm_machine_dir
658 lpfx
659 aext
660 oext
661 OBJEXT
662 USE_LIBTOOL_FALSE
663 USE_LIBTOOL_TRUE
664 ELIX_LEVEL_4_FALSE
665 ELIX_LEVEL_4_TRUE
666 ELIX_LEVEL_3_FALSE
667 ELIX_LEVEL_3_TRUE
668 ELIX_LEVEL_2_FALSE
669 ELIX_LEVEL_2_TRUE
670 ELIX_LEVEL_1_FALSE
671 ELIX_LEVEL_1_TRUE
672 ELIX_LEVEL_0_FALSE
673 ELIX_LEVEL_0_TRUE
674 LDFLAGS
675 NO_INCLUDE_LIST
676 NEWLIB_CFLAGS
677 CCASFLAGS
678 CCAS
679 MAINT
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 READELF
683 RANLIB
684 AR
685 AS
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 AMDEPBACKSLASH
690 AMDEP_FALSE
691 AMDEP_TRUE
692 am__quote
693 am__include
694 DEPDIR
695 CC
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 newlib_basedir
728 MAY_SUPPLY_SYSCALLS_FALSE
729 MAY_SUPPLY_SYSCALLS_TRUE
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_newlib_io_pos_args
772 enable_newlib_io_c99_formats
773 enable_newlib_register_fini
774 enable_newlib_io_long_long
775 enable_newlib_io_long_double
776 enable_newlib_mb
777 enable_newlib_iconv_encodings
778 enable_newlib_iconv_from_encodings
779 enable_newlib_iconv_to_encodings
780 enable_newlib_iconv_external_ccs
781 enable_newlib_atexit_dynamic_alloc
782 enable_newlib_reent_small
783 enable_multilib
784 enable_target_optspace
785 enable_malloc_debugging
786 enable_newlib_multithread
787 enable_newlib_iconv
788 enable_newlib_elix_level
789 enable_newlib_io_float
790 enable_newlib_supplied_syscalls
791 enable_dependency_tracking
792 enable_maintainer_mode
793 enable_shared
794 enable_static
795 with_pic
796 enable_fast_install
797 with_gnu_ld
798 enable_libtool_lock
799 enable_newlib_hw_fp
800 '
801       ac_precious_vars='build_alias
802 host_alias
803 target_alias
804 CCAS
805 CCASFLAGS
806 CC
807 CFLAGS
808 LDFLAGS
809 LIBS
810 CPPFLAGS
811 CPP'
812 ac_subdirs_all='libc
813 libm
814 doc
815 iconvdata'
816
817 # Initialize some variables set by options.
818 ac_init_help=
819 ac_init_version=false
820 ac_unrecognized_opts=
821 ac_unrecognized_sep=
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
824 cache_file=/dev/null
825 exec_prefix=NONE
826 no_create=
827 no_recursion=
828 prefix=NONE
829 program_prefix=NONE
830 program_suffix=NONE
831 program_transform_name=s,x,x,
832 silent=
833 site=
834 srcdir=
835 verbose=
836 x_includes=NONE
837 x_libraries=NONE
838
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
857 htmldir='${docdir}'
858 dvidir='${docdir}'
859 pdfdir='${docdir}'
860 psdir='${docdir}'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
864
865 ac_prev=
866 ac_dashdash=
867 for ac_option
868 do
869   # If the previous option needs an argument, assign it.
870   if test -n "$ac_prev"; then
871     eval $ac_prev=\$ac_option
872     ac_prev=
873     continue
874   fi
875
876   case $ac_option in
877   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878   *)    ac_optarg=yes ;;
879   esac
880
881   # Accept the important Cygnus configure options, so we can diagnose typos.
882
883   case $ac_dashdash$ac_option in
884   --)
885     ac_dashdash=yes ;;
886
887   -bindir | --bindir | --bindi | --bind | --bin | --bi)
888     ac_prev=bindir ;;
889   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
890     bindir=$ac_optarg ;;
891
892   -build | --build | --buil | --bui | --bu)
893     ac_prev=build_alias ;;
894   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895     build_alias=$ac_optarg ;;
896
897   -cache-file | --cache-file | --cache-fil | --cache-fi \
898   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899     ac_prev=cache_file ;;
900   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902     cache_file=$ac_optarg ;;
903
904   --config-cache | -C)
905     cache_file=config.cache ;;
906
907   -datadir | --datadir | --datadi | --datad)
908     ac_prev=datadir ;;
909   -datadir=* | --datadir=* | --datadi=* | --datad=*)
910     datadir=$ac_optarg ;;
911
912   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913   | --dataroo | --dataro | --datar)
914     ac_prev=datarootdir ;;
915   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917     datarootdir=$ac_optarg ;;
918
919   -disable-* | --disable-*)
920     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921     # Reject names that are not valid shell variable names.
922     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
923       as_fn_error "invalid feature name: $ac_useropt"
924     ac_useropt_orig=$ac_useropt
925     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
926     case $ac_user_opts in
927       *"
928 "enable_$ac_useropt"
929 "*) ;;
930       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
931          ac_unrecognized_sep=', ';;
932     esac
933     eval enable_$ac_useropt=no ;;
934
935   -docdir | --docdir | --docdi | --doc | --do)
936     ac_prev=docdir ;;
937   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
938     docdir=$ac_optarg ;;
939
940   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
941     ac_prev=dvidir ;;
942   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
943     dvidir=$ac_optarg ;;
944
945   -enable-* | --enable-*)
946     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947     # Reject names that are not valid shell variable names.
948     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
949       as_fn_error "invalid feature name: $ac_useropt"
950     ac_useropt_orig=$ac_useropt
951     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952     case $ac_user_opts in
953       *"
954 "enable_$ac_useropt"
955 "*) ;;
956       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
957          ac_unrecognized_sep=', ';;
958     esac
959     eval enable_$ac_useropt=\$ac_optarg ;;
960
961   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963   | --exec | --exe | --ex)
964     ac_prev=exec_prefix ;;
965   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967   | --exec=* | --exe=* | --ex=*)
968     exec_prefix=$ac_optarg ;;
969
970   -gas | --gas | --ga | --g)
971     # Obsolete; use --with-gas.
972     with_gas=yes ;;
973
974   -help | --help | --hel | --he | -h)
975     ac_init_help=long ;;
976   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977     ac_init_help=recursive ;;
978   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979     ac_init_help=short ;;
980
981   -host | --host | --hos | --ho)
982     ac_prev=host_alias ;;
983   -host=* | --host=* | --hos=* | --ho=*)
984     host_alias=$ac_optarg ;;
985
986   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987     ac_prev=htmldir ;;
988   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989   | --ht=*)
990     htmldir=$ac_optarg ;;
991
992   -includedir | --includedir | --includedi | --included | --include \
993   | --includ | --inclu | --incl | --inc)
994     ac_prev=includedir ;;
995   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996   | --includ=* | --inclu=* | --incl=* | --inc=*)
997     includedir=$ac_optarg ;;
998
999   -infodir | --infodir | --infodi | --infod | --info | --inf)
1000     ac_prev=infodir ;;
1001   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002     infodir=$ac_optarg ;;
1003
1004   -libdir | --libdir | --libdi | --libd)
1005     ac_prev=libdir ;;
1006   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007     libdir=$ac_optarg ;;
1008
1009   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010   | --libexe | --libex | --libe)
1011     ac_prev=libexecdir ;;
1012   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013   | --libexe=* | --libex=* | --libe=*)
1014     libexecdir=$ac_optarg ;;
1015
1016   -localedir | --localedir | --localedi | --localed | --locale)
1017     ac_prev=localedir ;;
1018   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019     localedir=$ac_optarg ;;
1020
1021   -localstatedir | --localstatedir | --localstatedi | --localstated \
1022   | --localstate | --localstat | --localsta | --localst | --locals)
1023     ac_prev=localstatedir ;;
1024   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026     localstatedir=$ac_optarg ;;
1027
1028   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029     ac_prev=mandir ;;
1030   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031     mandir=$ac_optarg ;;
1032
1033   -nfp | --nfp | --nf)
1034     # Obsolete; use --without-fp.
1035     with_fp=no ;;
1036
1037   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038   | --no-cr | --no-c | -n)
1039     no_create=yes ;;
1040
1041   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043     no_recursion=yes ;;
1044
1045   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047   | --oldin | --oldi | --old | --ol | --o)
1048     ac_prev=oldincludedir ;;
1049   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052     oldincludedir=$ac_optarg ;;
1053
1054   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055     ac_prev=prefix ;;
1056   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057     prefix=$ac_optarg ;;
1058
1059   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060   | --program-pre | --program-pr | --program-p)
1061     ac_prev=program_prefix ;;
1062   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064     program_prefix=$ac_optarg ;;
1065
1066   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067   | --program-suf | --program-su | --program-s)
1068     ac_prev=program_suffix ;;
1069   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071     program_suffix=$ac_optarg ;;
1072
1073   -program-transform-name | --program-transform-name \
1074   | --program-transform-nam | --program-transform-na \
1075   | --program-transform-n | --program-transform- \
1076   | --program-transform | --program-transfor \
1077   | --program-transfo | --program-transf \
1078   | --program-trans | --program-tran \
1079   | --progr-tra | --program-tr | --program-t)
1080     ac_prev=program_transform_name ;;
1081   -program-transform-name=* | --program-transform-name=* \
1082   | --program-transform-nam=* | --program-transform-na=* \
1083   | --program-transform-n=* | --program-transform-=* \
1084   | --program-transform=* | --program-transfor=* \
1085   | --program-transfo=* | --program-transf=* \
1086   | --program-trans=* | --program-tran=* \
1087   | --progr-tra=* | --program-tr=* | --program-t=*)
1088     program_transform_name=$ac_optarg ;;
1089
1090   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091     ac_prev=pdfdir ;;
1092   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093     pdfdir=$ac_optarg ;;
1094
1095   -psdir | --psdir | --psdi | --psd | --ps)
1096     ac_prev=psdir ;;
1097   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098     psdir=$ac_optarg ;;
1099
1100   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101   | -silent | --silent | --silen | --sile | --sil)
1102     silent=yes ;;
1103
1104   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105     ac_prev=sbindir ;;
1106   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107   | --sbi=* | --sb=*)
1108     sbindir=$ac_optarg ;;
1109
1110   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112   | --sharedst | --shareds | --shared | --share | --shar \
1113   | --sha | --sh)
1114     ac_prev=sharedstatedir ;;
1115   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118   | --sha=* | --sh=*)
1119     sharedstatedir=$ac_optarg ;;
1120
1121   -site | --site | --sit)
1122     ac_prev=site ;;
1123   -site=* | --site=* | --sit=*)
1124     site=$ac_optarg ;;
1125
1126   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127     ac_prev=srcdir ;;
1128   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129     srcdir=$ac_optarg ;;
1130
1131   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132   | --syscon | --sysco | --sysc | --sys | --sy)
1133     ac_prev=sysconfdir ;;
1134   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136     sysconfdir=$ac_optarg ;;
1137
1138   -target | --target | --targe | --targ | --tar | --ta | --t)
1139     ac_prev=target_alias ;;
1140   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141     target_alias=$ac_optarg ;;
1142
1143   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144     verbose=yes ;;
1145
1146   -version | --version | --versio | --versi | --vers | -V)
1147     ac_init_version=: ;;
1148
1149   -with-* | --with-*)
1150     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153       as_fn_error "invalid package name: $ac_useropt"
1154     ac_useropt_orig=$ac_useropt
1155     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156     case $ac_user_opts in
1157       *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161          ac_unrecognized_sep=', ';;
1162     esac
1163     eval with_$ac_useropt=\$ac_optarg ;;
1164
1165   -without-* | --without-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error "invalid package name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval with_$ac_useropt=no ;;
1180
1181   --x)
1182     # Obsolete; use --with-x.
1183     with_x=yes ;;
1184
1185   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186   | --x-incl | --x-inc | --x-in | --x-i)
1187     ac_prev=x_includes ;;
1188   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190     x_includes=$ac_optarg ;;
1191
1192   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194     ac_prev=x_libraries ;;
1195   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197     x_libraries=$ac_optarg ;;
1198
1199   -*) as_fn_error "unrecognized option: \`$ac_option'
1200 Try \`$0 --help' for more information."
1201     ;;
1202
1203   *=*)
1204     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205     # Reject names that are not valid shell variable names.
1206     case $ac_envvar in #(
1207       '' | [0-9]* | *[!_$as_cr_alnum]* )
1208       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1209     esac
1210     eval $ac_envvar=\$ac_optarg
1211     export $ac_envvar ;;
1212
1213   *)
1214     # FIXME: should be removed in autoconf 3.0.
1215     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1216     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1218     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1219     ;;
1220
1221   esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226   as_fn_error "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230   case $enable_option_checking in
1231     no) ;;
1232     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1233     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234   esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   # Remove trailing slashes.
1245   case $ac_val in
1246     */ )
1247       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248       eval $ac_var=\$ac_val;;
1249   esac
1250   # Be sure to have absolute directory names.
1251   case $ac_val in
1252     [\\/$]* | ?:[\\/]* )  continue;;
1253     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254   esac
1255   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: `$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267   if test "x$build_alias" = x; then
1268     cross_compiling=maybe
1269     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1270     If a cross compiler is detected then cross compile mode will be used." >&2
1271   elif test "x$build_alias" != "x$host_alias"; then
1272     cross_compiling=yes
1273   fi
1274 fi
1275
1276 ac_tool_prefix=
1277 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1278
1279 test "$silent" = yes && exec 6>/dev/null
1280
1281
1282 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1283 ac_ls_di=`ls -di .` &&
1284 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1285   as_fn_error "working directory cannot be determined"
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   as_fn_error "pwd does not report name of working directory"
1288
1289
1290 # Find the source files, if location was not specified.
1291 if test -z "$srcdir"; then
1292   ac_srcdir_defaulted=yes
1293   # Try the directory containing this script, then the parent directory.
1294   ac_confdir=`$as_dirname -- "$as_myself" ||
1295 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1296          X"$as_myself" : 'X\(//\)[^/]' \| \
1297          X"$as_myself" : 'X\(//\)$' \| \
1298          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1299 $as_echo X"$as_myself" |
1300     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)[^/].*/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)$/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\).*/{
1313             s//\1/
1314             q
1315           }
1316           s/.*/./; q'`
1317   srcdir=$ac_confdir
1318   if test ! -r "$srcdir/$ac_unique_file"; then
1319     srcdir=..
1320   fi
1321 else
1322   ac_srcdir_defaulted=no
1323 fi
1324 if test ! -r "$srcdir/$ac_unique_file"; then
1325   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1326   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1331         pwd)`
1332 # When building in place, set srcdir=.
1333 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334   srcdir=.
1335 fi
1336 # Remove unnecessary trailing slashes from srcdir.
1337 # Double slashes in file names in object file debugging info
1338 # mess up M-x gdb in Emacs.
1339 case $srcdir in
1340 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1341 esac
1342 for ac_var in $ac_precious_vars; do
1343   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_env_${ac_var}_value=\$${ac_var}
1345   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347 done
1348
1349 #
1350 # Report the --help message.
1351 #
1352 if test "$ac_init_help" = "long"; then
1353   # Omit some internal or obsolete options to make the list less imposing.
1354   # This message is too long to be a string in the A/UX 3.1 sh.
1355   cat <<_ACEOF
1356 \`configure' configures newlib 1.19.0 to adapt to many kinds of systems.
1357
1358 Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361 VAR=VALUE.  See below for descriptions of some of the useful variables.
1362
1363 Defaults for the options are specified in brackets.
1364
1365 Configuration:
1366   -h, --help              display this help and exit
1367       --help=short        display options specific to this package
1368       --help=recursive    display the short help of all the included packages
1369   -V, --version           display version information and exit
1370   -q, --quiet, --silent   do not print \`checking...' messages
1371       --cache-file=FILE   cache test results in FILE [disabled]
1372   -C, --config-cache      alias for \`--cache-file=config.cache'
1373   -n, --no-create         do not create output files
1374       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1375
1376 Installation directories:
1377   --prefix=PREFIX         install architecture-independent files in PREFIX
1378                           [$ac_default_prefix]
1379   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1380                           [PREFIX]
1381
1382 By default, \`make install' will install all the files in
1383 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1384 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385 for instance \`--prefix=\$HOME'.
1386
1387 For better control, use the options below.
1388
1389 Fine tuning of the installation directories:
1390   --bindir=DIR            user executables [EPREFIX/bin]
1391   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1392   --libexecdir=DIR        program executables [EPREFIX/libexec]
1393   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1394   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1395   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1396   --libdir=DIR            object code libraries [EPREFIX/lib]
1397   --includedir=DIR        C header files [PREFIX/include]
1398   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1399   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1400   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1401   --infodir=DIR           info documentation [DATAROOTDIR/info]
1402   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1403   --mandir=DIR            man documentation [DATAROOTDIR/man]
1404   --docdir=DIR            documentation root [DATAROOTDIR/doc/newlib]
1405   --htmldir=DIR           html documentation [DOCDIR]
1406   --dvidir=DIR            dvi documentation [DOCDIR]
1407   --pdfdir=DIR            pdf documentation [DOCDIR]
1408   --psdir=DIR             ps documentation [DOCDIR]
1409 _ACEOF
1410
1411   cat <<\_ACEOF
1412
1413 Program names:
1414   --program-prefix=PREFIX            prepend PREFIX to installed program names
1415   --program-suffix=SUFFIX            append SUFFIX to installed program names
1416   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1417
1418 System types:
1419   --build=BUILD     configure for building on BUILD [guessed]
1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425   case $ac_init_help in
1426      short | recursive ) echo "Configuration of newlib 1.19.0:";;
1427    esac
1428   cat <<\_ACEOF
1429
1430 Optional Features:
1431   --disable-option-checking  ignore unrecognized --enable/--with options
1432   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1433   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1434   --enable-newlib-io-pos-args enable printf-family positional arg support
1435   --enable-newlib-io-c99-formats   enable C99 support in IO functions like printf/scanf
1436   --enable-newlib-register-fini   enable finalization function registration using atexit
1437   --enable-newlib-io-long-long   enable long long type support in IO functions like printf/scanf
1438   --enable-newlib-io-long-double   enable long double type support in IO functions printf/scanf
1439   --enable-newlib-mb        enable multibyte support
1440   --enable-newlib-iconv-encodings   enable specific comma-separated list of bidirectional iconv encodings to be built-in
1441   --enable-newlib-iconv-from-encodings   enable specific comma-separated list of \"from\" iconv encodings to be built-in
1442   --enable-newlib-iconv-to-encodings   enable specific comma-separated list of \"to\" iconv encodings to be built-in
1443   --enable-newlib-iconv-external-ccs     enable capabilities to load external CCS files for iconv
1444   --disable-newlib-atexit-alloc    disable dynamic allocation of atexit entries
1445   --enable-newlib-reent-small   enable small reentrant struct support
1446   --enable-multilib         build many library versions (default)
1447   --enable-target-optspace  optimize for space
1448   --enable-malloc-debugging indicate malloc debugging requested
1449   --enable-newlib-multithread        enable support for multiple threads
1450   --enable-newlib-iconv     enable iconv library support
1451   --enable-newlib-elix-level         supply desired elix library level (1-4)
1452   --disable-newlib-io-float disable printf/scanf family float support
1453   --disable-newlib-supplied-syscalls disable newlib from supplying syscalls
1454   --disable-dependency-tracking  speeds up one-time build
1455   --enable-dependency-tracking   do not reject slow dependency extractors
1456   --enable-maintainer-mode  enable make rules and dependencies not useful
1457                           (and sometimes confusing) to the casual installer
1458   --enable-shared[=PKGS]  build shared libraries [default=yes]
1459   --enable-static[=PKGS]  build static libraries [default=yes]
1460   --enable-fast-install[=PKGS]
1461                           optimize for fast installation [default=yes]
1462   --disable-libtool-lock  avoid locking (might break parallel builds)
1463   --enable-newlib-hw-fp    Turn on hardware floating point math
1464
1465 Optional Packages:
1466   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1467   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1468   --with-pic              try to use only PIC/non-PIC objects [default=use
1469                           both]
1470   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1471
1472 Some influential environment variables:
1473   CCAS        assembler compiler command (defaults to CC)
1474   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1475   CC          C compiler command
1476   CFLAGS      C compiler flags
1477   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1478               nonstandard directory <lib dir>
1479   LIBS        libraries to pass to the linker, e.g. -l<library>
1480   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1481               you have headers in a nonstandard directory <include dir>
1482   CPP         C preprocessor
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to the package provider.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493   # If there are subdirs, report their specific --help.
1494   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495     test -d "$ac_dir" ||
1496       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497       continue
1498     ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1504   # A ".." for each directory in $ac_dir_suffix.
1505   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506   case $ac_top_builddir_sub in
1507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509   esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517   .)  # We are building in place.
1518     ac_srcdir=.
1519     ac_top_srcdir=$ac_top_builddir_sub
1520     ac_abs_top_srcdir=$ac_pwd ;;
1521   [\\/]* | ?:[\\/]* )  # Absolute name.
1522     ac_srcdir=$srcdir$ac_dir_suffix;
1523     ac_top_srcdir=$srcdir
1524     ac_abs_top_srcdir=$srcdir ;;
1525   *) # Relative name.
1526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527     ac_top_srcdir=$ac_top_build_prefix$srcdir
1528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532     cd "$ac_dir" || { ac_status=$?; continue; }
1533     # Check for guested configure.
1534     if test -f "$ac_srcdir/configure.gnu"; then
1535       echo &&
1536       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537     elif test -f "$ac_srcdir/configure"; then
1538       echo &&
1539       $SHELL "$ac_srcdir/configure" --help=recursive
1540     else
1541       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542     fi || ac_status=$?
1543     cd "$ac_pwd" || { ac_status=$?; break; }
1544   done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549   cat <<\_ACEOF
1550 newlib configure 1.19.0
1551 generated by GNU Autoconf 2.65
1552
1553 Copyright (C) 2009 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557   exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570   rm -f conftest.$ac_objext
1571   if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574   *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 $as_echo "$ac_try_echo"; } >&5
1578   (eval "$ac_compile") 2>conftest.err
1579   ac_status=$?
1580   if test -s conftest.err; then
1581     grep -v '^ *+' conftest.err >conftest.er1
1582     cat conftest.er1 >&5
1583     mv -f conftest.er1 conftest.err
1584   fi
1585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586   test $ac_status = 0; } && {
1587          test -z "$ac_c_werror_flag" ||
1588          test ! -s conftest.err
1589        } && test -s conftest.$ac_objext; then :
1590   ac_retval=0
1591 else
1592   $as_echo "$as_me: failed program was:" >&5
1593 sed 's/^/| /' conftest.$ac_ext >&5
1594
1595         ac_retval=1
1596 fi
1597   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1598   as_fn_set_status $ac_retval
1599
1600 } # ac_fn_c_try_compile
1601
1602 # ac_fn_c_try_link LINENO
1603 # -----------------------
1604 # Try to link conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_link ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   rm -f conftest.$ac_objext conftest$ac_exeext
1609   if { { ac_try="$ac_link"
1610 case "(($ac_try" in
1611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1612   *) ac_try_echo=$ac_try;;
1613 esac
1614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1615 $as_echo "$ac_try_echo"; } >&5
1616   (eval "$ac_link") 2>conftest.err
1617   ac_status=$?
1618   if test -s conftest.err; then
1619     grep -v '^ *+' conftest.err >conftest.er1
1620     cat conftest.er1 >&5
1621     mv -f conftest.er1 conftest.err
1622   fi
1623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624   test $ac_status = 0; } && {
1625          test -z "$ac_c_werror_flag" ||
1626          test ! -s conftest.err
1627        } && test -s conftest$ac_exeext && {
1628          test "$cross_compiling" = yes ||
1629          $as_test_x conftest$ac_exeext
1630        }; then :
1631   ac_retval=0
1632 else
1633   $as_echo "$as_me: failed program was:" >&5
1634 sed 's/^/| /' conftest.$ac_ext >&5
1635
1636         ac_retval=1
1637 fi
1638   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1639   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1640   # interfere with the next link command; also delete a directory that is
1641   # left behind by Apple's compiler.  We do this before executing the actions.
1642   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1644   as_fn_set_status $ac_retval
1645
1646 } # ac_fn_c_try_link
1647
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658   $as_echo_n "(cached) " >&6
1659 else
1660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h.  */
1662 $4
1663 #include <$2>
1664 _ACEOF
1665 if ac_fn_c_try_compile "$LINENO"; then :
1666   eval "$3=yes"
1667 else
1668   eval "$3=no"
1669 fi
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1671 fi
1672 eval ac_res=\$$3
1673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1676
1677 } # ac_fn_c_check_header_compile
1678
1679 # ac_fn_c_try_cpp LINENO
1680 # ----------------------
1681 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_cpp ()
1683 {
1684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685   if { { ac_try="$ac_cpp conftest.$ac_ext"
1686 case "(($ac_try" in
1687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688   *) ac_try_echo=$ac_try;;
1689 esac
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693   ac_status=$?
1694   if test -s conftest.err; then
1695     grep -v '^ *+' conftest.err >conftest.er1
1696     cat conftest.er1 >&5
1697     mv -f conftest.er1 conftest.err
1698   fi
1699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700   test $ac_status = 0; } >/dev/null && {
1701          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702          test ! -s conftest.err
1703        }; then :
1704   ac_retval=0
1705 else
1706   $as_echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
1709     ac_retval=1
1710 fi
1711   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1712   as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_cpp
1715
1716 # ac_fn_c_try_run LINENO
1717 # ----------------------
1718 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1719 # that executables *can* be run.
1720 ac_fn_c_try_run ()
1721 {
1722   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723   if { { ac_try="$ac_link"
1724 case "(($ac_try" in
1725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726   *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730   (eval "$ac_link") 2>&5
1731   ac_status=$?
1732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1734   { { case "(($ac_try" in
1735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736   *) ac_try_echo=$ac_try;;
1737 esac
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740   (eval "$ac_try") 2>&5
1741   ac_status=$?
1742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1743   test $ac_status = 0; }; }; then :
1744   ac_retval=0
1745 else
1746   $as_echo "$as_me: program exited with status $ac_status" >&5
1747        $as_echo "$as_me: failed program was:" >&5
1748 sed 's/^/| /' conftest.$ac_ext >&5
1749
1750        ac_retval=$ac_status
1751 fi
1752   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754   as_fn_set_status $ac_retval
1755
1756 } # ac_fn_c_try_run
1757
1758 # ac_fn_c_check_func LINENO FUNC VAR
1759 # ----------------------------------
1760 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1761 ac_fn_c_check_func ()
1762 {
1763   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767   $as_echo_n "(cached) " >&6
1768 else
1769   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770 /* end confdefs.h.  */
1771 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1772    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1773 #define $2 innocuous_$2
1774
1775 /* System header to define __stub macros and hopefully few prototypes,
1776     which can conflict with char $2 (); below.
1777     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1778     <limits.h> exists even on freestanding compilers.  */
1779
1780 #ifdef __STDC__
1781 # include <limits.h>
1782 #else
1783 # include <assert.h>
1784 #endif
1785
1786 #undef $2
1787
1788 /* Override any GCC internal prototype to avoid an error.
1789    Use char because int might match the return type of a GCC
1790    builtin and then its argument prototype would still apply.  */
1791 #ifdef __cplusplus
1792 extern "C"
1793 #endif
1794 char $2 ();
1795 /* The GNU C library defines this for functions which it implements
1796     to always fail with ENOSYS.  Some functions are actually named
1797     something starting with __ and the normal name is an alias.  */
1798 #if defined __stub_$2 || defined __stub___$2
1799 choke me
1800 #endif
1801
1802 int
1803 main ()
1804 {
1805 return $2 ();
1806   ;
1807   return 0;
1808 }
1809 _ACEOF
1810 if ac_fn_c_try_link "$LINENO"; then :
1811   eval "$3=yes"
1812 else
1813   eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext \
1816     conftest$ac_exeext conftest.$ac_ext
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822
1823 } # ac_fn_c_check_func
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by newlib $as_me 1.19.0, which was
1829 generated by GNU Autoconf 2.65.  Invocation command line was
1830
1831   $ $0 $@
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1849
1850 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1851 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1854 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1855 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1856 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863   IFS=$as_save_IFS
1864   test -z "$as_dir" && as_dir=.
1865     $as_echo "PATH: $as_dir"
1866   done
1867 IFS=$as_save_IFS
1868
1869 } >&5
1870
1871 cat >&5 <<_ACEOF
1872
1873
1874 ## ----------- ##
1875 ## Core tests. ##
1876 ## ----------- ##
1877
1878 _ACEOF
1879
1880
1881 # Keep a trace of the command line.
1882 # Strip out --no-create and --no-recursion so they do not pile up.
1883 # Strip out --silent because we don't want to record it for future runs.
1884 # Also quote any args containing shell meta-characters.
1885 # Make two passes to allow for proper duplicate-argument suppression.
1886 ac_configure_args=
1887 ac_configure_args0=
1888 ac_configure_args1=
1889 ac_must_keep_next=false
1890 for ac_pass in 1 2
1891 do
1892   for ac_arg
1893   do
1894     case $ac_arg in
1895     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1896     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1897     | -silent | --silent | --silen | --sile | --sil)
1898       continue ;;
1899     *\'*)
1900       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1901     esac
1902     case $ac_pass in
1903     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1904     2)
1905       as_fn_append ac_configure_args1 " '$ac_arg'"
1906       if test $ac_must_keep_next = true; then
1907         ac_must_keep_next=false # Got value, back to normal.
1908       else
1909         case $ac_arg in
1910           *=* | --config-cache | -C | -disable-* | --disable-* \
1911           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1912           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1913           | -with-* | --with-* | -without-* | --without-* | --x)
1914             case "$ac_configure_args0 " in
1915               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1916             esac
1917             ;;
1918           -* ) ac_must_keep_next=true ;;
1919         esac
1920       fi
1921       as_fn_append ac_configure_args " '$ac_arg'"
1922       ;;
1923     esac
1924   done
1925 done
1926 { ac_configure_args0=; unset ac_configure_args0;}
1927 { ac_configure_args1=; unset ac_configure_args1;}
1928
1929 # When interrupted or exit'd, cleanup temporary files, and complete
1930 # config.log.  We remove comments because anyway the quotes in there
1931 # would cause problems or look ugly.
1932 # WARNING: Use '\'' to represent an apostrophe within the trap.
1933 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1934 trap 'exit_status=$?
1935   # Save into config.log some information that might help in debugging.
1936   {
1937     echo
1938
1939     cat <<\_ASBOX
1940 ## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##
1943 _ASBOX
1944     echo
1945     # The following way of writing the cache mishandles newlines in values,
1946 (
1947   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1948     eval ac_val=\$$ac_var
1949     case $ac_val in #(
1950     *${as_nl}*)
1951       case $ac_var in #(
1952       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1954       esac
1955       case $ac_var in #(
1956       _ | IFS | as_nl) ;; #(
1957       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1958       *) { eval $ac_var=; unset $ac_var;} ;;
1959       esac ;;
1960     esac
1961   done
1962   (set) 2>&1 |
1963     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1964     *${as_nl}ac_space=\ *)
1965       sed -n \
1966         "s/'\''/'\''\\\\'\'''\''/g;
1967           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1968       ;; #(
1969     *)
1970       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1971       ;;
1972     esac |
1973     sort
1974 )
1975     echo
1976
1977     cat <<\_ASBOX
1978 ## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##
1981 _ASBOX
1982     echo
1983     for ac_var in $ac_subst_vars
1984     do
1985       eval ac_val=\$$ac_var
1986       case $ac_val in
1987       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988       esac
1989       $as_echo "$ac_var='\''$ac_val'\''"
1990     done | sort
1991     echo
1992
1993     if test -n "$ac_subst_files"; then
1994       cat <<\_ASBOX
1995 ## ------------------- ##
1996 ## File substitutions. ##
1997 ## ------------------- ##
1998 _ASBOX
1999       echo
2000       for ac_var in $ac_subst_files
2001       do
2002         eval ac_val=\$$ac_var
2003         case $ac_val in
2004         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005         esac
2006         $as_echo "$ac_var='\''$ac_val'\''"
2007       done | sort
2008       echo
2009     fi
2010
2011     if test -s confdefs.h; then
2012       cat <<\_ASBOX
2013 ## ----------- ##
2014 ## confdefs.h. ##
2015 ## ----------- ##
2016 _ASBOX
2017       echo
2018       cat confdefs.h
2019       echo
2020     fi
2021     test "$ac_signal" != 0 &&
2022       $as_echo "$as_me: caught signal $ac_signal"
2023     $as_echo "$as_me: exit $exit_status"
2024   } >&5
2025   rm -f core *.core core.conftest.* &&
2026     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2027     exit $exit_status
2028 ' 0
2029 for ac_signal in 1 2 13 15; do
2030   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2031 done
2032 ac_signal=0
2033
2034 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2035 rm -f -r conftest* confdefs.h
2036
2037 $as_echo "/* confdefs.h */" > confdefs.h
2038
2039 # Predefined preprocessor variables.
2040
2041 cat >>confdefs.h <<_ACEOF
2042 #define PACKAGE_NAME "$PACKAGE_NAME"
2043 _ACEOF
2044
2045 cat >>confdefs.h <<_ACEOF
2046 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2047 _ACEOF
2048
2049 cat >>confdefs.h <<_ACEOF
2050 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2051 _ACEOF
2052
2053 cat >>confdefs.h <<_ACEOF
2054 #define PACKAGE_STRING "$PACKAGE_STRING"
2055 _ACEOF
2056
2057 cat >>confdefs.h <<_ACEOF
2058 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2059 _ACEOF
2060
2061 cat >>confdefs.h <<_ACEOF
2062 #define PACKAGE_URL "$PACKAGE_URL"
2063 _ACEOF
2064
2065
2066 # Let the site file select an alternate cache file if it wants to.
2067 # Prefer an explicitly selected file to automatically selected ones.
2068 ac_site_file1=NONE
2069 ac_site_file2=NONE
2070 if test -n "$CONFIG_SITE"; then
2071   ac_site_file1=$CONFIG_SITE
2072 elif test "x$prefix" != xNONE; then
2073   ac_site_file1=$prefix/share/config.site
2074   ac_site_file2=$prefix/etc/config.site
2075 else
2076   ac_site_file1=$ac_default_prefix/share/config.site
2077   ac_site_file2=$ac_default_prefix/etc/config.site
2078 fi
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 do
2081   test "x$ac_site_file" = xNONE && continue
2082   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085     sed 's/^/| /' "$ac_site_file" >&5
2086     . "$ac_site_file"
2087   fi
2088 done
2089
2090 if test -r "$cache_file"; then
2091   # Some versions of bash will fail to source /dev/null (special files
2092   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2093   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2096     case $cache_file in
2097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098       *)                      . "./$cache_file";;
2099     esac
2100   fi
2101 else
2102   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2104   >$cache_file
2105 fi
2106
2107 # Check that the precious variables saved in the cache have kept the same
2108 # value.
2109 ac_cache_corrupted=false
2110 for ac_var in $ac_precious_vars; do
2111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112   eval ac_new_set=\$ac_env_${ac_var}_set
2113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114   eval ac_new_val=\$ac_env_${ac_var}_value
2115   case $ac_old_set,$ac_new_set in
2116     set,)
2117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119       ac_cache_corrupted=: ;;
2120     ,set)
2121       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123       ac_cache_corrupted=: ;;
2124     ,);;
2125     *)
2126       if test "x$ac_old_val" != "x$ac_new_val"; then
2127         # differences in whitespace do not lead to failure.
2128         ac_old_val_w=`echo x $ac_old_val`
2129         ac_new_val_w=`echo x $ac_new_val`
2130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133           ac_cache_corrupted=:
2134         else
2135           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137           eval $ac_var=\$ac_old_val
2138         fi
2139         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2141         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2143       fi;;
2144   esac
2145   # Pass precious variables to config.status.
2146   if test "$ac_new_set" = set; then
2147     case $ac_new_val in
2148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149     *) ac_arg=$ac_var=$ac_new_val ;;
2150     esac
2151     case " $ac_configure_args " in
2152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2153       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2154     esac
2155   fi
2156 done
2157 if $ac_cache_corrupted; then
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2163 fi
2164 ## -------------------- ##
2165 ## Main body of script. ##
2166 ## -------------------- ##
2167
2168 ac_ext=c
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173
2174
2175
2176 ac_config_headers="$ac_config_headers newlib.h:newlib.hin"
2177
2178
2179 ac_aux_dir=
2180 for ac_dir in .. "$srcdir"/..; do
2181   for ac_t in install-sh install.sh shtool; do
2182     if test -f "$ac_dir/$ac_t"; then
2183       ac_aux_dir=$ac_dir
2184       ac_install_sh="$ac_aux_dir/$ac_t -c"
2185       break 2
2186     fi
2187   done
2188 done
2189 if test -z "$ac_aux_dir"; then
2190   as_fn_error "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
2191 fi
2192
2193 # These three variables are undocumented and unsupported,
2194 # and are intended to be withdrawn in a future Autoconf release.
2195 # They can cause serious problems if a builder's source tree is in a directory
2196 # whose full name contains unusual characters.
2197 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2198 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2199 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2200
2201
2202
2203 # Check whether --enable-newlib-io-pos-args was given.
2204 if test "${enable_newlib_io_pos_args+set}" = set; then :
2205   enableval=$enable_newlib_io_pos_args; case "${enableval}" in
2206   yes) newlib_io_pos_args=yes ;;
2207   no)  newlib_io_pos_args=no ;;
2208   *)   as_fn_error "bad value ${enableval} for newlib-io-pos-args option" "$LINENO" 5 ;;
2209  esac
2210 else
2211   newlib_io_pos_args=
2212 fi
2213
2214 # Check whether --enable-newlib-io-c99-formats was given.
2215 if test "${enable_newlib_io_c99_formats+set}" = set; then :
2216   enableval=$enable_newlib_io_c99_formats; case "${enableval}" in
2217   yes) newlib_io_c99_formats=yes;;
2218   no)  newlib_io_c99_formats=no ;;
2219   *)   as_fn_error "bad value ${enableval} for newlib-io-c99-formats option" "$LINENO" 5 ;;
2220  esac
2221 else
2222   newlib_io_c99_formats=
2223 fi
2224
2225 # Check whether --enable-newlib-register-fini was given.
2226 if test "${enable_newlib_register_fini+set}" = set; then :
2227   enableval=$enable_newlib_register_fini; case "${enableval}" in
2228   yes) newlib_register_fini=yes;;
2229   no)  newlib_register_fini=no ;;
2230   *)   as_fn_error "bad value ${enableval} for newlib-register-fini option" "$LINENO" 5 ;;
2231  esac
2232 else
2233   newlib_register_fini=
2234 fi
2235
2236 # Check whether --enable-newlib-io-long-long was given.
2237 if test "${enable_newlib_io_long_long+set}" = set; then :
2238   enableval=$enable_newlib_io_long_long; case "${enableval}" in
2239   yes) newlib_io_long_long=yes;;
2240   no)  newlib_io_long_long=no ;;
2241   *)   as_fn_error "bad value ${enableval} for newlib-io-long-long option" "$LINENO" 5 ;;
2242  esac
2243 else
2244   newlib_io_long_long=
2245 fi
2246
2247 # Check whether --enable-newlib-io-long-double was given.
2248 if test "${enable_newlib_io_long_double+set}" = set; then :
2249   enableval=$enable_newlib_io_long_double; case "${enableval}" in
2250   yes) newlib_io_long_double=yes;;
2251   no)  newlib_io_long_double=no ;;
2252   *)   as_fn_error "bad value ${enableval} for newlib-io-long-double option" "$LINENO" 5 ;;
2253  esac
2254 else
2255   newlib_io_long_double=
2256 fi
2257
2258 # Check whether --enable-newlib-mb was given.
2259 if test "${enable_newlib_mb+set}" = set; then :
2260   enableval=$enable_newlib_mb; case "${enableval}" in
2261   yes) newlib_mb=yes;;
2262   no)  newlib_mb=no ;;
2263   *)   as_fn_error "bad value ${enableval} for newlib-mb option" "$LINENO" 5 ;;
2264  esac
2265 else
2266   newlib_mb=
2267 fi
2268
2269 # Check whether --enable-newlib-iconv-encodings was given.
2270 if test "${enable_newlib_iconv_encodings+set}" = set; then :
2271   enableval=$enable_newlib_iconv_encodings; if test x${enableval} = x; then
2272    as_fn_error "bad value ${enableval} for newlib-iconv-encodings option - use comma-separated encodings list" "$LINENO" 5
2273  fi
2274  iconv_encodings=${enableval}
2275
2276 else
2277   iconv_encodings=
2278 fi
2279
2280 # Check whether --enable-newlib-iconv-from-encodings was given.
2281 if test "${enable_newlib_iconv_from_encodings+set}" = set; then :
2282   enableval=$enable_newlib_iconv_from_encodings; if test x${enableval} = x; then
2283    as_fn_error "bad value ${enableval} for newlib-iconv-from-encodings option - use comma-separated encodings list" "$LINENO" 5
2284  fi
2285  iconv_from_encodings=${enableval}
2286
2287 else
2288   iconv_from_encodings=
2289 fi
2290
2291 # Check whether --enable-newlib-iconv-to-encodings was given.
2292 if test "${enable_newlib_iconv_to_encodings+set}" = set; then :
2293   enableval=$enable_newlib_iconv_to_encodings; if test x${enableval} = x; then
2294    as_fn_error "bad value ${enableval} for newlib-iconv-to-encodings option - use comma-separated encodings list" "$LINENO" 5
2295  fi
2296  iconv_to_encodings=${enableval}
2297
2298 else
2299   iconv_to_encodings=
2300 fi
2301
2302 # Check whether --enable-newlib-iconv-external-ccs was given.
2303 if test "${enable_newlib_iconv_external_ccs+set}" = set; then :
2304   enableval=$enable_newlib_iconv_external_ccs; if test "${newlib_iconv_external_ccs+set}" != set; then
2305    case "${enableval}" in
2306      yes) newlib_iconv_external_ccs=yes ;;
2307      no)  newlib_iconv_external_ccs=no ;;
2308      *)   as_fn_error "bad value ${enableval} for newlib-iconv-external-ccs option" "$LINENO" 5 ;;
2309    esac
2310  fi
2311 else
2312   newlib_iconv_external_ccs=${newlib_iconv_external_ccs}
2313 fi
2314
2315 # Check whether --enable-newlib-atexit-dynamic-alloc was given.
2316 if test "${enable_newlib_atexit_dynamic_alloc+set}" = set; then :
2317   enableval=$enable_newlib_atexit_dynamic_alloc; if test "${newlib_atexit_dynamic_alloc+set}" != set; then
2318   case "${enableval}" in
2319     yes) newlib_atexit_dynamic_alloc=yes ;;
2320     no)  newlib_atexit_dynamic_alloc=no  ;;
2321     *)   as_fn_error "bad value ${enableval} for newlib-atexit-dynamic-alloc option" "$LINENO" 5 ;;
2322   esac
2323  fi
2324 else
2325   newlib_atexit_dynamic_alloc=${newlib_atexit_dynamic_alloc}
2326 fi
2327
2328 # Check whether --enable-newlib-reent-small was given.
2329 if test "${enable_newlib_reent_small+set}" = set; then :
2330   enableval=$enable_newlib_reent_small; case "${enableval}" in
2331   yes) newlib_reent_small=yes;;
2332   no)  newlib_reent_small=no ;;
2333   *)   as_fn_error "bad value ${enableval} for newlib-reent-small option" "$LINENO" 5 ;;
2334  esac
2335 else
2336   newlib_reent_small=
2337 fi
2338
2339
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2343
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if test "${ac_cv_build+set}" = set; then :
2347   $as_echo_n "(cached) " >&6
2348 else
2349   ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2356
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2376
2377
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then :
2381   $as_echo_n "(cached) " >&6
2382 else
2383   if test "x$host_alias" = x; then
2384   ac_cv_host=$ac_cv_build
2385 else
2386   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2388 fi
2389
2390 fi
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2409
2410
2411 am__api_version='1.11'
2412
2413 # Find a good install program.  We prefer a C program (faster),
2414 # so one script is as good as another.  But avoid the broken or
2415 # incompatible versions:
2416 # SysV /etc/install, /usr/sbin/install
2417 # SunOS /usr/etc/install
2418 # IRIX /sbin/install
2419 # AIX /bin/install
2420 # AmigaOS /C/install, which installs bootblocks on floppy discs
2421 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2422 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2423 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2424 # OS/2's system install, which has a completely different semantic
2425 # ./install, which can be erroneously created by make from ./install.sh.
2426 # Reject install programs that cannot install multiple files.
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2428 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2429 if test -z "$INSTALL"; then
2430 if test "${ac_cv_path_install+set}" = set; then :
2431   $as_echo_n "(cached) " >&6
2432 else
2433   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436   IFS=$as_save_IFS
2437   test -z "$as_dir" && as_dir=.
2438     # Account for people who put trailing slashes in PATH elements.
2439 case $as_dir/ in #((
2440   ./ | .// | /[cC]/* | \
2441   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2442   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2443   /usr/ucb/* ) ;;
2444   *)
2445     # OSF1 and SCO ODT 3.0 have their own names for install.
2446     # Don't use installbsd from OSF since it installs stuff as root
2447     # by default.
2448     for ac_prog in ginstall scoinst install; do
2449       for ac_exec_ext in '' $ac_executable_extensions; do
2450         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2451           if test $ac_prog = install &&
2452             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2453             # AIX install.  It has an incompatible calling convention.
2454             :
2455           elif test $ac_prog = install &&
2456             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2457             # program-specific install script used by HP pwplus--don't use.
2458             :
2459           else
2460             rm -rf conftest.one conftest.two conftest.dir
2461             echo one > conftest.one
2462             echo two > conftest.two
2463             mkdir conftest.dir
2464             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2465               test -s conftest.one && test -s conftest.two &&
2466               test -s conftest.dir/conftest.one &&
2467               test -s conftest.dir/conftest.two
2468             then
2469               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2470               break 3
2471             fi
2472           fi
2473         fi
2474       done
2475     done
2476     ;;
2477 esac
2478
2479   done
2480 IFS=$as_save_IFS
2481
2482 rm -rf conftest.one conftest.two conftest.dir
2483
2484 fi
2485   if test "${ac_cv_path_install+set}" = set; then
2486     INSTALL=$ac_cv_path_install
2487   else
2488     # As a last resort, use the slow shell script.  Don't cache a
2489     # value for INSTALL within a source directory, because that will
2490     # break other packages using the cache if that directory is
2491     # removed, or if the value is a relative name.
2492     INSTALL=$ac_install_sh
2493   fi
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2496 $as_echo "$INSTALL" >&6; }
2497
2498 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2499 # It thinks the first close brace ends the variable substitution.
2500 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2501
2502 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2503
2504 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2505
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2507 $as_echo_n "checking whether build environment is sane... " >&6; }
2508 # Just in case
2509 sleep 1
2510 echo timestamp > conftest.file
2511 # Reject unsafe characters in $srcdir or the absolute working directory
2512 # name.  Accept space and tab only in the latter.
2513 am_lf='
2514 '
2515 case `pwd` in
2516   *[\\\"\#\$\&\'\`$am_lf]*)
2517     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2518 esac
2519 case $srcdir in
2520   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2521     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2522 esac
2523
2524 # Do `set' in a subshell so we don't clobber the current shell's
2525 # arguments.  Must try -L first in case configure is actually a
2526 # symlink; some systems play weird games with the mod time of symlinks
2527 # (eg FreeBSD returns the mod time of the symlink's containing
2528 # directory).
2529 if (
2530    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2531    if test "$*" = "X"; then
2532       # -L didn't work.
2533       set X `ls -t "$srcdir/configure" conftest.file`
2534    fi
2535    rm -f conftest.file
2536    if test "$*" != "X $srcdir/configure conftest.file" \
2537       && test "$*" != "X conftest.file $srcdir/configure"; then
2538
2539       # If neither matched, then we have a broken ls.  This can happen
2540       # if, for instance, CONFIG_SHELL is bash and it inherits a
2541       # broken ls alias from the environment.  This has actually
2542       # happened.  Such a system could not be considered "sane".
2543       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2544 alias in your environment" "$LINENO" 5
2545    fi
2546
2547    test "$2" = conftest.file
2548    )
2549 then
2550    # Ok.
2551    :
2552 else
2553    as_fn_error "newly created file is older than distributed files!
2554 Check your system clock" "$LINENO" 5
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558 test "$program_prefix" != NONE &&
2559   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2560 # Use a double $ so make ignores it.
2561 test "$program_suffix" != NONE &&
2562   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2563 # Double any \ or $.
2564 # By default was `s,x,x', remove it if useless.
2565 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2566 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2567
2568 # expand $ac_aux_dir to an absolute path
2569 am_aux_dir=`cd $ac_aux_dir && pwd`
2570
2571 if test x"${MISSING+set}" != xset; then
2572   case $am_aux_dir in
2573   *\ * | *\     *)
2574     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2575   *)
2576     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2577   esac
2578 fi
2579 # Use eval to expand $SHELL
2580 if eval "$MISSING --run true"; then
2581   am_missing_run="$MISSING --run "
2582 else
2583   am_missing_run=
2584   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2585 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2586 fi
2587
2588 if test x"${install_sh}" != xset; then
2589   case $am_aux_dir in
2590   *\ * | *\     *)
2591     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2592   *)
2593     install_sh="\${SHELL} $am_aux_dir/install-sh"
2594   esac
2595 fi
2596
2597 # Installed binaries are usually stripped using `strip' when the user
2598 # run `make install-strip'.  However `strip' might not be the right
2599 # tool to use in cross-compilation environments, therefore Automake
2600 # will honor the `STRIP' environment variable to overrule this program.
2601 if test "$cross_compiling" != no; then
2602   if test -n "$ac_tool_prefix"; then
2603   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2604 set dummy ${ac_tool_prefix}strip; ac_word=$2
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_STRIP+set}" = set; then :
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test -n "$STRIP"; then
2611   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618     for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625   done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 STRIP=$ac_cv_prog_STRIP
2631 if test -n "$STRIP"; then
2632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2633 $as_echo "$STRIP" >&6; }
2634 else
2635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640 fi
2641 if test -z "$ac_cv_prog_STRIP"; then
2642   ac_ct_STRIP=$STRIP
2643   # Extract the first word of "strip", so it can be a program name with args.
2644 set dummy strip; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2648   $as_echo_n "(cached) " >&6
2649 else
2650   if test -n "$ac_ct_STRIP"; then
2651   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2652 else
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656   IFS=$as_save_IFS
2657   test -z "$as_dir" && as_dir=.
2658     for ac_exec_ext in '' $ac_executable_extensions; do
2659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660     ac_cv_prog_ac_ct_STRIP="strip"
2661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662     break 2
2663   fi
2664 done
2665   done
2666 IFS=$as_save_IFS
2667
2668 fi
2669 fi
2670 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2671 if test -n "$ac_ct_STRIP"; then
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2673 $as_echo "$ac_ct_STRIP" >&6; }
2674 else
2675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2676 $as_echo "no" >&6; }
2677 fi
2678
2679   if test "x$ac_ct_STRIP" = x; then
2680     STRIP=":"
2681   else
2682     case $cross_compiling:$ac_tool_warned in
2683 yes:)
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688     STRIP=$ac_ct_STRIP
2689   fi
2690 else
2691   STRIP="$ac_cv_prog_STRIP"
2692 fi
2693
2694 fi
2695 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2698 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2699 if test -z "$MKDIR_P"; then
2700   if test "${ac_cv_path_mkdir+set}" = set; then :
2701   $as_echo_n "(cached) " >&6
2702 else
2703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2704 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2705 do
2706   IFS=$as_save_IFS
2707   test -z "$as_dir" && as_dir=.
2708     for ac_prog in mkdir gmkdir; do
2709          for ac_exec_ext in '' $ac_executable_extensions; do
2710            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2711            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2712              'mkdir (GNU coreutils) '* | \
2713              'mkdir (coreutils) '* | \
2714              'mkdir (fileutils) '4.1*)
2715                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2716                break 3;;
2717            esac
2718          done
2719        done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724
2725   test -d ./--version && rmdir ./--version
2726   if test "${ac_cv_path_mkdir+set}" = set; then
2727     MKDIR_P="$ac_cv_path_mkdir -p"
2728   else
2729     # As a last resort, use the slow shell script.  Don't cache a
2730     # value for MKDIR_P within a source directory, because that will
2731     # break other packages using the cache if that directory is
2732     # removed, or if the value is a relative name.
2733     MKDIR_P="$ac_install_sh -d"
2734   fi
2735 fi
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2737 $as_echo "$MKDIR_P" >&6; }
2738
2739 mkdir_p="$MKDIR_P"
2740 case $mkdir_p in
2741   [\\/$]* | ?:[\\/]*) ;;
2742   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2743 esac
2744
2745 for ac_prog in gawk mawk nawk awk
2746 do
2747   # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy $ac_prog; ac_word=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if test "${ac_cv_prog_AWK+set}" = set; then :
2752   $as_echo_n "(cached) " >&6
2753 else
2754   if test -n "$AWK"; then
2755   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2756 else
2757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758 for as_dir in $PATH
2759 do
2760   IFS=$as_save_IFS
2761   test -z "$as_dir" && as_dir=.
2762     for ac_exec_ext in '' $ac_executable_extensions; do
2763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2764     ac_cv_prog_AWK="$ac_prog"
2765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766     break 2
2767   fi
2768 done
2769   done
2770 IFS=$as_save_IFS
2771
2772 fi
2773 fi
2774 AWK=$ac_cv_prog_AWK
2775 if test -n "$AWK"; then
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2777 $as_echo "$AWK" >&6; }
2778 else
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781 fi
2782
2783
2784   test -n "$AWK" && break
2785 done
2786
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2789 set x ${MAKE-make}
2790 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2791 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2792   $as_echo_n "(cached) " >&6
2793 else
2794   cat >conftest.make <<\_ACEOF
2795 SHELL = /bin/sh
2796 all:
2797         @echo '@@@%%%=$(MAKE)=@@@%%%'
2798 _ACEOF
2799 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2801   *@@@%%%=?*=@@@%%%*)
2802     eval ac_cv_prog_make_${ac_make}_set=yes;;
2803   *)
2804     eval ac_cv_prog_make_${ac_make}_set=no;;
2805 esac
2806 rm -f conftest.make
2807 fi
2808 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 $as_echo "yes" >&6; }
2811   SET_MAKE=
2812 else
2813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815   SET_MAKE="MAKE=${MAKE-make}"
2816 fi
2817
2818 rm -rf .tst 2>/dev/null
2819 mkdir .tst 2>/dev/null
2820 if test -d .tst; then
2821   am__leading_dot=.
2822 else
2823   am__leading_dot=_
2824 fi
2825 rmdir .tst 2>/dev/null
2826
2827 DEPDIR="${am__leading_dot}deps"
2828
2829 ac_config_commands="$ac_config_commands depfiles"
2830
2831
2832 am_make=${MAKE-make}
2833 cat > confinc << 'END'
2834 am__doit:
2835         @echo this is the am__doit target
2836 .PHONY: am__doit
2837 END
2838 # If we don't find an include directive, just comment out the code.
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2840 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2841 am__include="#"
2842 am__quote=
2843 _am_result=none
2844 # First try GNU make style include.
2845 echo "include confinc" > confmf
2846 # Ignore all kinds of additional output from `make'.
2847 case `$am_make -s -f confmf 2> /dev/null` in #(
2848 *the\ am__doit\ target*)
2849   am__include=include
2850   am__quote=
2851   _am_result=GNU
2852   ;;
2853 esac
2854 # Now try BSD make style include.
2855 if test "$am__include" = "#"; then
2856    echo '.include "confinc"' > confmf
2857    case `$am_make -s -f confmf 2> /dev/null` in #(
2858    *the\ am__doit\ target*)
2859      am__include=.include
2860      am__quote="\""
2861      _am_result=BSD
2862      ;;
2863    esac
2864 fi
2865
2866
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2868 $as_echo "$_am_result" >&6; }
2869 rm -f confinc confmf
2870
2871 # Check whether --enable-dependency-tracking was given.
2872 if test "${enable_dependency_tracking+set}" = set; then :
2873   enableval=$enable_dependency_tracking;
2874 fi
2875
2876 if test "x$enable_dependency_tracking" != xno; then
2877   am_depcomp="$ac_aux_dir/depcomp"
2878   AMDEPBACKSLASH='\'
2879 fi
2880  if test "x$enable_dependency_tracking" != xno; then
2881   AMDEP_TRUE=
2882   AMDEP_FALSE='#'
2883 else
2884   AMDEP_TRUE='#'
2885   AMDEP_FALSE=
2886 fi
2887
2888
2889
2890 # Check whether --enable-multilib was given.
2891 if test "${enable_multilib+set}" = set; then :
2892   enableval=$enable_multilib; case "${enableval}" in
2893   yes) multilib=yes ;;
2894   no)  multilib=no ;;
2895   *)   as_fn_error "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
2896  esac
2897 else
2898   multilib=yes
2899 fi
2900
2901 # Check whether --enable-target-optspace was given.
2902 if test "${enable_target_optspace+set}" = set; then :
2903   enableval=$enable_target_optspace; case "${enableval}" in
2904   yes) target_optspace=yes ;;
2905   no)  target_optspace=no ;;
2906   *)   as_fn_error "bad value ${enableval} for target-optspace option" "$LINENO" 5 ;;
2907  esac
2908 else
2909   target_optspace=
2910 fi
2911
2912 # Check whether --enable-malloc-debugging was given.
2913 if test "${enable_malloc_debugging+set}" = set; then :
2914   enableval=$enable_malloc_debugging; case "${enableval}" in
2915   yes) malloc_debugging=yes ;;
2916   no)  malloc_debugging=no ;;
2917   *)   as_fn_error "bad value ${enableval} for malloc-debugging option" "$LINENO" 5 ;;
2918  esac
2919 else
2920   malloc_debugging=
2921 fi
2922
2923 # Check whether --enable-newlib-multithread was given.
2924 if test "${enable_newlib_multithread+set}" = set; then :
2925   enableval=$enable_newlib_multithread; case "${enableval}" in
2926   yes) newlib_multithread=yes ;;
2927   no)  newlib_multithread=no ;;
2928   *)   as_fn_error "bad value ${enableval} for newlib-multithread option" "$LINENO" 5 ;;
2929  esac
2930 else
2931   newlib_multithread=yes
2932 fi
2933
2934 # Check whether --enable-newlib-iconv was given.
2935 if test "${enable_newlib_iconv+set}" = set; then :
2936   enableval=$enable_newlib_iconv; if test "${newlib_iconv+set}" != set; then
2937    case "${enableval}" in
2938      yes) newlib_iconv=yes ;;
2939      no)  newlib_iconv=no ;;
2940      *)   as_fn_error "bad value ${enableval} for newlib-iconv option" "$LINENO" 5 ;;
2941    esac
2942  fi
2943 else
2944   newlib_iconv=${newlib_iconv}
2945 fi
2946
2947 # Check whether --enable-newlib-elix-level was given.
2948 if test "${enable_newlib_elix_level+set}" = set; then :
2949   enableval=$enable_newlib_elix_level; case "${enableval}" in
2950   0)   newlib_elix_level=0 ;;
2951   1)   newlib_elix_level=1 ;;
2952   2)   newlib_elix_level=2 ;;
2953   3)   newlib_elix_level=3 ;;
2954   4)   newlib_elix_level=4 ;;
2955   *)   as_fn_error "bad value ${enableval} for newlib-elix-level option" "$LINENO" 5 ;;
2956  esac
2957 else
2958   newlib_elix_level=0
2959 fi
2960
2961 # Check whether --enable-newlib-io-float was given.
2962 if test "${enable_newlib_io_float+set}" = set; then :
2963   enableval=$enable_newlib_io_float; case "${enableval}" in
2964   yes) newlib_io_float=yes ;;
2965   no)  newlib_io_float=no ;;
2966   *)   as_fn_error "bad value ${enableval} for newlib-io-float option" "$LINENO" 5 ;;
2967  esac
2968 else
2969   newlib_io_float=yes
2970 fi
2971
2972 # Check whether --enable-newlib-supplied-syscalls was given.
2973 if test "${enable_newlib_supplied_syscalls+set}" = set; then :
2974   enableval=$enable_newlib_supplied_syscalls; case "${enableval}" in
2975   yes) newlib_may_supply_syscalls=yes ;;
2976   no)  newlib_may_supply_syscalls=no ;;
2977   *)   as_fn_error "bad value ${enableval} for newlib-supplied-syscalls option" "$LINENO" 5 ;;
2978  esac
2979 else
2980   newlib_may_supply_syscalls=yes
2981 fi
2982
2983  if test x${newlib_may_supply_syscalls} = xyes; then
2984   MAY_SUPPLY_SYSCALLS_TRUE=
2985   MAY_SUPPLY_SYSCALLS_FALSE='#'
2986 else
2987   MAY_SUPPLY_SYSCALLS_TRUE='#'
2988   MAY_SUPPLY_SYSCALLS_FALSE=
2989 fi
2990
2991
2992
2993 test -z "${with_target_subdir}" && with_target_subdir=.
2994
2995 if test "${srcdir}" = "."; then
2996   if test "${with_target_subdir}" != "."; then
2997     newlib_basedir="${srcdir}/${with_multisrctop}../."
2998   else
2999     newlib_basedir="${srcdir}/${with_multisrctop}."
3000   fi
3001 else
3002   newlib_basedir="${srcdir}/."
3003 fi
3004
3005
3006
3007
3008 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3009   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3010   # is not polluted with repeated "-I."
3011   am__isrc=' -I$(srcdir)'
3012   # test to see if srcdir already configured
3013   if test -f $srcdir/config.status; then
3014     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3015   fi
3016 fi
3017
3018 # test whether we have cygpath
3019 if test -z "$CYGPATH_W"; then
3020   if (cygpath --version) >/dev/null 2>/dev/null; then
3021     CYGPATH_W='cygpath -w'
3022   else
3023     CYGPATH_W=echo
3024   fi
3025 fi
3026
3027
3028 # Define the identity of the package.
3029  PACKAGE='newlib'
3030  VERSION='1.19.0'
3031
3032
3033 # Some tools Automake needs.
3034
3035 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3036
3037
3038 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3039
3040
3041 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3042
3043
3044 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3045
3046
3047 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3048
3049 # We need awk for the "check" target.  The system "awk" is bad on
3050 # some platforms.
3051 # Always define AMTAR for backward compatibility.
3052
3053 AMTAR=${AMTAR-"${am_missing_run}tar"}
3054
3055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3056
3057
3058
3059
3060
3061
3062 # FIXME: We temporarily define our own version of AC_PROG_CC.  This is
3063 # copied from autoconf 2.12, but does not call AC_PROG_CC_WORKS.  We
3064 # are probably using a cross compiler, which will not be able to fully
3065 # link an executable.  This should really be fixed in autoconf
3066 # itself.
3067
3068
3069
3070
3071
3072
3073
3074 # Extract the first word of "gcc", so it can be a program name with args.
3075 set dummy gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if test "${ac_cv_prog_CC+set}" = set; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="gcc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111
3112 depcc="$CC"   am_compiler_list=
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3115 $as_echo_n "checking dependency style of $depcc... " >&6; }
3116 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3117   $as_echo_n "(cached) " >&6
3118 else
3119   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3120   # We make a subdir and do the tests there.  Otherwise we can end up
3121   # making bogus files that we don't know about and never remove.  For
3122   # instance it was reported that on HP-UX the gcc test will end up
3123   # making a dummy file named `D' -- because `-MD' means `put the output
3124   # in D'.
3125   mkdir conftest.dir
3126   # Copy depcomp to subdir because otherwise we won't find it if we're
3127   # using a relative directory.
3128   cp "$am_depcomp" conftest.dir
3129   cd conftest.dir
3130   # We will build objects and dependencies in a subdirectory because
3131   # it helps to detect inapplicable dependency modes.  For instance
3132   # both Tru64's cc and ICC support -MD to output dependencies as a
3133   # side effect of compilation, but ICC will put the dependencies in
3134   # the current directory while Tru64 will put them in the object
3135   # directory.
3136   mkdir sub
3137
3138   am_cv_CC_dependencies_compiler_type=none
3139   if test "$am_compiler_list" = ""; then
3140      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3141   fi
3142   am__universal=false
3143   case " $depcc " in #(
3144      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3145      esac
3146
3147   for depmode in $am_compiler_list; do
3148     # Setup a source with many dependencies, because some compilers
3149     # like to wrap large dependency lists on column 80 (with \), and
3150     # we should not choose a depcomp mode which is confused by this.
3151     #
3152     # We need to recreate these files for each test, as the compiler may
3153     # overwrite some of them when testing with obscure command lines.
3154     # This happens at least with the AIX C compiler.
3155     : > sub/conftest.c
3156     for i in 1 2 3 4 5 6; do
3157       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3158       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3159       # Solaris 8's {/usr,}/bin/sh.
3160       touch sub/conftst$i.h
3161     done
3162     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3163
3164     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3165     # mode.  It turns out that the SunPro C++ compiler does not properly
3166     # handle `-M -o', and we need to detect this.  Also, some Intel
3167     # versions had trouble with output in subdirs
3168     am__obj=sub/conftest.${OBJEXT-o}
3169     am__minus_obj="-o $am__obj"
3170     case $depmode in
3171     gcc)
3172       # This depmode causes a compiler race in universal mode.
3173       test "$am__universal" = false || continue
3174       ;;
3175     nosideeffect)
3176       # after this tag, mechanisms are not by side-effect, so they'll
3177       # only be used when explicitly requested
3178       if test "x$enable_dependency_tracking" = xyes; then
3179         continue
3180       else
3181         break
3182       fi
3183       ;;
3184     msvisualcpp | msvcmsys)
3185       # This compiler won't grok `-c -o', but also, the minuso test has
3186       # not run yet.  These depmodes are late enough in the game, and
3187       # so weak that their functioning should not be impacted.
3188       am__obj=conftest.${OBJEXT-o}
3189       am__minus_obj=
3190       ;;
3191     none) break ;;
3192     esac
3193     if depmode=$depmode \
3194        source=sub/conftest.c object=$am__obj \
3195        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3196        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3197          >/dev/null 2>conftest.err &&
3198        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3199        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3200        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3201        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3202       # icc doesn't choke on unknown options, it will just issue warnings
3203       # or remarks (even with -Werror).  So we grep stderr for any message
3204       # that says an option was ignored or not supported.
3205       # When given -MP, icc 7.0 and 7.1 complain thusly:
3206       #   icc: Command line warning: ignoring option '-M'; no argument required
3207       # The diagnosis changed in icc 8.0:
3208       #   icc: Command line remark: option '-MP' not supported
3209       if (grep 'ignoring option' conftest.err ||
3210           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3211         am_cv_CC_dependencies_compiler_type=$depmode
3212         break
3213       fi
3214     fi
3215   done
3216
3217   cd ..
3218   rm -rf conftest.dir
3219 else
3220   am_cv_CC_dependencies_compiler_type=none
3221 fi
3222
3223 fi
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3225 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3226 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3227
3228  if
3229   test "x$enable_dependency_tracking" != xno \
3230   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3231   am__fastdepCC_TRUE=
3232   am__fastdepCC_FALSE='#'
3233 else
3234   am__fastdepCC_TRUE='#'
3235   am__fastdepCC_FALSE=
3236 fi
3237
3238
3239 if test -z "$CC"; then
3240   # Extract the first word of "cc", so it can be a program name with args.
3241 set dummy cc; ac_word=$2
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3243 $as_echo_n "checking for $ac_word... " >&6; }
3244 if test "${ac_cv_prog_CC+set}" = set; then :
3245   $as_echo_n "(cached) " >&6
3246 else
3247   if test -n "$CC"; then
3248   ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250   ac_prog_rejected=no
3251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252 for as_dir in $PATH
3253 do
3254   IFS=$as_save_IFS
3255   test -z "$as_dir" && as_dir=.
3256     for ac_exec_ext in '' $ac_executable_extensions; do
3257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3258     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3259        ac_prog_rejected=yes
3260        continue
3261      fi
3262     ac_cv_prog_CC="cc"
3263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264     break 2
3265   fi
3266 done
3267   done
3268 IFS=$as_save_IFS
3269
3270 if test $ac_prog_rejected = yes; then
3271   # We found a bogon in the path, so make sure we never use it.
3272   set dummy $ac_cv_prog_CC
3273   shift
3274   if test $# != 0; then
3275     # We chose a different compiler from the bogus one.
3276     # However, it has the same basename, so the bogon will be chosen
3277     # first if we set CC to just the basename; use the full file name.
3278     shift
3279     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3280   fi
3281 fi
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294   test -z "$CC" && as_fn_error "no acceptable cc found in \$PATH" "$LINENO" 5
3295 fi
3296
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU C" >&5
3298 $as_echo_n "checking whether we are using GNU C... " >&6; }
3299 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3300   $as_echo_n "(cached) " >&6
3301 else
3302   cat > conftest.c <<EOF
3303 #ifdef __GNUC__
3304   yes;
3305 #endif
3306 EOF
3307 if { ac_try='${CC-cc} -E conftest.c'
3308   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
3309   (eval $ac_try) 2>&5
3310   ac_status=$?
3311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312   test $ac_status = 0; }; } | egrep yes >/dev/null 2>&1; then
3313   ac_cv_c_compiler_gnu=yes
3314 else
3315   ac_cv_c_compiler_gnu=no
3316 fi
3317 fi
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3319 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3320
3321 if test $ac_cv_c_compiler_gnu = yes; then
3322   GCC=yes
3323   ac_test_CFLAGS="${CFLAGS+set}"
3324   ac_save_CFLAGS="$CFLAGS"
3325   ac_test_CFLAGS=${CFLAGS+set}
3326 ac_save_CFLAGS=$CFLAGS
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3328 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3329 if test "${ac_cv_prog_cc_g+set}" = set; then :
3330   $as_echo_n "(cached) " >&6
3331 else
3332   ac_save_c_werror_flag=$ac_c_werror_flag
3333    ac_c_werror_flag=yes
3334    ac_cv_prog_cc_g=no
3335    CFLAGS="-g"
3336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 if ac_fn_c_try_compile "$LINENO"; then :
3348   ac_cv_prog_cc_g=yes
3349 else
3350   CFLAGS=""
3351       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352 /* end confdefs.h.  */
3353
3354 int
3355 main ()
3356 {
3357
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 if ac_fn_c_try_compile "$LINENO"; then :
3363
3364 else
3365   ac_c_werror_flag=$ac_save_c_werror_flag
3366          CFLAGS="-g"
3367          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h.  */
3369
3370 int
3371 main ()
3372 {
3373
3374   ;
3375   return 0;
3376 }
3377 _ACEOF
3378 if ac_fn_c_try_compile "$LINENO"; then :
3379   ac_cv_prog_cc_g=yes
3380 fi
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382 fi
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386    ac_c_werror_flag=$ac_save_c_werror_flag
3387 fi
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3389 $as_echo "$ac_cv_prog_cc_g" >&6; }
3390 if test "$ac_test_CFLAGS" = set; then
3391   CFLAGS=$ac_save_CFLAGS
3392 elif test $ac_cv_prog_cc_g = yes; then
3393   if test "$GCC" = yes; then
3394     CFLAGS="-g -O2"
3395   else
3396     CFLAGS="-g"
3397   fi
3398 else
3399   if test "$GCC" = yes; then
3400     CFLAGS="-O2"
3401   else
3402     CFLAGS=
3403   fi
3404 fi
3405   if test "$ac_test_CFLAGS" = set; then
3406     CFLAGS="$ac_save_CFLAGS"
3407   elif test $ac_cv_prog_cc_g = yes; then
3408     CFLAGS="-g -O2"
3409   else
3410     CFLAGS="-O2"
3411   fi
3412 else
3413   GCC=
3414   test "${CFLAGS+set}" = set || CFLAGS="-g"
3415 fi
3416
3417
3418 if test -n "$ac_tool_prefix"; then
3419   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}as; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_AS+set}" = set; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$AS"; then
3427   ac_cv_prog_AS="$AS" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436     ac_cv_prog_AS="${ac_tool_prefix}as"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 AS=$ac_cv_prog_AS
3447 if test -n "$AS"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
3449 $as_echo "$AS" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$ac_cv_prog_AS"; then
3458   ac_ct_AS=$AS
3459   # Extract the first word of "as", so it can be a program name with args.
3460 set dummy as; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   if test -n "$ac_ct_AS"; then
3467   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3468 else
3469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 for as_dir in $PATH
3471 do
3472   IFS=$as_save_IFS
3473   test -z "$as_dir" && as_dir=.
3474     for ac_exec_ext in '' $ac_executable_extensions; do
3475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3476     ac_cv_prog_ac_ct_AS="as"
3477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478     break 2
3479   fi
3480 done
3481   done
3482 IFS=$as_save_IFS
3483
3484 fi
3485 fi
3486 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3487 if test -n "$ac_ct_AS"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
3489 $as_echo "$ac_ct_AS" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495   if test "x$ac_ct_AS" = x; then
3496     AS=""
3497   else
3498     case $cross_compiling:$ac_tool_warned in
3499 yes:)
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3502 ac_tool_warned=yes ;;
3503 esac
3504     AS=$ac_ct_AS
3505   fi
3506 else
3507   AS="$ac_cv_prog_AS"
3508 fi
3509
3510 if test -n "$ac_tool_prefix"; then
3511   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}ar; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if test "${ac_cv_prog_AR+set}" = set; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518   if test -n "$AR"; then
3519   ac_cv_prog_AR="$AR" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526     for ac_exec_ext in '' $ac_executable_extensions; do
3527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528     ac_cv_prog_AR="${ac_tool_prefix}ar"
3529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533   done
3534 IFS=$as_save_IFS
3535
3536 fi
3537 fi
3538 AR=$ac_cv_prog_AR
3539 if test -n "$AR"; then
3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3541 $as_echo "$AR" >&6; }
3542 else
3543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3545 fi
3546
3547
3548 fi
3549 if test -z "$ac_cv_prog_AR"; then
3550   ac_ct_AR=$AR
3551   # Extract the first word of "ar", so it can be a program name with args.
3552 set dummy ar; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$ac_ct_AR"; then
3559   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568     ac_cv_prog_ac_ct_AR="ar"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3579 if test -n "$ac_ct_AR"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3581 $as_echo "$ac_ct_AR" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587   if test "x$ac_ct_AR" = x; then
3588     AR=""
3589   else
3590     case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596     AR=$ac_ct_AR
3597   fi
3598 else
3599   AR="$ac_cv_prog_AR"
3600 fi
3601
3602 if test -n "$ac_tool_prefix"; then
3603   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3606 $as_echo_n "checking for $ac_word... " >&6; }
3607 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3608   $as_echo_n "(cached) " >&6
3609 else
3610   if test -n "$RANLIB"; then
3611   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3612 else
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 for as_dir in $PATH
3615 do
3616   IFS=$as_save_IFS
3617   test -z "$as_dir" && as_dir=.
3618     for ac_exec_ext in '' $ac_executable_extensions; do
3619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3620     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3622     break 2
3623   fi
3624 done
3625   done
3626 IFS=$as_save_IFS
3627
3628 fi
3629 fi
3630 RANLIB=$ac_cv_prog_RANLIB
3631 if test -n "$RANLIB"; then
3632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3633 $as_echo "$RANLIB" >&6; }
3634 else
3635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3636 $as_echo "no" >&6; }
3637 fi
3638
3639
3640 fi
3641 if test -z "$ac_cv_prog_RANLIB"; then
3642   ac_ct_RANLIB=$RANLIB
3643   # Extract the first word of "ranlib", so it can be a program name with args.
3644 set dummy ranlib; ac_word=$2
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 $as_echo_n "checking for $ac_word... " >&6; }
3647 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3648   $as_echo_n "(cached) " >&6
3649 else
3650   if test -n "$ac_ct_RANLIB"; then
3651   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3652 else
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 for as_dir in $PATH
3655 do
3656   IFS=$as_save_IFS
3657   test -z "$as_dir" && as_dir=.
3658     for ac_exec_ext in '' $ac_executable_extensions; do
3659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3660     ac_cv_prog_ac_ct_RANLIB="ranlib"
3661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662     break 2
3663   fi
3664 done
3665   done
3666 IFS=$as_save_IFS
3667
3668 fi
3669 fi
3670 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3671 if test -n "$ac_ct_RANLIB"; then
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3673 $as_echo "$ac_ct_RANLIB" >&6; }
3674 else
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 fi
3678
3679   if test "x$ac_ct_RANLIB" = x; then
3680     RANLIB=":"
3681   else
3682     case $cross_compiling:$ac_tool_warned in
3683 yes:)
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3686 ac_tool_warned=yes ;;
3687 esac
3688     RANLIB=$ac_ct_RANLIB
3689   fi
3690 else
3691   RANLIB="$ac_cv_prog_RANLIB"
3692 fi
3693
3694 if test -n "$ac_tool_prefix"; then
3695   # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
3696 set dummy ${ac_tool_prefix}readelf; ac_word=$2
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3698 $as_echo_n "checking for $ac_word... " >&6; }
3699 if test "${ac_cv_prog_READELF+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   if test -n "$READELF"; then
3703   ac_cv_prog_READELF="$READELF" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708   IFS=$as_save_IFS
3709   test -z "$as_dir" && as_dir=.
3710     for ac_exec_ext in '' $ac_executable_extensions; do
3711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712     ac_cv_prog_READELF="${ac_tool_prefix}readelf"
3713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714     break 2
3715   fi
3716 done
3717   done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 READELF=$ac_cv_prog_READELF
3723 if test -n "$READELF"; then
3724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
3725 $as_echo "$READELF" >&6; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 $as_echo "no" >&6; }
3729 fi
3730
3731
3732 fi
3733 if test -z "$ac_cv_prog_READELF"; then
3734   ac_ct_READELF=$READELF
3735   # Extract the first word of "readelf", so it can be a program name with args.
3736 set dummy readelf; ac_word=$2
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 $as_echo_n "checking for $ac_word... " >&6; }
3739 if test "${ac_cv_prog_ac_ct_READELF+set}" = set; then :
3740   $as_echo_n "(cached) " >&6
3741 else
3742   if test -n "$ac_ct_READELF"; then
3743   ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
3744 else
3745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3746 for as_dir in $PATH
3747 do
3748   IFS=$as_save_IFS
3749   test -z "$as_dir" && as_dir=.
3750     for ac_exec_ext in '' $ac_executable_extensions; do
3751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3752     ac_cv_prog_ac_ct_READELF="readelf"
3753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754     break 2
3755   fi
3756 done
3757   done
3758 IFS=$as_save_IFS
3759
3760 fi
3761 fi
3762 ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
3763 if test -n "$ac_ct_READELF"; then
3764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
3765 $as_echo "$ac_ct_READELF" >&6; }
3766 else
3767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3768 $as_echo "no" >&6; }
3769 fi
3770
3771   if test "x$ac_ct_READELF" = x; then
3772     READELF=":"
3773   else
3774     case $cross_compiling:$ac_tool_warned in
3775 yes:)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3778 ac_tool_warned=yes ;;
3779 esac
3780     READELF=$ac_ct_READELF
3781   fi
3782 else
3783   READELF="$ac_cv_prog_READELF"
3784 fi
3785
3786
3787
3788
3789 # Hack to ensure that INSTALL won't be set to "../" with autoconf 2.13.  */
3790 ac_given_INSTALL=$INSTALL
3791
3792
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3794 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3795     # Check whether --enable-maintainer-mode was given.
3796 if test "${enable_maintainer_mode+set}" = set; then :
3797   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3798 else
3799   USE_MAINTAINER_MODE=no
3800 fi
3801
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3803 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3804    if test $USE_MAINTAINER_MODE = yes; then
3805   MAINTAINER_MODE_TRUE=
3806   MAINTAINER_MODE_FALSE='#'
3807 else
3808   MAINTAINER_MODE_TRUE='#'
3809   MAINTAINER_MODE_FALSE=
3810 fi
3811
3812   MAINT=$MAINTAINER_MODE_TRUE
3813
3814
3815 # By default we simply use the C compiler to build assembly code.
3816
3817 test "${CCAS+set}" = set || CCAS=$CC
3818 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3819
3820
3821
3822
3823 # We need AC_EXEEXT to keep automake happy in cygnus mode.  However,
3824 # at least currently, we never actually build a program, so we never
3825 # need to use $(EXEEXT).  Moreover, the test for EXEEXT normally
3826 # fails, because we are probably configuring with a cross compiler
3827 # which can't create executables.  So we include AC_EXEEXT to keep
3828 # automake happy, but we don't execute it, since we don't care about
3829 # the result.
3830 if false; then
3831
3832   dummy_var=1
3833 fi
3834
3835 . ${newlib_basedir}/configure.host
3836
3837 newlib_cflags="${newlib_cflags} -fno-builtin"
3838
3839 NEWLIB_CFLAGS=${newlib_cflags}
3840
3841
3842 NO_INCLUDE_LIST=${noinclude}
3843
3844
3845 LDFLAGS=${ldflags}
3846
3847
3848  if test x${newlib_elix_level} = x0; then
3849   ELIX_LEVEL_0_TRUE=
3850   ELIX_LEVEL_0_FALSE='#'
3851 else
3852   ELIX_LEVEL_0_TRUE='#'
3853   ELIX_LEVEL_0_FALSE=
3854 fi
3855
3856  if test x${newlib_elix_level} = x1; then
3857   ELIX_LEVEL_1_TRUE=
3858   ELIX_LEVEL_1_FALSE='#'
3859 else
3860   ELIX_LEVEL_1_TRUE='#'
3861   ELIX_LEVEL_1_FALSE=
3862 fi
3863
3864  if test x${newlib_elix_level} = x2; then
3865   ELIX_LEVEL_2_TRUE=
3866   ELIX_LEVEL_2_FALSE='#'
3867 else
3868   ELIX_LEVEL_2_TRUE='#'
3869   ELIX_LEVEL_2_FALSE=
3870 fi
3871
3872  if test x${newlib_elix_level} = x3; then
3873   ELIX_LEVEL_3_TRUE=
3874   ELIX_LEVEL_3_FALSE='#'
3875 else
3876   ELIX_LEVEL_3_TRUE='#'
3877   ELIX_LEVEL_3_FALSE=
3878 fi
3879
3880  if test x${newlib_elix_level} = x4; then
3881   ELIX_LEVEL_4_TRUE=
3882   ELIX_LEVEL_4_FALSE='#'
3883 else
3884   ELIX_LEVEL_4_TRUE='#'
3885   ELIX_LEVEL_4_FALSE=
3886 fi
3887
3888
3889  if test x${use_libtool} = xyes; then
3890   USE_LIBTOOL_TRUE=
3891   USE_LIBTOOL_FALSE='#'
3892 else
3893   USE_LIBTOOL_TRUE='#'
3894   USE_LIBTOOL_FALSE=
3895 fi
3896
3897
3898 # Hard-code OBJEXT.  Normally it is set by AC_OBJEXT, but we
3899 # use oext, which is set in configure.host based on the target platform.
3900 OBJEXT=${oext}
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3913 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3914 if test "${ac_cv_path_SED+set}" = set; then :
3915   $as_echo_n "(cached) " >&6
3916 else
3917             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3918      for ac_i in 1 2 3 4 5 6 7; do
3919        ac_script="$ac_script$as_nl$ac_script"
3920      done
3921      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3922      { ac_script=; unset ac_script;}
3923      if test -z "$SED"; then
3924   ac_path_SED_found=false
3925   # Loop through the user's path and test for each of PROGNAME-LIST
3926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3928 do
3929   IFS=$as_save_IFS
3930   test -z "$as_dir" && as_dir=.
3931     for ac_prog in sed gsed; do
3932     for ac_exec_ext in '' $ac_executable_extensions; do
3933       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3934       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3935 # Check for GNU ac_path_SED and select it if it is found.
3936   # Check for GNU $ac_path_SED
3937 case `"$ac_path_SED" --version 2>&1` in
3938 *GNU*)
3939   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3940 *)
3941   ac_count=0
3942   $as_echo_n 0123456789 >"conftest.in"
3943   while :
3944   do
3945     cat "conftest.in" "conftest.in" >"conftest.tmp"
3946     mv "conftest.tmp" "conftest.in"
3947     cp "conftest.in" "conftest.nl"
3948     $as_echo '' >> "conftest.nl"
3949     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3950     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3951     as_fn_arith $ac_count + 1 && ac_count=$as_val
3952     if test $ac_count -gt ${ac_path_SED_max-0}; then
3953       # Best one so far, save it but keep looking for a better one
3954       ac_cv_path_SED="$ac_path_SED"
3955       ac_path_SED_max=$ac_count
3956     fi
3957     # 10*(2^10) chars as input seems more than enough
3958     test $ac_count -gt 10 && break
3959   done
3960   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3961 esac
3962
3963       $ac_path_SED_found && break 3
3964     done
3965   done
3966   done
3967 IFS=$as_save_IFS
3968   if test -z "$ac_cv_path_SED"; then
3969     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3970   fi
3971 else
3972   ac_cv_path_SED=$SED
3973 fi
3974
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3977 $as_echo "$ac_cv_path_SED" >&6; }
3978  SED="$ac_cv_path_SED"
3979   rm -f conftest.sed
3980
3981 test -z "$SED" && SED=sed
3982 Xsed="$SED -e 1s/^X//"
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3995 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3996 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3999 $as_echo_n "checking how to print strings... " >&6; }
4000 # Test print first, because it will be a builtin if present.
4001 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4002    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4003   ECHO='print -r --'
4004 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4005   ECHO='printf %s\n'
4006 else
4007   # Use this function as a fallback that always works.
4008   func_fallback_echo ()
4009   {
4010     eval 'cat <<_LTECHO_EOF
4011 $1
4012 _LTECHO_EOF'
4013   }
4014   ECHO='func_fallback_echo'
4015 fi
4016
4017 # func_echo_all arg...
4018 # Invoke $ECHO with all args, space-separated.
4019 func_echo_all ()
4020 {
4021     $ECHO ""
4022 }
4023
4024 case "$ECHO" in
4025   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4026 $as_echo "printf" >&6; } ;;
4027   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4028 $as_echo "print -r" >&6; } ;;
4029   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4030 $as_echo "cat" >&6; } ;;
4031 esac
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046 for ac_prog in gawk mawk nawk awk
4047 do
4048   # Extract the first word of "$ac_prog", so it can be a program name with args.
4049 set dummy $ac_prog; ac_word=$2
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051 $as_echo_n "checking for $ac_word... " >&6; }
4052 if test "${ac_cv_prog_AWK+set}" = set; then :
4053   $as_echo_n "(cached) " >&6
4054 else
4055   if test -n "$AWK"; then
4056   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4057 else
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 for as_dir in $PATH
4060 do
4061   IFS=$as_save_IFS
4062   test -z "$as_dir" && as_dir=.
4063     for ac_exec_ext in '' $ac_executable_extensions; do
4064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4065     ac_cv_prog_AWK="$ac_prog"
4066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067     break 2
4068   fi
4069 done
4070   done
4071 IFS=$as_save_IFS
4072
4073 fi
4074 fi
4075 AWK=$ac_cv_prog_AWK
4076 if test -n "$AWK"; then
4077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4078 $as_echo "$AWK" >&6; }
4079 else
4080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 fi
4083
4084
4085   test -n "$AWK" && break
4086 done
4087
4088 if test "${use_libtool}" = "yes"; then
4089 enable_win32_dll=yes
4090
4091 case $host in
4092 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4093   if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}as; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if test "${ac_cv_prog_AS+set}" = set; then :
4099   $as_echo_n "(cached) " >&6
4100 else
4101   if test -n "$AS"; then
4102   ac_cv_prog_AS="$AS" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109     for ac_exec_ext in '' $ac_executable_extensions; do
4110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111     ac_cv_prog_AS="${ac_tool_prefix}as"
4112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116   done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 AS=$ac_cv_prog_AS
4122 if test -n "$AS"; then
4123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4124 $as_echo "$AS" >&6; }
4125 else
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_AS"; then
4133   ac_ct_AS=$AS
4134   # Extract the first word of "as", so it can be a program name with args.
4135 set dummy as; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
4139   $as_echo_n "(cached) " >&6
4140 else
4141   if test -n "$ac_ct_AS"; then
4142   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149     for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_ac_ct_AS="as"
4152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156   done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4162 if test -n "$ac_ct_AS"; then
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4164 $as_echo "$ac_ct_AS" >&6; }
4165 else
4166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4168 fi
4169
4170   if test "x$ac_ct_AS" = x; then
4171     AS="false"
4172   else
4173     case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned=yes ;;
4178 esac
4179     AS=$ac_ct_AS
4180   fi
4181 else
4182   AS="$ac_cv_prog_AS"
4183 fi
4184
4185   if test -n "$ac_tool_prefix"; then
4186   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
4191   $as_echo_n "(cached) " >&6
4192 else
4193   if test -n "$DLLTOOL"; then
4194   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4198 do
4199   IFS=$as_save_IFS
4200   test -z "$as_dir" && as_dir=.
4201     for ac_exec_ext in '' $ac_executable_extensions; do
4202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4205     break 2
4206   fi
4207 done
4208   done
4209 IFS=$as_save_IFS
4210
4211 fi
4212 fi
4213 DLLTOOL=$ac_cv_prog_DLLTOOL
4214 if test -n "$DLLTOOL"; then
4215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4216 $as_echo "$DLLTOOL" >&6; }
4217 else
4218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219 $as_echo "no" >&6; }
4220 fi
4221
4222
4223 fi
4224 if test -z "$ac_cv_prog_DLLTOOL"; then
4225   ac_ct_DLLTOOL=$DLLTOOL
4226   # Extract the first word of "dlltool", so it can be a program name with args.
4227 set dummy dlltool; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$ac_ct_DLLTOOL"; then
4234   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4254 if test -n "$ac_ct_DLLTOOL"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4256 $as_echo "$ac_ct_DLLTOOL" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262   if test "x$ac_ct_DLLTOOL" = x; then
4263     DLLTOOL="false"
4264   else
4265     case $cross_compiling:$ac_tool_warned in
4266 yes:)
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4269 ac_tool_warned=yes ;;
4270 esac
4271     DLLTOOL=$ac_ct_DLLTOOL
4272   fi
4273 else
4274   DLLTOOL="$ac_cv_prog_DLLTOOL"
4275 fi
4276
4277   if test -n "$ac_tool_prefix"; then
4278   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4279 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4281 $as_echo_n "checking for $ac_word... " >&6; }
4282 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4283   $as_echo_n "(cached) " >&6
4284 else
4285   if test -n "$OBJDUMP"; then
4286   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4287 else
4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293     for ac_exec_ext in '' $ac_executable_extensions; do
4294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300   done
4301 IFS=$as_save_IFS
4302
4303 fi
4304 fi
4305 OBJDUMP=$ac_cv_prog_OBJDUMP
4306 if test -n "$OBJDUMP"; then
4307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4308 $as_echo "$OBJDUMP" >&6; }
4309 else
4310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4312 fi
4313
4314
4315 fi
4316 if test -z "$ac_cv_prog_OBJDUMP"; then
4317   ac_ct_OBJDUMP=$OBJDUMP
4318   # Extract the first word of "objdump", so it can be a program name with args.
4319 set dummy objdump; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4323   $as_echo_n "(cached) " >&6
4324 else
4325   if test -n "$ac_ct_OBJDUMP"; then
4326   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4327 else
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333     for ac_exec_ext in '' $ac_executable_extensions; do
4334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340   done
4341 IFS=$as_save_IFS
4342
4343 fi
4344 fi
4345 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4346 if test -n "$ac_ct_OBJDUMP"; then
4347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4348 $as_echo "$ac_ct_OBJDUMP" >&6; }
4349 else
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4352 fi
4353
4354   if test "x$ac_ct_OBJDUMP" = x; then
4355     OBJDUMP="false"
4356   else
4357     case $cross_compiling:$ac_tool_warned in
4358 yes:)
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4361 ac_tool_warned=yes ;;
4362 esac
4363     OBJDUMP=$ac_ct_OBJDUMP
4364   fi
4365 else
4366   OBJDUMP="$ac_cv_prog_OBJDUMP"
4367 fi
4368
4369   ;;
4370 esac
4371
4372 test -z "$AS" && AS=as
4373
4374
4375
4376
4377
4378 test -z "$DLLTOOL" && DLLTOOL=dlltool
4379
4380
4381
4382
4383
4384 test -z "$OBJDUMP" && OBJDUMP=objdump
4385
4386
4387
4388
4389
4390
4391
4392 case `pwd` in
4393   *\ * | *\     *)
4394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4395 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4396 esac
4397
4398
4399
4400 macro_version='2.2.7a'
4401 macro_revision='1.3134'
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415 ltmain="$ac_aux_dir/ltmain.sh"
4416
4417 # Backslashify metacharacters that are still active within
4418 # double-quoted strings.
4419 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4420
4421 # Same as above, but do not quote variable references.
4422 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4423
4424 # Sed substitution to delay expansion of an escaped shell variable in a
4425 # double_quote_subst'ed string.
4426 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4427
4428 # Sed substitution to delay expansion of an escaped single quote.
4429 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4430
4431 # Sed substitution to avoid accidental globbing in evaled expressions
4432 no_glob_subst='s/\*/\\\*/g'
4433
4434 ac_ext=c
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 if test -n "$ac_tool_prefix"; then
4440   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if test "${ac_cv_prog_CC+set}" = set; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   if test -n "$CC"; then
4448   ac_cv_prog_CC="$CC" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4452 do
4453   IFS=$as_save_IFS
4454   test -z "$as_dir" && as_dir=.
4455     for ac_exec_ext in '' $ac_executable_extensions; do
4456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459     break 2
4460   fi
4461 done
4462   done
4463 IFS=$as_save_IFS
4464
4465 fi
4466 fi
4467 CC=$ac_cv_prog_CC
4468 if test -n "$CC"; then
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470 $as_echo "$CC" >&6; }
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474 fi
4475
4476
4477 fi
4478 if test -z "$ac_cv_prog_CC"; then
4479   ac_ct_CC=$CC
4480   # Extract the first word of "gcc", so it can be a program name with args.
4481 set dummy gcc; ac_word=$2
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483 $as_echo_n "checking for $ac_word... " >&6; }
4484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4485   $as_echo_n "(cached) " >&6
4486 else
4487   if test -n "$ac_ct_CC"; then
4488   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4489 else
4490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4491 for as_dir in $PATH
4492 do
4493   IFS=$as_save_IFS
4494   test -z "$as_dir" && as_dir=.
4495     for ac_exec_ext in '' $ac_executable_extensions; do
4496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4497     ac_cv_prog_ac_ct_CC="gcc"
4498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4499     break 2
4500   fi
4501 done
4502   done
4503 IFS=$as_save_IFS
4504
4505 fi
4506 fi
4507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4508 if test -n "$ac_ct_CC"; then
4509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4510 $as_echo "$ac_ct_CC" >&6; }
4511 else
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4513 $as_echo "no" >&6; }
4514 fi
4515
4516   if test "x$ac_ct_CC" = x; then
4517     CC=""
4518   else
4519     case $cross_compiling:$ac_tool_warned in
4520 yes:)
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4524 esac
4525     CC=$ac_ct_CC
4526   fi
4527 else
4528   CC="$ac_cv_prog_CC"
4529 fi
4530
4531 if test -z "$CC"; then
4532           if test -n "$ac_tool_prefix"; then
4533     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4534 set dummy ${ac_tool_prefix}cc; ac_word=$2
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536 $as_echo_n "checking for $ac_word... " >&6; }
4537 if test "${ac_cv_prog_CC+set}" = set; then :
4538   $as_echo_n "(cached) " >&6
4539 else
4540   if test -n "$CC"; then
4541   ac_cv_prog_CC="$CC" # Let the user override the test.
4542 else
4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548     for ac_exec_ext in '' $ac_executable_extensions; do
4549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550     ac_cv_prog_CC="${ac_tool_prefix}cc"
4551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555   done
4556 IFS=$as_save_IFS
4557
4558 fi
4559 fi
4560 CC=$ac_cv_prog_CC
4561 if test -n "$CC"; then
4562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4563 $as_echo "$CC" >&6; }
4564 else
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566 $as_echo "no" >&6; }
4567 fi
4568
4569
4570   fi
4571 fi
4572 if test -z "$CC"; then
4573   # Extract the first word of "cc", so it can be a program name with args.
4574 set dummy cc; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if test "${ac_cv_prog_CC+set}" = set; then :
4578   $as_echo_n "(cached) " >&6
4579 else
4580   if test -n "$CC"; then
4581   ac_cv_prog_CC="$CC" # Let the user override the test.
4582 else
4583   ac_prog_rejected=no
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589     for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4592        ac_prog_rejected=yes
4593        continue
4594      fi
4595     ac_cv_prog_CC="cc"
4596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4597     break 2
4598   fi
4599 done
4600   done
4601 IFS=$as_save_IFS
4602
4603 if test $ac_prog_rejected = yes; then
4604   # We found a bogon in the path, so make sure we never use it.
4605   set dummy $ac_cv_prog_CC
4606   shift
4607   if test $# != 0; then
4608     # We chose a different compiler from the bogus one.
4609     # However, it has the same basename, so the bogon will be chosen
4610     # first if we set CC to just the basename; use the full file name.
4611     shift
4612     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4613   fi
4614 fi
4615 fi
4616 fi
4617 CC=$ac_cv_prog_CC
4618 if test -n "$CC"; then
4619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4620 $as_echo "$CC" >&6; }
4621 else
4622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4623 $as_echo "no" >&6; }
4624 fi
4625
4626
4627 fi
4628 if test -z "$CC"; then
4629   if test -n "$ac_tool_prefix"; then
4630   for ac_prog in cl.exe
4631   do
4632     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637   $as_echo_n "(cached) " >&6
4638 else
4639   if test -n "$CC"; then
4640   ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647     for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654   done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669     test -n "$CC" && break
4670   done
4671 fi
4672 if test -z "$CC"; then
4673   ac_ct_CC=$CC
4674   for ac_prog in cl.exe
4675 do
4676   # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if test -n "$ac_ct_CC"; then
4684   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_prog_ac_ct_CC="$ac_prog"
4694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698   done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4704 if test -n "$ac_ct_CC"; then
4705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4706 $as_echo "$ac_ct_CC" >&6; }
4707 else
4708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713   test -n "$ac_ct_CC" && break
4714 done
4715
4716   if test "x$ac_ct_CC" = x; then
4717     CC=""
4718   else
4719     case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725     CC=$ac_ct_CC
4726   fi
4727 fi
4728
4729 fi
4730
4731
4732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error "no acceptable C compiler found in \$PATH
4735 See \`config.log' for more details." "$LINENO" 5; }
4736
4737 # Provide some information about the compiler.
4738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4739 set X $ac_compile
4740 ac_compiler=$2
4741 for ac_option in --version -v -V -qversion; do
4742   { { ac_try="$ac_compiler $ac_option >&5"
4743 case "(($ac_try" in
4744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745   *) ac_try_echo=$ac_try;;
4746 esac
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4750   ac_status=$?
4751   if test -s conftest.err; then
4752     sed '10a\
4753 ... rest of stderr output deleted ...
4754          10q' conftest.err >conftest.er1
4755     cat conftest.er1 >&5
4756   fi
4757   rm -f conftest.er1 conftest.err
4758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759   test $ac_status = 0; }
4760 done
4761
4762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h.  */
4764
4765 int
4766 main ()
4767 {
4768
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 ac_clean_files_save=$ac_clean_files
4774 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4775 # Try to create an executable without -o first, disregard a.out.
4776 # It will help us diagnose broken compilers, and finding out an intuition
4777 # of exeext.
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4779 $as_echo_n "checking whether the C compiler works... " >&6; }
4780 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4781
4782 # The possible output files:
4783 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4784
4785 ac_rmfiles=
4786 for ac_file in $ac_files
4787 do
4788   case $ac_file in
4789     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4790     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4791   esac
4792 done
4793 rm -f $ac_rmfiles
4794
4795 if { { ac_try="$ac_link_default"
4796 case "(($ac_try" in
4797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4798   *) ac_try_echo=$ac_try;;
4799 esac
4800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4801 $as_echo "$ac_try_echo"; } >&5
4802   (eval "$ac_link_default") 2>&5
4803   ac_status=$?
4804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4805   test $ac_status = 0; }; then :
4806   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4807 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4808 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4809 # so that the user can short-circuit this test for compilers unknown to
4810 # Autoconf.
4811 for ac_file in $ac_files ''
4812 do
4813   test -f "$ac_file" || continue
4814   case $ac_file in
4815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4816         ;;
4817     [ab].out )
4818         # We found the default executable, but exeext='' is most
4819         # certainly right.
4820         break;;
4821     *.* )
4822         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4823         then :; else
4824            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4825         fi
4826         # We set ac_cv_exeext here because the later test for it is not
4827         # safe: cross compilers may not add the suffix if given an `-o'
4828         # argument, so we may need to know it at that point already.
4829         # Even if this section looks crufty: it has the advantage of
4830         # actually working.
4831         break;;
4832     * )
4833         break;;
4834   esac
4835 done
4836 test "$ac_cv_exeext" = no && ac_cv_exeext=
4837
4838 else
4839   ac_file=''
4840 fi
4841 if test -z "$ac_file"; then :
4842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4843 $as_echo "no" >&6; }
4844 $as_echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4849 { as_fn_set_status 77
4850 as_fn_error "C compiler cannot create executables
4851 See \`config.log' for more details." "$LINENO" 5; }; }
4852 else
4853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4854 $as_echo "yes" >&6; }
4855 fi
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4857 $as_echo_n "checking for C compiler default output file name... " >&6; }
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4859 $as_echo "$ac_file" >&6; }
4860 ac_exeext=$ac_cv_exeext
4861
4862 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4863 ac_clean_files=$ac_clean_files_save
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4865 $as_echo_n "checking for suffix of executables... " >&6; }
4866 if { { ac_try="$ac_link"
4867 case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4872 $as_echo "$ac_try_echo"; } >&5
4873   (eval "$ac_link") 2>&5
4874   ac_status=$?
4875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4876   test $ac_status = 0; }; then :
4877   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4878 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4879 # work properly (i.e., refer to `conftest.exe'), while it won't with
4880 # `rm'.
4881 for ac_file in conftest.exe conftest conftest.*; do
4882   test -f "$ac_file" || continue
4883   case $ac_file in
4884     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4885     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4886           break;;
4887     * ) break;;
4888   esac
4889 done
4890 else
4891   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4893 as_fn_error "cannot compute suffix of executables: cannot compile and link
4894 See \`config.log' for more details." "$LINENO" 5; }
4895 fi
4896 rm -f conftest conftest$ac_cv_exeext
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4898 $as_echo "$ac_cv_exeext" >&6; }
4899
4900 rm -f conftest.$ac_ext
4901 EXEEXT=$ac_cv_exeext
4902 ac_exeext=$EXEEXT
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h.  */
4905 #include <stdio.h>
4906 int
4907 main ()
4908 {
4909 FILE *f = fopen ("conftest.out", "w");
4910  return ferror (f) || fclose (f) != 0;
4911
4912   ;
4913   return 0;
4914 }
4915 _ACEOF
4916 ac_clean_files="$ac_clean_files conftest.out"
4917 # Check that the compiler produces executables we can run.  If not, either
4918 # the compiler is broken, or we cross compile.
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4920 $as_echo_n "checking whether we are cross compiling... " >&6; }
4921 if test "$cross_compiling" != yes; then
4922   { { ac_try="$ac_link"
4923 case "(($ac_try" in
4924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4925   *) ac_try_echo=$ac_try;;
4926 esac
4927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4928 $as_echo "$ac_try_echo"; } >&5
4929   (eval "$ac_link") 2>&5
4930   ac_status=$?
4931   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4932   test $ac_status = 0; }
4933   if { ac_try='./conftest$ac_cv_exeext'
4934   { { case "(($ac_try" in
4935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936   *) ac_try_echo=$ac_try;;
4937 esac
4938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4939 $as_echo "$ac_try_echo"; } >&5
4940   (eval "$ac_try") 2>&5
4941   ac_status=$?
4942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4943   test $ac_status = 0; }; }; then
4944     cross_compiling=no
4945   else
4946     if test "$cross_compiling" = maybe; then
4947         cross_compiling=yes
4948     else
4949         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error "cannot run C compiled programs.
4952 If you meant to cross compile, use \`--host'.
4953 See \`config.log' for more details." "$LINENO" 5; }
4954     fi
4955   fi
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4958 $as_echo "$cross_compiling" >&6; }
4959
4960 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4961 ac_clean_files=$ac_clean_files_save
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4963 $as_echo_n "checking for suffix of object files... " >&6; }
4964 if test "${ac_cv_objext+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h.  */
4969
4970 int
4971 main ()
4972 {
4973
4974   ;
4975   return 0;
4976 }
4977 _ACEOF
4978 rm -f conftest.o conftest.obj
4979 if { { ac_try="$ac_compile"
4980 case "(($ac_try" in
4981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4982   *) ac_try_echo=$ac_try;;
4983 esac
4984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4985 $as_echo "$ac_try_echo"; } >&5
4986   (eval "$ac_compile") 2>&5
4987   ac_status=$?
4988   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989   test $ac_status = 0; }; then :
4990   for ac_file in conftest.o conftest.obj conftest.*; do
4991   test -f "$ac_file" || continue;
4992   case $ac_file in
4993     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4994     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4995        break;;
4996   esac
4997 done
4998 else
4999   $as_echo "$as_me: failed program was:" >&5
5000 sed 's/^/| /' conftest.$ac_ext >&5
5001
5002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5004 as_fn_error "cannot compute suffix of object files: cannot compile
5005 See \`config.log' for more details." "$LINENO" 5; }
5006 fi
5007 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5008 fi
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5010 $as_echo "$ac_cv_objext" >&6; }
5011 OBJEXT=$ac_cv_objext
5012 ac_objext=$OBJEXT
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5014 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5015 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5016   $as_echo_n "(cached) " >&6
5017 else
5018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h.  */
5020
5021 int
5022 main ()
5023 {
5024 #ifndef __GNUC__
5025        choke me
5026 #endif
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 if ac_fn_c_try_compile "$LINENO"; then :
5033   ac_compiler_gnu=yes
5034 else
5035   ac_compiler_gnu=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5039
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5042 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5043 if test $ac_compiler_gnu = yes; then
5044   GCC=yes
5045 else
5046   GCC=
5047 fi
5048 ac_test_CFLAGS=${CFLAGS+set}
5049 ac_save_CFLAGS=$CFLAGS
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5051 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5052 if test "${ac_cv_prog_cc_g+set}" = set; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   ac_save_c_werror_flag=$ac_c_werror_flag
5056    ac_c_werror_flag=yes
5057    ac_cv_prog_cc_g=no
5058    CFLAGS="-g"
5059    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h.  */
5061
5062 int
5063 main ()
5064 {
5065
5066   ;
5067   return 0;
5068 }
5069 _ACEOF
5070 if ac_fn_c_try_compile "$LINENO"; then :
5071   ac_cv_prog_cc_g=yes
5072 else
5073   CFLAGS=""
5074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h.  */
5076
5077 int
5078 main ()
5079 {
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"; then :
5086
5087 else
5088   ac_c_werror_flag=$ac_save_c_werror_flag
5089          CFLAGS="-g"
5090          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5091 /* end confdefs.h.  */
5092
5093 int
5094 main ()
5095 {
5096
5097   ;
5098   return 0;
5099 }
5100 _ACEOF
5101 if ac_fn_c_try_compile "$LINENO"; then :
5102   ac_cv_prog_cc_g=yes
5103 fi
5104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109    ac_c_werror_flag=$ac_save_c_werror_flag
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5112 $as_echo "$ac_cv_prog_cc_g" >&6; }
5113 if test "$ac_test_CFLAGS" = set; then
5114   CFLAGS=$ac_save_CFLAGS
5115 elif test $ac_cv_prog_cc_g = yes; then
5116   if test "$GCC" = yes; then
5117     CFLAGS="-g -O2"
5118   else
5119     CFLAGS="-g"
5120   fi
5121 else
5122   if test "$GCC" = yes; then
5123     CFLAGS="-O2"
5124   else
5125     CFLAGS=
5126   fi
5127 fi
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5130 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   ac_cv_prog_cc_c89=no
5134 ac_save_CC=$CC
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h.  */
5137 #include <stdarg.h>
5138 #include <stdio.h>
5139 #include <sys/types.h>
5140 #include <sys/stat.h>
5141 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5142 struct buf { int x; };
5143 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5144 static char *e (p, i)
5145      char **p;
5146      int i;
5147 {
5148   return p[i];
5149 }
5150 static char *f (char * (*g) (char **, int), char **p, ...)
5151 {
5152   char *s;
5153   va_list v;
5154   va_start (v,p);
5155   s = g (p, va_arg (v,int));
5156   va_end (v);
5157   return s;
5158 }
5159
5160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5161    function prototypes and stuff, but not '\xHH' hex character constants.
5162    These don't provoke an error unfortunately, instead are silently treated
5163    as 'x'.  The following induces an error, until -std is added to get
5164    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5165    array size at least.  It's necessary to write '\x00'==0 to get something
5166    that's true only with -std.  */
5167 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5168
5169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5170    inside strings and character constants.  */
5171 #define FOO(x) 'x'
5172 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5173
5174 int test (int i, double x);
5175 struct s1 {int (*f) (int a);};
5176 struct s2 {int (*f) (double a);};
5177 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5178 int argc;
5179 char **argv;
5180 int
5181 main ()
5182 {
5183 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5184   ;
5185   return 0;
5186 }
5187 _ACEOF
5188 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5189         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5190 do
5191   CC="$ac_save_CC $ac_arg"
5192   if ac_fn_c_try_compile "$LINENO"; then :
5193   ac_cv_prog_cc_c89=$ac_arg
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext
5196   test "x$ac_cv_prog_cc_c89" != "xno" && break
5197 done
5198 rm -f conftest.$ac_ext
5199 CC=$ac_save_CC
5200
5201 fi
5202 # AC_CACHE_VAL
5203 case "x$ac_cv_prog_cc_c89" in
5204   x)
5205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5206 $as_echo "none needed" >&6; } ;;
5207   xno)
5208     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5209 $as_echo "unsupported" >&6; } ;;
5210   *)
5211     CC="$CC $ac_cv_prog_cc_c89"
5212     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5213 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5214 esac
5215 if test "x$ac_cv_prog_cc_c89" != xno; then :
5216
5217 fi
5218
5219 ac_ext=c
5220 ac_cpp='$CPP $CPPFLAGS'
5221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5224
5225 depcc="$CC"   am_compiler_list=
5226
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5228 $as_echo_n "checking dependency style of $depcc... " >&6; }
5229 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5230   $as_echo_n "(cached) " >&6
5231 else
5232   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233   # We make a subdir and do the tests there.  Otherwise we can end up
5234   # making bogus files that we don't know about and never remove.  For
5235   # instance it was reported that on HP-UX the gcc test will end up
5236   # making a dummy file named `D' -- because `-MD' means `put the output
5237   # in D'.
5238   mkdir conftest.dir
5239   # Copy depcomp to subdir because otherwise we won't find it if we're
5240   # using a relative directory.
5241   cp "$am_depcomp" conftest.dir
5242   cd conftest.dir
5243   # We will build objects and dependencies in a subdirectory because
5244   # it helps to detect inapplicable dependency modes.  For instance
5245   # both Tru64's cc and ICC support -MD to output dependencies as a
5246   # side effect of compilation, but ICC will put the dependencies in
5247   # the current directory while Tru64 will put them in the object
5248   # directory.
5249   mkdir sub
5250
5251   am_cv_CC_dependencies_compiler_type=none
5252   if test "$am_compiler_list" = ""; then
5253      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5254   fi
5255   am__universal=false
5256   case " $depcc " in #(
5257      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5258      esac
5259
5260   for depmode in $am_compiler_list; do
5261     # Setup a source with many dependencies, because some compilers
5262     # like to wrap large dependency lists on column 80 (with \), and
5263     # we should not choose a depcomp mode which is confused by this.
5264     #
5265     # We need to recreate these files for each test, as the compiler may
5266     # overwrite some of them when testing with obscure command lines.
5267     # This happens at least with the AIX C compiler.
5268     : > sub/conftest.c
5269     for i in 1 2 3 4 5 6; do
5270       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5271       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5272       # Solaris 8's {/usr,}/bin/sh.
5273       touch sub/conftst$i.h
5274     done
5275     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5276
5277     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278     # mode.  It turns out that the SunPro C++ compiler does not properly
5279     # handle `-M -o', and we need to detect this.  Also, some Intel
5280     # versions had trouble with output in subdirs
5281     am__obj=sub/conftest.${OBJEXT-o}
5282     am__minus_obj="-o $am__obj"
5283     case $depmode in
5284     gcc)
5285       # This depmode causes a compiler race in universal mode.
5286       test "$am__universal" = false || continue
5287       ;;
5288     nosideeffect)
5289       # after this tag, mechanisms are not by side-effect, so they'll
5290       # only be used when explicitly requested
5291       if test "x$enable_dependency_tracking" = xyes; then
5292         continue
5293       else
5294         break
5295       fi
5296       ;;
5297     msvisualcpp | msvcmsys)
5298       # This compiler won't grok `-c -o', but also, the minuso test has
5299       # not run yet.  These depmodes are late enough in the game, and
5300       # so weak that their functioning should not be impacted.
5301       am__obj=conftest.${OBJEXT-o}
5302       am__minus_obj=
5303       ;;
5304     none) break ;;
5305     esac
5306     if depmode=$depmode \
5307        source=sub/conftest.c object=$am__obj \
5308        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5310          >/dev/null 2>conftest.err &&
5311        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5312        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5314        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315       # icc doesn't choke on unknown options, it will just issue warnings
5316       # or remarks (even with -Werror).  So we grep stderr for any message
5317       # that says an option was ignored or not supported.
5318       # When given -MP, icc 7.0 and 7.1 complain thusly:
5319       #   icc: Command line warning: ignoring option '-M'; no argument required
5320       # The diagnosis changed in icc 8.0:
5321       #   icc: Command line remark: option '-MP' not supported
5322       if (grep 'ignoring option' conftest.err ||
5323           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324         am_cv_CC_dependencies_compiler_type=$depmode
5325         break
5326       fi
5327     fi
5328   done
5329
5330   cd ..
5331   rm -rf conftest.dir
5332 else
5333   am_cv_CC_dependencies_compiler_type=none
5334 fi
5335
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5338 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5339 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5340
5341  if
5342   test "x$enable_dependency_tracking" != xno \
5343   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5344   am__fastdepCC_TRUE=
5345   am__fastdepCC_FALSE='#'
5346 else
5347   am__fastdepCC_TRUE='#'
5348   am__fastdepCC_FALSE=
5349 fi
5350
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5353 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5354 if test "${ac_cv_path_GREP+set}" = set; then :
5355   $as_echo_n "(cached) " >&6
5356 else
5357   if test -z "$GREP"; then
5358   ac_path_GREP_found=false
5359   # Loop through the user's path and test for each of PROGNAME-LIST
5360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5362 do
5363   IFS=$as_save_IFS
5364   test -z "$as_dir" && as_dir=.
5365     for ac_prog in grep ggrep; do
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5368       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5369 # Check for GNU ac_path_GREP and select it if it is found.
5370   # Check for GNU $ac_path_GREP
5371 case `"$ac_path_GREP" --version 2>&1` in
5372 *GNU*)
5373   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5374 *)
5375   ac_count=0
5376   $as_echo_n 0123456789 >"conftest.in"
5377   while :
5378   do
5379     cat "conftest.in" "conftest.in" >"conftest.tmp"
5380     mv "conftest.tmp" "conftest.in"
5381     cp "conftest.in" "conftest.nl"
5382     $as_echo 'GREP' >> "conftest.nl"
5383     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5384     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5385     as_fn_arith $ac_count + 1 && ac_count=$as_val
5386     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5387       # Best one so far, save it but keep looking for a better one
5388       ac_cv_path_GREP="$ac_path_GREP"
5389       ac_path_GREP_max=$ac_count
5390     fi
5391     # 10*(2^10) chars as input seems more than enough
5392     test $ac_count -gt 10 && break
5393   done
5394   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5395 esac
5396
5397       $ac_path_GREP_found && break 3
5398     done
5399   done
5400   done
5401 IFS=$as_save_IFS
5402   if test -z "$ac_cv_path_GREP"; then
5403     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5404   fi
5405 else
5406   ac_cv_path_GREP=$GREP
5407 fi
5408
5409 fi
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5411 $as_echo "$ac_cv_path_GREP" >&6; }
5412  GREP="$ac_cv_path_GREP"
5413
5414
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5416 $as_echo_n "checking for egrep... " >&6; }
5417 if test "${ac_cv_path_EGREP+set}" = set; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5421    then ac_cv_path_EGREP="$GREP -E"
5422    else
5423      if test -z "$EGREP"; then
5424   ac_path_EGREP_found=false
5425   # Loop through the user's path and test for each of PROGNAME-LIST
5426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_prog in egrep; do
5432     for ac_exec_ext in '' $ac_executable_extensions; do
5433       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5434       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5435 # Check for GNU ac_path_EGREP and select it if it is found.
5436   # Check for GNU $ac_path_EGREP
5437 case `"$ac_path_EGREP" --version 2>&1` in
5438 *GNU*)
5439   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5440 *)
5441   ac_count=0
5442   $as_echo_n 0123456789 >"conftest.in"
5443   while :
5444   do
5445     cat "conftest.in" "conftest.in" >"conftest.tmp"
5446     mv "conftest.tmp" "conftest.in"
5447     cp "conftest.in" "conftest.nl"
5448     $as_echo 'EGREP' >> "conftest.nl"
5449     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5450     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5451     as_fn_arith $ac_count + 1 && ac_count=$as_val
5452     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5453       # Best one so far, save it but keep looking for a better one
5454       ac_cv_path_EGREP="$ac_path_EGREP"
5455       ac_path_EGREP_max=$ac_count
5456     fi
5457     # 10*(2^10) chars as input seems more than enough
5458     test $ac_count -gt 10 && break
5459   done
5460   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5461 esac
5462
5463       $ac_path_EGREP_found && break 3
5464     done
5465   done
5466   done
5467 IFS=$as_save_IFS
5468   if test -z "$ac_cv_path_EGREP"; then
5469     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5470   fi
5471 else
5472   ac_cv_path_EGREP=$EGREP
5473 fi
5474
5475    fi
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5478 $as_echo "$ac_cv_path_EGREP" >&6; }
5479  EGREP="$ac_cv_path_EGREP"
5480
5481
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5483 $as_echo_n "checking for fgrep... " >&6; }
5484 if test "${ac_cv_path_FGREP+set}" = set; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5488    then ac_cv_path_FGREP="$GREP -F"
5489    else
5490      if test -z "$FGREP"; then
5491   ac_path_FGREP_found=false
5492   # Loop through the user's path and test for each of PROGNAME-LIST
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_prog in fgrep; do
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5501       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5502 # Check for GNU ac_path_FGREP and select it if it is found.
5503   # Check for GNU $ac_path_FGREP
5504 case `"$ac_path_FGREP" --version 2>&1` in
5505 *GNU*)
5506   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5507 *)
5508   ac_count=0
5509   $as_echo_n 0123456789 >"conftest.in"
5510   while :
5511   do
5512     cat "conftest.in" "conftest.in" >"conftest.tmp"
5513     mv "conftest.tmp" "conftest.in"
5514     cp "conftest.in" "conftest.nl"
5515     $as_echo 'FGREP' >> "conftest.nl"
5516     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518     as_fn_arith $ac_count + 1 && ac_count=$as_val
5519     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5520       # Best one so far, save it but keep looking for a better one
5521       ac_cv_path_FGREP="$ac_path_FGREP"
5522       ac_path_FGREP_max=$ac_count
5523     fi
5524     # 10*(2^10) chars as input seems more than enough
5525     test $ac_count -gt 10 && break
5526   done
5527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528 esac
5529
5530       $ac_path_FGREP_found && break 3
5531     done
5532   done
5533   done
5534 IFS=$as_save_IFS
5535   if test -z "$ac_cv_path_FGREP"; then
5536     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5537   fi
5538 else
5539   ac_cv_path_FGREP=$FGREP
5540 fi
5541
5542    fi
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5545 $as_echo "$ac_cv_path_FGREP" >&6; }
5546  FGREP="$ac_cv_path_FGREP"
5547
5548
5549 test -z "$GREP" && GREP=grep
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569 # Check whether --with-gnu-ld was given.
5570 if test "${with_gnu_ld+set}" = set; then :
5571   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5572 else
5573   with_gnu_ld=no
5574 fi
5575
5576 ac_prog=ld
5577 if test "$GCC" = yes; then
5578   # Check if gcc -print-prog-name=ld gives a path.
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5580 $as_echo_n "checking for ld used by $CC... " >&6; }
5581   case $host in
5582   *-*-mingw*)
5583     # gcc leaves a trailing carriage return which upsets mingw
5584     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5585   *)
5586     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5587   esac
5588   case $ac_prog in
5589     # Accept absolute paths.
5590     [\\/]* | ?:[\\/]*)
5591       re_direlt='/[^/][^/]*/\.\./'
5592       # Canonicalize the pathname of ld
5593       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5594       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5595         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5596       done
5597       test -z "$LD" && LD="$ac_prog"
5598       ;;
5599   "")
5600     # If it fails, then pretend we aren't using GCC.
5601     ac_prog=ld
5602     ;;
5603   *)
5604     # If it is relative, then search for the first ld in PATH.
5605     with_gnu_ld=unknown
5606     ;;
5607   esac
5608 elif test "$with_gnu_ld" = yes; then
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5610 $as_echo_n "checking for GNU ld... " >&6; }
5611 else
5612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5613 $as_echo_n "checking for non-GNU ld... " >&6; }
5614 fi
5615 if test "${lt_cv_path_LD+set}" = set; then :
5616   $as_echo_n "(cached) " >&6
5617 else
5618   if test -z "$LD"; then
5619   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5620   for ac_dir in $PATH; do
5621     IFS="$lt_save_ifs"
5622     test -z "$ac_dir" && ac_dir=.
5623     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5624       lt_cv_path_LD="$ac_dir/$ac_prog"
5625       # Check to see if the program is GNU ld.  I'd rather use --version,
5626       # but apparently some variants of GNU ld only accept -v.
5627       # Break only if it was the GNU/non-GNU ld that we prefer.
5628       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5629       *GNU* | *'with BFD'*)
5630         test "$with_gnu_ld" != no && break
5631         ;;
5632       *)
5633         test "$with_gnu_ld" != yes && break
5634         ;;
5635       esac
5636     fi
5637   done
5638   IFS="$lt_save_ifs"
5639 else
5640   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5641 fi
5642 fi
5643
5644 LD="$lt_cv_path_LD"
5645 if test -n "$LD"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5647 $as_echo "$LD" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5654 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5655 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5656   $as_echo_n "(cached) " >&6
5657 else
5658   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5659 case `$LD -v 2>&1 </dev/null` in
5660 *GNU* | *'with BFD'*)
5661   lt_cv_prog_gnu_ld=yes
5662   ;;
5663 *)
5664   lt_cv_prog_gnu_ld=no
5665   ;;
5666 esac
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5669 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5670 with_gnu_ld=$lt_cv_prog_gnu_ld
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5681 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5682 if test "${lt_cv_path_NM+set}" = set; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$NM"; then
5686   # Let the user override the test.
5687   lt_cv_path_NM="$NM"
5688 else
5689   lt_nm_to_check="${ac_tool_prefix}nm"
5690   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5691     lt_nm_to_check="$lt_nm_to_check nm"
5692   fi
5693   for lt_tmp_nm in $lt_nm_to_check; do
5694     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5695     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5696       IFS="$lt_save_ifs"
5697       test -z "$ac_dir" && ac_dir=.
5698       tmp_nm="$ac_dir/$lt_tmp_nm"
5699       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5700         # Check to see if the nm accepts a BSD-compat flag.
5701         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5702         #   nm: unknown option "B" ignored
5703         # Tru64's nm complains that /dev/null is an invalid object file
5704         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5705         */dev/null* | *'Invalid file or object type'*)
5706           lt_cv_path_NM="$tmp_nm -B"
5707           break
5708           ;;
5709         *)
5710           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5711           */dev/null*)
5712             lt_cv_path_NM="$tmp_nm -p"
5713             break
5714             ;;
5715           *)
5716             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5717             continue # so that we can try to find one that supports BSD flags
5718             ;;
5719           esac
5720           ;;
5721         esac
5722       fi
5723     done
5724     IFS="$lt_save_ifs"
5725   done
5726   : ${lt_cv_path_NM=no}
5727 fi
5728 fi
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5730 $as_echo "$lt_cv_path_NM" >&6; }
5731 if test "$lt_cv_path_NM" != "no"; then
5732   NM="$lt_cv_path_NM"
5733 else
5734   # Didn't find any BSD compatible name lister, look for dumpbin.
5735   if test -n "$DUMPBIN"; then :
5736     # Let the user override the test.
5737   else
5738     if test -n "$ac_tool_prefix"; then
5739   for ac_prog in dumpbin "link -dump"
5740   do
5741     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744 $as_echo_n "checking for $ac_word... " >&6; }
5745 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5746   $as_echo_n "(cached) " >&6
5747 else
5748   if test -n "$DUMPBIN"; then
5749   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5750 else
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 for as_dir in $PATH
5753 do
5754   IFS=$as_save_IFS
5755   test -z "$as_dir" && as_dir=.
5756     for ac_exec_ext in '' $ac_executable_extensions; do
5757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760     break 2
5761   fi
5762 done
5763   done
5764 IFS=$as_save_IFS
5765
5766 fi
5767 fi
5768 DUMPBIN=$ac_cv_prog_DUMPBIN
5769 if test -n "$DUMPBIN"; then
5770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5771 $as_echo "$DUMPBIN" >&6; }
5772 else
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774 $as_echo "no" >&6; }
5775 fi
5776
5777
5778     test -n "$DUMPBIN" && break
5779   done
5780 fi
5781 if test -z "$DUMPBIN"; then
5782   ac_ct_DUMPBIN=$DUMPBIN
5783   for ac_prog in dumpbin "link -dump"
5784 do
5785   # Extract the first word of "$ac_prog", so it can be a program name with args.
5786 set dummy $ac_prog; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5790   $as_echo_n "(cached) " >&6
5791 else
5792   if test -n "$ac_ct_DUMPBIN"; then
5793   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5797 do
5798   IFS=$as_save_IFS
5799   test -z "$as_dir" && as_dir=.
5800     for ac_exec_ext in '' $ac_executable_extensions; do
5801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5802     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5803     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804     break 2
5805   fi
5806 done
5807   done
5808 IFS=$as_save_IFS
5809
5810 fi
5811 fi
5812 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5813 if test -n "$ac_ct_DUMPBIN"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5815 $as_echo "$ac_ct_DUMPBIN" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821
5822   test -n "$ac_ct_DUMPBIN" && break
5823 done
5824
5825   if test "x$ac_ct_DUMPBIN" = x; then
5826     DUMPBIN=":"
5827   else
5828     case $cross_compiling:$ac_tool_warned in
5829 yes:)
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5832 ac_tool_warned=yes ;;
5833 esac
5834     DUMPBIN=$ac_ct_DUMPBIN
5835   fi
5836 fi
5837
5838     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5839     *COFF*)
5840       DUMPBIN="$DUMPBIN -symbols"
5841       ;;
5842     *)
5843       DUMPBIN=:
5844       ;;
5845     esac
5846   fi
5847
5848   if test "$DUMPBIN" != ":"; then
5849     NM="$DUMPBIN"
5850   fi
5851 fi
5852 test -z "$NM" && NM=nm
5853
5854
5855
5856
5857
5858
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5860 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5861 if test "${lt_cv_nm_interface+set}" = set; then :
5862   $as_echo_n "(cached) " >&6
5863 else
5864   lt_cv_nm_interface="BSD nm"
5865   echo "int some_variable = 0;" > conftest.$ac_ext
5866   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5867   (eval "$ac_compile" 2>conftest.err)
5868   cat conftest.err >&5
5869   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5870   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5871   cat conftest.err >&5
5872   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5873   cat conftest.out >&5
5874   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5875     lt_cv_nm_interface="MS dumpbin"
5876   fi
5877   rm -f conftest*
5878 fi
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5880 $as_echo "$lt_cv_nm_interface" >&6; }
5881
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5883 $as_echo_n "checking whether ln -s works... " >&6; }
5884 LN_S=$as_ln_s
5885 if test "$LN_S" = "ln -s"; then
5886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5887 $as_echo "yes" >&6; }
5888 else
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5890 $as_echo "no, using $LN_S" >&6; }
5891 fi
5892
5893 # find the maximum length of command line arguments
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5895 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5896 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5897   $as_echo_n "(cached) " >&6
5898 else
5899     i=0
5900   teststring="ABCD"
5901
5902   case $build_os in
5903   msdosdjgpp*)
5904     # On DJGPP, this test can blow up pretty badly due to problems in libc
5905     # (any single argument exceeding 2000 bytes causes a buffer overrun
5906     # during glob expansion).  Even if it were fixed, the result of this
5907     # check would be larger than it should be.
5908     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5909     ;;
5910
5911   gnu*)
5912     # Under GNU Hurd, this test is not required because there is
5913     # no limit to the length of command line arguments.
5914     # Libtool will interpret -1 as no limit whatsoever
5915     lt_cv_sys_max_cmd_len=-1;
5916     ;;
5917
5918   cygwin* | mingw* | cegcc*)
5919     # On Win9x/ME, this test blows up -- it succeeds, but takes
5920     # about 5 minutes as the teststring grows exponentially.
5921     # Worse, since 9x/ME are not pre-emptively multitasking,
5922     # you end up with a "frozen" computer, even though with patience
5923     # the test eventually succeeds (with a max line length of 256k).
5924     # Instead, let's just punt: use the minimum linelength reported by
5925     # all of the supported platforms: 8192 (on NT/2K/XP).
5926     lt_cv_sys_max_cmd_len=8192;
5927     ;;
5928
5929   mint*)
5930     # On MiNT this can take a long time and run out of memory.
5931     lt_cv_sys_max_cmd_len=8192;
5932     ;;
5933
5934   amigaos*)
5935     # On AmigaOS with pdksh, this test takes hours, literally.
5936     # So we just punt and use a minimum line length of 8192.
5937     lt_cv_sys_max_cmd_len=8192;
5938     ;;
5939
5940   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5941     # This has been around since 386BSD, at least.  Likely further.
5942     if test -x /sbin/sysctl; then
5943       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5944     elif test -x /usr/sbin/sysctl; then
5945       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5946     else
5947       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5948     fi
5949     # And add a safety zone
5950     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5951     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5952     ;;
5953
5954   interix*)
5955     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5956     lt_cv_sys_max_cmd_len=196608
5957     ;;
5958
5959   osf*)
5960     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5961     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5962     # nice to cause kernel panics so lets avoid the loop below.
5963     # First set a reasonable default.
5964     lt_cv_sys_max_cmd_len=16384
5965     #
5966     if test -x /sbin/sysconfig; then
5967       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5968         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5969       esac
5970     fi
5971     ;;
5972   sco3.2v5*)
5973     lt_cv_sys_max_cmd_len=102400
5974     ;;
5975   sysv5* | sco5v6* | sysv4.2uw2*)
5976     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5977     if test -n "$kargmax"; then
5978       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5979     else
5980       lt_cv_sys_max_cmd_len=32768
5981     fi
5982     ;;
5983   *)
5984     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5985     if test -n "$lt_cv_sys_max_cmd_len"; then
5986       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5987       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5988     else
5989       # Make teststring a little bigger before we do anything with it.
5990       # a 1K string should be a reasonable start.
5991       for i in 1 2 3 4 5 6 7 8 ; do
5992         teststring=$teststring$teststring
5993       done
5994       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5995       # If test is not a shell built-in, we'll probably end up computing a
5996       # maximum length that is only half of the actual maximum length, but
5997       # we can't tell.
5998       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5999                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6000               test $i != 17 # 1/2 MB should be enough
6001       do
6002         i=`expr $i + 1`
6003         teststring=$teststring$teststring
6004       done
6005       # Only check the string length outside the loop.
6006       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6007       teststring=
6008       # Add a significant safety factor because C++ compilers can tack on
6009       # massive amounts of additional arguments before passing them to the
6010       # linker.  It appears as though 1/2 is a usable value.
6011       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6012     fi
6013     ;;
6014   esac
6015
6016 fi
6017
6018 if test -n $lt_cv_sys_max_cmd_len ; then
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6020 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6021 else
6022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6023 $as_echo "none" >&6; }
6024 fi
6025 max_cmd_len=$lt_cv_sys_max_cmd_len
6026
6027
6028
6029
6030
6031
6032 : ${CP="cp -f"}
6033 : ${MV="mv -f"}
6034 : ${RM="rm -f"}
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6037 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6038 # Try some XSI features
6039 xsi_shell=no
6040 ( _lt_dummy="a/b/c"
6041   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6042       = c,a/b,, \
6043     && eval 'test $(( 1 + 1 )) -eq 2 \
6044     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6045   && xsi_shell=yes
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6047 $as_echo "$xsi_shell" >&6; }
6048
6049
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6051 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6052 lt_shell_append=no
6053 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6054     >/dev/null 2>&1 \
6055   && lt_shell_append=yes
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6057 $as_echo "$lt_shell_append" >&6; }
6058
6059
6060 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6061   lt_unset=unset
6062 else
6063   lt_unset=false
6064 fi
6065
6066
6067
6068
6069
6070 # test EBCDIC or ASCII
6071 case `echo X|tr X '\101'` in
6072  A) # ASCII based system
6073     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6074   lt_SP2NL='tr \040 \012'
6075   lt_NL2SP='tr \015\012 \040\040'
6076   ;;
6077  *) # EBCDIC based system
6078   lt_SP2NL='tr \100 \n'
6079   lt_NL2SP='tr \r\n \100\100'
6080   ;;
6081 esac
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6092 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6093 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6094   $as_echo_n "(cached) " >&6
6095 else
6096   lt_cv_ld_reload_flag='-r'
6097 fi
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6099 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6100 reload_flag=$lt_cv_ld_reload_flag
6101 case $reload_flag in
6102 "" | " "*) ;;
6103 *) reload_flag=" $reload_flag" ;;
6104 esac
6105 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6106 case $host_os in
6107   darwin*)
6108     if test "$GCC" = yes; then
6109       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6110     else
6111       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6112     fi
6113     ;;
6114 esac
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 if test -n "$ac_tool_prefix"; then
6125   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6126 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6128 $as_echo_n "checking for $ac_word... " >&6; }
6129 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6130   $as_echo_n "(cached) " >&6
6131 else
6132   if test -n "$OBJDUMP"; then
6133   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6134 else
6135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6136 for as_dir in $PATH
6137 do
6138   IFS=$as_save_IFS
6139   test -z "$as_dir" && as_dir=.
6140     for ac_exec_ext in '' $ac_executable_extensions; do
6141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6144     break 2
6145   fi
6146 done
6147   done
6148 IFS=$as_save_IFS
6149
6150 fi
6151 fi
6152 OBJDUMP=$ac_cv_prog_OBJDUMP
6153 if test -n "$OBJDUMP"; then
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6155 $as_echo "$OBJDUMP" >&6; }
6156 else
6157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6158 $as_echo "no" >&6; }
6159 fi
6160
6161
6162 fi
6163 if test -z "$ac_cv_prog_OBJDUMP"; then
6164   ac_ct_OBJDUMP=$OBJDUMP
6165   # Extract the first word of "objdump", so it can be a program name with args.
6166 set dummy objdump; ac_word=$2
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6168 $as_echo_n "checking for $ac_word... " >&6; }
6169 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6170   $as_echo_n "(cached) " >&6
6171 else
6172   if test -n "$ac_ct_OBJDUMP"; then
6173   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6174 else
6175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176 for as_dir in $PATH
6177 do
6178   IFS=$as_save_IFS
6179   test -z "$as_dir" && as_dir=.
6180     for ac_exec_ext in '' $ac_executable_extensions; do
6181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6182     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6184     break 2
6185   fi
6186 done
6187   done
6188 IFS=$as_save_IFS
6189
6190 fi
6191 fi
6192 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6193 if test -n "$ac_ct_OBJDUMP"; then
6194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6195 $as_echo "$ac_ct_OBJDUMP" >&6; }
6196 else
6197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 fi
6200
6201   if test "x$ac_ct_OBJDUMP" = x; then
6202     OBJDUMP="false"
6203   else
6204     case $cross_compiling:$ac_tool_warned in
6205 yes:)
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6208 ac_tool_warned=yes ;;
6209 esac
6210     OBJDUMP=$ac_ct_OBJDUMP
6211   fi
6212 else
6213   OBJDUMP="$ac_cv_prog_OBJDUMP"
6214 fi
6215
6216 test -z "$OBJDUMP" && OBJDUMP=objdump
6217
6218
6219
6220
6221
6222
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6224 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6225 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   lt_cv_file_magic_cmd='$MAGIC_CMD'
6229 lt_cv_file_magic_test_file=
6230 lt_cv_deplibs_check_method='unknown'
6231 # Need to set the preceding variable on all platforms that support
6232 # interlibrary dependencies.
6233 # 'none' -- dependencies not supported.
6234 # `unknown' -- same as none, but documents that we really don't know.
6235 # 'pass_all' -- all dependencies passed with no checks.
6236 # 'test_compile' -- check by making test program.
6237 # 'file_magic [[regex]]' -- check by looking for files in library path
6238 # which responds to the $file_magic_cmd with a given extended regex.
6239 # If you have `file' or equivalent on your system and you're not sure
6240 # whether `pass_all' will *always* work, you probably want this one.
6241
6242 case $host_os in
6243 aix[4-9]*)
6244   lt_cv_deplibs_check_method=pass_all
6245   ;;
6246
6247 beos*)
6248   lt_cv_deplibs_check_method=pass_all
6249   ;;
6250
6251 bsdi[45]*)
6252   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6253   lt_cv_file_magic_cmd='/usr/bin/file -L'
6254   lt_cv_file_magic_test_file=/shlib/libc.so
6255   ;;
6256
6257 cygwin*)
6258   # func_win32_libid is a shell function defined in ltmain.sh
6259   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6260   lt_cv_file_magic_cmd='func_win32_libid'
6261   ;;
6262
6263 mingw* | pw32*)
6264   # Base MSYS/MinGW do not provide the 'file' command needed by
6265   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6266   # unless we find 'file', for example because we are cross-compiling.
6267   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6268   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6269     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6270     lt_cv_file_magic_cmd='func_win32_libid'
6271   else
6272     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6273     lt_cv_file_magic_cmd='$OBJDUMP -f'
6274   fi
6275   ;;
6276
6277 cegcc*)
6278   # use the weaker test based on 'objdump'. See mingw*.
6279   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6280   lt_cv_file_magic_cmd='$OBJDUMP -f'
6281   ;;
6282
6283 darwin* | rhapsody*)
6284   lt_cv_deplibs_check_method=pass_all
6285   ;;
6286
6287 freebsd* | dragonfly*)
6288   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6289     case $host_cpu in
6290     i*86 )
6291       # Not sure whether the presence of OpenBSD here was a mistake.
6292       # Let's accept both of them until this is cleared up.
6293       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6294       lt_cv_file_magic_cmd=/usr/bin/file
6295       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6296       ;;
6297     esac
6298   else
6299     lt_cv_deplibs_check_method=pass_all
6300   fi
6301   ;;
6302
6303 gnu*)
6304   lt_cv_deplibs_check_method=pass_all
6305   ;;
6306
6307 haiku*)
6308   lt_cv_deplibs_check_method=pass_all
6309   ;;
6310
6311 hpux10.20* | hpux11*)
6312   lt_cv_file_magic_cmd=/usr/bin/file
6313   case $host_cpu in
6314   ia64*)
6315     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6316     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6317     ;;
6318   hppa*64*)
6319     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]'
6320     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6321     ;;
6322   *)
6323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6324     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6325     ;;
6326   esac
6327   ;;
6328
6329 interix[3-9]*)
6330   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6331   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6332   ;;
6333
6334 irix5* | irix6* | nonstopux*)
6335   case $LD in
6336   *-32|*"-32 ") libmagic=32-bit;;
6337   *-n32|*"-n32 ") libmagic=N32;;
6338   *-64|*"-64 ") libmagic=64-bit;;
6339   *) libmagic=never-match;;
6340   esac
6341   lt_cv_deplibs_check_method=pass_all
6342   ;;
6343
6344 # This must be Linux ELF.
6345 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6346   lt_cv_deplibs_check_method=pass_all
6347   ;;
6348
6349 netbsd*)
6350   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6351     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6352   else
6353     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6354   fi
6355   ;;
6356
6357 newos6*)
6358   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6359   lt_cv_file_magic_cmd=/usr/bin/file
6360   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6361   ;;
6362
6363 *nto* | *qnx*)
6364   lt_cv_deplibs_check_method=pass_all
6365   ;;
6366
6367 openbsd*)
6368   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6369     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6370   else
6371     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6372   fi
6373   ;;
6374
6375 osf3* | osf4* | osf5*)
6376   lt_cv_deplibs_check_method=pass_all
6377   ;;
6378
6379 rdos*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 solaris*)
6384   lt_cv_deplibs_check_method=pass_all
6385   ;;
6386
6387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6388   lt_cv_deplibs_check_method=pass_all
6389   ;;
6390
6391 sysv4 | sysv4.3*)
6392   case $host_vendor in
6393   motorola)
6394     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]'
6395     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6396     ;;
6397   ncr)
6398     lt_cv_deplibs_check_method=pass_all
6399     ;;
6400   sequent)
6401     lt_cv_file_magic_cmd='/bin/file'
6402     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6403     ;;
6404   sni)
6405     lt_cv_file_magic_cmd='/bin/file'
6406     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6407     lt_cv_file_magic_test_file=/lib/libc.so
6408     ;;
6409   siemens)
6410     lt_cv_deplibs_check_method=pass_all
6411     ;;
6412   pc)
6413     lt_cv_deplibs_check_method=pass_all
6414     ;;
6415   esac
6416   ;;
6417
6418 tpf*)
6419   lt_cv_deplibs_check_method=pass_all
6420   ;;
6421 esac
6422
6423 fi
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6425 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6426 file_magic_cmd=$lt_cv_file_magic_cmd
6427 deplibs_check_method=$lt_cv_deplibs_check_method
6428 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441 if test -n "$ac_tool_prefix"; then
6442   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6443 set dummy ${ac_tool_prefix}ar; ac_word=$2
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445 $as_echo_n "checking for $ac_word... " >&6; }
6446 if test "${ac_cv_prog_AR+set}" = set; then :
6447   $as_echo_n "(cached) " >&6
6448 else
6449   if test -n "$AR"; then
6450   ac_cv_prog_AR="$AR" # Let the user override the test.
6451 else
6452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 for as_dir in $PATH
6454 do
6455   IFS=$as_save_IFS
6456   test -z "$as_dir" && as_dir=.
6457     for ac_exec_ext in '' $ac_executable_extensions; do
6458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6459     ac_cv_prog_AR="${ac_tool_prefix}ar"
6460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461     break 2
6462   fi
6463 done
6464   done
6465 IFS=$as_save_IFS
6466
6467 fi
6468 fi
6469 AR=$ac_cv_prog_AR
6470 if test -n "$AR"; then
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6472 $as_echo "$AR" >&6; }
6473 else
6474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475 $as_echo "no" >&6; }
6476 fi
6477
6478
6479 fi
6480 if test -z "$ac_cv_prog_AR"; then
6481   ac_ct_AR=$AR
6482   # Extract the first word of "ar", so it can be a program name with args.
6483 set dummy ar; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -n "$ac_ct_AR"; then
6490   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_prog_ac_ct_AR="ar"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6510 if test -n "$ac_ct_AR"; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6512 $as_echo "$ac_ct_AR" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518   if test "x$ac_ct_AR" = x; then
6519     AR="false"
6520   else
6521     case $cross_compiling:$ac_tool_warned in
6522 yes:)
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525 ac_tool_warned=yes ;;
6526 esac
6527     AR=$ac_ct_AR
6528   fi
6529 else
6530   AR="$ac_cv_prog_AR"
6531 fi
6532
6533 test -z "$AR" && AR=ar
6534 test -z "$AR_FLAGS" && AR_FLAGS=cru
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546 if test -n "$ac_tool_prefix"; then
6547   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6548 set dummy ${ac_tool_prefix}strip; ac_word=$2
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6550 $as_echo_n "checking for $ac_word... " >&6; }
6551 if test "${ac_cv_prog_STRIP+set}" = set; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554   if test -n "$STRIP"; then
6555   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6556 else
6557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6558 for as_dir in $PATH
6559 do
6560   IFS=$as_save_IFS
6561   test -z "$as_dir" && as_dir=.
6562     for ac_exec_ext in '' $ac_executable_extensions; do
6563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6564     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566     break 2
6567   fi
6568 done
6569   done
6570 IFS=$as_save_IFS
6571
6572 fi
6573 fi
6574 STRIP=$ac_cv_prog_STRIP
6575 if test -n "$STRIP"; then
6576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6577 $as_echo "$STRIP" >&6; }
6578 else
6579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6580 $as_echo "no" >&6; }
6581 fi
6582
6583
6584 fi
6585 if test -z "$ac_cv_prog_STRIP"; then
6586   ac_ct_STRIP=$STRIP
6587   # Extract the first word of "strip", so it can be a program name with args.
6588 set dummy strip; ac_word=$2
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6590 $as_echo_n "checking for $ac_word... " >&6; }
6591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6592   $as_echo_n "(cached) " >&6
6593 else
6594   if test -n "$ac_ct_STRIP"; then
6595   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6596 else
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600   IFS=$as_save_IFS
6601   test -z "$as_dir" && as_dir=.
6602     for ac_exec_ext in '' $ac_executable_extensions; do
6603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6604     ac_cv_prog_ac_ct_STRIP="strip"
6605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6606     break 2
6607   fi
6608 done
6609   done
6610 IFS=$as_save_IFS
6611
6612 fi
6613 fi
6614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6615 if test -n "$ac_ct_STRIP"; then
6616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6617 $as_echo "$ac_ct_STRIP" >&6; }
6618 else
6619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6620 $as_echo "no" >&6; }
6621 fi
6622
6623   if test "x$ac_ct_STRIP" = x; then
6624     STRIP=":"
6625   else
6626     case $cross_compiling:$ac_tool_warned in
6627 yes:)
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6630 ac_tool_warned=yes ;;
6631 esac
6632     STRIP=$ac_ct_STRIP
6633   fi
6634 else
6635   STRIP="$ac_cv_prog_STRIP"
6636 fi
6637
6638 test -z "$STRIP" && STRIP=:
6639
6640
6641
6642
6643
6644
6645 if test -n "$ac_tool_prefix"; then
6646   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6647 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 $as_echo_n "checking for $ac_word... " >&6; }
6650 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6651   $as_echo_n "(cached) " >&6
6652 else
6653   if test -n "$RANLIB"; then
6654   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6655 else
6656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 for as_dir in $PATH
6658 do
6659   IFS=$as_save_IFS
6660   test -z "$as_dir" && as_dir=.
6661     for ac_exec_ext in '' $ac_executable_extensions; do
6662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6663     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6665     break 2
6666   fi
6667 done
6668   done
6669 IFS=$as_save_IFS
6670
6671 fi
6672 fi
6673 RANLIB=$ac_cv_prog_RANLIB
6674 if test -n "$RANLIB"; then
6675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6676 $as_echo "$RANLIB" >&6; }
6677 else
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6679 $as_echo "no" >&6; }
6680 fi
6681
6682
6683 fi
6684 if test -z "$ac_cv_prog_RANLIB"; then
6685   ac_ct_RANLIB=$RANLIB
6686   # Extract the first word of "ranlib", so it can be a program name with args.
6687 set dummy ranlib; ac_word=$2
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6689 $as_echo_n "checking for $ac_word... " >&6; }
6690 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6691   $as_echo_n "(cached) " >&6
6692 else
6693   if test -n "$ac_ct_RANLIB"; then
6694   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6695 else
6696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697 for as_dir in $PATH
6698 do
6699   IFS=$as_save_IFS
6700   test -z "$as_dir" && as_dir=.
6701     for ac_exec_ext in '' $ac_executable_extensions; do
6702   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6703     ac_cv_prog_ac_ct_RANLIB="ranlib"
6704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6705     break 2
6706   fi
6707 done
6708   done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6714 if test -n "$ac_ct_RANLIB"; then
6715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6716 $as_echo "$ac_ct_RANLIB" >&6; }
6717 else
6718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 $as_echo "no" >&6; }
6720 fi
6721
6722   if test "x$ac_ct_RANLIB" = x; then
6723     RANLIB=":"
6724   else
6725     case $cross_compiling:$ac_tool_warned in
6726 yes:)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6729 ac_tool_warned=yes ;;
6730 esac
6731     RANLIB=$ac_ct_RANLIB
6732   fi
6733 else
6734   RANLIB="$ac_cv_prog_RANLIB"
6735 fi
6736
6737 test -z "$RANLIB" && RANLIB=:
6738
6739
6740
6741
6742
6743
6744 # Determine commands to create old-style static archives.
6745 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6746 old_postinstall_cmds='chmod 644 $oldlib'
6747 old_postuninstall_cmds=
6748
6749 if test -n "$RANLIB"; then
6750   case $host_os in
6751   openbsd*)
6752     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6753     ;;
6754   *)
6755     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6756     ;;
6757   esac
6758   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6759 fi
6760
6761 case $host_os in
6762   darwin*)
6763     lock_old_archive_extraction=yes ;;
6764   *)
6765     lock_old_archive_extraction=no ;;
6766 esac
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806 # If no C compiler was specified, use CC.
6807 LTCC=${LTCC-"$CC"}
6808
6809 # If no C compiler flags were specified, use CFLAGS.
6810 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6811
6812 # Allow CC to be a program name with arguments.
6813 compiler=$CC
6814
6815
6816 # Check for command to grab the raw symbol name followed by C symbol from nm.
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6818 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6819 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6820   $as_echo_n "(cached) " >&6
6821 else
6822
6823 # These are sane defaults that work on at least a few old systems.
6824 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6825
6826 # Character class describing NM global symbol codes.
6827 symcode='[BCDEGRST]'
6828
6829 # Regexp to match symbols that can be accessed directly from C.
6830 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6831
6832 # Define system-specific variables.
6833 case $host_os in
6834 aix*)
6835   symcode='[BCDT]'
6836   ;;
6837 cygwin* | mingw* | pw32* | cegcc*)
6838   symcode='[ABCDGISTW]'
6839   ;;
6840 hpux*)
6841   if test "$host_cpu" = ia64; then
6842     symcode='[ABCDEGRST]'
6843   fi
6844   ;;
6845 irix* | nonstopux*)
6846   symcode='[BCDEGRST]'
6847   ;;
6848 osf*)
6849   symcode='[BCDEGQRST]'
6850   ;;
6851 solaris*)
6852   symcode='[BDRT]'
6853   ;;
6854 sco3.2v5*)
6855   symcode='[DT]'
6856   ;;
6857 sysv4.2uw2*)
6858   symcode='[DT]'
6859   ;;
6860 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6861   symcode='[ABDT]'
6862   ;;
6863 sysv4)
6864   symcode='[DFNSTU]'
6865   ;;
6866 esac
6867
6868 # If we're using GNU nm, then use its standard symbol codes.
6869 case `$NM -V 2>&1` in
6870 *GNU* | *'with BFD'*)
6871   symcode='[ABCDGIRSTW]' ;;
6872 esac
6873
6874 # Transform an extracted symbol line into a proper C declaration.
6875 # Some systems (esp. on ia64) link data and code symbols differently,
6876 # so use this general approach.
6877 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6878
6879 # Transform an extracted symbol line into symbol name and symbol address
6880 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6881 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'"
6882
6883 # Handle CRLF in mingw tool chain
6884 opt_cr=
6885 case $build_os in
6886 mingw*)
6887   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6888   ;;
6889 esac
6890
6891 # Try without a prefix underscore, then with it.
6892 for ac_symprfx in "" "_"; do
6893
6894   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6895   symxfrm="\\1 $ac_symprfx\\2 \\2"
6896
6897   # Write the raw and C identifiers.
6898   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6899     # Fake it for dumpbin and say T for any non-static function
6900     # and D for any global variable.
6901     # Also find C++ and __fastcall symbols from MSVC++,
6902     # which start with @ or ?.
6903     lt_cv_sys_global_symbol_pipe="$AWK '"\
6904 "     {last_section=section; section=\$ 3};"\
6905 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6906 "     \$ 0!~/External *\|/{next};"\
6907 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6908 "     {if(hide[section]) next};"\
6909 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6910 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6911 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6912 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6913 "     ' prfx=^$ac_symprfx"
6914   else
6915     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6916   fi
6917
6918   # Check to see that the pipe works correctly.
6919   pipe_works=no
6920
6921   rm -f conftest*
6922   cat > conftest.$ac_ext <<_LT_EOF
6923 #ifdef __cplusplus
6924 extern "C" {
6925 #endif
6926 char nm_test_var;
6927 void nm_test_func(void);
6928 void nm_test_func(void){}
6929 #ifdef __cplusplus
6930 }
6931 #endif
6932 int main(){nm_test_var='a';nm_test_func();return(0);}
6933 _LT_EOF
6934
6935   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6936   (eval $ac_compile) 2>&5
6937   ac_status=$?
6938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6939   test $ac_status = 0; }; then
6940     # Now try to grab the symbols.
6941     nlist=conftest.nm
6942     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6943   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6944   ac_status=$?
6945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6946   test $ac_status = 0; } && test -s "$nlist"; then
6947       # Try sorting and uniquifying the output.
6948       if sort "$nlist" | uniq > "$nlist"T; then
6949         mv -f "$nlist"T "$nlist"
6950       else
6951         rm -f "$nlist"T
6952       fi
6953
6954       # Make sure that we snagged all the symbols we need.
6955       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6956         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6957           cat <<_LT_EOF > conftest.$ac_ext
6958 #ifdef __cplusplus
6959 extern "C" {
6960 #endif
6961
6962 _LT_EOF
6963           # Now generate the symbol file.
6964           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6965
6966           cat <<_LT_EOF >> conftest.$ac_ext
6967
6968 /* The mapping between symbol names and symbols.  */
6969 const struct {
6970   const char *name;
6971   void       *address;
6972 }
6973 lt__PROGRAM__LTX_preloaded_symbols[] =
6974 {
6975   { "@PROGRAM@", (void *) 0 },
6976 _LT_EOF
6977           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6978           cat <<\_LT_EOF >> conftest.$ac_ext
6979   {0, (void *) 0}
6980 };
6981
6982 /* This works around a problem in FreeBSD linker */
6983 #ifdef FREEBSD_WORKAROUND
6984 static const void *lt_preloaded_setup() {
6985   return lt__PROGRAM__LTX_preloaded_symbols;
6986 }
6987 #endif
6988
6989 #ifdef __cplusplus
6990 }
6991 #endif
6992 _LT_EOF
6993           # Now try linking the two files.
6994           mv conftest.$ac_objext conftstm.$ac_objext
6995           lt_save_LIBS="$LIBS"
6996           lt_save_CFLAGS="$CFLAGS"
6997           LIBS="conftstm.$ac_objext"
6998           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6999           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7000   (eval $ac_link) 2>&5
7001   ac_status=$?
7002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7003   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7004             pipe_works=yes
7005           fi
7006           LIBS="$lt_save_LIBS"
7007           CFLAGS="$lt_save_CFLAGS"
7008         else
7009           echo "cannot find nm_test_func in $nlist" >&5
7010         fi
7011       else
7012         echo "cannot find nm_test_var in $nlist" >&5
7013       fi
7014     else
7015       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7016     fi
7017   else
7018     echo "$progname: failed program was:" >&5
7019     cat conftest.$ac_ext >&5
7020   fi
7021   rm -rf conftest* conftst*
7022
7023   # Do not use the global_symbol_pipe unless it works.
7024   if test "$pipe_works" = yes; then
7025     break
7026   else
7027     lt_cv_sys_global_symbol_pipe=
7028   fi
7029 done
7030
7031 fi
7032
7033 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7034   lt_cv_sys_global_symbol_to_cdecl=
7035 fi
7036 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7038 $as_echo "failed" >&6; }
7039 else
7040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7041 $as_echo "ok" >&6; }
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066 # Check whether --enable-libtool-lock was given.
7067 if test "${enable_libtool_lock+set}" = set; then :
7068   enableval=$enable_libtool_lock;
7069 fi
7070
7071 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7072
7073 # Some flags need to be propagated to the compiler or linker for good
7074 # libtool support.
7075 case $host in
7076 ia64-*-hpux*)
7077   # Find out which ABI we are using.
7078   echo 'int i;' > conftest.$ac_ext
7079   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7080   (eval $ac_compile) 2>&5
7081   ac_status=$?
7082   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083   test $ac_status = 0; }; then
7084     case `/usr/bin/file conftest.$ac_objext` in
7085       *ELF-32*)
7086         HPUX_IA64_MODE="32"
7087         ;;
7088       *ELF-64*)
7089         HPUX_IA64_MODE="64"
7090         ;;
7091     esac
7092   fi
7093   rm -rf conftest*
7094   ;;
7095 *-*-irix6*)
7096   # Find out which ABI we are using.
7097   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7098   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7099   (eval $ac_compile) 2>&5
7100   ac_status=$?
7101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7102   test $ac_status = 0; }; then
7103     if test "$lt_cv_prog_gnu_ld" = yes; then
7104       case `/usr/bin/file conftest.$ac_objext` in
7105         *32-bit*)
7106           LD="${LD-ld} -melf32bsmip"
7107           ;;
7108         *N32*)
7109           LD="${LD-ld} -melf32bmipn32"
7110           ;;
7111         *64-bit*)
7112           LD="${LD-ld} -melf64bmip"
7113         ;;
7114       esac
7115     else
7116       case `/usr/bin/file conftest.$ac_objext` in
7117         *32-bit*)
7118           LD="${LD-ld} -32"
7119           ;;
7120         *N32*)
7121           LD="${LD-ld} -n32"
7122           ;;
7123         *64-bit*)
7124           LD="${LD-ld} -64"
7125           ;;
7126       esac
7127     fi
7128   fi
7129   rm -rf conftest*
7130   ;;
7131
7132 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7133 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7134   # Find out which ABI we are using.
7135   echo 'int i;' > conftest.$ac_ext
7136   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7137   (eval $ac_compile) 2>&5
7138   ac_status=$?
7139   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7140   test $ac_status = 0; }; then
7141     case `/usr/bin/file conftest.o` in
7142       *32-bit*)
7143         case $host in
7144           x86_64-*kfreebsd*-gnu)
7145             LD="${LD-ld} -m elf_i386_fbsd"
7146             ;;
7147           x86_64-*linux*)
7148             LD="${LD-ld} -m elf_i386"
7149             ;;
7150           ppc64-*linux*|powerpc64-*linux*)
7151             LD="${LD-ld} -m elf32ppclinux"
7152             ;;
7153           s390x-*linux*)
7154             LD="${LD-ld} -m elf_s390"
7155             ;;
7156           sparc64-*linux*)
7157             LD="${LD-ld} -m elf32_sparc"
7158             ;;
7159         esac
7160         ;;
7161       *64-bit*)
7162         case $host in
7163           x86_64-*kfreebsd*-gnu)
7164             LD="${LD-ld} -m elf_x86_64_fbsd"
7165             ;;
7166           x86_64-*linux*)
7167             LD="${LD-ld} -m elf_x86_64"
7168             ;;
7169           ppc*-*linux*|powerpc*-*linux*)
7170             LD="${LD-ld} -m elf64ppc"
7171             ;;
7172           s390*-*linux*|s390*-*tpf*)
7173             LD="${LD-ld} -m elf64_s390"
7174             ;;
7175           sparc*-*linux*)
7176             LD="${LD-ld} -m elf64_sparc"
7177             ;;
7178         esac
7179         ;;
7180     esac
7181   fi
7182   rm -rf conftest*
7183   ;;
7184
7185 *-*-sco3.2v5*)
7186   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7187   SAVE_CFLAGS="$CFLAGS"
7188   CFLAGS="$CFLAGS -belf"
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7190 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7191 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   ac_ext=c
7195 ac_cpp='$CPP $CPPFLAGS'
7196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7199
7200      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h.  */
7202
7203 int
7204 main ()
7205 {
7206
7207   ;
7208   return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_link "$LINENO"; then :
7212   lt_cv_cc_needs_belf=yes
7213 else
7214   lt_cv_cc_needs_belf=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext \
7217     conftest$ac_exeext conftest.$ac_ext
7218      ac_ext=c
7219 ac_cpp='$CPP $CPPFLAGS'
7220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7223
7224 fi
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7226 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7227   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7228     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7229     CFLAGS="$SAVE_CFLAGS"
7230   fi
7231   ;;
7232 sparc*-*solaris*)
7233   # Find out which ABI we are using.
7234   echo 'int i;' > conftest.$ac_ext
7235   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7236   (eval $ac_compile) 2>&5
7237   ac_status=$?
7238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7239   test $ac_status = 0; }; then
7240     case `/usr/bin/file conftest.o` in
7241     *64-bit*)
7242       case $lt_cv_prog_gnu_ld in
7243       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7244       *)
7245         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7246           LD="${LD-ld} -64"
7247         fi
7248         ;;
7249       esac
7250       ;;
7251     esac
7252   fi
7253   rm -rf conftest*
7254   ;;
7255 esac
7256
7257 need_locks="$enable_libtool_lock"
7258
7259
7260   case $host_os in
7261     rhapsody* | darwin*)
7262     if test -n "$ac_tool_prefix"; then
7263   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7264 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7266 $as_echo_n "checking for $ac_word... " >&6; }
7267 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   if test -n "$DSYMUTIL"; then
7271   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7272 else
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274 for as_dir in $PATH
7275 do
7276   IFS=$as_save_IFS
7277   test -z "$as_dir" && as_dir=.
7278     for ac_exec_ext in '' $ac_executable_extensions; do
7279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7280     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7282     break 2
7283   fi
7284 done
7285   done
7286 IFS=$as_save_IFS
7287
7288 fi
7289 fi
7290 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7291 if test -n "$DSYMUTIL"; then
7292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7293 $as_echo "$DSYMUTIL" >&6; }
7294 else
7295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7296 $as_echo "no" >&6; }
7297 fi
7298
7299
7300 fi
7301 if test -z "$ac_cv_prog_DSYMUTIL"; then
7302   ac_ct_DSYMUTIL=$DSYMUTIL
7303   # Extract the first word of "dsymutil", so it can be a program name with args.
7304 set dummy dsymutil; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   if test -n "$ac_ct_DSYMUTIL"; then
7311   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7312 else
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318     for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325   done
7326 IFS=$as_save_IFS
7327
7328 fi
7329 fi
7330 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7331 if test -n "$ac_ct_DSYMUTIL"; then
7332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7333 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7334 else
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7336 $as_echo "no" >&6; }
7337 fi
7338
7339   if test "x$ac_ct_DSYMUTIL" = x; then
7340     DSYMUTIL=":"
7341   else
7342     case $cross_compiling:$ac_tool_warned in
7343 yes:)
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7346 ac_tool_warned=yes ;;
7347 esac
7348     DSYMUTIL=$ac_ct_DSYMUTIL
7349   fi
7350 else
7351   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7352 fi
7353
7354     if test -n "$ac_tool_prefix"; then
7355   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7356 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7358 $as_echo_n "checking for $ac_word... " >&6; }
7359 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7360   $as_echo_n "(cached) " >&6
7361 else
7362   if test -n "$NMEDIT"; then
7363   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7364 else
7365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366 for as_dir in $PATH
7367 do
7368   IFS=$as_save_IFS
7369   test -z "$as_dir" && as_dir=.
7370     for ac_exec_ext in '' $ac_executable_extensions; do
7371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7372     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7374     break 2
7375   fi
7376 done
7377   done
7378 IFS=$as_save_IFS
7379
7380 fi
7381 fi
7382 NMEDIT=$ac_cv_prog_NMEDIT
7383 if test -n "$NMEDIT"; then
7384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7385 $as_echo "$NMEDIT" >&6; }
7386 else
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7388 $as_echo "no" >&6; }
7389 fi
7390
7391
7392 fi
7393 if test -z "$ac_cv_prog_NMEDIT"; then
7394   ac_ct_NMEDIT=$NMEDIT
7395   # Extract the first word of "nmedit", so it can be a program name with args.
7396 set dummy nmedit; ac_word=$2
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398 $as_echo_n "checking for $ac_word... " >&6; }
7399 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   if test -n "$ac_ct_NMEDIT"; then
7403   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7404 else
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410     for ac_exec_ext in '' $ac_executable_extensions; do
7411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417   done
7418 IFS=$as_save_IFS
7419
7420 fi
7421 fi
7422 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7423 if test -n "$ac_ct_NMEDIT"; then
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7425 $as_echo "$ac_ct_NMEDIT" >&6; }
7426 else
7427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 $as_echo "no" >&6; }
7429 fi
7430
7431   if test "x$ac_ct_NMEDIT" = x; then
7432     NMEDIT=":"
7433   else
7434     case $cross_compiling:$ac_tool_warned in
7435 yes:)
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7438 ac_tool_warned=yes ;;
7439 esac
7440     NMEDIT=$ac_ct_NMEDIT
7441   fi
7442 else
7443   NMEDIT="$ac_cv_prog_NMEDIT"
7444 fi
7445
7446     if test -n "$ac_tool_prefix"; then
7447   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7448 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if test "${ac_cv_prog_LIPO+set}" = set; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   if test -n "$LIPO"; then
7455   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7456 else
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH
7459 do
7460   IFS=$as_save_IFS
7461   test -z "$as_dir" && as_dir=.
7462     for ac_exec_ext in '' $ac_executable_extensions; do
7463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7466     break 2
7467   fi
7468 done
7469   done
7470 IFS=$as_save_IFS
7471
7472 fi
7473 fi
7474 LIPO=$ac_cv_prog_LIPO
7475 if test -n "$LIPO"; then
7476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7477 $as_echo "$LIPO" >&6; }
7478 else
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480 $as_echo "no" >&6; }
7481 fi
7482
7483
7484 fi
7485 if test -z "$ac_cv_prog_LIPO"; then
7486   ac_ct_LIPO=$LIPO
7487   # Extract the first word of "lipo", so it can be a program name with args.
7488 set dummy lipo; ac_word=$2
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7490 $as_echo_n "checking for $ac_word... " >&6; }
7491 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7492   $as_echo_n "(cached) " >&6
7493 else
7494   if test -n "$ac_ct_LIPO"; then
7495   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7496 else
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7499 do
7500   IFS=$as_save_IFS
7501   test -z "$as_dir" && as_dir=.
7502     for ac_exec_ext in '' $ac_executable_extensions; do
7503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7504     ac_cv_prog_ac_ct_LIPO="lipo"
7505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506     break 2
7507   fi
7508 done
7509   done
7510 IFS=$as_save_IFS
7511
7512 fi
7513 fi
7514 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7515 if test -n "$ac_ct_LIPO"; then
7516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7517 $as_echo "$ac_ct_LIPO" >&6; }
7518 else
7519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }
7521 fi
7522
7523   if test "x$ac_ct_LIPO" = x; then
7524     LIPO=":"
7525   else
7526     case $cross_compiling:$ac_tool_warned in
7527 yes:)
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7530 ac_tool_warned=yes ;;
7531 esac
7532     LIPO=$ac_ct_LIPO
7533   fi
7534 else
7535   LIPO="$ac_cv_prog_LIPO"
7536 fi
7537
7538     if test -n "$ac_tool_prefix"; then
7539   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7540 set dummy ${ac_tool_prefix}otool; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   if test -n "$OTOOL"; then
7547   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7556     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 OTOOL=$ac_cv_prog_OTOOL
7567 if test -n "$OTOOL"; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7569 $as_echo "$OTOOL" >&6; }
7570 else
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575
7576 fi
7577 if test -z "$ac_cv_prog_OTOOL"; then
7578   ac_ct_OTOOL=$OTOOL
7579   # Extract the first word of "otool", so it can be a program name with args.
7580 set dummy otool; ac_word=$2
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7582 $as_echo_n "checking for $ac_word... " >&6; }
7583 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7584   $as_echo_n "(cached) " >&6
7585 else
7586   if test -n "$ac_ct_OTOOL"; then
7587   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7588 else
7589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7590 for as_dir in $PATH
7591 do
7592   IFS=$as_save_IFS
7593   test -z "$as_dir" && as_dir=.
7594     for ac_exec_ext in '' $ac_executable_extensions; do
7595   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7596     ac_cv_prog_ac_ct_OTOOL="otool"
7597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7598     break 2
7599   fi
7600 done
7601   done
7602 IFS=$as_save_IFS
7603
7604 fi
7605 fi
7606 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7607 if test -n "$ac_ct_OTOOL"; then
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7609 $as_echo "$ac_ct_OTOOL" >&6; }
7610 else
7611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }
7613 fi
7614
7615   if test "x$ac_ct_OTOOL" = x; then
7616     OTOOL=":"
7617   else
7618     case $cross_compiling:$ac_tool_warned in
7619 yes:)
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7622 ac_tool_warned=yes ;;
7623 esac
7624     OTOOL=$ac_ct_OTOOL
7625   fi
7626 else
7627   OTOOL="$ac_cv_prog_OTOOL"
7628 fi
7629
7630     if test -n "$ac_tool_prefix"; then
7631   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7632 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   if test -n "$OTOOL64"; then
7639   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7640 else
7641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642 for as_dir in $PATH
7643 do
7644   IFS=$as_save_IFS
7645   test -z "$as_dir" && as_dir=.
7646     for ac_exec_ext in '' $ac_executable_extensions; do
7647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7648     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650     break 2
7651   fi
7652 done
7653   done
7654 IFS=$as_save_IFS
7655
7656 fi
7657 fi
7658 OTOOL64=$ac_cv_prog_OTOOL64
7659 if test -n "$OTOOL64"; then
7660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7661 $as_echo "$OTOOL64" >&6; }
7662 else
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664 $as_echo "no" >&6; }
7665 fi
7666
7667
7668 fi
7669 if test -z "$ac_cv_prog_OTOOL64"; then
7670   ac_ct_OTOOL64=$OTOOL64
7671   # Extract the first word of "otool64", so it can be a program name with args.
7672 set dummy otool64; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7676   $as_echo_n "(cached) " >&6
7677 else
7678   if test -n "$ac_ct_OTOOL64"; then
7679   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686     for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_prog_ac_ct_OTOOL64="otool64"
7689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693   done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7699 if test -n "$ac_ct_OTOOL64"; then
7700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7701 $as_echo "$ac_ct_OTOOL64" >&6; }
7702 else
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707   if test "x$ac_ct_OTOOL64" = x; then
7708     OTOOL64=":"
7709   else
7710     case $cross_compiling:$ac_tool_warned in
7711 yes:)
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7714 ac_tool_warned=yes ;;
7715 esac
7716     OTOOL64=$ac_ct_OTOOL64
7717   fi
7718 else
7719   OTOOL64="$ac_cv_prog_OTOOL64"
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7749 $as_echo_n "checking for -single_module linker flag... " >&6; }
7750 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7751   $as_echo_n "(cached) " >&6
7752 else
7753   lt_cv_apple_cc_single_mod=no
7754       if test -z "${LT_MULTI_MODULE}"; then
7755         # By default we will add the -single_module flag. You can override
7756         # by either setting the environment variable LT_MULTI_MODULE
7757         # non-empty at configure time, or by adding -multi_module to the
7758         # link flags.
7759         rm -rf libconftest.dylib*
7760         echo "int foo(void){return 1;}" > conftest.c
7761         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762 -dynamiclib -Wl,-single_module conftest.c" >&5
7763         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7764           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7765         _lt_result=$?
7766         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7767           lt_cv_apple_cc_single_mod=yes
7768         else
7769           cat conftest.err >&5
7770         fi
7771         rm -rf libconftest.dylib*
7772         rm -f conftest.*
7773       fi
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7776 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7778 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7779 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   lt_cv_ld_exported_symbols_list=no
7783       save_LDFLAGS=$LDFLAGS
7784       echo "_main" > conftest.sym
7785       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7786       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788
7789 int
7790 main ()
7791 {
7792
7793   ;
7794   return 0;
7795 }
7796 _ACEOF
7797 if ac_fn_c_try_link "$LINENO"; then :
7798   lt_cv_ld_exported_symbols_list=yes
7799 else
7800   lt_cv_ld_exported_symbols_list=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext \
7803     conftest$ac_exeext conftest.$ac_ext
7804         LDFLAGS="$save_LDFLAGS"
7805
7806 fi
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7808 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7809     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7810 $as_echo_n "checking for -force_load linker flag... " >&6; }
7811 if test "${lt_cv_ld_force_load+set}" = set; then :
7812   $as_echo_n "(cached) " >&6
7813 else
7814   lt_cv_ld_force_load=no
7815       cat > conftest.c << _LT_EOF
7816 int forced_loaded() { return 2;}
7817 _LT_EOF
7818       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820       echo "$AR cru libconftest.a conftest.o" >&5
7821       $AR cru libconftest.a conftest.o 2>&5
7822       cat > conftest.c << _LT_EOF
7823 int main() { return 0;}
7824 _LT_EOF
7825       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7826       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7827       _lt_result=$?
7828       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7829         lt_cv_ld_force_load=yes
7830       else
7831         cat conftest.err >&5
7832       fi
7833         rm -f conftest.err libconftest.a conftest conftest.c
7834         rm -rf conftest.dSYM
7835
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7838 $as_echo "$lt_cv_ld_force_load" >&6; }
7839     case $host_os in
7840     rhapsody* | darwin1.[012])
7841       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7842     darwin1.*)
7843       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7844     darwin*) # darwin 5.x on
7845       # if running on 10.5 or later, the deployment target defaults
7846       # to the OS version, if on x86, and 10.4, the deployment
7847       # target defaults to 10.4. Don't you love it?
7848       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7849         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7850           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7851         10.[012]*)
7852           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7853         10.*)
7854           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7855       esac
7856     ;;
7857   esac
7858     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7859       _lt_dar_single_mod='$single_module'
7860     fi
7861     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7862       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7863     else
7864       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7865     fi
7866     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7867       _lt_dsymutil='~$DSYMUTIL $lib || :'
7868     else
7869       _lt_dsymutil=
7870     fi
7871     ;;
7872   esac
7873
7874 ac_ext=c
7875 ac_cpp='$CPP $CPPFLAGS'
7876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7880 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7881 # On Suns, sometimes $CPP names a directory.
7882 if test -n "$CPP" && test -d "$CPP"; then
7883   CPP=
7884 fi
7885 if test -z "$CPP"; then
7886   if test "${ac_cv_prog_CPP+set}" = set; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889       # Double quotes because CPP needs to be expanded
7890     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7891     do
7892       ac_preproc_ok=false
7893 for ac_c_preproc_warn_flag in '' yes
7894 do
7895   # Use a header file that comes with gcc, so configuring glibc
7896   # with a fresh cross-compiler works.
7897   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898   # <limits.h> exists even on freestanding compilers.
7899   # On the NeXT, cc -E runs the code through the compiler's parser,
7900   # not just through cpp. "Syntax error" is here to catch this case.
7901   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h.  */
7903 #ifdef __STDC__
7904 # include <limits.h>
7905 #else
7906 # include <assert.h>
7907 #endif
7908                      Syntax error
7909 _ACEOF
7910 if ac_fn_c_try_cpp "$LINENO"; then :
7911
7912 else
7913   # Broken: fails on valid input.
7914 continue
7915 fi
7916 rm -f conftest.err conftest.$ac_ext
7917
7918   # OK, works on sane cases.  Now check whether nonexistent headers
7919   # can be detected and how.
7920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921 /* end confdefs.h.  */
7922 #include <ac_nonexistent.h>
7923 _ACEOF
7924 if ac_fn_c_try_cpp "$LINENO"; then :
7925   # Broken: success on invalid input.
7926 continue
7927 else
7928   # Passes both tests.
7929 ac_preproc_ok=:
7930 break
7931 fi
7932 rm -f conftest.err conftest.$ac_ext
7933
7934 done
7935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936 rm -f conftest.err conftest.$ac_ext
7937 if $ac_preproc_ok; then :
7938   break
7939 fi
7940
7941     done
7942     ac_cv_prog_CPP=$CPP
7943
7944 fi
7945   CPP=$ac_cv_prog_CPP
7946 else
7947   ac_cv_prog_CPP=$CPP
7948 fi
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7950 $as_echo "$CPP" >&6; }
7951 ac_preproc_ok=false
7952 for ac_c_preproc_warn_flag in '' yes
7953 do
7954   # Use a header file that comes with gcc, so configuring glibc
7955   # with a fresh cross-compiler works.
7956   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7957   # <limits.h> exists even on freestanding compilers.
7958   # On the NeXT, cc -E runs the code through the compiler's parser,
7959   # not just through cpp. "Syntax error" is here to catch this case.
7960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h.  */
7962 #ifdef __STDC__
7963 # include <limits.h>
7964 #else
7965 # include <assert.h>
7966 #endif
7967                      Syntax error
7968 _ACEOF
7969 if ac_fn_c_try_cpp "$LINENO"; then :
7970
7971 else
7972   # Broken: fails on valid input.
7973 continue
7974 fi
7975 rm -f conftest.err conftest.$ac_ext
7976
7977   # OK, works on sane cases.  Now check whether nonexistent headers
7978   # can be detected and how.
7979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981 #include <ac_nonexistent.h>
7982 _ACEOF
7983 if ac_fn_c_try_cpp "$LINENO"; then :
7984   # Broken: success on invalid input.
7985 continue
7986 else
7987   # Passes both tests.
7988 ac_preproc_ok=:
7989 break
7990 fi
7991 rm -f conftest.err conftest.$ac_ext
7992
7993 done
7994 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7995 rm -f conftest.err conftest.$ac_ext
7996 if $ac_preproc_ok; then :
7997
7998 else
7999   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8001 as_fn_error "C preprocessor \"$CPP\" fails sanity check
8002 See \`config.log' for more details." "$LINENO" 5; }
8003 fi
8004
8005 ac_ext=c
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8013 $as_echo_n "checking for ANSI C header files... " >&6; }
8014 if test "${ac_cv_header_stdc+set}" = set; then :
8015   $as_echo_n "(cached) " >&6
8016 else
8017   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018 /* end confdefs.h.  */
8019 #include <stdlib.h>
8020 #include <stdarg.h>
8021 #include <string.h>
8022 #include <float.h>
8023
8024 int
8025 main ()
8026 {
8027
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033   ac_cv_header_stdc=yes
8034 else
8035   ac_cv_header_stdc=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038
8039 if test $ac_cv_header_stdc = yes; then
8040   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h.  */
8043 #include <string.h>
8044
8045 _ACEOF
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047   $EGREP "memchr" >/dev/null 2>&1; then :
8048
8049 else
8050   ac_cv_header_stdc=no
8051 fi
8052 rm -f conftest*
8053
8054 fi
8055
8056 if test $ac_cv_header_stdc = yes; then
8057   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059 /* end confdefs.h.  */
8060 #include <stdlib.h>
8061
8062 _ACEOF
8063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064   $EGREP "free" >/dev/null 2>&1; then :
8065
8066 else
8067   ac_cv_header_stdc=no
8068 fi
8069 rm -f conftest*
8070
8071 fi
8072
8073 if test $ac_cv_header_stdc = yes; then
8074   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075   if test "$cross_compiling" = yes; then :
8076   :
8077 else
8078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079 /* end confdefs.h.  */
8080 #include <ctype.h>
8081 #include <stdlib.h>
8082 #if ((' ' & 0x0FF) == 0x020)
8083 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8084 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8085 #else
8086 # define ISLOWER(c) \
8087                    (('a' <= (c) && (c) <= 'i') \
8088                      || ('j' <= (c) && (c) <= 'r') \
8089                      || ('s' <= (c) && (c) <= 'z'))
8090 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8091 #endif
8092
8093 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094 int
8095 main ()
8096 {
8097   int i;
8098   for (i = 0; i < 256; i++)
8099     if (XOR (islower (i), ISLOWER (i))
8100         || toupper (i) != TOUPPER (i))
8101       return 2;
8102   return 0;
8103 }
8104 _ACEOF
8105 if ac_fn_c_try_run "$LINENO"; then :
8106
8107 else
8108   ac_cv_header_stdc=no
8109 fi
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8111   conftest.$ac_objext conftest.beam conftest.$ac_ext
8112 fi
8113
8114 fi
8115 fi
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8117 $as_echo "$ac_cv_header_stdc" >&6; }
8118 if test $ac_cv_header_stdc = yes; then
8119
8120 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8121
8122 fi
8123
8124 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8125 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8126                   inttypes.h stdint.h unistd.h
8127 do :
8128   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8129 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8130 "
8131 eval as_val=\$$as_ac_Header
8132    if test "x$as_val" = x""yes; then :
8133   cat >>confdefs.h <<_ACEOF
8134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8135 _ACEOF
8136
8137 fi
8138
8139 done
8140
8141
8142 for ac_header in dlfcn.h
8143 do :
8144   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8145 "
8146 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8147   cat >>confdefs.h <<_ACEOF
8148 #define HAVE_DLFCN_H 1
8149 _ACEOF
8150
8151 fi
8152
8153 done
8154
8155
8156
8157
8158
8159 # Set options
8160
8161
8162
8163         enable_dlopen=no
8164
8165
8166
8167             # Check whether --enable-shared was given.
8168 if test "${enable_shared+set}" = set; then :
8169   enableval=$enable_shared; p=${PACKAGE-default}
8170     case $enableval in
8171     yes) enable_shared=yes ;;
8172     no) enable_shared=no ;;
8173     *)
8174       enable_shared=no
8175       # Look at the argument we got.  We use all the common list separators.
8176       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177       for pkg in $enableval; do
8178         IFS="$lt_save_ifs"
8179         if test "X$pkg" = "X$p"; then
8180           enable_shared=yes
8181         fi
8182       done
8183       IFS="$lt_save_ifs"
8184       ;;
8185     esac
8186 else
8187   enable_shared=yes
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198   # Check whether --enable-static was given.
8199 if test "${enable_static+set}" = set; then :
8200   enableval=$enable_static; p=${PACKAGE-default}
8201     case $enableval in
8202     yes) enable_static=yes ;;
8203     no) enable_static=no ;;
8204     *)
8205      enable_static=no
8206       # Look at the argument we got.  We use all the common list separators.
8207       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208       for pkg in $enableval; do
8209         IFS="$lt_save_ifs"
8210         if test "X$pkg" = "X$p"; then
8211           enable_static=yes
8212         fi
8213       done
8214       IFS="$lt_save_ifs"
8215       ;;
8216     esac
8217 else
8218   enable_static=yes
8219 fi
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230 # Check whether --with-pic was given.
8231 if test "${with_pic+set}" = set; then :
8232   withval=$with_pic; pic_mode="$withval"
8233 else
8234   pic_mode=default
8235 fi
8236
8237
8238 test -z "$pic_mode" && pic_mode=default
8239
8240
8241
8242
8243
8244
8245
8246   # Check whether --enable-fast-install was given.
8247 if test "${enable_fast_install+set}" = set; then :
8248   enableval=$enable_fast_install; p=${PACKAGE-default}
8249     case $enableval in
8250     yes) enable_fast_install=yes ;;
8251     no) enable_fast_install=no ;;
8252     *)
8253       enable_fast_install=no
8254       # Look at the argument we got.  We use all the common list separators.
8255       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8256       for pkg in $enableval; do
8257         IFS="$lt_save_ifs"
8258         if test "X$pkg" = "X$p"; then
8259           enable_fast_install=yes
8260         fi
8261       done
8262       IFS="$lt_save_ifs"
8263       ;;
8264     esac
8265 else
8266   enable_fast_install=yes
8267 fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279 # This can be used to rebuild libtool when needed
8280 LIBTOOL_DEPS="$ltmain"
8281
8282 # Always use our own libtool.
8283 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310 test -z "$LN_S" && LN_S="ln -s"
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325 if test -n "${ZSH_VERSION+set}" ; then
8326    setopt NO_GLOB_SUBST
8327 fi
8328
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8330 $as_echo_n "checking for objdir... " >&6; }
8331 if test "${lt_cv_objdir+set}" = set; then :
8332   $as_echo_n "(cached) " >&6
8333 else
8334   rm -f .libs 2>/dev/null
8335 mkdir .libs 2>/dev/null
8336 if test -d .libs; then
8337   lt_cv_objdir=.libs
8338 else
8339   # MS-DOS does not allow filenames that begin with a dot.
8340   lt_cv_objdir=_libs
8341 fi
8342 rmdir .libs 2>/dev/null
8343 fi
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8345 $as_echo "$lt_cv_objdir" >&6; }
8346 objdir=$lt_cv_objdir
8347
8348
8349
8350
8351
8352 cat >>confdefs.h <<_ACEOF
8353 #define LT_OBJDIR "$lt_cv_objdir/"
8354 _ACEOF
8355
8356
8357
8358
8359 case $host_os in
8360 aix3*)
8361   # AIX sometimes has problems with the GCC collect2 program.  For some
8362   # reason, if we set the COLLECT_NAMES environment variable, the problems
8363   # vanish in a puff of smoke.
8364   if test "X${COLLECT_NAMES+set}" != Xset; then
8365     COLLECT_NAMES=
8366     export COLLECT_NAMES
8367   fi
8368   ;;
8369 esac
8370
8371 # Global variables:
8372 ofile=libtool
8373 can_build_shared=yes
8374
8375 # All known linkers require a `.a' archive for static linking (except MSVC,
8376 # which needs '.lib').
8377 libext=a
8378
8379 with_gnu_ld="$lt_cv_prog_gnu_ld"
8380
8381 old_CC="$CC"
8382 old_CFLAGS="$CFLAGS"
8383
8384 # Set sane defaults for various variables
8385 test -z "$CC" && CC=cc
8386 test -z "$LTCC" && LTCC=$CC
8387 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8388 test -z "$LD" && LD=ld
8389 test -z "$ac_objext" && ac_objext=o
8390
8391 for cc_temp in $compiler""; do
8392   case $cc_temp in
8393     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8394     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8395     \-*) ;;
8396     *) break;;
8397   esac
8398 done
8399 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8400
8401
8402 # Only perform the check for file, if the check method requires it
8403 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8404 case $deplibs_check_method in
8405 file_magic*)
8406   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8407     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8408 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8409 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8410   $as_echo_n "(cached) " >&6
8411 else
8412   case $MAGIC_CMD in
8413 [\\/*] |  ?:[\\/]*)
8414   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8415   ;;
8416 *)
8417   lt_save_MAGIC_CMD="$MAGIC_CMD"
8418   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8419   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8420   for ac_dir in $ac_dummy; do
8421     IFS="$lt_save_ifs"
8422     test -z "$ac_dir" && ac_dir=.
8423     if test -f $ac_dir/${ac_tool_prefix}file; then
8424       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8425       if test -n "$file_magic_test_file"; then
8426         case $deplibs_check_method in
8427         "file_magic "*)
8428           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8429           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8430           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8431             $EGREP "$file_magic_regex" > /dev/null; then
8432             :
8433           else
8434             cat <<_LT_EOF 1>&2
8435
8436 *** Warning: the command libtool uses to detect shared libraries,
8437 *** $file_magic_cmd, produces output that libtool cannot recognize.
8438 *** The result is that libtool may fail to recognize shared libraries
8439 *** as such.  This will affect the creation of libtool libraries that
8440 *** depend on shared libraries, but programs linked with such libtool
8441 *** libraries will work regardless of this problem.  Nevertheless, you
8442 *** may want to report the problem to your system manager and/or to
8443 *** bug-libtool@gnu.org
8444
8445 _LT_EOF
8446           fi ;;
8447         esac
8448       fi
8449       break
8450     fi
8451   done
8452   IFS="$lt_save_ifs"
8453   MAGIC_CMD="$lt_save_MAGIC_CMD"
8454   ;;
8455 esac
8456 fi
8457
8458 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8459 if test -n "$MAGIC_CMD"; then
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8461 $as_echo "$MAGIC_CMD" >&6; }
8462 else
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464 $as_echo "no" >&6; }
8465 fi
8466
8467
8468
8469
8470
8471 if test -z "$lt_cv_path_MAGIC_CMD"; then
8472   if test -n "$ac_tool_prefix"; then
8473     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8474 $as_echo_n "checking for file... " >&6; }
8475 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8476   $as_echo_n "(cached) " >&6
8477 else
8478   case $MAGIC_CMD in
8479 [\\/*] |  ?:[\\/]*)
8480   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8481   ;;
8482 *)
8483   lt_save_MAGIC_CMD="$MAGIC_CMD"
8484   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8485   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8486   for ac_dir in $ac_dummy; do
8487     IFS="$lt_save_ifs"
8488     test -z "$ac_dir" && ac_dir=.
8489     if test -f $ac_dir/file; then
8490       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8491       if test -n "$file_magic_test_file"; then
8492         case $deplibs_check_method in
8493         "file_magic "*)
8494           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8495           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8496           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8497             $EGREP "$file_magic_regex" > /dev/null; then
8498             :
8499           else
8500             cat <<_LT_EOF 1>&2
8501
8502 *** Warning: the command libtool uses to detect shared libraries,
8503 *** $file_magic_cmd, produces output that libtool cannot recognize.
8504 *** The result is that libtool may fail to recognize shared libraries
8505 *** as such.  This will affect the creation of libtool libraries that
8506 *** depend on shared libraries, but programs linked with such libtool
8507 *** libraries will work regardless of this problem.  Nevertheless, you
8508 *** may want to report the problem to your system manager and/or to
8509 *** bug-libtool@gnu.org
8510
8511 _LT_EOF
8512           fi ;;
8513         esac
8514       fi
8515       break
8516     fi
8517   done
8518   IFS="$lt_save_ifs"
8519   MAGIC_CMD="$lt_save_MAGIC_CMD"
8520   ;;
8521 esac
8522 fi
8523
8524 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8525 if test -n "$MAGIC_CMD"; then
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8527 $as_echo "$MAGIC_CMD" >&6; }
8528 else
8529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530 $as_echo "no" >&6; }
8531 fi
8532
8533
8534   else
8535     MAGIC_CMD=:
8536   fi
8537 fi
8538
8539   fi
8540   ;;
8541 esac
8542
8543 # Use C for the default configuration in the libtool script
8544
8545 lt_save_CC="$CC"
8546 ac_ext=c
8547 ac_cpp='$CPP $CPPFLAGS'
8548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8551
8552
8553 # Source file extension for C test sources.
8554 ac_ext=c
8555
8556 # Object file extension for compiled C test sources.
8557 objext=o
8558 objext=$objext
8559
8560 # Code to be used in simple compile tests
8561 lt_simple_compile_test_code="int some_variable = 0;"
8562
8563 # Code to be used in simple link tests
8564 lt_simple_link_test_code='int main(){return(0);}'
8565
8566
8567
8568
8569
8570
8571
8572 # If no C compiler was specified, use CC.
8573 LTCC=${LTCC-"$CC"}
8574
8575 # If no C compiler flags were specified, use CFLAGS.
8576 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8577
8578 # Allow CC to be a program name with arguments.
8579 compiler=$CC
8580
8581 # Save the default compiler, since it gets overwritten when the other
8582 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8583 compiler_DEFAULT=$CC
8584
8585 # save warnings/boilerplate of simple test code
8586 ac_outfile=conftest.$ac_objext
8587 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8588 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8589 _lt_compiler_boilerplate=`cat conftest.err`
8590 $RM conftest*
8591
8592 ac_outfile=conftest.$ac_objext
8593 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8594 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8595 _lt_linker_boilerplate=`cat conftest.err`
8596 $RM -r conftest*
8597
8598
8599 ## CAVEAT EMPTOR:
8600 ## There is no encapsulation within the following macros, do not change
8601 ## the running order or otherwise move them around unless you know exactly
8602 ## what you are doing...
8603 if test -n "$compiler"; then
8604
8605 lt_prog_compiler_no_builtin_flag=
8606
8607 if test "$GCC" = yes; then
8608   case $cc_basename in
8609   nvcc*)
8610     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8611   *)
8612     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8613   esac
8614
8615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8616 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8617 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8618   $as_echo_n "(cached) " >&6
8619 else
8620   lt_cv_prog_compiler_rtti_exceptions=no
8621    ac_outfile=conftest.$ac_objext
8622    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8623    lt_compiler_flag="-fno-rtti -fno-exceptions"
8624    # Insert the option either (1) after the last *FLAGS variable, or
8625    # (2) before a word containing "conftest.", or (3) at the end.
8626    # Note that $ac_compile itself does not contain backslashes and begins
8627    # with a dollar sign (not a hyphen), so the echo should work correctly.
8628    # The option is referenced via a variable to avoid confusing sed.
8629    lt_compile=`echo "$ac_compile" | $SED \
8630    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8632    -e 's:$: $lt_compiler_flag:'`
8633    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8634    (eval "$lt_compile" 2>conftest.err)
8635    ac_status=$?
8636    cat conftest.err >&5
8637    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638    if (exit $ac_status) && test -s "$ac_outfile"; then
8639      # The compiler can only warn and ignore the option if not recognized
8640      # So say no if there are warnings other than the usual output.
8641      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8642      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8643      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8644        lt_cv_prog_compiler_rtti_exceptions=yes
8645      fi
8646    fi
8647    $RM conftest*
8648
8649 fi
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8651 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8652
8653 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8654     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8655 else
8656     :
8657 fi
8658
8659 fi
8660
8661
8662
8663
8664
8665
8666   lt_prog_compiler_wl=
8667 lt_prog_compiler_pic=
8668 lt_prog_compiler_static=
8669
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8671 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8672
8673   if test "$GCC" = yes; then
8674     lt_prog_compiler_wl='-Wl,'
8675     lt_prog_compiler_static='-static'
8676
8677     case $host_os in
8678       aix*)
8679       # All AIX code is PIC.
8680       if test "$host_cpu" = ia64; then
8681         # AIX 5 now supports IA64 processor
8682         lt_prog_compiler_static='-Bstatic'
8683       fi
8684       ;;
8685
8686     amigaos*)
8687       case $host_cpu in
8688       powerpc)
8689             # see comment about AmigaOS4 .so support
8690             lt_prog_compiler_pic='-fPIC'
8691         ;;
8692       m68k)
8693             # FIXME: we need at least 68020 code to build shared libraries, but
8694             # adding the `-m68020' flag to GCC prevents building anything better,
8695             # like `-m68040'.
8696             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8697         ;;
8698       esac
8699       ;;
8700
8701     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8702       # PIC is the default for these OSes.
8703       ;;
8704
8705     mingw* | cygwin* | pw32* | os2* | cegcc*)
8706       # This hack is so that the source file can tell whether it is being
8707       # built for inclusion in a dll (and should export symbols for example).
8708       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8709       # (--disable-auto-import) libraries
8710       lt_prog_compiler_pic='-DDLL_EXPORT'
8711       ;;
8712
8713     darwin* | rhapsody*)
8714       # PIC is the default on this platform
8715       # Common symbols not allowed in MH_DYLIB files
8716       lt_prog_compiler_pic='-fno-common'
8717       ;;
8718
8719     haiku*)
8720       # PIC is the default for Haiku.
8721       # The "-static" flag exists, but is broken.
8722       lt_prog_compiler_static=
8723       ;;
8724
8725     hpux*)
8726       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8727       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8728       # sets the default TLS model and affects inlining.
8729       case $host_cpu in
8730       hppa*64*)
8731         # +Z the default
8732         ;;
8733       *)
8734         lt_prog_compiler_pic='-fPIC'
8735         ;;
8736       esac
8737       ;;
8738
8739     interix[3-9]*)
8740       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8741       # Instead, we relocate shared libraries at runtime.
8742       ;;
8743
8744     msdosdjgpp*)
8745       # Just because we use GCC doesn't mean we suddenly get shared libraries
8746       # on systems that don't support them.
8747       lt_prog_compiler_can_build_shared=no
8748       enable_shared=no
8749       ;;
8750
8751     *nto* | *qnx*)
8752       # QNX uses GNU C++, but need to define -shared option too, otherwise
8753       # it will coredump.
8754       lt_prog_compiler_pic='-fPIC -shared'
8755       ;;
8756
8757     sysv4*MP*)
8758       if test -d /usr/nec; then
8759         lt_prog_compiler_pic=-Kconform_pic
8760       fi
8761       ;;
8762
8763     *)
8764       lt_prog_compiler_pic='-fPIC'
8765       ;;
8766     esac
8767
8768     case $cc_basename in
8769     nvcc*) # Cuda Compiler Driver 2.2
8770       lt_prog_compiler_wl='-Xlinker '
8771       lt_prog_compiler_pic='-Xcompiler -fPIC'
8772       ;;
8773     esac
8774   else
8775     # PORTME Check for flag to pass linker flags through the system compiler.
8776     case $host_os in
8777     aix*)
8778       lt_prog_compiler_wl='-Wl,'
8779       if test "$host_cpu" = ia64; then
8780         # AIX 5 now supports IA64 processor
8781         lt_prog_compiler_static='-Bstatic'
8782       else
8783         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8784       fi
8785       ;;
8786
8787     mingw* | cygwin* | pw32* | os2* | cegcc*)
8788       # This hack is so that the source file can tell whether it is being
8789       # built for inclusion in a dll (and should export symbols for example).
8790       lt_prog_compiler_pic='-DDLL_EXPORT'
8791       ;;
8792
8793     hpux9* | hpux10* | hpux11*)
8794       lt_prog_compiler_wl='-Wl,'
8795       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8796       # not for PA HP-UX.
8797       case $host_cpu in
8798       hppa*64*|ia64*)
8799         # +Z the default
8800         ;;
8801       *)
8802         lt_prog_compiler_pic='+Z'
8803         ;;
8804       esac
8805       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8806       lt_prog_compiler_static='${wl}-a ${wl}archive'
8807       ;;
8808
8809     irix5* | irix6* | nonstopux*)
8810       lt_prog_compiler_wl='-Wl,'
8811       # PIC (with -KPIC) is the default.
8812       lt_prog_compiler_static='-non_shared'
8813       ;;
8814
8815     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8816       case $cc_basename in
8817       # old Intel for x86_64 which still supported -KPIC.
8818       ecc*)
8819         lt_prog_compiler_wl='-Wl,'
8820         lt_prog_compiler_pic='-KPIC'
8821         lt_prog_compiler_static='-static'
8822         ;;
8823       # icc used to be incompatible with GCC.
8824       # ICC 10 doesn't accept -KPIC any more.
8825       icc* | ifort*)
8826         lt_prog_compiler_wl='-Wl,'
8827         lt_prog_compiler_pic='-fPIC'
8828         lt_prog_compiler_static='-static'
8829         ;;
8830       # Lahey Fortran 8.1.
8831       lf95*)
8832         lt_prog_compiler_wl='-Wl,'
8833         lt_prog_compiler_pic='--shared'
8834         lt_prog_compiler_static='--static'
8835         ;;
8836       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8837         # Portland Group compilers (*not* the Pentium gcc compiler,
8838         # which looks to be a dead project)
8839         lt_prog_compiler_wl='-Wl,'
8840         lt_prog_compiler_pic='-fpic'
8841         lt_prog_compiler_static='-Bstatic'
8842         ;;
8843       ccc*)
8844         lt_prog_compiler_wl='-Wl,'
8845         # All Alpha code is PIC.
8846         lt_prog_compiler_static='-non_shared'
8847         ;;
8848       xl* | bgxl* | bgf* | mpixl*)
8849         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8850         lt_prog_compiler_wl='-Wl,'
8851         lt_prog_compiler_pic='-qpic'
8852         lt_prog_compiler_static='-qstaticlink'
8853         ;;
8854       *)
8855         case `$CC -V 2>&1 | sed 5q` in
8856         *Sun\ F* | *Sun*Fortran*)
8857           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8858           lt_prog_compiler_pic='-KPIC'
8859           lt_prog_compiler_static='-Bstatic'
8860           lt_prog_compiler_wl=''
8861           ;;
8862         *Sun\ C*)
8863           # Sun C 5.9
8864           lt_prog_compiler_pic='-KPIC'
8865           lt_prog_compiler_static='-Bstatic'
8866           lt_prog_compiler_wl='-Wl,'
8867           ;;
8868         esac
8869         ;;
8870       esac
8871       ;;
8872
8873     newsos6)
8874       lt_prog_compiler_pic='-KPIC'
8875       lt_prog_compiler_static='-Bstatic'
8876       ;;
8877
8878     *nto* | *qnx*)
8879       # QNX uses GNU C++, but need to define -shared option too, otherwise
8880       # it will coredump.
8881       lt_prog_compiler_pic='-fPIC -shared'
8882       ;;
8883
8884     osf3* | osf4* | osf5*)
8885       lt_prog_compiler_wl='-Wl,'
8886       # All OSF/1 code is PIC.
8887       lt_prog_compiler_static='-non_shared'
8888       ;;
8889
8890     rdos*)
8891       lt_prog_compiler_static='-non_shared'
8892       ;;
8893
8894     solaris*)
8895       lt_prog_compiler_pic='-KPIC'
8896       lt_prog_compiler_static='-Bstatic'
8897       case $cc_basename in
8898       f77* | f90* | f95*)
8899         lt_prog_compiler_wl='-Qoption ld ';;
8900       *)
8901         lt_prog_compiler_wl='-Wl,';;
8902       esac
8903       ;;
8904
8905     sunos4*)
8906       lt_prog_compiler_wl='-Qoption ld '
8907       lt_prog_compiler_pic='-PIC'
8908       lt_prog_compiler_static='-Bstatic'
8909       ;;
8910
8911     sysv4 | sysv4.2uw2* | sysv4.3*)
8912       lt_prog_compiler_wl='-Wl,'
8913       lt_prog_compiler_pic='-KPIC'
8914       lt_prog_compiler_static='-Bstatic'
8915       ;;
8916
8917     sysv4*MP*)
8918       if test -d /usr/nec ;then
8919         lt_prog_compiler_pic='-Kconform_pic'
8920         lt_prog_compiler_static='-Bstatic'
8921       fi
8922       ;;
8923
8924     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8925       lt_prog_compiler_wl='-Wl,'
8926       lt_prog_compiler_pic='-KPIC'
8927       lt_prog_compiler_static='-Bstatic'
8928       ;;
8929
8930     unicos*)
8931       lt_prog_compiler_wl='-Wl,'
8932       lt_prog_compiler_can_build_shared=no
8933       ;;
8934
8935     uts4*)
8936       lt_prog_compiler_pic='-pic'
8937       lt_prog_compiler_static='-Bstatic'
8938       ;;
8939
8940     *)
8941       lt_prog_compiler_can_build_shared=no
8942       ;;
8943     esac
8944   fi
8945
8946 case $host_os in
8947   # For platforms which do not support PIC, -DPIC is meaningless:
8948   *djgpp*)
8949     lt_prog_compiler_pic=
8950     ;;
8951   *)
8952     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8953     ;;
8954 esac
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8956 $as_echo "$lt_prog_compiler_pic" >&6; }
8957
8958
8959
8960
8961
8962
8963 #
8964 # Check to make sure the PIC flag actually works.
8965 #
8966 if test -n "$lt_prog_compiler_pic"; then
8967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8968 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8969 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   lt_cv_prog_compiler_pic_works=no
8973    ac_outfile=conftest.$ac_objext
8974    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8975    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8976    # Insert the option either (1) after the last *FLAGS variable, or
8977    # (2) before a word containing "conftest.", or (3) at the end.
8978    # Note that $ac_compile itself does not contain backslashes and begins
8979    # with a dollar sign (not a hyphen), so the echo should work correctly.
8980    # The option is referenced via a variable to avoid confusing sed.
8981    lt_compile=`echo "$ac_compile" | $SED \
8982    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8983    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8984    -e 's:$: $lt_compiler_flag:'`
8985    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8986    (eval "$lt_compile" 2>conftest.err)
8987    ac_status=$?
8988    cat conftest.err >&5
8989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990    if (exit $ac_status) && test -s "$ac_outfile"; then
8991      # The compiler can only warn and ignore the option if not recognized
8992      # So say no if there are warnings other than the usual output.
8993      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8994      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8995      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8996        lt_cv_prog_compiler_pic_works=yes
8997      fi
8998    fi
8999    $RM conftest*
9000
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9003 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9004
9005 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9006     case $lt_prog_compiler_pic in
9007      "" | " "*) ;;
9008      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9009      esac
9010 else
9011     lt_prog_compiler_pic=
9012      lt_prog_compiler_can_build_shared=no
9013 fi
9014
9015 fi
9016
9017
9018
9019
9020
9021
9022 #
9023 # Check to make sure the static flag actually works.
9024 #
9025 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9027 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9028 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   lt_cv_prog_compiler_static_works=no
9032    save_LDFLAGS="$LDFLAGS"
9033    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9034    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9035    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9036      # The linker can only warn and ignore the option if not recognized
9037      # So say no if there are warnings
9038      if test -s conftest.err; then
9039        # Append any errors to the config.log.
9040        cat conftest.err 1>&5
9041        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9042        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9043        if diff conftest.exp conftest.er2 >/dev/null; then
9044          lt_cv_prog_compiler_static_works=yes
9045        fi
9046      else
9047        lt_cv_prog_compiler_static_works=yes
9048      fi
9049    fi
9050    $RM -r conftest*
9051    LDFLAGS="$save_LDFLAGS"
9052
9053 fi
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9055 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9056
9057 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9058     :
9059 else
9060     lt_prog_compiler_static=
9061 fi
9062
9063
9064
9065
9066
9067
9068
9069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9071 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9072   $as_echo_n "(cached) " >&6
9073 else
9074   lt_cv_prog_compiler_c_o=no
9075    $RM -r conftest 2>/dev/null
9076    mkdir conftest
9077    cd conftest
9078    mkdir out
9079    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9080
9081    lt_compiler_flag="-o out/conftest2.$ac_objext"
9082    # Insert the option either (1) after the last *FLAGS variable, or
9083    # (2) before a word containing "conftest.", or (3) at the end.
9084    # Note that $ac_compile itself does not contain backslashes and begins
9085    # with a dollar sign (not a hyphen), so the echo should work correctly.
9086    lt_compile=`echo "$ac_compile" | $SED \
9087    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9088    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9089    -e 's:$: $lt_compiler_flag:'`
9090    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9091    (eval "$lt_compile" 2>out/conftest.err)
9092    ac_status=$?
9093    cat out/conftest.err >&5
9094    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9096    then
9097      # The compiler can only warn and ignore the option if not recognized
9098      # So say no if there are warnings
9099      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9100      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9101      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9102        lt_cv_prog_compiler_c_o=yes
9103      fi
9104    fi
9105    chmod u+w . 2>&5
9106    $RM conftest*
9107    # SGI C++ compiler will create directory out/ii_files/ for
9108    # template instantiation
9109    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9110    $RM out/* && rmdir out
9111    cd ..
9112    $RM -r conftest
9113    $RM conftest*
9114
9115 fi
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9117 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9118
9119
9120
9121
9122
9123
9124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9125 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9126 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9127   $as_echo_n "(cached) " >&6
9128 else
9129   lt_cv_prog_compiler_c_o=no
9130    $RM -r conftest 2>/dev/null
9131    mkdir conftest
9132    cd conftest
9133    mkdir out
9134    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9135
9136    lt_compiler_flag="-o out/conftest2.$ac_objext"
9137    # Insert the option either (1) after the last *FLAGS variable, or
9138    # (2) before a word containing "conftest.", or (3) at the end.
9139    # Note that $ac_compile itself does not contain backslashes and begins
9140    # with a dollar sign (not a hyphen), so the echo should work correctly.
9141    lt_compile=`echo "$ac_compile" | $SED \
9142    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9144    -e 's:$: $lt_compiler_flag:'`
9145    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9146    (eval "$lt_compile" 2>out/conftest.err)
9147    ac_status=$?
9148    cat out/conftest.err >&5
9149    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9151    then
9152      # The compiler can only warn and ignore the option if not recognized
9153      # So say no if there are warnings
9154      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9155      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9156      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9157        lt_cv_prog_compiler_c_o=yes
9158      fi
9159    fi
9160    chmod u+w . 2>&5
9161    $RM conftest*
9162    # SGI C++ compiler will create directory out/ii_files/ for
9163    # template instantiation
9164    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9165    $RM out/* && rmdir out
9166    cd ..
9167    $RM -r conftest
9168    $RM conftest*
9169
9170 fi
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9172 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9173
9174
9175
9176
9177 hard_links="nottested"
9178 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9179   # do not overwrite the value of need_locks provided by the user
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9181 $as_echo_n "checking if we can lock with hard links... " >&6; }
9182   hard_links=yes
9183   $RM conftest*
9184   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9185   touch conftest.a
9186   ln conftest.a conftest.b 2>&5 || hard_links=no
9187   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9189 $as_echo "$hard_links" >&6; }
9190   if test "$hard_links" = no; then
9191     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9192 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9193     need_locks=warn
9194   fi
9195 else
9196   need_locks=no
9197 fi
9198
9199
9200
9201
9202
9203
9204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9205 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9206
9207   runpath_var=
9208   allow_undefined_flag=
9209   always_export_symbols=no
9210   archive_cmds=
9211   archive_expsym_cmds=
9212   compiler_needs_object=no
9213   enable_shared_with_static_runtimes=no
9214   export_dynamic_flag_spec=
9215   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9216   hardcode_automatic=no
9217   hardcode_direct=no
9218   hardcode_direct_absolute=no
9219   hardcode_libdir_flag_spec=
9220   hardcode_libdir_flag_spec_ld=
9221   hardcode_libdir_separator=
9222   hardcode_minus_L=no
9223   hardcode_shlibpath_var=unsupported
9224   inherit_rpath=no
9225   link_all_deplibs=unknown
9226   module_cmds=
9227   module_expsym_cmds=
9228   old_archive_from_new_cmds=
9229   old_archive_from_expsyms_cmds=
9230   thread_safe_flag_spec=
9231   whole_archive_flag_spec=
9232   # include_expsyms should be a list of space-separated symbols to be *always*
9233   # included in the symbol list
9234   include_expsyms=
9235   # exclude_expsyms can be an extended regexp of symbols to exclude
9236   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9237   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9238   # as well as any symbol that contains `d'.
9239   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9240   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9241   # platforms (ab)use it in PIC code, but their linkers get confused if
9242   # the symbol is explicitly referenced.  Since portable code cannot
9243   # rely on this symbol name, it's probably fine to never include it in
9244   # preloaded symbol tables.
9245   # Exclude shared library initialization/finalization symbols.
9246   extract_expsyms_cmds=
9247
9248   case $host_os in
9249   cygwin* | mingw* | pw32* | cegcc*)
9250     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9251     # When not using gcc, we currently assume that we are using
9252     # Microsoft Visual C++.
9253     if test "$GCC" != yes; then
9254       with_gnu_ld=no
9255     fi
9256     ;;
9257   interix*)
9258     # we just hope/assume this is gcc and not c89 (= MSVC++)
9259     with_gnu_ld=yes
9260     ;;
9261   openbsd*)
9262     with_gnu_ld=no
9263     ;;
9264   esac
9265
9266   ld_shlibs=yes
9267
9268   # On some targets, GNU ld is compatible enough with the native linker
9269   # that we're better off using the native interface for both.
9270   lt_use_gnu_ld_interface=no
9271   if test "$with_gnu_ld" = yes; then
9272     case $host_os in
9273       aix*)
9274         # The AIX port of GNU ld has always aspired to compatibility
9275         # with the native linker.  However, as the warning in the GNU ld
9276         # block says, versions before 2.19.5* couldn't really create working
9277         # shared libraries, regardless of the interface used.
9278         case `$LD -v 2>&1` in
9279           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9280           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9281           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9282           *)
9283             lt_use_gnu_ld_interface=yes
9284             ;;
9285         esac
9286         ;;
9287       *)
9288         lt_use_gnu_ld_interface=yes
9289         ;;
9290     esac
9291   fi
9292
9293   if test "$lt_use_gnu_ld_interface" = yes; then
9294     # If archive_cmds runs LD, not CC, wlarc should be empty
9295     wlarc='${wl}'
9296
9297     # Set some defaults for GNU ld with shared library support. These
9298     # are reset later if shared libraries are not supported. Putting them
9299     # here allows them to be overridden if necessary.
9300     runpath_var=LD_RUN_PATH
9301     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9302     export_dynamic_flag_spec='${wl}--export-dynamic'
9303     # ancient GNU ld didn't support --whole-archive et. al.
9304     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9305       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9306     else
9307       whole_archive_flag_spec=
9308     fi
9309     supports_anon_versioning=no
9310     case `$LD -v 2>&1` in
9311       *GNU\ gold*) supports_anon_versioning=yes ;;
9312       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9313       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9314       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9315       *\ 2.11.*) ;; # other 2.11 versions
9316       *) supports_anon_versioning=yes ;;
9317     esac
9318
9319     # See if GNU ld supports shared libraries.
9320     case $host_os in
9321     aix[3-9]*)
9322       # On AIX/PPC, the GNU linker is very broken
9323       if test "$host_cpu" != ia64; then
9324         ld_shlibs=no
9325         cat <<_LT_EOF 1>&2
9326
9327 *** Warning: the GNU linker, at least up to release 2.19, is reported
9328 *** to be unable to reliably create shared libraries on AIX.
9329 *** Therefore, libtool is disabling shared libraries support.  If you
9330 *** really care for shared libraries, you may want to install binutils
9331 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9332 *** You will then need to restart the configuration process.
9333
9334 _LT_EOF
9335       fi
9336       ;;
9337
9338     amigaos*)
9339       case $host_cpu in
9340       powerpc)
9341             # see comment about AmigaOS4 .so support
9342             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343             archive_expsym_cmds=''
9344         ;;
9345       m68k)
9346             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)'
9347             hardcode_libdir_flag_spec='-L$libdir'
9348             hardcode_minus_L=yes
9349         ;;
9350       esac
9351       ;;
9352
9353     beos*)
9354       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9355         allow_undefined_flag=unsupported
9356         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9357         # support --undefined.  This deserves some investigation.  FIXME
9358         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359       else
9360         ld_shlibs=no
9361       fi
9362       ;;
9363
9364     cygwin* | mingw* | pw32* | cegcc*)
9365       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9366       # as there is no search path for DLLs.
9367       hardcode_libdir_flag_spec='-L$libdir'
9368       export_dynamic_flag_spec='${wl}--export-all-symbols'
9369       allow_undefined_flag=unsupported
9370       always_export_symbols=no
9371       enable_shared_with_static_runtimes=yes
9372       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9373
9374       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9375         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9376         # If the export-symbols file already is a .def file (1st line
9377         # is EXPORTS), use it as is; otherwise, prepend...
9378         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9379           cp $export_symbols $output_objdir/$soname.def;
9380         else
9381           echo EXPORTS > $output_objdir/$soname.def;
9382           cat $export_symbols >> $output_objdir/$soname.def;
9383         fi~
9384         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9385       else
9386         ld_shlibs=no
9387       fi
9388       ;;
9389
9390     haiku*)
9391       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392       link_all_deplibs=yes
9393       ;;
9394
9395     interix[3-9]*)
9396       hardcode_direct=no
9397       hardcode_shlibpath_var=no
9398       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9399       export_dynamic_flag_spec='${wl}-E'
9400       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9401       # Instead, shared libraries are loaded at an image base (0x10000000 by
9402       # default) and relocated if they conflict, which is a slow very memory
9403       # consuming and fragmenting process.  To avoid this, we pick a random,
9404       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9405       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9406       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9407       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'
9408       ;;
9409
9410     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9411       tmp_diet=no
9412       if test "$host_os" = linux-dietlibc; then
9413         case $cc_basename in
9414           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9415         esac
9416       fi
9417       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9418          && test "$tmp_diet" = no
9419       then
9420         tmp_addflag=
9421         tmp_sharedflag='-shared'
9422         case $cc_basename,$host_cpu in
9423         pgcc*)                          # Portland Group C compiler
9424           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'
9425           tmp_addflag=' $pic_flag'
9426           ;;
9427         pgf77* | pgf90* | pgf95* | pgfortran*)
9428                                         # Portland Group f77 and f90 compilers
9429           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'
9430           tmp_addflag=' $pic_flag -Mnomain' ;;
9431         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9432           tmp_addflag=' -i_dynamic' ;;
9433         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9434           tmp_addflag=' -i_dynamic -nofor_main' ;;
9435         ifc* | ifort*)                  # Intel Fortran compiler
9436           tmp_addflag=' -nofor_main' ;;
9437         lf95*)                          # Lahey Fortran 8.1
9438           whole_archive_flag_spec=
9439           tmp_sharedflag='--shared' ;;
9440         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9441           tmp_sharedflag='-qmkshrobj'
9442           tmp_addflag= ;;
9443         nvcc*)  # Cuda Compiler Driver 2.2
9444           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'
9445           compiler_needs_object=yes
9446           ;;
9447         esac
9448         case `$CC -V 2>&1 | sed 5q` in
9449         *Sun\ C*)                       # Sun C 5.9
9450           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'
9451           compiler_needs_object=yes
9452           tmp_sharedflag='-G' ;;
9453         *Sun\ F*)                       # Sun Fortran 8.3
9454           tmp_sharedflag='-G' ;;
9455         esac
9456         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9457
9458         if test "x$supports_anon_versioning" = xyes; then
9459           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9460             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9461             echo "local: *; };" >> $output_objdir/$libname.ver~
9462             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9463         fi
9464
9465         case $cc_basename in
9466         xlf* | bgf* | bgxlf* | mpixlf*)
9467           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9468           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9469           hardcode_libdir_flag_spec=
9470           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9471           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9472           if test "x$supports_anon_versioning" = xyes; then
9473             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9474               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9475               echo "local: *; };" >> $output_objdir/$libname.ver~
9476               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9477           fi
9478           ;;
9479         esac
9480       else
9481         ld_shlibs=no
9482       fi
9483       ;;
9484
9485     netbsd*)
9486       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9487         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9488         wlarc=
9489       else
9490         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9491         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9492       fi
9493       ;;
9494
9495     solaris*)
9496       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9497         ld_shlibs=no
9498         cat <<_LT_EOF 1>&2
9499
9500 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9501 *** create shared libraries on Solaris systems.  Therefore, libtool
9502 *** is disabling shared libraries support.  We urge you to upgrade GNU
9503 *** binutils to release 2.9.1 or newer.  Another option is to modify
9504 *** your PATH or compiler configuration so that the native linker is
9505 *** used, and then restart.
9506
9507 _LT_EOF
9508       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9511       else
9512         ld_shlibs=no
9513       fi
9514       ;;
9515
9516     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9517       case `$LD -v 2>&1` in
9518         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9519         ld_shlibs=no
9520         cat <<_LT_EOF 1>&2
9521
9522 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9523 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9524 *** is disabling shared libraries support.  We urge you to upgrade GNU
9525 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9526 *** your PATH or compiler configuration so that the native linker is
9527 *** used, and then restart.
9528
9529 _LT_EOF
9530         ;;
9531         *)
9532           # For security reasons, it is highly recommended that you always
9533           # use absolute paths for naming shared libraries, and exclude the
9534           # DT_RUNPATH tag from executables and libraries.  But doing so
9535           # requires that you compile everything twice, which is a pain.
9536           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9537             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9539             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9540           else
9541             ld_shlibs=no
9542           fi
9543         ;;
9544       esac
9545       ;;
9546
9547     sunos4*)
9548       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9549       wlarc=
9550       hardcode_direct=yes
9551       hardcode_shlibpath_var=no
9552       ;;
9553
9554     *)
9555       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9556         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9558       else
9559         ld_shlibs=no
9560       fi
9561       ;;
9562     esac
9563
9564     if test "$ld_shlibs" = no; then
9565       runpath_var=
9566       hardcode_libdir_flag_spec=
9567       export_dynamic_flag_spec=
9568       whole_archive_flag_spec=
9569     fi
9570   else
9571     # PORTME fill in a description of your system's linker (not GNU ld)
9572     case $host_os in
9573     aix3*)
9574       allow_undefined_flag=unsupported
9575       always_export_symbols=yes
9576       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'
9577       # Note: this linker hardcodes the directories in LIBPATH if there
9578       # are no directories specified by -L.
9579       hardcode_minus_L=yes
9580       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9581         # Neither direct hardcoding nor static linking is supported with a
9582         # broken collect2.
9583         hardcode_direct=unsupported
9584       fi
9585       ;;
9586
9587     aix[4-9]*)
9588       if test "$host_cpu" = ia64; then
9589         # On IA64, the linker does run time linking by default, so we don't
9590         # have to do anything special.
9591         aix_use_runtimelinking=no
9592         exp_sym_flag='-Bexport'
9593         no_entry_flag=""
9594       else
9595         # If we're using GNU nm, then we don't want the "-C" option.
9596         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9597         # Also, AIX nm treats weak defined symbols like other global
9598         # defined symbols, whereas GNU nm marks them as "W".
9599         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9600           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'
9601         else
9602           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'
9603         fi
9604         aix_use_runtimelinking=no
9605
9606         # Test if we are trying to use run time linking or normal
9607         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608         # need to do runtime linking.
9609         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9610           for ld_flag in $LDFLAGS; do
9611           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9612             aix_use_runtimelinking=yes
9613             break
9614           fi
9615           done
9616           ;;
9617         esac
9618
9619         exp_sym_flag='-bexport'
9620         no_entry_flag='-bnoentry'
9621       fi
9622
9623       # When large executables or shared objects are built, AIX ld can
9624       # have problems creating the table of contents.  If linking a library
9625       # or program results in "error TOC overflow" add -mminimal-toc to
9626       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9627       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9628
9629       archive_cmds=''
9630       hardcode_direct=yes
9631       hardcode_direct_absolute=yes
9632       hardcode_libdir_separator=':'
9633       link_all_deplibs=yes
9634       file_list_spec='${wl}-f,'
9635
9636       if test "$GCC" = yes; then
9637         case $host_os in aix4.[012]|aix4.[012].*)
9638         # We only want to do this on AIX 4.2 and lower, the check
9639         # below for broken collect2 doesn't work under 4.3+
9640           collect2name=`${CC} -print-prog-name=collect2`
9641           if test -f "$collect2name" &&
9642            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9643           then
9644           # We have reworked collect2
9645           :
9646           else
9647           # We have old collect2
9648           hardcode_direct=unsupported
9649           # It fails to find uninstalled libraries when the uninstalled
9650           # path is not listed in the libpath.  Setting hardcode_minus_L
9651           # to unsupported forces relinking
9652           hardcode_minus_L=yes
9653           hardcode_libdir_flag_spec='-L$libdir'
9654           hardcode_libdir_separator=
9655           fi
9656           ;;
9657         esac
9658         shared_flag='-shared'
9659         if test "$aix_use_runtimelinking" = yes; then
9660           shared_flag="$shared_flag "'${wl}-G'
9661         fi
9662       else
9663         # not using gcc
9664         if test "$host_cpu" = ia64; then
9665         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9666         # chokes on -Wl,-G. The following line is correct:
9667           shared_flag='-G'
9668         else
9669           if test "$aix_use_runtimelinking" = yes; then
9670             shared_flag='${wl}-G'
9671           else
9672             shared_flag='${wl}-bM:SRE'
9673           fi
9674         fi
9675       fi
9676
9677       export_dynamic_flag_spec='${wl}-bexpall'
9678       # It seems that -bexpall does not export symbols beginning with
9679       # underscore (_), so it is better to generate a list of symbols to export.
9680       always_export_symbols=yes
9681       if test "$aix_use_runtimelinking" = yes; then
9682         # Warning - without using the other runtime loading flags (-brtl),
9683         # -berok will link without error, but may produce a broken library.
9684         allow_undefined_flag='-berok'
9685         # Determine the default libpath from the value encoded in an
9686         # empty executable.
9687         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h.  */
9689
9690 int
9691 main ()
9692 {
9693
9694   ;
9695   return 0;
9696 }
9697 _ACEOF
9698 if ac_fn_c_try_link "$LINENO"; then :
9699
9700 lt_aix_libpath_sed='
9701     /Import File Strings/,/^$/ {
9702         /^0/ {
9703             s/^0  *\(.*\)$/\1/
9704             p
9705         }
9706     }'
9707 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9708 # Check for a 64-bit object if we didn't find anything.
9709 if test -z "$aix_libpath"; then
9710   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9711 fi
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext \
9714     conftest$ac_exeext conftest.$ac_ext
9715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9716
9717         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9718         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"
9719       else
9720         if test "$host_cpu" = ia64; then
9721           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9722           allow_undefined_flag="-z nodefs"
9723           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"
9724         else
9725          # Determine the default libpath from the value encoded in an
9726          # empty executable.
9727          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729
9730 int
9731 main ()
9732 {
9733
9734   ;
9735   return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"; then :
9739
9740 lt_aix_libpath_sed='
9741     /Import File Strings/,/^$/ {
9742         /^0/ {
9743             s/^0  *\(.*\)$/\1/
9744             p
9745         }
9746     }'
9747 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9748 # Check for a 64-bit object if we didn't find anything.
9749 if test -z "$aix_libpath"; then
9750   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9751 fi
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext \
9754     conftest$ac_exeext conftest.$ac_ext
9755 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9756
9757          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9758           # Warning - without using the other run time loading flags,
9759           # -berok will link without error, but may produce a broken library.
9760           no_undefined_flag=' ${wl}-bernotok'
9761           allow_undefined_flag=' ${wl}-berok'
9762           if test "$with_gnu_ld" = yes; then
9763             # We only use this code for GNU lds that support --whole-archive.
9764             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9765           else
9766             # Exported symbols can be pulled into shared objects from archives
9767             whole_archive_flag_spec='$convenience'
9768           fi
9769           archive_cmds_need_lc=yes
9770           # This is similar to how AIX traditionally builds its shared libraries.
9771           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'
9772         fi
9773       fi
9774       ;;
9775
9776     amigaos*)
9777       case $host_cpu in
9778       powerpc)
9779             # see comment about AmigaOS4 .so support
9780             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9781             archive_expsym_cmds=''
9782         ;;
9783       m68k)
9784             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)'
9785             hardcode_libdir_flag_spec='-L$libdir'
9786             hardcode_minus_L=yes
9787         ;;
9788       esac
9789       ;;
9790
9791     bsdi[45]*)
9792       export_dynamic_flag_spec=-rdynamic
9793       ;;
9794
9795     cygwin* | mingw* | pw32* | cegcc*)
9796       # When not using gcc, we currently assume that we are using
9797       # Microsoft Visual C++.
9798       # hardcode_libdir_flag_spec is actually meaningless, as there is
9799       # no search path for DLLs.
9800       hardcode_libdir_flag_spec=' '
9801       allow_undefined_flag=unsupported
9802       # Tell ltmain to make .lib files, not .a files.
9803       libext=lib
9804       # Tell ltmain to make .dll files, not .so files.
9805       shrext_cmds=".dll"
9806       # FIXME: Setting linknames here is a bad hack.
9807       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9808       # The linker will automatically build a .lib file if we build a DLL.
9809       old_archive_from_new_cmds='true'
9810       # FIXME: Should let the user specify the lib program.
9811       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9812       fix_srcfile_path='`cygpath -w "$srcfile"`'
9813       enable_shared_with_static_runtimes=yes
9814       ;;
9815
9816     darwin* | rhapsody*)
9817
9818
9819   archive_cmds_need_lc=no
9820   hardcode_direct=no
9821   hardcode_automatic=yes
9822   hardcode_shlibpath_var=unsupported
9823   if test "$lt_cv_ld_force_load" = "yes"; then
9824     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\"`'
9825   else
9826     whole_archive_flag_spec=''
9827   fi
9828   link_all_deplibs=yes
9829   allow_undefined_flag="$_lt_dar_allow_undefined"
9830   case $cc_basename in
9831      ifort*) _lt_dar_can_shared=yes ;;
9832      *) _lt_dar_can_shared=$GCC ;;
9833   esac
9834   if test "$_lt_dar_can_shared" = "yes"; then
9835     output_verbose_link_cmd=func_echo_all
9836     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9837     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9838     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}"
9839     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}"
9840
9841   else
9842   ld_shlibs=no
9843   fi
9844
9845       ;;
9846
9847     dgux*)
9848       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9849       hardcode_libdir_flag_spec='-L$libdir'
9850       hardcode_shlibpath_var=no
9851       ;;
9852
9853     freebsd1*)
9854       ld_shlibs=no
9855       ;;
9856
9857     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9858     # support.  Future versions do this automatically, but an explicit c++rt0.o
9859     # does not break anything, and helps significantly (at the cost of a little
9860     # extra space).
9861     freebsd2.2*)
9862       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9863       hardcode_libdir_flag_spec='-R$libdir'
9864       hardcode_direct=yes
9865       hardcode_shlibpath_var=no
9866       ;;
9867
9868     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9869     freebsd2*)
9870       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9871       hardcode_direct=yes
9872       hardcode_minus_L=yes
9873       hardcode_shlibpath_var=no
9874       ;;
9875
9876     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9877     freebsd* | dragonfly*)
9878       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9879       hardcode_libdir_flag_spec='-R$libdir'
9880       hardcode_direct=yes
9881       hardcode_shlibpath_var=no
9882       ;;
9883
9884     hpux9*)
9885       if test "$GCC" = yes; then
9886         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'
9887       else
9888         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'
9889       fi
9890       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9891       hardcode_libdir_separator=:
9892       hardcode_direct=yes
9893
9894       # hardcode_minus_L: Not really in the search PATH,
9895       # but as the default location of the library.
9896       hardcode_minus_L=yes
9897       export_dynamic_flag_spec='${wl}-E'
9898       ;;
9899
9900     hpux10*)
9901       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9902         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9903       else
9904         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9905       fi
9906       if test "$with_gnu_ld" = no; then
9907         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9908         hardcode_libdir_flag_spec_ld='+b $libdir'
9909         hardcode_libdir_separator=:
9910         hardcode_direct=yes
9911         hardcode_direct_absolute=yes
9912         export_dynamic_flag_spec='${wl}-E'
9913         # hardcode_minus_L: Not really in the search PATH,
9914         # but as the default location of the library.
9915         hardcode_minus_L=yes
9916       fi
9917       ;;
9918
9919     hpux11*)
9920       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9921         case $host_cpu in
9922         hppa*64*)
9923           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9924           ;;
9925         ia64*)
9926           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9927           ;;
9928         *)
9929           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9930           ;;
9931         esac
9932       else
9933         case $host_cpu in
9934         hppa*64*)
9935           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9936           ;;
9937         ia64*)
9938           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9939           ;;
9940         *)
9941
9942           # Older versions of the 11.00 compiler do not understand -b yet
9943           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9944           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9945 $as_echo_n "checking if $CC understands -b... " >&6; }
9946 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9947   $as_echo_n "(cached) " >&6
9948 else
9949   lt_cv_prog_compiler__b=no
9950    save_LDFLAGS="$LDFLAGS"
9951    LDFLAGS="$LDFLAGS -b"
9952    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9953    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9954      # The linker can only warn and ignore the option if not recognized
9955      # So say no if there are warnings
9956      if test -s conftest.err; then
9957        # Append any errors to the config.log.
9958        cat conftest.err 1>&5
9959        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9960        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9961        if diff conftest.exp conftest.er2 >/dev/null; then
9962          lt_cv_prog_compiler__b=yes
9963        fi
9964      else
9965        lt_cv_prog_compiler__b=yes
9966      fi
9967    fi
9968    $RM -r conftest*
9969    LDFLAGS="$save_LDFLAGS"
9970
9971 fi
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9973 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9974
9975 if test x"$lt_cv_prog_compiler__b" = xyes; then
9976     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9977 else
9978     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9979 fi
9980
9981           ;;
9982         esac
9983       fi
9984       if test "$with_gnu_ld" = no; then
9985         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9986         hardcode_libdir_separator=:
9987
9988         case $host_cpu in
9989         hppa*64*|ia64*)
9990           hardcode_direct=no
9991           hardcode_shlibpath_var=no
9992           ;;
9993         *)
9994           hardcode_direct=yes
9995           hardcode_direct_absolute=yes
9996           export_dynamic_flag_spec='${wl}-E'
9997
9998           # hardcode_minus_L: Not really in the search PATH,
9999           # but as the default location of the library.
10000           hardcode_minus_L=yes
10001           ;;
10002         esac
10003       fi
10004       ;;
10005
10006     irix5* | irix6* | nonstopux*)
10007       if test "$GCC" = yes; then
10008         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'
10009         # Try to use the -exported_symbol ld option, if it does not
10010         # work, assume that -exports_file does not work either and
10011         # implicitly export all symbols.
10012         save_LDFLAGS="$LDFLAGS"
10013         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10014         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015 /* end confdefs.h.  */
10016 int foo(void) {}
10017 _ACEOF
10018 if ac_fn_c_try_link "$LINENO"; then :
10019   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'
10020
10021 fi
10022 rm -f core conftest.err conftest.$ac_objext \
10023     conftest$ac_exeext conftest.$ac_ext
10024         LDFLAGS="$save_LDFLAGS"
10025       else
10026         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'
10027         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'
10028       fi
10029       archive_cmds_need_lc='no'
10030       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10031       hardcode_libdir_separator=:
10032       inherit_rpath=yes
10033       link_all_deplibs=yes
10034       ;;
10035
10036     netbsd*)
10037       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10038         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10039       else
10040         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10041       fi
10042       hardcode_libdir_flag_spec='-R$libdir'
10043       hardcode_direct=yes
10044       hardcode_shlibpath_var=no
10045       ;;
10046
10047     newsos6)
10048       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049       hardcode_direct=yes
10050       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10051       hardcode_libdir_separator=:
10052       hardcode_shlibpath_var=no
10053       ;;
10054
10055     *nto* | *qnx*)
10056       ;;
10057
10058     openbsd*)
10059       if test -f /usr/libexec/ld.so; then
10060         hardcode_direct=yes
10061         hardcode_shlibpath_var=no
10062         hardcode_direct_absolute=yes
10063         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10064           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10065           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10066           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10067           export_dynamic_flag_spec='${wl}-E'
10068         else
10069           case $host_os in
10070            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10071              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10072              hardcode_libdir_flag_spec='-R$libdir'
10073              ;;
10074            *)
10075              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10076              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10077              ;;
10078           esac
10079         fi
10080       else
10081         ld_shlibs=no
10082       fi
10083       ;;
10084
10085     os2*)
10086       hardcode_libdir_flag_spec='-L$libdir'
10087       hardcode_minus_L=yes
10088       allow_undefined_flag=unsupported
10089       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'
10090       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10091       ;;
10092
10093     osf3*)
10094       if test "$GCC" = yes; then
10095         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10096         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'
10097       else
10098         allow_undefined_flag=' -expect_unresolved \*'
10099         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'
10100       fi
10101       archive_cmds_need_lc='no'
10102       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103       hardcode_libdir_separator=:
10104       ;;
10105
10106     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10107       if test "$GCC" = yes; then
10108         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10109         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'
10110         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10111       else
10112         allow_undefined_flag=' -expect_unresolved \*'
10113         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'
10114         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~
10115         $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'
10116
10117         # Both c and cxx compiler support -rpath directly
10118         hardcode_libdir_flag_spec='-rpath $libdir'
10119       fi
10120       archive_cmds_need_lc='no'
10121       hardcode_libdir_separator=:
10122       ;;
10123
10124     solaris*)
10125       no_undefined_flag=' -z defs'
10126       if test "$GCC" = yes; then
10127         wlarc='${wl}'
10128         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10129         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10130           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10131       else
10132         case `$CC -V 2>&1` in
10133         *"Compilers 5.0"*)
10134           wlarc=''
10135           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10137           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10138           ;;
10139         *)
10140           wlarc='${wl}'
10141           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10142           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10143           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10144           ;;
10145         esac
10146       fi
10147       hardcode_libdir_flag_spec='-R$libdir'
10148       hardcode_shlibpath_var=no
10149       case $host_os in
10150       solaris2.[0-5] | solaris2.[0-5].*) ;;
10151       *)
10152         # The compiler driver will combine and reorder linker options,
10153         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10154         # but is careful enough not to reorder.
10155         # Supported since Solaris 2.6 (maybe 2.5.1?)
10156         if test "$GCC" = yes; then
10157           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10158         else
10159           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10160         fi
10161         ;;
10162       esac
10163       link_all_deplibs=yes
10164       ;;
10165
10166     sunos4*)
10167       if test "x$host_vendor" = xsequent; then
10168         # Use $CC to link under sequent, because it throws in some extra .o
10169         # files that make .init and .fini sections work.
10170         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10171       else
10172         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10173       fi
10174       hardcode_libdir_flag_spec='-L$libdir'
10175       hardcode_direct=yes
10176       hardcode_minus_L=yes
10177       hardcode_shlibpath_var=no
10178       ;;
10179
10180     sysv4)
10181       case $host_vendor in
10182         sni)
10183           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184           hardcode_direct=yes # is this really true???
10185         ;;
10186         siemens)
10187           ## LD is ld it makes a PLAMLIB
10188           ## CC just makes a GrossModule.
10189           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10190           reload_cmds='$CC -r -o $output$reload_objs'
10191           hardcode_direct=no
10192         ;;
10193         motorola)
10194           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10195           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10196         ;;
10197       esac
10198       runpath_var='LD_RUN_PATH'
10199       hardcode_shlibpath_var=no
10200       ;;
10201
10202     sysv4.3*)
10203       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10204       hardcode_shlibpath_var=no
10205       export_dynamic_flag_spec='-Bexport'
10206       ;;
10207
10208     sysv4*MP*)
10209       if test -d /usr/nec; then
10210         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10211         hardcode_shlibpath_var=no
10212         runpath_var=LD_RUN_PATH
10213         hardcode_runpath_var=yes
10214         ld_shlibs=yes
10215       fi
10216       ;;
10217
10218     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10219       no_undefined_flag='${wl}-z,text'
10220       archive_cmds_need_lc=no
10221       hardcode_shlibpath_var=no
10222       runpath_var='LD_RUN_PATH'
10223
10224       if test "$GCC" = yes; then
10225         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10226         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10227       else
10228         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10229         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10230       fi
10231       ;;
10232
10233     sysv5* | sco3.2v5* | sco5v6*)
10234       # Note: We can NOT use -z defs as we might desire, because we do not
10235       # link with -lc, and that would cause any symbols used from libc to
10236       # always be unresolved, which means just about no library would
10237       # ever link correctly.  If we're not using GNU ld we use -z text
10238       # though, which does catch some bad symbols but isn't as heavy-handed
10239       # as -z defs.
10240       no_undefined_flag='${wl}-z,text'
10241       allow_undefined_flag='${wl}-z,nodefs'
10242       archive_cmds_need_lc=no
10243       hardcode_shlibpath_var=no
10244       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10245       hardcode_libdir_separator=':'
10246       link_all_deplibs=yes
10247       export_dynamic_flag_spec='${wl}-Bexport'
10248       runpath_var='LD_RUN_PATH'
10249
10250       if test "$GCC" = yes; then
10251         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10252         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10253       else
10254         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10255         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10256       fi
10257       ;;
10258
10259     uts4*)
10260       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10261       hardcode_libdir_flag_spec='-L$libdir'
10262       hardcode_shlibpath_var=no
10263       ;;
10264
10265     *)
10266       ld_shlibs=no
10267       ;;
10268     esac
10269
10270     if test x$host_vendor = xsni; then
10271       case $host in
10272       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10273         export_dynamic_flag_spec='${wl}-Blargedynsym'
10274         ;;
10275       esac
10276     fi
10277   fi
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10280 $as_echo "$ld_shlibs" >&6; }
10281 test "$ld_shlibs" = no && can_build_shared=no
10282
10283 with_gnu_ld=$with_gnu_ld
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299 #
10300 # Do we need to explicitly link libc?
10301 #
10302 case "x$archive_cmds_need_lc" in
10303 x|xyes)
10304   # Assume -lc should be added
10305   archive_cmds_need_lc=yes
10306
10307   if test "$enable_shared" = yes && test "$GCC" = yes; then
10308     case $archive_cmds in
10309     *'~'*)
10310       # FIXME: we may have to deal with multi-command sequences.
10311       ;;
10312     '$CC '*)
10313       # Test whether the compiler implicitly links with -lc since on some
10314       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10315       # to ld, don't add -lc before -lgcc.
10316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10317 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10318 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10319   $as_echo_n "(cached) " >&6
10320 else
10321   $RM conftest*
10322         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10323
10324         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10325   (eval $ac_compile) 2>&5
10326   ac_status=$?
10327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328   test $ac_status = 0; } 2>conftest.err; then
10329           soname=conftest
10330           lib=conftest
10331           libobjs=conftest.$ac_objext
10332           deplibs=
10333           wl=$lt_prog_compiler_wl
10334           pic_flag=$lt_prog_compiler_pic
10335           compiler_flags=-v
10336           linker_flags=-v
10337           verstring=
10338           output_objdir=.
10339           libname=conftest
10340           lt_save_allow_undefined_flag=$allow_undefined_flag
10341           allow_undefined_flag=
10342           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10343   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10344   ac_status=$?
10345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10346   test $ac_status = 0; }
10347           then
10348             lt_cv_archive_cmds_need_lc=no
10349           else
10350             lt_cv_archive_cmds_need_lc=yes
10351           fi
10352           allow_undefined_flag=$lt_save_allow_undefined_flag
10353         else
10354           cat conftest.err 1>&5
10355         fi
10356         $RM conftest*
10357
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10360 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10361       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10362       ;;
10363     esac
10364   fi
10365   ;;
10366 esac
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10525 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10526
10527 if test "$GCC" = yes; then
10528   case $host_os in
10529     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10530     *) lt_awk_arg="/^libraries:/" ;;
10531   esac
10532   case $host_os in
10533     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10534     *) lt_sed_strip_eq="s,=/,/,g" ;;
10535   esac
10536   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10537   case $lt_search_path_spec in
10538   *\;*)
10539     # if the path contains ";" then we assume it to be the separator
10540     # otherwise default to the standard path separator (i.e. ":") - it is
10541     # assumed that no part of a normal pathname contains ";" but that should
10542     # okay in the real world where ";" in dirpaths is itself problematic.
10543     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10544     ;;
10545   *)
10546     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10547     ;;
10548   esac
10549   # Ok, now we have the path, separated by spaces, we can step through it
10550   # and add multilib dir if necessary.
10551   lt_tmp_lt_search_path_spec=
10552   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10553   for lt_sys_path in $lt_search_path_spec; do
10554     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10555       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10556     else
10557       test -d "$lt_sys_path" && \
10558         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10559     fi
10560   done
10561   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10562 BEGIN {RS=" "; FS="/|\n";} {
10563   lt_foo="";
10564   lt_count=0;
10565   for (lt_i = NF; lt_i > 0; lt_i--) {
10566     if ($lt_i != "" && $lt_i != ".") {
10567       if ($lt_i == "..") {
10568         lt_count++;
10569       } else {
10570         if (lt_count == 0) {
10571           lt_foo="/" $lt_i lt_foo;
10572         } else {
10573           lt_count--;
10574         }
10575       }
10576     }
10577   }
10578   if (lt_foo != "") { lt_freq[lt_foo]++; }
10579   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10580 }'`
10581   # AWK program above erroneously prepends '/' to C:/dos/paths
10582   # for these hosts.
10583   case $host_os in
10584     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10585       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10586   esac
10587   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10588 else
10589   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10590 fi
10591 library_names_spec=
10592 libname_spec='lib$name'
10593 soname_spec=
10594 shrext_cmds=".so"
10595 postinstall_cmds=
10596 postuninstall_cmds=
10597 finish_cmds=
10598 finish_eval=
10599 shlibpath_var=
10600 shlibpath_overrides_runpath=unknown
10601 version_type=none
10602 dynamic_linker="$host_os ld.so"
10603 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10604 need_lib_prefix=unknown
10605 hardcode_into_libs=no
10606
10607 # when you set need_version to no, make sure it does not cause -set_version
10608 # flags to be left without arguments
10609 need_version=unknown
10610
10611 case $host_os in
10612 aix3*)
10613   version_type=linux
10614   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10615   shlibpath_var=LIBPATH
10616
10617   # AIX 3 has no versioning support, so we append a major version to the name.
10618   soname_spec='${libname}${release}${shared_ext}$major'
10619   ;;
10620
10621 aix[4-9]*)
10622   version_type=linux
10623   need_lib_prefix=no
10624   need_version=no
10625   hardcode_into_libs=yes
10626   if test "$host_cpu" = ia64; then
10627     # AIX 5 supports IA64
10628     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10629     shlibpath_var=LD_LIBRARY_PATH
10630   else
10631     # With GCC up to 2.95.x, collect2 would create an import file
10632     # for dependence libraries.  The import file would start with
10633     # the line `#! .'.  This would cause the generated library to
10634     # depend on `.', always an invalid library.  This was fixed in
10635     # development snapshots of GCC prior to 3.0.
10636     case $host_os in
10637       aix4 | aix4.[01] | aix4.[01].*)
10638       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10639            echo ' yes '
10640            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10641         :
10642       else
10643         can_build_shared=no
10644       fi
10645       ;;
10646     esac
10647     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10648     # soname into executable. Probably we can add versioning support to
10649     # collect2, so additional links can be useful in future.
10650     if test "$aix_use_runtimelinking" = yes; then
10651       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10652       # instead of lib<name>.a to let people know that these are not
10653       # typical AIX shared libraries.
10654       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10655     else
10656       # We preserve .a as extension for shared libraries through AIX4.2
10657       # and later when we are not doing run time linking.
10658       library_names_spec='${libname}${release}.a $libname.a'
10659       soname_spec='${libname}${release}${shared_ext}$major'
10660     fi
10661     shlibpath_var=LIBPATH
10662   fi
10663   ;;
10664
10665 amigaos*)
10666   case $host_cpu in
10667   powerpc)
10668     # Since July 2007 AmigaOS4 officially supports .so libraries.
10669     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10670     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10671     ;;
10672   m68k)
10673     library_names_spec='$libname.ixlibrary $libname.a'
10674     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10675     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'
10676     ;;
10677   esac
10678   ;;
10679
10680 beos*)
10681   library_names_spec='${libname}${shared_ext}'
10682   dynamic_linker="$host_os ld.so"
10683   shlibpath_var=LIBRARY_PATH
10684   ;;
10685
10686 bsdi[45]*)
10687   version_type=linux
10688   need_version=no
10689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690   soname_spec='${libname}${release}${shared_ext}$major'
10691   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10692   shlibpath_var=LD_LIBRARY_PATH
10693   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10694   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10695   # the default ld.so.conf also contains /usr/contrib/lib and
10696   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10697   # libtool to hard-code these into programs
10698   ;;
10699
10700 cygwin* | mingw* | pw32* | cegcc*)
10701   version_type=windows
10702   shrext_cmds=".dll"
10703   need_version=no
10704   need_lib_prefix=no
10705
10706   case $GCC,$host_os in
10707   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10708     library_names_spec='$libname.dll.a'
10709     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10710     postinstall_cmds='base_file=`basename \${file}`~
10711       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10712       dldir=$destdir/`dirname \$dlpath`~
10713       test -d \$dldir || mkdir -p \$dldir~
10714       $install_prog $dir/$dlname \$dldir/$dlname~
10715       chmod a+x \$dldir/$dlname~
10716       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10717         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10718       fi'
10719     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10720       dlpath=$dir/\$dldll~
10721        $RM \$dlpath'
10722     shlibpath_overrides_runpath=yes
10723
10724     case $host_os in
10725     cygwin*)
10726       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10727       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10728
10729       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10730       ;;
10731     mingw* | cegcc*)
10732       # MinGW DLLs use traditional 'lib' prefix
10733       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10734       ;;
10735     pw32*)
10736       # pw32 DLLs use 'pw' prefix rather than 'lib'
10737       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10738       ;;
10739     esac
10740     ;;
10741
10742   *)
10743     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10744     ;;
10745   esac
10746   dynamic_linker='Win32 ld.exe'
10747   # FIXME: first we should search . and the directory the executable is in
10748   shlibpath_var=PATH
10749   ;;
10750
10751 darwin* | rhapsody*)
10752   dynamic_linker="$host_os dyld"
10753   version_type=darwin
10754   need_lib_prefix=no
10755   need_version=no
10756   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10757   soname_spec='${libname}${release}${major}$shared_ext'
10758   shlibpath_overrides_runpath=yes
10759   shlibpath_var=DYLD_LIBRARY_PATH
10760   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10761
10762   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10763   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10764   ;;
10765
10766 dgux*)
10767   version_type=linux
10768   need_lib_prefix=no
10769   need_version=no
10770   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10771   soname_spec='${libname}${release}${shared_ext}$major'
10772   shlibpath_var=LD_LIBRARY_PATH
10773   ;;
10774
10775 freebsd1*)
10776   dynamic_linker=no
10777   ;;
10778
10779 freebsd* | dragonfly*)
10780   # DragonFly does not have aout.  When/if they implement a new
10781   # versioning mechanism, adjust this.
10782   if test -x /usr/bin/objformat; then
10783     objformat=`/usr/bin/objformat`
10784   else
10785     case $host_os in
10786     freebsd[123]*) objformat=aout ;;
10787     *) objformat=elf ;;
10788     esac
10789   fi
10790   version_type=freebsd-$objformat
10791   case $version_type in
10792     freebsd-elf*)
10793       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10794       need_version=no
10795       need_lib_prefix=no
10796       ;;
10797     freebsd-*)
10798       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10799       need_version=yes
10800       ;;
10801   esac
10802   shlibpath_var=LD_LIBRARY_PATH
10803   case $host_os in
10804   freebsd2*)
10805     shlibpath_overrides_runpath=yes
10806     ;;
10807   freebsd3.[01]* | freebsdelf3.[01]*)
10808     shlibpath_overrides_runpath=yes
10809     hardcode_into_libs=yes
10810     ;;
10811   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10812   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10813     shlibpath_overrides_runpath=no
10814     hardcode_into_libs=yes
10815     ;;
10816   *) # from 4.6 on, and DragonFly
10817     shlibpath_overrides_runpath=yes
10818     hardcode_into_libs=yes
10819     ;;
10820   esac
10821   ;;
10822
10823 gnu*)
10824   version_type=linux
10825   need_lib_prefix=no
10826   need_version=no
10827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10828   soname_spec='${libname}${release}${shared_ext}$major'
10829   shlibpath_var=LD_LIBRARY_PATH
10830   hardcode_into_libs=yes
10831   ;;
10832
10833 haiku*)
10834   version_type=linux
10835   need_lib_prefix=no
10836   need_version=no
10837   dynamic_linker="$host_os runtime_loader"
10838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10839   soname_spec='${libname}${release}${shared_ext}$major'
10840   shlibpath_var=LIBRARY_PATH
10841   shlibpath_overrides_runpath=yes
10842   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10843   hardcode_into_libs=yes
10844   ;;
10845
10846 hpux9* | hpux10* | hpux11*)
10847   # Give a soname corresponding to the major version so that dld.sl refuses to
10848   # link against other versions.
10849   version_type=sunos
10850   need_lib_prefix=no
10851   need_version=no
10852   case $host_cpu in
10853   ia64*)
10854     shrext_cmds='.so'
10855     hardcode_into_libs=yes
10856     dynamic_linker="$host_os dld.so"
10857     shlibpath_var=LD_LIBRARY_PATH
10858     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10859     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860     soname_spec='${libname}${release}${shared_ext}$major'
10861     if test "X$HPUX_IA64_MODE" = X32; then
10862       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10863     else
10864       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10865     fi
10866     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10867     ;;
10868   hppa*64*)
10869     shrext_cmds='.sl'
10870     hardcode_into_libs=yes
10871     dynamic_linker="$host_os dld.sl"
10872     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10873     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10877     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10878     ;;
10879   *)
10880     shrext_cmds='.sl'
10881     dynamic_linker="$host_os dld.sl"
10882     shlibpath_var=SHLIB_PATH
10883     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885     soname_spec='${libname}${release}${shared_ext}$major'
10886     ;;
10887   esac
10888   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10889   postinstall_cmds='chmod 555 $lib'
10890   # or fails outright, so override atomically:
10891   install_override_mode=555
10892   ;;
10893
10894 interix[3-9]*)
10895   version_type=linux
10896   need_lib_prefix=no
10897   need_version=no
10898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10899   soname_spec='${libname}${release}${shared_ext}$major'
10900   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10901   shlibpath_var=LD_LIBRARY_PATH
10902   shlibpath_overrides_runpath=no
10903   hardcode_into_libs=yes
10904   ;;
10905
10906 irix5* | irix6* | nonstopux*)
10907   case $host_os in
10908     nonstopux*) version_type=nonstopux ;;
10909     *)
10910         if test "$lt_cv_prog_gnu_ld" = yes; then
10911                 version_type=linux
10912         else
10913                 version_type=irix
10914         fi ;;
10915   esac
10916   need_lib_prefix=no
10917   need_version=no
10918   soname_spec='${libname}${release}${shared_ext}$major'
10919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10920   case $host_os in
10921   irix5* | nonstopux*)
10922     libsuff= shlibsuff=
10923     ;;
10924   *)
10925     case $LD in # libtool.m4 will add one of these switches to LD
10926     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10927       libsuff= shlibsuff= libmagic=32-bit;;
10928     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10929       libsuff=32 shlibsuff=N32 libmagic=N32;;
10930     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10931       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10932     *) libsuff= shlibsuff= libmagic=never-match;;
10933     esac
10934     ;;
10935   esac
10936   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10937   shlibpath_overrides_runpath=no
10938   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10939   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10940   hardcode_into_libs=yes
10941   ;;
10942
10943 # No shared lib support for Linux oldld, aout, or coff.
10944 linux*oldld* | linux*aout* | linux*coff*)
10945   dynamic_linker=no
10946   ;;
10947
10948 # This must be Linux ELF.
10949 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10950   version_type=linux
10951   need_lib_prefix=no
10952   need_version=no
10953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954   soname_spec='${libname}${release}${shared_ext}$major'
10955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10956   shlibpath_var=LD_LIBRARY_PATH
10957   shlibpath_overrides_runpath=no
10958
10959   # Some binutils ld are patched to set DT_RUNPATH
10960   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10961   $as_echo_n "(cached) " >&6
10962 else
10963   lt_cv_shlibpath_overrides_runpath=no
10964     save_LDFLAGS=$LDFLAGS
10965     save_libdir=$libdir
10966     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10967          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10968     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10969 /* end confdefs.h.  */
10970
10971 int
10972 main ()
10973 {
10974
10975   ;
10976   return 0;
10977 }
10978 _ACEOF
10979 if ac_fn_c_try_link "$LINENO"; then :
10980   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10981   lt_cv_shlibpath_overrides_runpath=yes
10982 fi
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext \
10985     conftest$ac_exeext conftest.$ac_ext
10986     LDFLAGS=$save_LDFLAGS
10987     libdir=$save_libdir
10988
10989 fi
10990
10991   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10992
10993   # This implies no fast_install, which is unacceptable.
10994   # Some rework will be needed to allow for fast_install
10995   # before this can be enabled.
10996   hardcode_into_libs=yes
10997
10998   # Append ld.so.conf contents to the search path
10999   if test -f /etc/ld.so.conf; then
11000     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' ' '`
11001     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11002   fi
11003
11004   # We used to test for /lib/ld.so.1 and disable shared libraries on
11005   # powerpc, because MkLinux only supported shared libraries with the
11006   # GNU dynamic linker.  Since this was broken with cross compilers,
11007   # most powerpc-linux boxes support dynamic linking these days and
11008   # people can always --disable-shared, the test was removed, and we
11009   # assume the GNU/Linux dynamic linker is in use.
11010   dynamic_linker='GNU/Linux ld.so'
11011   ;;
11012
11013 netbsd*)
11014   version_type=sunos
11015   need_lib_prefix=no
11016   need_version=no
11017   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11020     dynamic_linker='NetBSD (a.out) ld.so'
11021   else
11022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11023     soname_spec='${libname}${release}${shared_ext}$major'
11024     dynamic_linker='NetBSD ld.elf_so'
11025   fi
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=yes
11028   hardcode_into_libs=yes
11029   ;;
11030
11031 newsos6)
11032   version_type=linux
11033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=yes
11036   ;;
11037
11038 *nto* | *qnx*)
11039   version_type=qnx
11040   need_lib_prefix=no
11041   need_version=no
11042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043   soname_spec='${libname}${release}${shared_ext}$major'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046   hardcode_into_libs=yes
11047   dynamic_linker='ldqnx.so'
11048   ;;
11049
11050 openbsd*)
11051   version_type=sunos
11052   sys_lib_dlsearch_path_spec="/usr/lib"
11053   need_lib_prefix=no
11054   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11055   case $host_os in
11056     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11057     *)                          need_version=no  ;;
11058   esac
11059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11061   shlibpath_var=LD_LIBRARY_PATH
11062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11063     case $host_os in
11064       openbsd2.[89] | openbsd2.[89].*)
11065         shlibpath_overrides_runpath=no
11066         ;;
11067       *)
11068         shlibpath_overrides_runpath=yes
11069         ;;
11070       esac
11071   else
11072     shlibpath_overrides_runpath=yes
11073   fi
11074   ;;
11075
11076 os2*)
11077   libname_spec='$name'
11078   shrext_cmds=".dll"
11079   need_lib_prefix=no
11080   library_names_spec='$libname${shared_ext} $libname.a'
11081   dynamic_linker='OS/2 ld.exe'
11082   shlibpath_var=LIBPATH
11083   ;;
11084
11085 osf3* | osf4* | osf5*)
11086   version_type=osf
11087   need_lib_prefix=no
11088   need_version=no
11089   soname_spec='${libname}${release}${shared_ext}$major'
11090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11091   shlibpath_var=LD_LIBRARY_PATH
11092   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11093   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11094   ;;
11095
11096 rdos*)
11097   dynamic_linker=no
11098   ;;
11099
11100 solaris*)
11101   version_type=linux
11102   need_lib_prefix=no
11103   need_version=no
11104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105   soname_spec='${libname}${release}${shared_ext}$major'
11106   shlibpath_var=LD_LIBRARY_PATH
11107   shlibpath_overrides_runpath=yes
11108   hardcode_into_libs=yes
11109   # ldd complains unless libraries are executable
11110   postinstall_cmds='chmod +x $lib'
11111   ;;
11112
11113 sunos4*)
11114   version_type=sunos
11115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11117   shlibpath_var=LD_LIBRARY_PATH
11118   shlibpath_overrides_runpath=yes
11119   if test "$with_gnu_ld" = yes; then
11120     need_lib_prefix=no
11121   fi
11122   need_version=yes
11123   ;;
11124
11125 sysv4 | sysv4.3*)
11126   version_type=linux
11127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128   soname_spec='${libname}${release}${shared_ext}$major'
11129   shlibpath_var=LD_LIBRARY_PATH
11130   case $host_vendor in
11131     sni)
11132       shlibpath_overrides_runpath=no
11133       need_lib_prefix=no
11134       runpath_var=LD_RUN_PATH
11135       ;;
11136     siemens)
11137       need_lib_prefix=no
11138       ;;
11139     motorola)
11140       need_lib_prefix=no
11141       need_version=no
11142       shlibpath_overrides_runpath=no
11143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11144       ;;
11145   esac
11146   ;;
11147
11148 sysv4*MP*)
11149   if test -d /usr/nec ;then
11150     version_type=linux
11151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11152     soname_spec='$libname${shared_ext}.$major'
11153     shlibpath_var=LD_LIBRARY_PATH
11154   fi
11155   ;;
11156
11157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11158   version_type=freebsd-elf
11159   need_lib_prefix=no
11160   need_version=no
11161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11162   soname_spec='${libname}${release}${shared_ext}$major'
11163   shlibpath_var=LD_LIBRARY_PATH
11164   shlibpath_overrides_runpath=yes
11165   hardcode_into_libs=yes
11166   if test "$with_gnu_ld" = yes; then
11167     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11168   else
11169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11170     case $host_os in
11171       sco3.2v5*)
11172         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11173         ;;
11174     esac
11175   fi
11176   sys_lib_dlsearch_path_spec='/usr/lib'
11177   ;;
11178
11179 tpf*)
11180   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11181   version_type=linux
11182   need_lib_prefix=no
11183   need_version=no
11184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=no
11187   hardcode_into_libs=yes
11188   ;;
11189
11190 uts4*)
11191   version_type=linux
11192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193   soname_spec='${libname}${release}${shared_ext}$major'
11194   shlibpath_var=LD_LIBRARY_PATH
11195   ;;
11196
11197 *)
11198   dynamic_linker=no
11199   ;;
11200 esac
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11202 $as_echo "$dynamic_linker" >&6; }
11203 test "$dynamic_linker" = no && can_build_shared=no
11204
11205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11206 if test "$GCC" = yes; then
11207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11208 fi
11209
11210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11211   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11212 fi
11213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11214   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11215 fi
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11309 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11310 hardcode_action=
11311 if test -n "$hardcode_libdir_flag_spec" ||
11312    test -n "$runpath_var" ||
11313    test "X$hardcode_automatic" = "Xyes" ; then
11314
11315   # We can hardcode non-existent directories.
11316   if test "$hardcode_direct" != no &&
11317      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11318      # have to relink, otherwise we might link with an installed library
11319      # when we should be linking with a yet-to-be-installed one
11320      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11321      test "$hardcode_minus_L" != no; then
11322     # Linking always hardcodes the temporary library directory.
11323     hardcode_action=relink
11324   else
11325     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11326     hardcode_action=immediate
11327   fi
11328 else
11329   # We cannot hardcode anything, or else we can only hardcode existing
11330   # directories.
11331   hardcode_action=unsupported
11332 fi
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11334 $as_echo "$hardcode_action" >&6; }
11335
11336 if test "$hardcode_action" = relink ||
11337    test "$inherit_rpath" = yes; then
11338   # Fast installation is not supported
11339   enable_fast_install=no
11340 elif test "$shlibpath_overrides_runpath" = yes ||
11341      test "$enable_shared" = no; then
11342   # Fast installation is not necessary
11343   enable_fast_install=needless
11344 fi
11345
11346
11347
11348
11349
11350
11351   if test "x$enable_dlopen" != xyes; then
11352   enable_dlopen=unknown
11353   enable_dlopen_self=unknown
11354   enable_dlopen_self_static=unknown
11355 else
11356   lt_cv_dlopen=no
11357   lt_cv_dlopen_libs=
11358
11359   case $host_os in
11360   beos*)
11361     lt_cv_dlopen="load_add_on"
11362     lt_cv_dlopen_libs=
11363     lt_cv_dlopen_self=yes
11364     ;;
11365
11366   mingw* | pw32* | cegcc*)
11367     lt_cv_dlopen="LoadLibrary"
11368     lt_cv_dlopen_libs=
11369     ;;
11370
11371   cygwin*)
11372     lt_cv_dlopen="dlopen"
11373     lt_cv_dlopen_libs=
11374     ;;
11375
11376   darwin*)
11377   # if libdl is installed we need to link against it
11378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11379 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11380 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11381   $as_echo_n "(cached) " >&6
11382 else
11383   ac_check_lib_save_LIBS=$LIBS
11384 LIBS="-ldl  $LIBS"
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h.  */
11387
11388 /* Override any GCC internal prototype to avoid an error.
11389    Use char because int might match the return type of a GCC
11390    builtin and then its argument prototype would still apply.  */
11391 #ifdef __cplusplus
11392 extern "C"
11393 #endif
11394 char dlopen ();
11395 int
11396 main ()
11397 {
11398 return dlopen ();
11399   ;
11400   return 0;
11401 }
11402 _ACEOF
11403 if ac_fn_c_try_link "$LINENO"; then :
11404   ac_cv_lib_dl_dlopen=yes
11405 else
11406   ac_cv_lib_dl_dlopen=no
11407 fi
11408 rm -f core conftest.err conftest.$ac_objext \
11409     conftest$ac_exeext conftest.$ac_ext
11410 LIBS=$ac_check_lib_save_LIBS
11411 fi
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11413 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11414 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11415   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11416 else
11417
11418     lt_cv_dlopen="dyld"
11419     lt_cv_dlopen_libs=
11420     lt_cv_dlopen_self=yes
11421
11422 fi
11423
11424     ;;
11425
11426   *)
11427     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11428 if test "x$ac_cv_func_shl_load" = x""yes; then :
11429   lt_cv_dlopen="shl_load"
11430 else
11431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11432 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11433 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11434   $as_echo_n "(cached) " >&6
11435 else
11436   ac_check_lib_save_LIBS=$LIBS
11437 LIBS="-ldld  $LIBS"
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h.  */
11440
11441 /* Override any GCC internal prototype to avoid an error.
11442    Use char because int might match the return type of a GCC
11443    builtin and then its argument prototype would still apply.  */
11444 #ifdef __cplusplus
11445 extern "C"
11446 #endif
11447 char shl_load ();
11448 int
11449 main ()
11450 {
11451 return shl_load ();
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457   ac_cv_lib_dld_shl_load=yes
11458 else
11459   ac_cv_lib_dld_shl_load=no
11460 fi
11461 rm -f core conftest.err conftest.$ac_objext \
11462     conftest$ac_exeext conftest.$ac_ext
11463 LIBS=$ac_check_lib_save_LIBS
11464 fi
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11466 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11467 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11468   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11469 else
11470   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11471 if test "x$ac_cv_func_dlopen" = x""yes; then :
11472   lt_cv_dlopen="dlopen"
11473 else
11474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11475 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11476 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11477   $as_echo_n "(cached) " >&6
11478 else
11479   ac_check_lib_save_LIBS=$LIBS
11480 LIBS="-ldl  $LIBS"
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h.  */
11483
11484 /* Override any GCC internal prototype to avoid an error.
11485    Use char because int might match the return type of a GCC
11486    builtin and then its argument prototype would still apply.  */
11487 #ifdef __cplusplus
11488 extern "C"
11489 #endif
11490 char dlopen ();
11491 int
11492 main ()
11493 {
11494 return dlopen ();
11495   ;
11496   return 0;
11497 }
11498 _ACEOF
11499 if ac_fn_c_try_link "$LINENO"; then :
11500   ac_cv_lib_dl_dlopen=yes
11501 else
11502   ac_cv_lib_dl_dlopen=no
11503 fi
11504 rm -f core conftest.err conftest.$ac_objext \
11505     conftest$ac_exeext conftest.$ac_ext
11506 LIBS=$ac_check_lib_save_LIBS
11507 fi
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11509 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11510 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11511   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11512 else
11513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11514 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11515 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11516   $as_echo_n "(cached) " >&6
11517 else
11518   ac_check_lib_save_LIBS=$LIBS
11519 LIBS="-lsvld  $LIBS"
11520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11521 /* end confdefs.h.  */
11522
11523 /* Override any GCC internal prototype to avoid an error.
11524    Use char because int might match the return type of a GCC
11525    builtin and then its argument prototype would still apply.  */
11526 #ifdef __cplusplus
11527 extern "C"
11528 #endif
11529 char dlopen ();
11530 int
11531 main ()
11532 {
11533 return dlopen ();
11534   ;
11535   return 0;
11536 }
11537 _ACEOF
11538 if ac_fn_c_try_link "$LINENO"; then :
11539   ac_cv_lib_svld_dlopen=yes
11540 else
11541   ac_cv_lib_svld_dlopen=no
11542 fi
11543 rm -f core conftest.err conftest.$ac_objext \
11544     conftest$ac_exeext conftest.$ac_ext
11545 LIBS=$ac_check_lib_save_LIBS
11546 fi
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11548 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11549 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11550   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11551 else
11552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11553 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11554 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11555   $as_echo_n "(cached) " >&6
11556 else
11557   ac_check_lib_save_LIBS=$LIBS
11558 LIBS="-ldld  $LIBS"
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h.  */
11561
11562 /* Override any GCC internal prototype to avoid an error.
11563    Use char because int might match the return type of a GCC
11564    builtin and then its argument prototype would still apply.  */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 char dld_link ();
11569 int
11570 main ()
11571 {
11572 return dld_link ();
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 if ac_fn_c_try_link "$LINENO"; then :
11578   ac_cv_lib_dld_dld_link=yes
11579 else
11580   ac_cv_lib_dld_dld_link=no
11581 fi
11582 rm -f core conftest.err conftest.$ac_objext \
11583     conftest$ac_exeext conftest.$ac_ext
11584 LIBS=$ac_check_lib_save_LIBS
11585 fi
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11587 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11588 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11589   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11590 fi
11591
11592
11593 fi
11594
11595
11596 fi
11597
11598
11599 fi
11600
11601
11602 fi
11603
11604
11605 fi
11606
11607     ;;
11608   esac
11609
11610   if test "x$lt_cv_dlopen" != xno; then
11611     enable_dlopen=yes
11612   else
11613     enable_dlopen=no
11614   fi
11615
11616   case $lt_cv_dlopen in
11617   dlopen)
11618     save_CPPFLAGS="$CPPFLAGS"
11619     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11620
11621     save_LDFLAGS="$LDFLAGS"
11622     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11623
11624     save_LIBS="$LIBS"
11625     LIBS="$lt_cv_dlopen_libs $LIBS"
11626
11627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11628 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11629 if test "${lt_cv_dlopen_self+set}" = set; then :
11630   $as_echo_n "(cached) " >&6
11631 else
11632           if test "$cross_compiling" = yes; then :
11633   lt_cv_dlopen_self=cross
11634 else
11635   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11636   lt_status=$lt_dlunknown
11637   cat > conftest.$ac_ext <<_LT_EOF
11638 #line 11638 "configure"
11639 #include "confdefs.h"
11640
11641 #if HAVE_DLFCN_H
11642 #include <dlfcn.h>
11643 #endif
11644
11645 #include <stdio.h>
11646
11647 #ifdef RTLD_GLOBAL
11648 #  define LT_DLGLOBAL           RTLD_GLOBAL
11649 #else
11650 #  ifdef DL_GLOBAL
11651 #    define LT_DLGLOBAL         DL_GLOBAL
11652 #  else
11653 #    define LT_DLGLOBAL         0
11654 #  endif
11655 #endif
11656
11657 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11658    find out it does not work in some platform. */
11659 #ifndef LT_DLLAZY_OR_NOW
11660 #  ifdef RTLD_LAZY
11661 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11662 #  else
11663 #    ifdef DL_LAZY
11664 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11665 #    else
11666 #      ifdef RTLD_NOW
11667 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11668 #      else
11669 #        ifdef DL_NOW
11670 #          define LT_DLLAZY_OR_NOW      DL_NOW
11671 #        else
11672 #          define LT_DLLAZY_OR_NOW      0
11673 #        endif
11674 #      endif
11675 #    endif
11676 #  endif
11677 #endif
11678
11679 /* When -fvisbility=hidden is used, assume the code has been annotated
11680    correspondingly for the symbols needed.  */
11681 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11682 void fnord () __attribute__((visibility("default")));
11683 #endif
11684
11685 void fnord () { int i=42; }
11686 int main ()
11687 {
11688   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11689   int status = $lt_dlunknown;
11690
11691   if (self)
11692     {
11693       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11694       else
11695         {
11696           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11697           else puts (dlerror ());
11698         }
11699       /* dlclose (self); */
11700     }
11701   else
11702     puts (dlerror ());
11703
11704   return status;
11705 }
11706 _LT_EOF
11707   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11708   (eval $ac_link) 2>&5
11709   ac_status=$?
11710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11711   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11712     (./conftest; exit; ) >&5 2>/dev/null
11713     lt_status=$?
11714     case x$lt_status in
11715       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11716       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11717       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11718     esac
11719   else :
11720     # compilation failed
11721     lt_cv_dlopen_self=no
11722   fi
11723 fi
11724 rm -fr conftest*
11725
11726
11727 fi
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11729 $as_echo "$lt_cv_dlopen_self" >&6; }
11730
11731     if test "x$lt_cv_dlopen_self" = xyes; then
11732       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11734 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11735 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11736   $as_echo_n "(cached) " >&6
11737 else
11738           if test "$cross_compiling" = yes; then :
11739   lt_cv_dlopen_self_static=cross
11740 else
11741   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11742   lt_status=$lt_dlunknown
11743   cat > conftest.$ac_ext <<_LT_EOF
11744 #line 11744 "configure"
11745 #include "confdefs.h"
11746
11747 #if HAVE_DLFCN_H
11748 #include <dlfcn.h>
11749 #endif
11750
11751 #include <stdio.h>
11752
11753 #ifdef RTLD_GLOBAL
11754 #  define LT_DLGLOBAL           RTLD_GLOBAL
11755 #else
11756 #  ifdef DL_GLOBAL
11757 #    define LT_DLGLOBAL         DL_GLOBAL
11758 #  else
11759 #    define LT_DLGLOBAL         0
11760 #  endif
11761 #endif
11762
11763 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11764    find out it does not work in some platform. */
11765 #ifndef LT_DLLAZY_OR_NOW
11766 #  ifdef RTLD_LAZY
11767 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11768 #  else
11769 #    ifdef DL_LAZY
11770 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11771 #    else
11772 #      ifdef RTLD_NOW
11773 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11774 #      else
11775 #        ifdef DL_NOW
11776 #          define LT_DLLAZY_OR_NOW      DL_NOW
11777 #        else
11778 #          define LT_DLLAZY_OR_NOW      0
11779 #        endif
11780 #      endif
11781 #    endif
11782 #  endif
11783 #endif
11784
11785 /* When -fvisbility=hidden is used, assume the code has been annotated
11786    correspondingly for the symbols needed.  */
11787 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11788 void fnord () __attribute__((visibility("default")));
11789 #endif
11790
11791 void fnord () { int i=42; }
11792 int main ()
11793 {
11794   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11795   int status = $lt_dlunknown;
11796
11797   if (self)
11798     {
11799       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11800       else
11801         {
11802           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11803           else puts (dlerror ());
11804         }
11805       /* dlclose (self); */
11806     }
11807   else
11808     puts (dlerror ());
11809
11810   return status;
11811 }
11812 _LT_EOF
11813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11814   (eval $ac_link) 2>&5
11815   ac_status=$?
11816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11818     (./conftest; exit; ) >&5 2>/dev/null
11819     lt_status=$?
11820     case x$lt_status in
11821       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11822       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11823       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11824     esac
11825   else :
11826     # compilation failed
11827     lt_cv_dlopen_self_static=no
11828   fi
11829 fi
11830 rm -fr conftest*
11831
11832
11833 fi
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11835 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11836     fi
11837
11838     CPPFLAGS="$save_CPPFLAGS"
11839     LDFLAGS="$save_LDFLAGS"
11840     LIBS="$save_LIBS"
11841     ;;
11842   esac
11843
11844   case $lt_cv_dlopen_self in
11845   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11846   *) enable_dlopen_self=unknown ;;
11847   esac
11848
11849   case $lt_cv_dlopen_self_static in
11850   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11851   *) enable_dlopen_self_static=unknown ;;
11852   esac
11853 fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871 striplib=
11872 old_striplib=
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11874 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11875 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11876   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11877   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879 $as_echo "yes" >&6; }
11880 else
11881 # FIXME - insert some real tests, host_os isn't really good enough
11882   case $host_os in
11883   darwin*)
11884     if test -n "$STRIP" ; then
11885       striplib="$STRIP -x"
11886       old_striplib="$STRIP -S"
11887       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888 $as_echo "yes" >&6; }
11889     else
11890       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892     fi
11893     ;;
11894   *)
11895     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896 $as_echo "no" >&6; }
11897     ;;
11898   esac
11899 fi
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912   # Report which library types will actually be built
11913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11914 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11916 $as_echo "$can_build_shared" >&6; }
11917
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11919 $as_echo_n "checking whether to build shared libraries... " >&6; }
11920   test "$can_build_shared" = "no" && enable_shared=no
11921
11922   # On AIX, shared libraries and static libraries use the same namespace, and
11923   # are all built from PIC.
11924   case $host_os in
11925   aix3*)
11926     test "$enable_shared" = yes && enable_static=no
11927     if test -n "$RANLIB"; then
11928       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11929       postinstall_cmds='$RANLIB $lib'
11930     fi
11931     ;;
11932
11933   aix[4-9]*)
11934     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11935       test "$enable_shared" = yes && enable_static=no
11936     fi
11937     ;;
11938   esac
11939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11940 $as_echo "$enable_shared" >&6; }
11941
11942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11943 $as_echo_n "checking whether to build static libraries... " >&6; }
11944   # Make sure either enable_shared or enable_static is yes.
11945   test "$enable_shared" = yes || enable_static=yes
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11947 $as_echo "$enable_static" >&6; }
11948
11949
11950
11951
11952 fi
11953 ac_ext=c
11954 ac_cpp='$CPP $CPPFLAGS'
11955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11958
11959 CC="$lt_save_CC"
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972
11973         ac_config_commands="$ac_config_commands libtool"
11974
11975
11976
11977
11978 # Only expand once:
11979
11980
11981 fi
11982
11983 # Check whether --enable-newlib_hw_fp was given.
11984 if test "${enable_newlib_hw_fp+set}" = set; then :
11985   enableval=$enable_newlib_hw_fp; case "${enableval}" in
11986    yes) newlib_hw_fp=true ;;
11987    no)  newlib_hw_fp=false ;;
11988    *) as_fn_error "bad value ${enableval} for --enable-newlib-hw-fp" "$LINENO" 5 ;;
11989  esac
11990 else
11991   newlib_hw_fp=false
11992 fi
11993
11994  if test x$newlib_hw_fp = xtrue; then
11995   NEWLIB_HW_FP_TRUE=
11996   NEWLIB_HW_FP_FALSE='#'
11997 else
11998   NEWLIB_HW_FP_TRUE='#'
11999   NEWLIB_HW_FP_FALSE=
12000 fi
12001
12002
12003 # These get added in the top-level configure.in, except in the case where
12004 # newlib is being built natively.
12005 LIBC_INCLUDE_GREP=`echo ${CC} | grep \/libc\/include`
12006 abs_newlib_basedir=`cd ${newlib_basedir} && pwd`
12007 if test -z "${LIBC_INCLUDE_GREP}"; then
12008   CC_FOR_NEWLIB="${CC} -I$PWD/targ-include -I${abs_newlib_basedir}/libc/include"
12009 else
12010   CC_FOR_NEWLIB="${CC}"
12011 fi
12012
12013
12014
12015
12016 subdirs="$subdirs libc"
12017
12018 subdirs="$subdirs libm"
12019
12020
12021 if test -z "${with_multisubdir}"; then
12022   subdirs="$subdirs doc"
12023
12024   have_doc=yes
12025 else
12026   have_doc=
12027 fi
12028  if test x$have_doc = xyes; then
12029   HAVE_DOC_TRUE=
12030   HAVE_DOC_FALSE='#'
12031 else
12032   HAVE_DOC_TRUE='#'
12033   HAVE_DOC_FALSE=
12034 fi
12035
12036
12037 EXTRA_DIRS=
12038 case $host in
12039   i[34567]86-pc-linux-*)
12040         subdirs="$subdirs iconvdata"
12041
12042         EXTRA_DIRS=iconvdata
12043         ;;
12044 esac
12045
12046
12047 CRT0=
12048 CRT0_DIR=
12049 if test "x${have_crt0}" = "xyes"; then
12050   CRT0=crt0.o
12051   CRT0_DIR=libc/
12052 fi
12053
12054
12055
12056 CRT1=${crt1}
12057 CRT1_DIR=
12058 if test -n "${crt1_dir}"; then
12059   CRT1_DIR=${crt1_dir}/
12060 fi
12061
12062
12063
12064 if test -n "${libm_machine_dir}"; then
12065   LIBM_MACHINE_OBJECTLIST=libm/machine/${libm_machine_dir}/objectlist.awk.in
12066 fi
12067
12068
12069 if test -n "${machine_dir}"; then
12070   MACHINE_OBJECTLIST=libc/machine/${machine_dir}/objectlist.awk.in
12071 fi
12072
12073
12074 if test -n "${sys_dir}"; then
12075   SYS_OBJECTLIST=libc/sys/${sys_dir}/objectlist.awk.in
12076 fi
12077
12078
12079 if test "${have_sys_mach_dir}" = "yes"; then
12080   SYS_MACH_OBJECTLIST=libc/sys/${sys_dir}/machine/${machine_dir}/objectlist.awk.in
12081 fi
12082
12083
12084 if test -n "${posix_dir}"; then
12085   POSIX_OBJECTLIST=libc/${posix_dir}/objectlist.awk.in
12086 fi
12087
12088
12089 if test -n "${signal_dir}"; then
12090   SIGNAL_OBJECTLIST=libc/${signal_dir}/objectlist.awk.in
12091 fi
12092
12093
12094 if test -n "${syscall_dir}"; then
12095   SYSCALL_OBJECTLIST=libc/${syscall_dir}/objectlist.awk.in
12096 fi
12097
12098
12099 if test -n "${unix_dir}"; then
12100   UNIX_OBJECTLIST=libc/${unix_dir}/objectlist.awk.in
12101 fi
12102
12103
12104 if test -n "${stdio64_dir}"; then
12105   STDIO64_OBJECTLIST=libc/${stdio64_dir}/objectlist.awk.in
12106 fi
12107
12108
12109 # Put a plausible default for CC_FOR_BUILD in Makefile.
12110 if test -z "$CC_FOR_BUILD"; then
12111   CC_FOR_BUILD=gcc
12112 fi
12113
12114
12115 if test "${newlib_elix_level}" -gt "0"; then
12116 cat >>confdefs.h <<_ACEOF
12117 #define _ELIX_LEVEL ${newlib_elix_level}
12118 _ACEOF
12119
12120 fi
12121
12122 if test "${newlib_io_c99_formats}" = "yes"; then
12123 cat >>confdefs.h <<_ACEOF
12124 #define _WANT_IO_C99_FORMATS 1
12125 _ACEOF
12126
12127 fi
12128
12129 if test "${newlib_register_fini}" = "yes"; then
12130 cat >>confdefs.h <<_ACEOF
12131 #define _WANT_REGISTER_FINI 1
12132 _ACEOF
12133
12134 fi
12135
12136 if test "${newlib_io_long_long}" = "yes"; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define _WANT_IO_LONG_LONG 1
12139 _ACEOF
12140
12141 fi
12142
12143 if test "${newlib_io_long_double}" = "yes"; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define _WANT_IO_LONG_DOUBLE 1
12146 _ACEOF
12147
12148 fi
12149
12150 if test "${newlib_io_pos_args}" = "yes"; then
12151 cat >>confdefs.h <<_ACEOF
12152 #define _WANT_IO_POS_ARGS 1
12153 _ACEOF
12154
12155 fi
12156
12157 if test "${newlib_reent_small}" = "yes"; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define _WANT_REENT_SMALL 1
12160 _ACEOF
12161
12162 fi
12163
12164 if test "${newlib_mb}" = "yes"; then
12165 cat >>confdefs.h <<_ACEOF
12166 #define _MB_CAPABLE 1
12167 _ACEOF
12168
12169 cat >>confdefs.h <<_ACEOF
12170 #define _MB_LEN_MAX 8
12171 _ACEOF
12172
12173 else
12174 cat >>confdefs.h <<_ACEOF
12175 #define _MB_LEN_MAX 1
12176 _ACEOF
12177
12178 fi
12179
12180 if test "${newlib_iconv_external_ccs}" = "yes"; then
12181 cat >>confdefs.h <<_ACEOF
12182 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12183 _ACEOF
12184
12185 fi
12186
12187 cat >>confdefs.h <<_ACEOF
12188 #define _NEWLIB_VERSION "1.19.0"
12189 _ACEOF
12190
12191
12192 if test "${multilib}" = "yes"; then
12193   multilib_arg="--enable-multilib"
12194 else
12195   multilib_arg=
12196 fi
12197
12198 if test "${newlib_iconv}" = "yes"; then
12199 cat >>confdefs.h <<_ACEOF
12200 #define _ICONV_ENABLED 1
12201 _ACEOF
12202
12203 fi
12204
12205 if test "x${newlib_iconv_external_ccs}" = "xyes"; then
12206   if test "x${newlib_iconv}" = "x"; then
12207       { as_fn_set_status use --enable-newlib-iconv to enable it.
12208 as_fn_error "--enable-newlib-iconv-external-ccs option can't be used if iconv library is disabled" "$LINENO" 5; }
12209   fi
12210   cat >>confdefs.h <<_ACEOF
12211 #define _ICONV_ENABLE_EXTERNAL_CCS 1
12212 _ACEOF
12213
12214 fi
12215
12216 if test "${newlib_atexit_dynamic_alloc}" = "yes"; then
12217 cat >>confdefs.h <<_ACEOF
12218 #define _ATEXIT_DYNAMIC_ALLOC 1
12219 _ACEOF
12220
12221 fi
12222
12223
12224 if test "x${iconv_encodings}" != "x" \
12225    || test "x${iconv_to_encodings}" != "x" \
12226    || test "x${iconv_from_encodings}" != "x"; then
12227   if test "x${newlib_iconv}" = "x"; then
12228       as_fn_error "--enable-newlib-iconv-encodings, --enable-newlib-iconv-from-encodings and --enable-newlib-iconv-to-encodings option can't be used if iconv library is disabled, use --enable-newlib-iconv to enable it." "$LINENO" 5
12229   fi
12230
12231     iconv_encodings=`echo "${iconv_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12232   iconv_to_encodings=`echo "${iconv_to_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12233   iconv_from_encodings=`echo "${iconv_from_encodings}" | sed -e 's/,/ /g' -e 's/-/_/g' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
12234
12235       available_encodings=`cat "${srcdir}/libc/iconv/encoding.aliases" | sed -e '/^#.*/d'`
12236
12237
12238     iconv_encodings1="${iconv_encodings}"
12239   iconv_encodings=""
12240   for encoding in ${iconv_encodings1}; do
12241       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12242       if test $? != "0"; then
12243           as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12244       fi
12245       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12246       iconv_encodings="${iconv_encodings} ${encoding1}"
12247   done
12248     for encoding in ${iconv_encodings}; do
12249       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12250       cat >>confdefs.h <<_ACEOF
12251 #define $opt 1
12252 _ACEOF
12253
12254       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12255       cat >>confdefs.h <<_ACEOF
12256 #define $opt 1
12257 _ACEOF
12258
12259   done
12260
12261     iconv_encodings1="${iconv_to_encodings}"
12262   iconv_to_encodings=""
12263   for encoding in ${iconv_encodings1}; do
12264       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12265       if test $? != "0"; then
12266           as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12267       fi
12268       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12269       iconv_to_encodings="${iconv_to_encodings} ${encoding1}"
12270   done
12271     for encoding in ${iconv_to_encodings}; do
12272       opt=_ICONV_TO_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12273       cat >>confdefs.h <<_ACEOF
12274 #define $opt 1
12275 _ACEOF
12276
12277   done
12278
12279     iconv_encodings1="${iconv_from_encodings}"
12280   iconv_from_encodings=""
12281   for encoding in ${iconv_encodings1}; do
12282       result=`echo "${available_encodings}" | grep -e "\(^\| \)${encoding}\( \|\$\)"`
12283       if test $? != "0"; then
12284           as_fn_error "${encoding} is not supported - see ${srcdir}/libc/iconv/encoding.aliases file for the list of available encodings" "$LINENO" 5
12285       fi
12286       encoding1=`echo "${result}" | sed -e 's/\(^[^ ]*\).*$/\1/'`
12287       iconv_from_encodings="${iconv_from_encodings} ${encoding1}"
12288   done
12289     for encoding in ${iconv_from_encodings}; do
12290       opt=_ICONV_FROM_ENCODING_`echo "${encoding}" | sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
12291       cat >>confdefs.h <<_ACEOF
12292 #define $opt 1
12293 _ACEOF
12294
12295   done
12296 fi;
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .preinit_array/.init_array/.fini_array support" >&5
12299 $as_echo_n "checking for .preinit_array/.init_array/.fini_array support... " >&6; }
12300 if test "${libc_cv_initfinit_array+set}" = set; then :
12301   $as_echo_n "(cached) " >&6
12302 else
12303   cat > conftest.c <<EOF
12304 int _start (void) { return 0; }
12305 int __start (void) { return 0; }
12306 int foo (void) { return 1; }
12307 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo;
12308 EOF
12309 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest conftest.c
12310                                                         1>&5'
12311   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12312   (eval $ac_try) 2>&5
12313   ac_status=$?
12314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12315   test $ac_status = 0; }; }
12316 then
12317   if ${READELF} -S conftest | grep -e INIT_ARRAY > /dev/null; then
12318     libc_cv_initfinit_array=yes
12319   else
12320     libc_cv_initfinit_array=no
12321   fi
12322 else
12323   libc_cv_initfinit_array=no
12324 fi
12325 rm -f conftest*
12326 fi
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_initfinit_array" >&5
12328 $as_echo "$libc_cv_initfinit_array" >&6; }
12329
12330 if test $libc_cv_initfinit_array = yes; then
12331   cat >>confdefs.h <<_ACEOF
12332 #define HAVE_INITFINI_ARRAY 1
12333 _ACEOF
12334
12335 fi
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double type exists" >&5
12338 $as_echo_n "checking whether long double type exists... " >&6; }
12339 if test "${acnewlib_cv_type_long_double+set}" = set; then :
12340   $as_echo_n "(cached) " >&6
12341 else
12342   cat > conftest.c <<EOF
12343 /* Check two ways:  float.h defines and direct type declaration.  */
12344 #include <float.h>
12345 #if defined(LDBL_MANT_DIG)
12346   #define _HAVE_LONG_DOUBLE
12347  #else
12348   #error "LDBL != DBL"
12349 #endif
12350 long double test() {
12351 long double ld = 0.0L;
12352 return ld;
12353 }
12354 EOF
12355 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
12356                                                         1>&5'
12357   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12358   (eval $ac_try) 2>&5
12359   ac_status=$?
12360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361   test $ac_status = 0; }; }
12362 then
12363   acnewlib_cv_type_long_double=yes;
12364 else
12365   acnewlib_cv_type_long_double=no;
12366 fi
12367 rm -f conftest*
12368 fi
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acnewlib_cv_type_long_double" >&5
12370 $as_echo "$acnewlib_cv_type_long_double" >&6; }
12371 if test $acnewlib_cv_type_long_double = yes; then
12372   cat >>confdefs.h <<_ACEOF
12373 #define _HAVE_LONG_DOUBLE 1
12374 _ACEOF
12375
12376 fi
12377  if test x"$acnewlib_cv_type_long_double" = x"yes"; then
12378   HAVE_LONG_DOUBLE_TRUE=
12379   HAVE_LONG_DOUBLE_FALSE='#'
12380 else
12381   HAVE_LONG_DOUBLE_TRUE='#'
12382   HAVE_LONG_DOUBLE_FALSE=
12383 fi
12384
12385
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double equals double" >&5
12387 $as_echo_n "checking whether long double equals double... " >&6; }
12388 if test "${newlib_cv_ldbl_eq_dbl+set}" = set; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391   cat > conftest.c <<EOF
12392 #include <float.h>
12393 #if DBL_MANT_DIG == LDBL_MANT_DIG  &&  LDBL_MIN_EXP == DBL_MIN_EXP  && \
12394     LDBL_MAX_EXP == DBL_MAX_EXP
12395   #define _LDBL_EQ_DBL
12396  #else
12397   #error "LDBL != DBL"
12398 #endif
12399 EOF
12400 if { ac_try='${CC} $CFLAGS $CPPFLAGS -c -o conftest.o conftest.c
12401                                                         1>&5'
12402   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12403   (eval $ac_try) 2>&5
12404   ac_status=$?
12405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406   test $ac_status = 0; }; }
12407 then
12408   newlib_cv_ldbl_eq_dbl=yes;
12409 else
12410   newlib_cv_ldbl_eq_dbl=no;
12411 fi
12412 rm -f conftest*
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $newlib_cv_ldbl_eq_dbl" >&5
12415 $as_echo "$newlib_cv_ldbl_eq_dbl" >&6; }
12416 if test $newlib_cv_ldbl_eq_dbl = yes; then
12417   cat >>confdefs.h <<_ACEOF
12418 #define _LDBL_EQ_DBL 1
12419 _ACEOF
12420
12421 fi
12422
12423
12424
12425 ac_config_files="$ac_config_files Makefile"
12426
12427 cat >confcache <<\_ACEOF
12428 # This file is a shell script that caches the results of configure
12429 # tests run on this system so they can be shared between configure
12430 # scripts and configure runs, see configure's option --config-cache.
12431 # It is not useful on other systems.  If it contains results you don't
12432 # want to keep, you may remove or edit it.
12433 #
12434 # config.status only pays attention to the cache file if you give it
12435 # the --recheck option to rerun configure.
12436 #
12437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12439 # following values.
12440
12441 _ACEOF
12442
12443 # The following way of writing the cache mishandles newlines in values,
12444 # but we know of no workaround that is simple, portable, and efficient.
12445 # So, we kill variables containing newlines.
12446 # Ultrix sh set writes to stderr and can't be redirected directly,
12447 # and sets the high bit in the cache file unless we assign to the vars.
12448 (
12449   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12450     eval ac_val=\$$ac_var
12451     case $ac_val in #(
12452     *${as_nl}*)
12453       case $ac_var in #(
12454       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12455 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12456       esac
12457       case $ac_var in #(
12458       _ | IFS | as_nl) ;; #(
12459       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12460       *) { eval $ac_var=; unset $ac_var;} ;;
12461       esac ;;
12462     esac
12463   done
12464
12465   (set) 2>&1 |
12466     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12467     *${as_nl}ac_space=\ *)
12468       # `set' does not quote correctly, so add quotes: double-quote
12469       # substitution turns \\\\ into \\, and sed turns \\ into \.
12470       sed -n \
12471         "s/'/'\\\\''/g;
12472           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12473       ;; #(
12474     *)
12475       # `set' quotes correctly as required by POSIX, so do not add quotes.
12476       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12477       ;;
12478     esac |
12479     sort
12480 ) |
12481   sed '
12482      /^ac_cv_env_/b end
12483      t clear
12484      :clear
12485      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12486      t end
12487      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12488      :end' >>confcache
12489 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12490   if test -w "$cache_file"; then
12491     test "x$cache_file" != "x/dev/null" &&
12492       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12493 $as_echo "$as_me: updating cache $cache_file" >&6;}
12494     cat confcache >$cache_file
12495   else
12496     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12497 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12498   fi
12499 fi
12500 rm -f confcache
12501
12502 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12503 # Let make expand exec_prefix.
12504 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12505
12506 DEFS=-DHAVE_CONFIG_H
12507
12508 ac_libobjs=
12509 ac_ltlibobjs=
12510 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12511   # 1. Remove the extension, and $U if already installed.
12512   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12513   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12514   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12515   #    will be set to the directory where LIBOBJS objects are built.
12516   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12517   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12518 done
12519 LIBOBJS=$ac_libobjs
12520
12521 LTLIBOBJS=$ac_ltlibobjs
12522
12523
12524 if test -z "${MAY_SUPPLY_SYSCALLS_TRUE}" && test -z "${MAY_SUPPLY_SYSCALLS_FALSE}"; then
12525   as_fn_error "conditional \"MAY_SUPPLY_SYSCALLS\" was never defined.
12526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12527 fi
12528  if test -n "$EXEEXT"; then
12529   am__EXEEXT_TRUE=
12530   am__EXEEXT_FALSE='#'
12531 else
12532   am__EXEEXT_TRUE='#'
12533   am__EXEEXT_FALSE=
12534 fi
12535
12536 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12537   as_fn_error "conditional \"AMDEP\" was never defined.
12538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12539 fi
12540 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12541   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12543 fi
12544 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12545   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12547 fi
12548 if test -z "${ELIX_LEVEL_0_TRUE}" && test -z "${ELIX_LEVEL_0_FALSE}"; then
12549   as_fn_error "conditional \"ELIX_LEVEL_0\" was never defined.
12550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12551 fi
12552 if test -z "${ELIX_LEVEL_1_TRUE}" && test -z "${ELIX_LEVEL_1_FALSE}"; then
12553   as_fn_error "conditional \"ELIX_LEVEL_1\" was never defined.
12554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12555 fi
12556 if test -z "${ELIX_LEVEL_2_TRUE}" && test -z "${ELIX_LEVEL_2_FALSE}"; then
12557   as_fn_error "conditional \"ELIX_LEVEL_2\" was never defined.
12558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12559 fi
12560 if test -z "${ELIX_LEVEL_3_TRUE}" && test -z "${ELIX_LEVEL_3_FALSE}"; then
12561   as_fn_error "conditional \"ELIX_LEVEL_3\" was never defined.
12562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12563 fi
12564 if test -z "${ELIX_LEVEL_4_TRUE}" && test -z "${ELIX_LEVEL_4_FALSE}"; then
12565   as_fn_error "conditional \"ELIX_LEVEL_4\" was never defined.
12566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12567 fi
12568 if test -z "${USE_LIBTOOL_TRUE}" && test -z "${USE_LIBTOOL_FALSE}"; then
12569   as_fn_error "conditional \"USE_LIBTOOL\" was never defined.
12570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12571 fi
12572 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12573   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12575 fi
12576 if test -z "${NEWLIB_HW_FP_TRUE}" && test -z "${NEWLIB_HW_FP_FALSE}"; then
12577   as_fn_error "conditional \"NEWLIB_HW_FP\" was never defined.
12578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12579 fi
12580 if test -z "${HAVE_DOC_TRUE}" && test -z "${HAVE_DOC_FALSE}"; then
12581   as_fn_error "conditional \"HAVE_DOC\" was never defined.
12582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12583 fi
12584 if test -z "${HAVE_LONG_DOUBLE_TRUE}" && test -z "${HAVE_LONG_DOUBLE_FALSE}"; then
12585   as_fn_error "conditional \"HAVE_LONG_DOUBLE\" was never defined.
12586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12587 fi
12588
12589 : ${CONFIG_STATUS=./config.status}
12590 ac_write_fail=0
12591 ac_clean_files_save=$ac_clean_files
12592 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12594 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12595 as_write_fail=0
12596 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12597 #! $SHELL
12598 # Generated by $as_me.
12599 # Run this file to recreate the current configuration.
12600 # Compiler output produced by configure, useful for debugging
12601 # configure, is in config.log if it exists.
12602
12603 debug=false
12604 ac_cs_recheck=false
12605 ac_cs_silent=false
12606
12607 SHELL=\${CONFIG_SHELL-$SHELL}
12608 export SHELL
12609 _ASEOF
12610 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12611 ## -------------------- ##
12612 ## M4sh Initialization. ##
12613 ## -------------------- ##
12614
12615 # Be more Bourne compatible
12616 DUALCASE=1; export DUALCASE # for MKS sh
12617 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12618   emulate sh
12619   NULLCMD=:
12620   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12621   # is contrary to our usage.  Disable this feature.
12622   alias -g '${1+"$@"}'='"$@"'
12623   setopt NO_GLOB_SUBST
12624 else
12625   case `(set -o) 2>/dev/null` in #(
12626   *posix*) :
12627     set -o posix ;; #(
12628   *) :
12629      ;;
12630 esac
12631 fi
12632
12633
12634 as_nl='
12635 '
12636 export as_nl
12637 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12638 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12639 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12640 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12641 # Prefer a ksh shell builtin over an external printf program on Solaris,
12642 # but without wasting forks for bash or zsh.
12643 if test -z "$BASH_VERSION$ZSH_VERSION" \
12644     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12645   as_echo='print -r --'
12646   as_echo_n='print -rn --'
12647 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12648   as_echo='printf %s\n'
12649   as_echo_n='printf %s'
12650 else
12651   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12652     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12653     as_echo_n='/usr/ucb/echo -n'
12654   else
12655     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12656     as_echo_n_body='eval
12657       arg=$1;
12658       case $arg in #(
12659       *"$as_nl"*)
12660         expr "X$arg" : "X\\(.*\\)$as_nl";
12661         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12662       esac;
12663       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12664     '
12665     export as_echo_n_body
12666     as_echo_n='sh -c $as_echo_n_body as_echo'
12667   fi
12668   export as_echo_body
12669   as_echo='sh -c $as_echo_body as_echo'
12670 fi
12671
12672 # The user is always right.
12673 if test "${PATH_SEPARATOR+set}" != set; then
12674   PATH_SEPARATOR=:
12675   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12676     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12677       PATH_SEPARATOR=';'
12678   }
12679 fi
12680
12681
12682 # IFS
12683 # We need space, tab and new line, in precisely that order.  Quoting is
12684 # there to prevent editors from complaining about space-tab.
12685 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12686 # splitting by setting IFS to empty value.)
12687 IFS=" ""        $as_nl"
12688
12689 # Find who we are.  Look in the path if we contain no directory separator.
12690 case $0 in #((
12691   *[\\/]* ) as_myself=$0 ;;
12692   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12694 do
12695   IFS=$as_save_IFS
12696   test -z "$as_dir" && as_dir=.
12697     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12698   done
12699 IFS=$as_save_IFS
12700
12701      ;;
12702 esac
12703 # We did not find ourselves, most probably we were run as `sh COMMAND'
12704 # in which case we are not to be found in the path.
12705 if test "x$as_myself" = x; then
12706   as_myself=$0
12707 fi
12708 if test ! -f "$as_myself"; then
12709   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12710   exit 1
12711 fi
12712
12713 # Unset variables that we do not need and which cause bugs (e.g. in
12714 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12715 # suppresses any "Segmentation fault" message there.  '((' could
12716 # trigger a bug in pdksh 5.2.14.
12717 for as_var in BASH_ENV ENV MAIL MAILPATH
12718 do eval test x\${$as_var+set} = xset \
12719   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12720 done
12721 PS1='$ '
12722 PS2='> '
12723 PS4='+ '
12724
12725 # NLS nuisances.
12726 LC_ALL=C
12727 export LC_ALL
12728 LANGUAGE=C
12729 export LANGUAGE
12730
12731 # CDPATH.
12732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12733
12734
12735 # as_fn_error ERROR [LINENO LOG_FD]
12736 # ---------------------------------
12737 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12738 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12739 # script with status $?, using 1 if that was 0.
12740 as_fn_error ()
12741 {
12742   as_status=$?; test $as_status -eq 0 && as_status=1
12743   if test "$3"; then
12744     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12745     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12746   fi
12747   $as_echo "$as_me: error: $1" >&2
12748   as_fn_exit $as_status
12749 } # as_fn_error
12750
12751
12752 # as_fn_set_status STATUS
12753 # -----------------------
12754 # Set $? to STATUS, without forking.
12755 as_fn_set_status ()
12756 {
12757   return $1
12758 } # as_fn_set_status
12759
12760 # as_fn_exit STATUS
12761 # -----------------
12762 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12763 as_fn_exit ()
12764 {
12765   set +e
12766   as_fn_set_status $1
12767   exit $1
12768 } # as_fn_exit
12769
12770 # as_fn_unset VAR
12771 # ---------------
12772 # Portably unset VAR.
12773 as_fn_unset ()
12774 {
12775   { eval $1=; unset $1;}
12776 }
12777 as_unset=as_fn_unset
12778 # as_fn_append VAR VALUE
12779 # ----------------------
12780 # Append the text in VALUE to the end of the definition contained in VAR. Take
12781 # advantage of any shell optimizations that allow amortized linear growth over
12782 # repeated appends, instead of the typical quadratic growth present in naive
12783 # implementations.
12784 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12785   eval 'as_fn_append ()
12786   {
12787     eval $1+=\$2
12788   }'
12789 else
12790   as_fn_append ()
12791   {
12792     eval $1=\$$1\$2
12793   }
12794 fi # as_fn_append
12795
12796 # as_fn_arith ARG...
12797 # ------------------
12798 # Perform arithmetic evaluation on the ARGs, and store the result in the
12799 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12800 # must be portable across $(()) and expr.
12801 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12802   eval 'as_fn_arith ()
12803   {
12804     as_val=$(( $* ))
12805   }'
12806 else
12807   as_fn_arith ()
12808   {
12809     as_val=`expr "$@" || test $? -eq 1`
12810   }
12811 fi # as_fn_arith
12812
12813
12814 if expr a : '\(a\)' >/dev/null 2>&1 &&
12815    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12816   as_expr=expr
12817 else
12818   as_expr=false
12819 fi
12820
12821 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12822   as_basename=basename
12823 else
12824   as_basename=false
12825 fi
12826
12827 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12828   as_dirname=dirname
12829 else
12830   as_dirname=false
12831 fi
12832
12833 as_me=`$as_basename -- "$0" ||
12834 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12835          X"$0" : 'X\(//\)$' \| \
12836          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12837 $as_echo X/"$0" |
12838     sed '/^.*\/\([^/][^/]*\)\/*$/{
12839             s//\1/
12840             q
12841           }
12842           /^X\/\(\/\/\)$/{
12843             s//\1/
12844             q
12845           }
12846           /^X\/\(\/\).*/{
12847             s//\1/
12848             q
12849           }
12850           s/.*/./; q'`
12851
12852 # Avoid depending upon Character Ranges.
12853 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12854 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12855 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12856 as_cr_digits='0123456789'
12857 as_cr_alnum=$as_cr_Letters$as_cr_digits
12858
12859 ECHO_C= ECHO_N= ECHO_T=
12860 case `echo -n x` in #(((((
12861 -n*)
12862   case `echo 'xy\c'` in
12863   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12864   xy)  ECHO_C='\c';;
12865   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12866        ECHO_T=' ';;
12867   esac;;
12868 *)
12869   ECHO_N='-n';;
12870 esac
12871
12872 rm -f conf$$ conf$$.exe conf$$.file
12873 if test -d conf$$.dir; then
12874   rm -f conf$$.dir/conf$$.file
12875 else
12876   rm -f conf$$.dir
12877   mkdir conf$$.dir 2>/dev/null
12878 fi
12879 if (echo >conf$$.file) 2>/dev/null; then
12880   if ln -s conf$$.file conf$$ 2>/dev/null; then
12881     as_ln_s='ln -s'
12882     # ... but there are two gotchas:
12883     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12884     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12885     # In both cases, we have to default to `cp -p'.
12886     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12887       as_ln_s='cp -p'
12888   elif ln conf$$.file conf$$ 2>/dev/null; then
12889     as_ln_s=ln
12890   else
12891     as_ln_s='cp -p'
12892   fi
12893 else
12894   as_ln_s='cp -p'
12895 fi
12896 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12897 rmdir conf$$.dir 2>/dev/null
12898
12899
12900 # as_fn_mkdir_p
12901 # -------------
12902 # Create "$as_dir" as a directory, including parents if necessary.
12903 as_fn_mkdir_p ()
12904 {
12905
12906   case $as_dir in #(
12907   -*) as_dir=./$as_dir;;
12908   esac
12909   test -d "$as_dir" || eval $as_mkdir_p || {
12910     as_dirs=
12911     while :; do
12912       case $as_dir in #(
12913       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12914       *) as_qdir=$as_dir;;
12915       esac
12916       as_dirs="'$as_qdir' $as_dirs"
12917       as_dir=`$as_dirname -- "$as_dir" ||
12918 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12919          X"$as_dir" : 'X\(//\)[^/]' \| \
12920          X"$as_dir" : 'X\(//\)$' \| \
12921          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12922 $as_echo X"$as_dir" |
12923     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12924             s//\1/
12925             q
12926           }
12927           /^X\(\/\/\)[^/].*/{
12928             s//\1/
12929             q
12930           }
12931           /^X\(\/\/\)$/{
12932             s//\1/
12933             q
12934           }
12935           /^X\(\/\).*/{
12936             s//\1/
12937             q
12938           }
12939           s/.*/./; q'`
12940       test -d "$as_dir" && break
12941     done
12942     test -z "$as_dirs" || eval "mkdir $as_dirs"
12943   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12944
12945
12946 } # as_fn_mkdir_p
12947 if mkdir -p . 2>/dev/null; then
12948   as_mkdir_p='mkdir -p "$as_dir"'
12949 else
12950   test -d ./-p && rmdir ./-p
12951   as_mkdir_p=false
12952 fi
12953
12954 if test -x / >/dev/null 2>&1; then
12955   as_test_x='test -x'
12956 else
12957   if ls -dL / >/dev/null 2>&1; then
12958     as_ls_L_option=L
12959   else
12960     as_ls_L_option=
12961   fi
12962   as_test_x='
12963     eval sh -c '\''
12964       if test -d "$1"; then
12965         test -d "$1/.";
12966       else
12967         case $1 in #(
12968         -*)set "./$1";;
12969         esac;
12970         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12971         ???[sx]*):;;*)false;;esac;fi
12972     '\'' sh
12973   '
12974 fi
12975 as_executable_p=$as_test_x
12976
12977 # Sed expression to map a string onto a valid CPP name.
12978 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12979
12980 # Sed expression to map a string onto a valid variable name.
12981 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12982
12983
12984 exec 6>&1
12985 ## ----------------------------------- ##
12986 ## Main body of $CONFIG_STATUS script. ##
12987 ## ----------------------------------- ##
12988 _ASEOF
12989 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12990
12991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12992 # Save the log message, to keep $0 and so on meaningful, and to
12993 # report actual input values of CONFIG_FILES etc. instead of their
12994 # values after options handling.
12995 ac_log="
12996 This file was extended by newlib $as_me 1.19.0, which was
12997 generated by GNU Autoconf 2.65.  Invocation command line was
12998
12999   CONFIG_FILES    = $CONFIG_FILES
13000   CONFIG_HEADERS  = $CONFIG_HEADERS
13001   CONFIG_LINKS    = $CONFIG_LINKS
13002   CONFIG_COMMANDS = $CONFIG_COMMANDS
13003   $ $0 $@
13004
13005 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13006 "
13007
13008 _ACEOF
13009
13010 case $ac_config_files in *"
13011 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13012 esac
13013
13014 case $ac_config_headers in *"
13015 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13016 esac
13017
13018
13019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13020 # Files that config.status was made for.
13021 config_files="$ac_config_files"
13022 config_headers="$ac_config_headers"
13023 config_commands="$ac_config_commands"
13024
13025 _ACEOF
13026
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028 ac_cs_usage="\
13029 \`$as_me' instantiates files and other configuration actions
13030 from templates according to the current configuration.  Unless the files
13031 and actions are specified as TAGs, all are instantiated by default.
13032
13033 Usage: $0 [OPTION]... [TAG]...
13034
13035   -h, --help       print this help, then exit
13036   -V, --version    print version number and configuration settings, then exit
13037       --config     print configuration, then exit
13038   -q, --quiet, --silent
13039                    do not print progress messages
13040   -d, --debug      don't remove temporary files
13041       --recheck    update $as_me by reconfiguring in the same conditions
13042       --file=FILE[:TEMPLATE]
13043                    instantiate the configuration file FILE
13044       --header=FILE[:TEMPLATE]
13045                    instantiate the configuration header FILE
13046
13047 Configuration files:
13048 $config_files
13049
13050 Configuration headers:
13051 $config_headers
13052
13053 Configuration commands:
13054 $config_commands
13055
13056 Report bugs to the package provider."
13057
13058 _ACEOF
13059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13060 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13061 ac_cs_version="\\
13062 newlib config.status 1.19.0
13063 configured by $0, generated by GNU Autoconf 2.65,
13064   with options \\"\$ac_cs_config\\"
13065
13066 Copyright (C) 2009 Free Software Foundation, Inc.
13067 This config.status script is free software; the Free Software Foundation
13068 gives unlimited permission to copy, distribute and modify it."
13069
13070 ac_pwd='$ac_pwd'
13071 srcdir='$srcdir'
13072 INSTALL='$INSTALL'
13073 MKDIR_P='$MKDIR_P'
13074 AWK='$AWK'
13075 test -n "\$AWK" || AWK=awk
13076 _ACEOF
13077
13078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13079 # The default lists apply if the user does not specify any file.
13080 ac_need_defaults=:
13081 while test $# != 0
13082 do
13083   case $1 in
13084   --*=*)
13085     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13086     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13087     ac_shift=:
13088     ;;
13089   *)
13090     ac_option=$1
13091     ac_optarg=$2
13092     ac_shift=shift
13093     ;;
13094   esac
13095
13096   case $ac_option in
13097   # Handling of the options.
13098   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13099     ac_cs_recheck=: ;;
13100   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13101     $as_echo "$ac_cs_version"; exit ;;
13102   --config | --confi | --conf | --con | --co | --c )
13103     $as_echo "$ac_cs_config"; exit ;;
13104   --debug | --debu | --deb | --de | --d | -d )
13105     debug=: ;;
13106   --file | --fil | --fi | --f )
13107     $ac_shift
13108     case $ac_optarg in
13109     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13110     esac
13111     as_fn_append CONFIG_FILES " '$ac_optarg'"
13112     ac_need_defaults=false;;
13113   --header | --heade | --head | --hea )
13114     $ac_shift
13115     case $ac_optarg in
13116     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13117     esac
13118     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13119     ac_need_defaults=false;;
13120   --he | --h)
13121     # Conflict between --help and --header
13122     as_fn_error "ambiguous option: \`$1'
13123 Try \`$0 --help' for more information.";;
13124   --help | --hel | -h )
13125     $as_echo "$ac_cs_usage"; exit ;;
13126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13127   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13128     ac_cs_silent=: ;;
13129
13130   # This is an error.
13131   -*) as_fn_error "unrecognized option: \`$1'
13132 Try \`$0 --help' for more information." ;;
13133
13134   *) as_fn_append ac_config_targets " $1"
13135      ac_need_defaults=false ;;
13136
13137   esac
13138   shift
13139 done
13140
13141 ac_configure_extra_args=
13142
13143 if $ac_cs_silent; then
13144   exec 6>/dev/null
13145   ac_configure_extra_args="$ac_configure_extra_args --silent"
13146 fi
13147
13148 _ACEOF
13149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13150 if \$ac_cs_recheck; then
13151   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13152   shift
13153   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13154   CONFIG_SHELL='$SHELL'
13155   export CONFIG_SHELL
13156   exec "\$@"
13157 fi
13158
13159 _ACEOF
13160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13161 exec 5>>config.log
13162 {
13163   echo
13164   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13165 ## Running $as_me. ##
13166 _ASBOX
13167   $as_echo "$ac_log"
13168 } >&5
13169
13170 _ACEOF
13171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13172 #
13173 # INIT-COMMANDS
13174 #
13175 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13176
13177
13178 # The HP-UX ksh and POSIX shell print the target directory to stdout
13179 # if CDPATH is set.
13180 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13181
13182 sed_quote_subst='$sed_quote_subst'
13183 double_quote_subst='$double_quote_subst'
13184 delay_variable_subst='$delay_variable_subst'
13185 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13186 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13187 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13188 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13189 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
13190 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13191 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13192 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13193 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13194 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13195 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13196 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13197 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13198 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13199 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13200 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13201 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13202 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13203 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13204 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13205 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13206 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13207 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13208 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13209 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13210 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13211 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13212 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13213 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13214 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13215 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13216 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13217 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13218 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13219 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13220 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13221 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13222 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13223 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13224 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13225 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13226 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13227 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13228 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13229 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13230 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13231 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13232 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13234 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13235 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"`'
13236 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13237 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13238 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13239 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13240 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13241 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13242 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13243 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13244 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13245 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13246 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13247 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13248 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13249 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13250 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13251 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13252 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13253 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13254 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13255 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13256 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13257 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13258 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13259 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13260 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13261 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13262 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13263 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13264 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13265 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13266 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13267 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13268 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13269 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13270 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13271 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13272 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13273 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13274 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13275 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13276 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13277 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13278 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13279 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13280 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13281 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13282 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13283 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13284 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13285 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13286 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13287 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13288 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13289 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13290 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13291 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13292 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13293 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13294 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13295 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13296 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13297 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13298 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13299 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13300 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13301 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13302 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13303 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13304 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13305 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13306 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13307
13308 LTCC='$LTCC'
13309 LTCFLAGS='$LTCFLAGS'
13310 compiler='$compiler_DEFAULT'
13311
13312 # A function that is used when there is no print builtin or printf.
13313 func_fallback_echo ()
13314 {
13315   eval 'cat <<_LTECHO_EOF
13316 \$1
13317 _LTECHO_EOF'
13318 }
13319
13320 # Quote evaled strings.
13321 for var in SED \
13322 SHELL \
13323 ECHO \
13324 AS \
13325 DLLTOOL \
13326 OBJDUMP \
13327 GREP \
13328 EGREP \
13329 FGREP \
13330 LD \
13331 NM \
13332 LN_S \
13333 lt_SP2NL \
13334 lt_NL2SP \
13335 reload_flag \
13336 deplibs_check_method \
13337 file_magic_cmd \
13338 AR \
13339 AR_FLAGS \
13340 STRIP \
13341 RANLIB \
13342 CC \
13343 CFLAGS \
13344 compiler \
13345 lt_cv_sys_global_symbol_pipe \
13346 lt_cv_sys_global_symbol_to_cdecl \
13347 lt_cv_sys_global_symbol_to_c_name_address \
13348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13349 lt_prog_compiler_no_builtin_flag \
13350 lt_prog_compiler_wl \
13351 lt_prog_compiler_pic \
13352 lt_prog_compiler_static \
13353 lt_cv_prog_compiler_c_o \
13354 need_locks \
13355 DSYMUTIL \
13356 NMEDIT \
13357 LIPO \
13358 OTOOL \
13359 OTOOL64 \
13360 shrext_cmds \
13361 export_dynamic_flag_spec \
13362 whole_archive_flag_spec \
13363 compiler_needs_object \
13364 with_gnu_ld \
13365 allow_undefined_flag \
13366 no_undefined_flag \
13367 hardcode_libdir_flag_spec \
13368 hardcode_libdir_flag_spec_ld \
13369 hardcode_libdir_separator \
13370 fix_srcfile_path \
13371 exclude_expsyms \
13372 include_expsyms \
13373 file_list_spec \
13374 variables_saved_for_relink \
13375 libname_spec \
13376 library_names_spec \
13377 soname_spec \
13378 install_override_mode \
13379 finish_eval \
13380 old_striplib \
13381 striplib; do
13382     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13383     *[\\\\\\\`\\"\\\$]*)
13384       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13385       ;;
13386     *)
13387       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13388       ;;
13389     esac
13390 done
13391
13392 # Double-quote double-evaled strings.
13393 for var in reload_cmds \
13394 old_postinstall_cmds \
13395 old_postuninstall_cmds \
13396 old_archive_cmds \
13397 extract_expsyms_cmds \
13398 old_archive_from_new_cmds \
13399 old_archive_from_expsyms_cmds \
13400 archive_cmds \
13401 archive_expsym_cmds \
13402 module_cmds \
13403 module_expsym_cmds \
13404 export_symbols_cmds \
13405 prelink_cmds \
13406 postinstall_cmds \
13407 postuninstall_cmds \
13408 finish_cmds \
13409 sys_lib_search_path_spec \
13410 sys_lib_dlsearch_path_spec; do
13411     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13412     *[\\\\\\\`\\"\\\$]*)
13413       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13414       ;;
13415     *)
13416       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13417       ;;
13418     esac
13419 done
13420
13421 ac_aux_dir='$ac_aux_dir'
13422 xsi_shell='$xsi_shell'
13423 lt_shell_append='$lt_shell_append'
13424
13425 # See if we are running on zsh, and set the options which allow our
13426 # commands through without removal of \ escapes INIT.
13427 if test -n "\${ZSH_VERSION+set}" ; then
13428    setopt NO_GLOB_SUBST
13429 fi
13430
13431
13432     PACKAGE='$PACKAGE'
13433     VERSION='$VERSION'
13434     TIMESTAMP='$TIMESTAMP'
13435     RM='$RM'
13436     ofile='$ofile'
13437
13438
13439
13440 srcdir=${srcdir}
13441 host=${host}
13442 with_multisubdir=${with_multisubdir}
13443 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13444 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13445 newlib_basedir=${newlib_basedir}
13446 CC="${CC}"
13447 LDFLAGS="${LDFLAGS}"
13448
13449
13450 _ACEOF
13451
13452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13453
13454 # Handling of arguments.
13455 for ac_config_target in $ac_config_targets
13456 do
13457   case $ac_config_target in
13458     "newlib.h") CONFIG_HEADERS="$CONFIG_HEADERS newlib.h:newlib.hin" ;;
13459     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13460     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13461     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13462
13463   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13464   esac
13465 done
13466
13467
13468 # If the user did not use the arguments to specify the items to instantiate,
13469 # then the envvar interface is used.  Set only those that are not.
13470 # We use the long form for the default assignment because of an extremely
13471 # bizarre bug on SunOS 4.1.3.
13472 if $ac_need_defaults; then
13473   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13474   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13475   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13476 fi
13477
13478 # Have a temporary directory for convenience.  Make it in the build tree
13479 # simply because there is no reason against having it here, and in addition,
13480 # creating and moving files from /tmp can sometimes cause problems.
13481 # Hook for its removal unless debugging.
13482 # Note that there is a small window in which the directory will not be cleaned:
13483 # after its creation but before its name has been assigned to `$tmp'.
13484 $debug ||
13485 {
13486   tmp=
13487   trap 'exit_status=$?
13488   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13489 ' 0
13490   trap 'as_fn_exit 1' 1 2 13 15
13491 }
13492 # Create a (secure) tmp directory for tmp files.
13493
13494 {
13495   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13496   test -n "$tmp" && test -d "$tmp"
13497 }  ||
13498 {
13499   tmp=./conf$$-$RANDOM
13500   (umask 077 && mkdir "$tmp")
13501 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13502
13503 # Set up the scripts for CONFIG_FILES section.
13504 # No need to generate them if there are no CONFIG_FILES.
13505 # This happens for instance with `./config.status config.h'.
13506 if test -n "$CONFIG_FILES"; then
13507
13508
13509 ac_cr=`echo X | tr X '\015'`
13510 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13511 # But we know of no other shell where ac_cr would be empty at this
13512 # point, so we can use a bashism as a fallback.
13513 if test "x$ac_cr" = x; then
13514   eval ac_cr=\$\'\\r\'
13515 fi
13516 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13517 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13518   ac_cs_awk_cr='\r'
13519 else
13520   ac_cs_awk_cr=$ac_cr
13521 fi
13522
13523 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13524 _ACEOF
13525
13526
13527 {
13528   echo "cat >conf$$subs.awk <<_ACEOF" &&
13529   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13530   echo "_ACEOF"
13531 } >conf$$subs.sh ||
13532   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13533 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13534 ac_delim='%!_!# '
13535 for ac_last_try in false false false false false :; do
13536   . ./conf$$subs.sh ||
13537     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13538
13539   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13540   if test $ac_delim_n = $ac_delim_num; then
13541     break
13542   elif $ac_last_try; then
13543     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13544   else
13545     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13546   fi
13547 done
13548 rm -f conf$$subs.sh
13549
13550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13551 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13552 _ACEOF
13553 sed -n '
13554 h
13555 s/^/S["/; s/!.*/"]=/
13556 p
13557 g
13558 s/^[^!]*!//
13559 :repl
13560 t repl
13561 s/'"$ac_delim"'$//
13562 t delim
13563 :nl
13564 h
13565 s/\(.\{148\}\)..*/\1/
13566 t more1
13567 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13568 p
13569 n
13570 b repl
13571 :more1
13572 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13573 p
13574 g
13575 s/.\{148\}//
13576 t nl
13577 :delim
13578 h
13579 s/\(.\{148\}\)..*/\1/
13580 t more2
13581 s/["\\]/\\&/g; s/^/"/; s/$/"/
13582 p
13583 b
13584 :more2
13585 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13586 p
13587 g
13588 s/.\{148\}//
13589 t delim
13590 ' <conf$$subs.awk | sed '
13591 /^[^""]/{
13592   N
13593   s/\n//
13594 }
13595 ' >>$CONFIG_STATUS || ac_write_fail=1
13596 rm -f conf$$subs.awk
13597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13598 _ACAWK
13599 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13600   for (key in S) S_is_set[key] = 1
13601   FS = "\a"
13602
13603 }
13604 {
13605   line = $ 0
13606   nfields = split(line, field, "@")
13607   substed = 0
13608   len = length(field[1])
13609   for (i = 2; i < nfields; i++) {
13610     key = field[i]
13611     keylen = length(key)
13612     if (S_is_set[key]) {
13613       value = S[key]
13614       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13615       len += length(value) + length(field[++i])
13616       substed = 1
13617     } else
13618       len += 1 + keylen
13619   }
13620
13621   print line
13622 }
13623
13624 _ACAWK
13625 _ACEOF
13626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13627 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13628   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13629 else
13630   cat
13631 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13632   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13633 _ACEOF
13634
13635 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13636 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13637 # trailing colons and then remove the whole line if VPATH becomes empty
13638 # (actually we leave an empty line to preserve line numbers).
13639 if test "x$srcdir" = x.; then
13640   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13641 s/:*\$(srcdir):*/:/
13642 s/:*\${srcdir}:*/:/
13643 s/:*@srcdir@:*/:/
13644 s/^\([^=]*=[     ]*\):*/\1/
13645 s/:*$//
13646 s/^[^=]*=[       ]*$//
13647 }'
13648 fi
13649
13650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13651 fi # test -n "$CONFIG_FILES"
13652
13653 # Set up the scripts for CONFIG_HEADERS section.
13654 # No need to generate them if there are no CONFIG_HEADERS.
13655 # This happens for instance with `./config.status Makefile'.
13656 if test -n "$CONFIG_HEADERS"; then
13657 cat >"$tmp/defines.awk" <<\_ACAWK ||
13658 BEGIN {
13659 _ACEOF
13660
13661 # Transform confdefs.h into an awk script `defines.awk', embedded as
13662 # here-document in config.status, that substitutes the proper values into
13663 # config.h.in to produce config.h.
13664
13665 # Create a delimiter string that does not exist in confdefs.h, to ease
13666 # handling of long lines.
13667 ac_delim='%!_!# '
13668 for ac_last_try in false false :; do
13669   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13670   if test -z "$ac_t"; then
13671     break
13672   elif $ac_last_try; then
13673     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13674   else
13675     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13676   fi
13677 done
13678
13679 # For the awk script, D is an array of macro values keyed by name,
13680 # likewise P contains macro parameters if any.  Preserve backslash
13681 # newline sequences.
13682
13683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13684 sed -n '
13685 s/.\{148\}/&'"$ac_delim"'/g
13686 t rset
13687 :rset
13688 s/^[     ]*#[    ]*define[       ][      ]*/ /
13689 t def
13690 d
13691 :def
13692 s/\\$//
13693 t bsnl
13694 s/["\\]/\\&/g
13695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13696 D["\1"]=" \3"/p
13697 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13698 d
13699 :bsnl
13700 s/["\\]/\\&/g
13701 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13702 D["\1"]=" \3\\\\\\n"\\/p
13703 t cont
13704 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13705 t cont
13706 d
13707 :cont
13708 n
13709 s/.\{148\}/&'"$ac_delim"'/g
13710 t clear
13711 :clear
13712 s/\\$//
13713 t bsnlc
13714 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13715 d
13716 :bsnlc
13717 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13718 b cont
13719 ' <confdefs.h | sed '
13720 s/'"$ac_delim"'/"\\\
13721 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13722
13723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13724   for (key in D) D_is_set[key] = 1
13725   FS = "\a"
13726 }
13727 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13728   line = \$ 0
13729   split(line, arg, " ")
13730   if (arg[1] == "#") {
13731     defundef = arg[2]
13732     mac1 = arg[3]
13733   } else {
13734     defundef = substr(arg[1], 2)
13735     mac1 = arg[2]
13736   }
13737   split(mac1, mac2, "(") #)
13738   macro = mac2[1]
13739   prefix = substr(line, 1, index(line, defundef) - 1)
13740   if (D_is_set[macro]) {
13741     # Preserve the white space surrounding the "#".
13742     print prefix "define", macro P[macro] D[macro]
13743     next
13744   } else {
13745     # Replace #undef with comments.  This is necessary, for example,
13746     # in the case of _POSIX_SOURCE, which is predefined and required
13747     # on some systems where configure will not decide to define it.
13748     if (defundef == "undef") {
13749       print "/*", prefix defundef, macro, "*/"
13750       next
13751     }
13752   }
13753 }
13754 { print }
13755 _ACAWK
13756 _ACEOF
13757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13758   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13759 fi # test -n "$CONFIG_HEADERS"
13760
13761
13762 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13763 shift
13764 for ac_tag
13765 do
13766   case $ac_tag in
13767   :[FHLC]) ac_mode=$ac_tag; continue;;
13768   esac
13769   case $ac_mode$ac_tag in
13770   :[FHL]*:*);;
13771   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13772   :[FH]-) ac_tag=-:-;;
13773   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13774   esac
13775   ac_save_IFS=$IFS
13776   IFS=:
13777   set x $ac_tag
13778   IFS=$ac_save_IFS
13779   shift
13780   ac_file=$1
13781   shift
13782
13783   case $ac_mode in
13784   :L) ac_source=$1;;
13785   :[FH])
13786     ac_file_inputs=
13787     for ac_f
13788     do
13789       case $ac_f in
13790       -) ac_f="$tmp/stdin";;
13791       *) # Look for the file first in the build tree, then in the source tree
13792          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13793          # because $ac_f cannot contain `:'.
13794          test -f "$ac_f" ||
13795            case $ac_f in
13796            [\\/$]*) false;;
13797            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13798            esac ||
13799            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13800       esac
13801       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13802       as_fn_append ac_file_inputs " '$ac_f'"
13803     done
13804
13805     # Let's still pretend it is `configure' which instantiates (i.e., don't
13806     # use $as_me), people would be surprised to read:
13807     #    /* config.h.  Generated by config.status.  */
13808     configure_input='Generated from '`
13809           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13810         `' by configure.'
13811     if test x"$ac_file" != x-; then
13812       configure_input="$ac_file.  $configure_input"
13813       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13814 $as_echo "$as_me: creating $ac_file" >&6;}
13815     fi
13816     # Neutralize special characters interpreted by sed in replacement strings.
13817     case $configure_input in #(
13818     *\&* | *\|* | *\\* )
13819        ac_sed_conf_input=`$as_echo "$configure_input" |
13820        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13821     *) ac_sed_conf_input=$configure_input;;
13822     esac
13823
13824     case $ac_tag in
13825     *:-:* | *:-) cat >"$tmp/stdin" \
13826       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13827     esac
13828     ;;
13829   esac
13830
13831   ac_dir=`$as_dirname -- "$ac_file" ||
13832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13833          X"$ac_file" : 'X\(//\)[^/]' \| \
13834          X"$ac_file" : 'X\(//\)$' \| \
13835          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13836 $as_echo X"$ac_file" |
13837     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13838             s//\1/
13839             q
13840           }
13841           /^X\(\/\/\)[^/].*/{
13842             s//\1/
13843             q
13844           }
13845           /^X\(\/\/\)$/{
13846             s//\1/
13847             q
13848           }
13849           /^X\(\/\).*/{
13850             s//\1/
13851             q
13852           }
13853           s/.*/./; q'`
13854   as_dir="$ac_dir"; as_fn_mkdir_p
13855   ac_builddir=.
13856
13857 case "$ac_dir" in
13858 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13859 *)
13860   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13861   # A ".." for each directory in $ac_dir_suffix.
13862   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13863   case $ac_top_builddir_sub in
13864   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13865   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13866   esac ;;
13867 esac
13868 ac_abs_top_builddir=$ac_pwd
13869 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13870 # for backward compatibility:
13871 ac_top_builddir=$ac_top_build_prefix
13872
13873 case $srcdir in
13874   .)  # We are building in place.
13875     ac_srcdir=.
13876     ac_top_srcdir=$ac_top_builddir_sub
13877     ac_abs_top_srcdir=$ac_pwd ;;
13878   [\\/]* | ?:[\\/]* )  # Absolute name.
13879     ac_srcdir=$srcdir$ac_dir_suffix;
13880     ac_top_srcdir=$srcdir
13881     ac_abs_top_srcdir=$srcdir ;;
13882   *) # Relative name.
13883     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13884     ac_top_srcdir=$ac_top_build_prefix$srcdir
13885     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13886 esac
13887 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13888
13889
13890   case $ac_mode in
13891   :F)
13892   #
13893   # CONFIG_FILE
13894   #
13895
13896   case $INSTALL in
13897   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13898   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13899   esac
13900   ac_MKDIR_P=$MKDIR_P
13901   case $MKDIR_P in
13902   [\\/$]* | ?:[\\/]* ) ;;
13903   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13904   esac
13905 _ACEOF
13906
13907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13908 # If the template does not know about datarootdir, expand it.
13909 # FIXME: This hack should be removed a few years after 2.60.
13910 ac_datarootdir_hack=; ac_datarootdir_seen=
13911 ac_sed_dataroot='
13912 /datarootdir/ {
13913   p
13914   q
13915 }
13916 /@datadir@/p
13917 /@docdir@/p
13918 /@infodir@/p
13919 /@localedir@/p
13920 /@mandir@/p'
13921 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13922 *datarootdir*) ac_datarootdir_seen=yes;;
13923 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13924   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13925 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13926 _ACEOF
13927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13928   ac_datarootdir_hack='
13929   s&@datadir@&$datadir&g
13930   s&@docdir@&$docdir&g
13931   s&@infodir@&$infodir&g
13932   s&@localedir@&$localedir&g
13933   s&@mandir@&$mandir&g
13934   s&\\\${datarootdir}&$datarootdir&g' ;;
13935 esac
13936 _ACEOF
13937
13938 # Neutralize VPATH when `$srcdir' = `.'.
13939 # Shell code in configure.ac might set extrasub.
13940 # FIXME: do we really want to maintain this feature?
13941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13942 ac_sed_extra="$ac_vpsub
13943 $extrasub
13944 _ACEOF
13945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13946 :t
13947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13948 s|@configure_input@|$ac_sed_conf_input|;t t
13949 s&@top_builddir@&$ac_top_builddir_sub&;t t
13950 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13951 s&@srcdir@&$ac_srcdir&;t t
13952 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13953 s&@top_srcdir@&$ac_top_srcdir&;t t
13954 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13955 s&@builddir@&$ac_builddir&;t t
13956 s&@abs_builddir@&$ac_abs_builddir&;t t
13957 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13958 s&@INSTALL@&$ac_INSTALL&;t t
13959 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13960 $ac_datarootdir_hack
13961 "
13962 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13963   || as_fn_error "could not create $ac_file" "$LINENO" 5
13964
13965 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13966   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13967   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13968   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13969 which seems to be undefined.  Please make sure it is defined." >&5
13970 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13971 which seems to be undefined.  Please make sure it is defined." >&2;}
13972
13973   rm -f "$tmp/stdin"
13974   case $ac_file in
13975   -) cat "$tmp/out" && rm -f "$tmp/out";;
13976   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13977   esac \
13978   || as_fn_error "could not create $ac_file" "$LINENO" 5
13979  ;;
13980   :H)
13981   #
13982   # CONFIG_HEADER
13983   #
13984   if test x"$ac_file" != x-; then
13985     {
13986       $as_echo "/* $configure_input  */" \
13987       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13988     } >"$tmp/config.h" \
13989       || as_fn_error "could not create $ac_file" "$LINENO" 5
13990     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13991       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13992 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13993     else
13994       rm -f "$ac_file"
13995       mv "$tmp/config.h" "$ac_file" \
13996         || as_fn_error "could not create $ac_file" "$LINENO" 5
13997     fi
13998   else
13999     $as_echo "/* $configure_input  */" \
14000       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14001       || as_fn_error "could not create -" "$LINENO" 5
14002   fi
14003 # Compute "$ac_file"'s index in $config_headers.
14004 _am_arg="$ac_file"
14005 _am_stamp_count=1
14006 for _am_header in $config_headers :; do
14007   case $_am_header in
14008     $_am_arg | $_am_arg:* )
14009       break ;;
14010     * )
14011       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14012   esac
14013 done
14014 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14015 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14016          X"$_am_arg" : 'X\(//\)[^/]' \| \
14017          X"$_am_arg" : 'X\(//\)$' \| \
14018          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14019 $as_echo X"$_am_arg" |
14020     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14021             s//\1/
14022             q
14023           }
14024           /^X\(\/\/\)[^/].*/{
14025             s//\1/
14026             q
14027           }
14028           /^X\(\/\/\)$/{
14029             s//\1/
14030             q
14031           }
14032           /^X\(\/\).*/{
14033             s//\1/
14034             q
14035           }
14036           s/.*/./; q'`/stamp-h$_am_stamp_count
14037  ;;
14038
14039   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14040 $as_echo "$as_me: executing $ac_file commands" >&6;}
14041  ;;
14042   esac
14043
14044
14045   case $ac_file$ac_mode in
14046     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14047   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14048   # are listed without --file.  Let's play safe and only enable the eval
14049   # if we detect the quoting.
14050   case $CONFIG_FILES in
14051   *\'*) eval set x "$CONFIG_FILES" ;;
14052   *)   set x $CONFIG_FILES ;;
14053   esac
14054   shift
14055   for mf
14056   do
14057     # Strip MF so we end up with the name of the file.
14058     mf=`echo "$mf" | sed -e 's/:.*$//'`
14059     # Check whether this is an Automake generated Makefile or not.
14060     # We used to match only the files named `Makefile.in', but
14061     # some people rename them; so instead we look at the file content.
14062     # Grep'ing the first line is not enough: some people post-process
14063     # each Makefile.in and add a new line on top of each file to say so.
14064     # Grep'ing the whole file is not good either: AIX grep has a line
14065     # limit of 2048, but all sed's we know have understand at least 4000.
14066     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14067       dirpart=`$as_dirname -- "$mf" ||
14068 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14069          X"$mf" : 'X\(//\)[^/]' \| \
14070          X"$mf" : 'X\(//\)$' \| \
14071          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14072 $as_echo X"$mf" |
14073     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14074             s//\1/
14075             q
14076           }
14077           /^X\(\/\/\)[^/].*/{
14078             s//\1/
14079             q
14080           }
14081           /^X\(\/\/\)$/{
14082             s//\1/
14083             q
14084           }
14085           /^X\(\/\).*/{
14086             s//\1/
14087             q
14088           }
14089           s/.*/./; q'`
14090     else
14091       continue
14092     fi
14093     # Extract the definition of DEPDIR, am__include, and am__quote
14094     # from the Makefile without running `make'.
14095     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14096     test -z "$DEPDIR" && continue
14097     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14098     test -z "am__include" && continue
14099     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14100     # When using ansi2knr, U may be empty or an underscore; expand it
14101     U=`sed -n 's/^U = //p' < "$mf"`
14102     # Find all dependency output files, they are included files with
14103     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14104     # simplest approach to changing $(DEPDIR) to its actual value in the
14105     # expansion.
14106     for file in `sed -n "
14107       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14108          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14109       # Make sure the directory exists.
14110       test -f "$dirpart/$file" && continue
14111       fdir=`$as_dirname -- "$file" ||
14112 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14113          X"$file" : 'X\(//\)[^/]' \| \
14114          X"$file" : 'X\(//\)$' \| \
14115          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14116 $as_echo X"$file" |
14117     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14118             s//\1/
14119             q
14120           }
14121           /^X\(\/\/\)[^/].*/{
14122             s//\1/
14123             q
14124           }
14125           /^X\(\/\/\)$/{
14126             s//\1/
14127             q
14128           }
14129           /^X\(\/\).*/{
14130             s//\1/
14131             q
14132           }
14133           s/.*/./; q'`
14134       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14135       # echo "creating $dirpart/$file"
14136       echo '# dummy' > "$dirpart/$file"
14137     done
14138   done
14139 }
14140  ;;
14141     "libtool":C)
14142
14143     # See if we are running on zsh, and set the options which allow our
14144     # commands through without removal of \ escapes.
14145     if test -n "${ZSH_VERSION+set}" ; then
14146       setopt NO_GLOB_SUBST
14147     fi
14148
14149     cfgfile="${ofile}T"
14150     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14151     $RM "$cfgfile"
14152
14153     cat <<_LT_EOF >> "$cfgfile"
14154 #! $SHELL
14155
14156 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14157 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14159 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14160 #
14161 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14162 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14163 #   Written by Gordon Matzigkeit, 1996
14164 #
14165 #   This file is part of GNU Libtool.
14166 #
14167 # GNU Libtool is free software; you can redistribute it and/or
14168 # modify it under the terms of the GNU General Public License as
14169 # published by the Free Software Foundation; either version 2 of
14170 # the License, or (at your option) any later version.
14171 #
14172 # As a special exception to the GNU General Public License,
14173 # if you distribute this file as part of a program or library that
14174 # is built using GNU Libtool, you may include this file under the
14175 # same distribution terms that you use for the rest of that program.
14176 #
14177 # GNU Libtool is distributed in the hope that it will be useful,
14178 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14179 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14180 # GNU General Public License for more details.
14181 #
14182 # You should have received a copy of the GNU General Public License
14183 # along with GNU Libtool; see the file COPYING.  If not, a copy
14184 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14185 # obtained by writing to the Free Software Foundation, Inc.,
14186 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14187
14188
14189 # The names of the tagged configurations supported by this script.
14190 available_tags=""
14191
14192 # ### BEGIN LIBTOOL CONFIG
14193
14194 # A sed program that does not truncate output.
14195 SED=$lt_SED
14196
14197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14198 Xsed="\$SED -e 1s/^X//"
14199
14200 # Shell to use when invoking shell scripts.
14201 SHELL=$lt_SHELL
14202
14203 # An echo program that protects backslashes.
14204 ECHO=$lt_ECHO
14205
14206 # Assembler program.
14207 AS=$lt_AS
14208
14209 # DLL creation program.
14210 DLLTOOL=$lt_DLLTOOL
14211
14212 # Object dumper program.
14213 OBJDUMP=$lt_OBJDUMP
14214
14215 # Which release of libtool.m4 was used?
14216 macro_version=$macro_version
14217 macro_revision=$macro_revision
14218
14219 # Whether or not to build shared libraries.
14220 build_libtool_libs=$enable_shared
14221
14222 # Whether or not to build static libraries.
14223 build_old_libs=$enable_static
14224
14225 # What type of objects to build.
14226 pic_mode=$pic_mode
14227
14228 # Whether or not to optimize for fast installation.
14229 fast_install=$enable_fast_install
14230
14231 # The host system.
14232 host_alias=$host_alias
14233 host=$host
14234 host_os=$host_os
14235
14236 # The build system.
14237 build_alias=$build_alias
14238 build=$build
14239 build_os=$build_os
14240
14241 # A grep program that handles long lines.
14242 GREP=$lt_GREP
14243
14244 # An ERE matcher.
14245 EGREP=$lt_EGREP
14246
14247 # A literal string matcher.
14248 FGREP=$lt_FGREP
14249
14250 # A BSD- or MS-compatible name lister.
14251 NM=$lt_NM
14252
14253 # Whether we need soft or hard links.
14254 LN_S=$lt_LN_S
14255
14256 # What is the maximum length of a command?
14257 max_cmd_len=$max_cmd_len
14258
14259 # Object file suffix (normally "o").
14260 objext=$ac_objext
14261
14262 # Executable file suffix (normally "").
14263 exeext=$exeext
14264
14265 # whether the shell understands "unset".
14266 lt_unset=$lt_unset
14267
14268 # turn spaces into newlines.
14269 SP2NL=$lt_lt_SP2NL
14270
14271 # turn newlines into spaces.
14272 NL2SP=$lt_lt_NL2SP
14273
14274 # Method to check whether dependent libraries are shared objects.
14275 deplibs_check_method=$lt_deplibs_check_method
14276
14277 # Command to use when deplibs_check_method == "file_magic".
14278 file_magic_cmd=$lt_file_magic_cmd
14279
14280 # The archiver.
14281 AR=$lt_AR
14282 AR_FLAGS=$lt_AR_FLAGS
14283
14284 # A symbol stripping program.
14285 STRIP=$lt_STRIP
14286
14287 # Commands used to install an old-style archive.
14288 RANLIB=$lt_RANLIB
14289 old_postinstall_cmds=$lt_old_postinstall_cmds
14290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14291
14292 # Whether to use a lock for old archive extraction.
14293 lock_old_archive_extraction=$lock_old_archive_extraction
14294
14295 # A C compiler.
14296 LTCC=$lt_CC
14297
14298 # LTCC compiler flags.
14299 LTCFLAGS=$lt_CFLAGS
14300
14301 # Take the output of nm and produce a listing of raw symbols and C names.
14302 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14303
14304 # Transform the output of nm in a proper C declaration.
14305 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14306
14307 # Transform the output of nm in a C name address pair.
14308 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14309
14310 # Transform the output of nm in a C name address pair when lib prefix is needed.
14311 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14312
14313 # The name of the directory that contains temporary libtool files.
14314 objdir=$objdir
14315
14316 # Used to examine libraries when file_magic_cmd begins with "file".
14317 MAGIC_CMD=$MAGIC_CMD
14318
14319 # Must we lock files when doing compilation?
14320 need_locks=$lt_need_locks
14321
14322 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14323 DSYMUTIL=$lt_DSYMUTIL
14324
14325 # Tool to change global to local symbols on Mac OS X.
14326 NMEDIT=$lt_NMEDIT
14327
14328 # Tool to manipulate fat objects and archives on Mac OS X.
14329 LIPO=$lt_LIPO
14330
14331 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14332 OTOOL=$lt_OTOOL
14333
14334 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14335 OTOOL64=$lt_OTOOL64
14336
14337 # Old archive suffix (normally "a").
14338 libext=$libext
14339
14340 # Shared library suffix (normally ".so").
14341 shrext_cmds=$lt_shrext_cmds
14342
14343 # The commands to extract the exported symbol list from a shared archive.
14344 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14345
14346 # Variables whose values should be saved in libtool wrapper scripts and
14347 # restored at link time.
14348 variables_saved_for_relink=$lt_variables_saved_for_relink
14349
14350 # Do we need the "lib" prefix for modules?
14351 need_lib_prefix=$need_lib_prefix
14352
14353 # Do we need a version for libraries?
14354 need_version=$need_version
14355
14356 # Library versioning type.
14357 version_type=$version_type
14358
14359 # Shared library runtime path variable.
14360 runpath_var=$runpath_var
14361
14362 # Shared library path variable.
14363 shlibpath_var=$shlibpath_var
14364
14365 # Is shlibpath searched before the hard-coded library search path?
14366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14367
14368 # Format of library name prefix.
14369 libname_spec=$lt_libname_spec
14370
14371 # List of archive names.  First name is the real one, the rest are links.
14372 # The last name is the one that the linker finds with -lNAME
14373 library_names_spec=$lt_library_names_spec
14374
14375 # The coded name of the library, if different from the real name.
14376 soname_spec=$lt_soname_spec
14377
14378 # Permission mode override for installation of shared libraries.
14379 install_override_mode=$lt_install_override_mode
14380
14381 # Command to use after installation of a shared archive.
14382 postinstall_cmds=$lt_postinstall_cmds
14383
14384 # Command to use after uninstallation of a shared archive.
14385 postuninstall_cmds=$lt_postuninstall_cmds
14386
14387 # Commands used to finish a libtool library installation in a directory.
14388 finish_cmds=$lt_finish_cmds
14389
14390 # As "finish_cmds", except a single script fragment to be evaled but
14391 # not shown.
14392 finish_eval=$lt_finish_eval
14393
14394 # Whether we should hardcode library paths into libraries.
14395 hardcode_into_libs=$hardcode_into_libs
14396
14397 # Compile-time system search path for libraries.
14398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14399
14400 # Run-time system search path for libraries.
14401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14402
14403 # Whether dlopen is supported.
14404 dlopen_support=$enable_dlopen
14405
14406 # Whether dlopen of programs is supported.
14407 dlopen_self=$enable_dlopen_self
14408
14409 # Whether dlopen of statically linked programs is supported.
14410 dlopen_self_static=$enable_dlopen_self_static
14411
14412 # Commands to strip libraries.
14413 old_striplib=$lt_old_striplib
14414 striplib=$lt_striplib
14415
14416
14417 # The linker used to build libraries.
14418 LD=$lt_LD
14419
14420 # How to create reloadable object files.
14421 reload_flag=$lt_reload_flag
14422 reload_cmds=$lt_reload_cmds
14423
14424 # Commands used to build an old-style archive.
14425 old_archive_cmds=$lt_old_archive_cmds
14426
14427 # A language specific compiler.
14428 CC=$lt_compiler
14429
14430 # Is the compiler the GNU compiler?
14431 with_gcc=$GCC
14432
14433 # Compiler flag to turn off builtin functions.
14434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14435
14436 # How to pass a linker flag through the compiler.
14437 wl=$lt_lt_prog_compiler_wl
14438
14439 # Additional compiler flags for building library objects.
14440 pic_flag=$lt_lt_prog_compiler_pic
14441
14442 # Compiler flag to prevent dynamic linking.
14443 link_static_flag=$lt_lt_prog_compiler_static
14444
14445 # Does compiler simultaneously support -c and -o options?
14446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14447
14448 # Whether or not to add -lc for building shared libraries.
14449 build_libtool_need_lc=$archive_cmds_need_lc
14450
14451 # Whether or not to disallow shared libs when runtime libs are static.
14452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14453
14454 # Compiler flag to allow reflexive dlopens.
14455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14456
14457 # Compiler flag to generate shared objects directly from archives.
14458 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14459
14460 # Whether the compiler copes with passing no objects directly.
14461 compiler_needs_object=$lt_compiler_needs_object
14462
14463 # Create an old-style archive from a shared archive.
14464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14465
14466 # Create a temporary old-style archive to link instead of a shared archive.
14467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14468
14469 # Commands used to build a shared archive.
14470 archive_cmds=$lt_archive_cmds
14471 archive_expsym_cmds=$lt_archive_expsym_cmds
14472
14473 # Commands used to build a loadable module if different from building
14474 # a shared archive.
14475 module_cmds=$lt_module_cmds
14476 module_expsym_cmds=$lt_module_expsym_cmds
14477
14478 # Whether we are building with GNU ld or not.
14479 with_gnu_ld=$lt_with_gnu_ld
14480
14481 # Flag that allows shared libraries with undefined symbols to be built.
14482 allow_undefined_flag=$lt_allow_undefined_flag
14483
14484 # Flag that enforces no undefined symbols.
14485 no_undefined_flag=$lt_no_undefined_flag
14486
14487 # Flag to hardcode \$libdir into a binary during linking.
14488 # This must work even if \$libdir does not exist
14489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14490
14491 # If ld is used when linking, flag to hardcode \$libdir into a binary
14492 # during linking.  This must work even if \$libdir does not exist.
14493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14494
14495 # Whether we need a single "-rpath" flag with a separated argument.
14496 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14497
14498 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14499 # DIR into the resulting binary.
14500 hardcode_direct=$hardcode_direct
14501
14502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14503 # DIR into the resulting binary and the resulting library dependency is
14504 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14505 # library is relocated.
14506 hardcode_direct_absolute=$hardcode_direct_absolute
14507
14508 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14509 # into the resulting binary.
14510 hardcode_minus_L=$hardcode_minus_L
14511
14512 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14513 # into the resulting binary.
14514 hardcode_shlibpath_var=$hardcode_shlibpath_var
14515
14516 # Set to "yes" if building a shared library automatically hardcodes DIR
14517 # into the library and all subsequent libraries and executables linked
14518 # against it.
14519 hardcode_automatic=$hardcode_automatic
14520
14521 # Set to yes if linker adds runtime paths of dependent libraries
14522 # to runtime path list.
14523 inherit_rpath=$inherit_rpath
14524
14525 # Whether libtool must link a program against all its dependency libraries.
14526 link_all_deplibs=$link_all_deplibs
14527
14528 # Fix the shell variable \$srcfile for the compiler.
14529 fix_srcfile_path=$lt_fix_srcfile_path
14530
14531 # Set to "yes" if exported symbols are required.
14532 always_export_symbols=$always_export_symbols
14533
14534 # The commands to list exported symbols.
14535 export_symbols_cmds=$lt_export_symbols_cmds
14536
14537 # Symbols that should not be listed in the preloaded symbols.
14538 exclude_expsyms=$lt_exclude_expsyms
14539
14540 # Symbols that must always be exported.
14541 include_expsyms=$lt_include_expsyms
14542
14543 # Commands necessary for linking programs (against libraries) with templates.
14544 prelink_cmds=$lt_prelink_cmds
14545
14546 # Specify filename containing input files.
14547 file_list_spec=$lt_file_list_spec
14548
14549 # How to hardcode a shared library path into an executable.
14550 hardcode_action=$hardcode_action
14551
14552 # ### END LIBTOOL CONFIG
14553
14554 _LT_EOF
14555
14556   case $host_os in
14557   aix3*)
14558     cat <<\_LT_EOF >> "$cfgfile"
14559 # AIX sometimes has problems with the GCC collect2 program.  For some
14560 # reason, if we set the COLLECT_NAMES environment variable, the problems
14561 # vanish in a puff of smoke.
14562 if test "X${COLLECT_NAMES+set}" != Xset; then
14563   COLLECT_NAMES=
14564   export COLLECT_NAMES
14565 fi
14566 _LT_EOF
14567     ;;
14568   esac
14569
14570
14571 ltmain="$ac_aux_dir/ltmain.sh"
14572
14573
14574   # We use sed instead of cat because bash on DJGPP gets confused if
14575   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14576   # text mode, it properly converts lines to CR/LF.  This bash problem
14577   # is reportedly fixed, but why not run on old versions too?
14578   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14579     || (rm -f "$cfgfile"; exit 1)
14580
14581   case $xsi_shell in
14582   yes)
14583     cat << \_LT_EOF >> "$cfgfile"
14584
14585 # func_dirname file append nondir_replacement
14586 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14587 # otherwise set result to NONDIR_REPLACEMENT.
14588 func_dirname ()
14589 {
14590   case ${1} in
14591     */*) func_dirname_result="${1%/*}${2}" ;;
14592     *  ) func_dirname_result="${3}" ;;
14593   esac
14594 }
14595
14596 # func_basename file
14597 func_basename ()
14598 {
14599   func_basename_result="${1##*/}"
14600 }
14601
14602 # func_dirname_and_basename file append nondir_replacement
14603 # perform func_basename and func_dirname in a single function
14604 # call:
14605 #   dirname:  Compute the dirname of FILE.  If nonempty,
14606 #             add APPEND to the result, otherwise set result
14607 #             to NONDIR_REPLACEMENT.
14608 #             value returned in "$func_dirname_result"
14609 #   basename: Compute filename of FILE.
14610 #             value retuned in "$func_basename_result"
14611 # Implementation must be kept synchronized with func_dirname
14612 # and func_basename. For efficiency, we do not delegate to
14613 # those functions but instead duplicate the functionality here.
14614 func_dirname_and_basename ()
14615 {
14616   case ${1} in
14617     */*) func_dirname_result="${1%/*}${2}" ;;
14618     *  ) func_dirname_result="${3}" ;;
14619   esac
14620   func_basename_result="${1##*/}"
14621 }
14622
14623 # func_stripname prefix suffix name
14624 # strip PREFIX and SUFFIX off of NAME.
14625 # PREFIX and SUFFIX must not contain globbing or regex special
14626 # characters, hashes, percent signs, but SUFFIX may contain a leading
14627 # dot (in which case that matches only a dot).
14628 func_stripname ()
14629 {
14630   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14631   # positional parameters, so assign one to ordinary parameter first.
14632   func_stripname_result=${3}
14633   func_stripname_result=${func_stripname_result#"${1}"}
14634   func_stripname_result=${func_stripname_result%"${2}"}
14635 }
14636
14637 # func_opt_split
14638 func_opt_split ()
14639 {
14640   func_opt_split_opt=${1%%=*}
14641   func_opt_split_arg=${1#*=}
14642 }
14643
14644 # func_lo2o object
14645 func_lo2o ()
14646 {
14647   case ${1} in
14648     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14649     *)    func_lo2o_result=${1} ;;
14650   esac
14651 }
14652
14653 # func_xform libobj-or-source
14654 func_xform ()
14655 {
14656   func_xform_result=${1%.*}.lo
14657 }
14658
14659 # func_arith arithmetic-term...
14660 func_arith ()
14661 {
14662   func_arith_result=$(( $* ))
14663 }
14664
14665 # func_len string
14666 # STRING may not start with a hyphen.
14667 func_len ()
14668 {
14669   func_len_result=${#1}
14670 }
14671
14672 _LT_EOF
14673     ;;
14674   *) # Bourne compatible functions.
14675     cat << \_LT_EOF >> "$cfgfile"
14676
14677 # func_dirname file append nondir_replacement
14678 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14679 # otherwise set result to NONDIR_REPLACEMENT.
14680 func_dirname ()
14681 {
14682   # Extract subdirectory from the argument.
14683   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14684   if test "X$func_dirname_result" = "X${1}"; then
14685     func_dirname_result="${3}"
14686   else
14687     func_dirname_result="$func_dirname_result${2}"
14688   fi
14689 }
14690
14691 # func_basename file
14692 func_basename ()
14693 {
14694   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14695 }
14696
14697
14698 # func_stripname prefix suffix name
14699 # strip PREFIX and SUFFIX off of NAME.
14700 # PREFIX and SUFFIX must not contain globbing or regex special
14701 # characters, hashes, percent signs, but SUFFIX may contain a leading
14702 # dot (in which case that matches only a dot).
14703 # func_strip_suffix prefix name
14704 func_stripname ()
14705 {
14706   case ${2} in
14707     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14708     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14709   esac
14710 }
14711
14712 # sed scripts:
14713 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14714 my_sed_long_arg='1s/^-[^=]*=//'
14715
14716 # func_opt_split
14717 func_opt_split ()
14718 {
14719   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14720   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14721 }
14722
14723 # func_lo2o object
14724 func_lo2o ()
14725 {
14726   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14727 }
14728
14729 # func_xform libobj-or-source
14730 func_xform ()
14731 {
14732   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14733 }
14734
14735 # func_arith arithmetic-term...
14736 func_arith ()
14737 {
14738   func_arith_result=`expr "$@"`
14739 }
14740
14741 # func_len string
14742 # STRING may not start with a hyphen.
14743 func_len ()
14744 {
14745   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14746 }
14747
14748 _LT_EOF
14749 esac
14750
14751 case $lt_shell_append in
14752   yes)
14753     cat << \_LT_EOF >> "$cfgfile"
14754
14755 # func_append var value
14756 # Append VALUE to the end of shell variable VAR.
14757 func_append ()
14758 {
14759   eval "$1+=\$2"
14760 }
14761 _LT_EOF
14762     ;;
14763   *)
14764     cat << \_LT_EOF >> "$cfgfile"
14765
14766 # func_append var value
14767 # Append VALUE to the end of shell variable VAR.
14768 func_append ()
14769 {
14770   eval "$1=\$$1\$2"
14771 }
14772
14773 _LT_EOF
14774     ;;
14775   esac
14776
14777
14778   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14779     || (rm -f "$cfgfile"; exit 1)
14780
14781   mv -f "$cfgfile" "$ofile" ||
14782     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14783   chmod +x "$ofile"
14784
14785  ;;
14786     "Makefile":F) if test -n "$CONFIG_FILES"; then
14787   unset ac_file
14788   . ${newlib_basedir}/../config-ml.in
14789 fi ;;
14790
14791   esac
14792 done # for ac_tag
14793
14794
14795 as_fn_exit 0
14796 _ACEOF
14797 ac_clean_files=$ac_clean_files_save
14798
14799 test $ac_write_fail = 0 ||
14800   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14801
14802
14803 # configure is writing to config.log, and then calls config.status.
14804 # config.status does its own redirection, appending to config.log.
14805 # Unfortunately, on DOS this fails, as config.log is still kept open
14806 # by configure, so config.status won't be able to write to it; its
14807 # output is simply discarded.  So we exec the FD to /dev/null,
14808 # effectively closing config.log, so it can be properly (re)opened and
14809 # appended to by config.status.  When coming back to configure, we
14810 # need to make the FD available again.
14811 if test "$no_create" != yes; then
14812   ac_cs_success=:
14813   ac_config_status_args=
14814   test "$silent" = yes &&
14815     ac_config_status_args="$ac_config_status_args --quiet"
14816   exec 5>/dev/null
14817   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14818   exec 5>>config.log
14819   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14820   # would make configure fail if this is the last instruction.
14821   $ac_cs_success || as_fn_exit $?
14822 fi
14823
14824 #
14825 # CONFIG_SUBDIRS section.
14826 #
14827 if test "$no_recursion" != yes; then
14828
14829   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14830   # so they do not pile up.
14831   ac_sub_configure_args=
14832   ac_prev=
14833   eval "set x $ac_configure_args"
14834   shift
14835   for ac_arg
14836   do
14837     if test -n "$ac_prev"; then
14838       ac_prev=
14839       continue
14840     fi
14841     case $ac_arg in
14842     -cache-file | --cache-file | --cache-fil | --cache-fi \
14843     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
14844       ac_prev=cache_file ;;
14845     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
14846     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
14847     | --c=*)
14848       ;;
14849     --config-cache | -C)
14850       ;;
14851     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
14852       ac_prev=srcdir ;;
14853     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
14854       ;;
14855     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
14856       ac_prev=prefix ;;
14857     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
14858       ;;
14859     --disable-option-checking)
14860       ;;
14861     *)
14862       case $ac_arg in
14863       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14864       esac
14865       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
14866     esac
14867   done
14868
14869   # Always prepend --prefix to ensure using the same prefix
14870   # in subdir configurations.
14871   ac_arg="--prefix=$prefix"
14872   case $ac_arg in
14873   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14874   esac
14875   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
14876
14877   # Pass --silent
14878   if test "$silent" = yes; then
14879     ac_sub_configure_args="--silent $ac_sub_configure_args"
14880   fi
14881
14882   # Always prepend --disable-option-checking to silence warnings, since
14883   # different subdirs can have different --enable and --with options.
14884   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
14885
14886   ac_popdir=`pwd`
14887   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
14888
14889     # Do not complain, so a configure script can configure whichever
14890     # parts of a large source tree are present.
14891     test -d "$srcdir/$ac_dir" || continue
14892
14893     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14894     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14895     $as_echo "$ac_msg" >&6
14896     as_dir="$ac_dir"; as_fn_mkdir_p
14897     ac_builddir=.
14898
14899 case "$ac_dir" in
14900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14901 *)
14902   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14903   # A ".." for each directory in $ac_dir_suffix.
14904   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14905   case $ac_top_builddir_sub in
14906   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14907   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14908   esac ;;
14909 esac
14910 ac_abs_top_builddir=$ac_pwd
14911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14912 # for backward compatibility:
14913 ac_top_builddir=$ac_top_build_prefix
14914
14915 case $srcdir in
14916   .)  # We are building in place.
14917     ac_srcdir=.
14918     ac_top_srcdir=$ac_top_builddir_sub
14919     ac_abs_top_srcdir=$ac_pwd ;;
14920   [\\/]* | ?:[\\/]* )  # Absolute name.
14921     ac_srcdir=$srcdir$ac_dir_suffix;
14922     ac_top_srcdir=$srcdir
14923     ac_abs_top_srcdir=$srcdir ;;
14924   *) # Relative name.
14925     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14926     ac_top_srcdir=$ac_top_build_prefix$srcdir
14927     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14928 esac
14929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14930
14931
14932     cd "$ac_dir"
14933
14934     # Check for guested configure; otherwise get Cygnus style configure.
14935     if test -f "$ac_srcdir/configure.gnu"; then
14936       ac_sub_configure=$ac_srcdir/configure.gnu
14937     elif test -f "$ac_srcdir/configure"; then
14938       ac_sub_configure=$ac_srcdir/configure
14939     elif test -f "$ac_srcdir/configure.in"; then
14940       # This should be Cygnus configure.
14941       ac_sub_configure=$ac_aux_dir/configure
14942     else
14943       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14944 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14945       ac_sub_configure=
14946     fi
14947
14948     # The recursion is here.
14949     if test -n "$ac_sub_configure"; then
14950       # Make the cache file name correct relative to the subdirectory.
14951       case $cache_file in
14952       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
14953       *) # Relative name.
14954         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
14955       esac
14956
14957       { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14958 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14959       # The eval makes quoting arguments work.
14960       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14961            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14962         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14963     fi
14964
14965     cd "$ac_popdir"
14966   done
14967 fi
14968 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14969   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14970 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14971 fi
14972