OSDN Git Service

ChangeLog:
[pf3gnuchains/gcc-fork.git] / lto-plugin / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for LTO plugin for ld 0.1.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
173   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     PATH=/empty FPATH=/empty; export PATH FPATH
178     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='LTO plugin for ld'
558 PACKAGE_TARNAME='lto-plugin'
559 PACKAGE_VERSION='0.1'
560 PACKAGE_STRING='LTO plugin for ld 0.1'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 #  include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 #  include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
599
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 target_noncanonical
605 CPP
606 OTOOL64
607 OTOOL
608 LIPO
609 NMEDIT
610 DSYMUTIL
611 RANLIB
612 AR
613 OBJDUMP
614 LN_S
615 NM
616 ac_ct_DUMPBIN
617 DUMPBIN
618 LD
619 FGREP
620 EGREP
621 GREP
622 SED
623 LIBTOOL
624 am__fastdepCC_FALSE
625 am__fastdepCC_TRUE
626 CCDEPMODE
627 AMDEPBACKSLASH
628 AMDEP_FALSE
629 AMDEP_TRUE
630 am__quote
631 am__include
632 DEPDIR
633 OBJEXT
634 EXEEXT
635 ac_ct_CC
636 CPPFLAGS
637 LDFLAGS
638 CFLAGS
639 CC
640 MAINT
641 MAINTAINER_MODE_FALSE
642 MAINTAINER_MODE_TRUE
643 am__untar
644 am__tar
645 AMTAR
646 am__leading_dot
647 SET_MAKE
648 AWK
649 mkdir_p
650 MKDIR_P
651 INSTALL_STRIP_PROGRAM
652 STRIP
653 install_sh
654 MAKEINFO
655 AUTOHEADER
656 AUTOMAKE
657 AUTOCONF
658 ACLOCAL
659 VERSION
660 PACKAGE
661 CYGPATH_W
662 am__isrc
663 INSTALL_DATA
664 INSTALL_SCRIPT
665 INSTALL_PROGRAM
666 target_subdir
667 host_subdir
668 build_subdir
669 build_libsubdir
670 target_os
671 target_vendor
672 target_cpu
673 target
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 target_alias
683 host_alias
684 build_alias
685 LIBS
686 ECHO_T
687 ECHO_N
688 ECHO_C
689 DEFS
690 mandir
691 localedir
692 libdir
693 psdir
694 pdfdir
695 dvidir
696 htmldir
697 infodir
698 docdir
699 oldincludedir
700 includedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 with_build_libsubdir
724 enable_maintainer_mode
725 enable_dependency_tracking
726 enable_largefile
727 enable_shared
728 enable_static
729 with_pic
730 enable_fast_install
731 with_gnu_ld
732 enable_libtool_lock
733 '
734       ac_precious_vars='build_alias
735 host_alias
736 target_alias
737 CC
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 ac_unrecognized_opts=
749 ac_unrecognized_sep=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
752 cache_file=/dev/null
753 exec_prefix=NONE
754 no_create=
755 no_recursion=
756 prefix=NONE
757 program_prefix=NONE
758 program_suffix=NONE
759 program_transform_name=s,x,x,
760 silent=
761 site=
762 srcdir=
763 verbose=
764 x_includes=NONE
765 x_libraries=NONE
766
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
785 htmldir='${docdir}'
786 dvidir='${docdir}'
787 pdfdir='${docdir}'
788 psdir='${docdir}'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
792
793 ac_prev=
794 ac_dashdash=
795 for ac_option
796 do
797   # If the previous option needs an argument, assign it.
798   if test -n "$ac_prev"; then
799     eval $ac_prev=\$ac_option
800     ac_prev=
801     continue
802   fi
803
804   case $ac_option in
805   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
806   *)    ac_optarg=yes ;;
807   esac
808
809   # Accept the important Cygnus configure options, so we can diagnose typos.
810
811   case $ac_dashdash$ac_option in
812   --)
813     ac_dashdash=yes ;;
814
815   -bindir | --bindir | --bindi | --bind | --bin | --bi)
816     ac_prev=bindir ;;
817   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818     bindir=$ac_optarg ;;
819
820   -build | --build | --buil | --bui | --bu)
821     ac_prev=build_alias ;;
822   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
823     build_alias=$ac_optarg ;;
824
825   -cache-file | --cache-file | --cache-fil | --cache-fi \
826   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
827     ac_prev=cache_file ;;
828   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
829   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
830     cache_file=$ac_optarg ;;
831
832   --config-cache | -C)
833     cache_file=config.cache ;;
834
835   -datadir | --datadir | --datadi | --datad)
836     ac_prev=datadir ;;
837   -datadir=* | --datadir=* | --datadi=* | --datad=*)
838     datadir=$ac_optarg ;;
839
840   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
841   | --dataroo | --dataro | --datar)
842     ac_prev=datarootdir ;;
843   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
844   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
845     datarootdir=$ac_optarg ;;
846
847   -disable-* | --disable-*)
848     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
849     # Reject names that are not valid shell variable names.
850     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
851       as_fn_error "invalid feature name: $ac_useropt"
852     ac_useropt_orig=$ac_useropt
853     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854     case $ac_user_opts in
855       *"
856 "enable_$ac_useropt"
857 "*) ;;
858       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859          ac_unrecognized_sep=', ';;
860     esac
861     eval enable_$ac_useropt=no ;;
862
863   -docdir | --docdir | --docdi | --doc | --do)
864     ac_prev=docdir ;;
865   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866     docdir=$ac_optarg ;;
867
868   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
869     ac_prev=dvidir ;;
870   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871     dvidir=$ac_optarg ;;
872
873   -enable-* | --enable-*)
874     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
875     # Reject names that are not valid shell variable names.
876     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
877       as_fn_error "invalid feature name: $ac_useropt"
878     ac_useropt_orig=$ac_useropt
879     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880     case $ac_user_opts in
881       *"
882 "enable_$ac_useropt"
883 "*) ;;
884       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885          ac_unrecognized_sep=', ';;
886     esac
887     eval enable_$ac_useropt=\$ac_optarg ;;
888
889   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
890   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
891   | --exec | --exe | --ex)
892     ac_prev=exec_prefix ;;
893   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
894   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
895   | --exec=* | --exe=* | --ex=*)
896     exec_prefix=$ac_optarg ;;
897
898   -gas | --gas | --ga | --g)
899     # Obsolete; use --with-gas.
900     with_gas=yes ;;
901
902   -help | --help | --hel | --he | -h)
903     ac_init_help=long ;;
904   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
905     ac_init_help=recursive ;;
906   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
907     ac_init_help=short ;;
908
909   -host | --host | --hos | --ho)
910     ac_prev=host_alias ;;
911   -host=* | --host=* | --hos=* | --ho=*)
912     host_alias=$ac_optarg ;;
913
914   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
915     ac_prev=htmldir ;;
916   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
917   | --ht=*)
918     htmldir=$ac_optarg ;;
919
920   -includedir | --includedir | --includedi | --included | --include \
921   | --includ | --inclu | --incl | --inc)
922     ac_prev=includedir ;;
923   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
924   | --includ=* | --inclu=* | --incl=* | --inc=*)
925     includedir=$ac_optarg ;;
926
927   -infodir | --infodir | --infodi | --infod | --info | --inf)
928     ac_prev=infodir ;;
929   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
930     infodir=$ac_optarg ;;
931
932   -libdir | --libdir | --libdi | --libd)
933     ac_prev=libdir ;;
934   -libdir=* | --libdir=* | --libdi=* | --libd=*)
935     libdir=$ac_optarg ;;
936
937   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
938   | --libexe | --libex | --libe)
939     ac_prev=libexecdir ;;
940   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
941   | --libexe=* | --libex=* | --libe=*)
942     libexecdir=$ac_optarg ;;
943
944   -localedir | --localedir | --localedi | --localed | --locale)
945     ac_prev=localedir ;;
946   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
947     localedir=$ac_optarg ;;
948
949   -localstatedir | --localstatedir | --localstatedi | --localstated \
950   | --localstate | --localstat | --localsta | --localst | --locals)
951     ac_prev=localstatedir ;;
952   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
953   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
954     localstatedir=$ac_optarg ;;
955
956   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
957     ac_prev=mandir ;;
958   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
959     mandir=$ac_optarg ;;
960
961   -nfp | --nfp | --nf)
962     # Obsolete; use --without-fp.
963     with_fp=no ;;
964
965   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
966   | --no-cr | --no-c | -n)
967     no_create=yes ;;
968
969   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
970   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971     no_recursion=yes ;;
972
973   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
974   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
975   | --oldin | --oldi | --old | --ol | --o)
976     ac_prev=oldincludedir ;;
977   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
978   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
979   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
980     oldincludedir=$ac_optarg ;;
981
982   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
983     ac_prev=prefix ;;
984   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985     prefix=$ac_optarg ;;
986
987   -program-prefix | --program-prefix | --program-prefi | --program-pref \
988   | --program-pre | --program-pr | --program-p)
989     ac_prev=program_prefix ;;
990   -program-prefix=* | --program-prefix=* | --program-prefi=* \
991   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
992     program_prefix=$ac_optarg ;;
993
994   -program-suffix | --program-suffix | --program-suffi | --program-suff \
995   | --program-suf | --program-su | --program-s)
996     ac_prev=program_suffix ;;
997   -program-suffix=* | --program-suffix=* | --program-suffi=* \
998   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
999     program_suffix=$ac_optarg ;;
1000
1001   -program-transform-name | --program-transform-name \
1002   | --program-transform-nam | --program-transform-na \
1003   | --program-transform-n | --program-transform- \
1004   | --program-transform | --program-transfor \
1005   | --program-transfo | --program-transf \
1006   | --program-trans | --program-tran \
1007   | --progr-tra | --program-tr | --program-t)
1008     ac_prev=program_transform_name ;;
1009   -program-transform-name=* | --program-transform-name=* \
1010   | --program-transform-nam=* | --program-transform-na=* \
1011   | --program-transform-n=* | --program-transform-=* \
1012   | --program-transform=* | --program-transfor=* \
1013   | --program-transfo=* | --program-transf=* \
1014   | --program-trans=* | --program-tran=* \
1015   | --progr-tra=* | --program-tr=* | --program-t=*)
1016     program_transform_name=$ac_optarg ;;
1017
1018   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1019     ac_prev=pdfdir ;;
1020   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1021     pdfdir=$ac_optarg ;;
1022
1023   -psdir | --psdir | --psdi | --psd | --ps)
1024     ac_prev=psdir ;;
1025   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026     psdir=$ac_optarg ;;
1027
1028   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1029   | -silent | --silent | --silen | --sile | --sil)
1030     silent=yes ;;
1031
1032   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1033     ac_prev=sbindir ;;
1034   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1035   | --sbi=* | --sb=*)
1036     sbindir=$ac_optarg ;;
1037
1038   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1039   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1040   | --sharedst | --shareds | --shared | --share | --shar \
1041   | --sha | --sh)
1042     ac_prev=sharedstatedir ;;
1043   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1044   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1045   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1046   | --sha=* | --sh=*)
1047     sharedstatedir=$ac_optarg ;;
1048
1049   -site | --site | --sit)
1050     ac_prev=site ;;
1051   -site=* | --site=* | --sit=*)
1052     site=$ac_optarg ;;
1053
1054   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1055     ac_prev=srcdir ;;
1056   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1057     srcdir=$ac_optarg ;;
1058
1059   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1060   | --syscon | --sysco | --sysc | --sys | --sy)
1061     ac_prev=sysconfdir ;;
1062   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1063   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1064     sysconfdir=$ac_optarg ;;
1065
1066   -target | --target | --targe | --targ | --tar | --ta | --t)
1067     ac_prev=target_alias ;;
1068   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1069     target_alias=$ac_optarg ;;
1070
1071   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072     verbose=yes ;;
1073
1074   -version | --version | --versio | --versi | --vers | -V)
1075     ac_init_version=: ;;
1076
1077   -with-* | --with-*)
1078     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1079     # Reject names that are not valid shell variable names.
1080     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1081       as_fn_error "invalid package name: $ac_useropt"
1082     ac_useropt_orig=$ac_useropt
1083     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084     case $ac_user_opts in
1085       *"
1086 "with_$ac_useropt"
1087 "*) ;;
1088       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089          ac_unrecognized_sep=', ';;
1090     esac
1091     eval with_$ac_useropt=\$ac_optarg ;;
1092
1093   -without-* | --without-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error "invalid package name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval with_$ac_useropt=no ;;
1108
1109   --x)
1110     # Obsolete; use --with-x.
1111     with_x=yes ;;
1112
1113   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1114   | --x-incl | --x-inc | --x-in | --x-i)
1115     ac_prev=x_includes ;;
1116   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1117   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1118     x_includes=$ac_optarg ;;
1119
1120   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1121   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1122     ac_prev=x_libraries ;;
1123   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1124   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1125     x_libraries=$ac_optarg ;;
1126
1127   -*) as_fn_error "unrecognized option: \`$ac_option'
1128 Try \`$0 --help' for more information."
1129     ;;
1130
1131   *=*)
1132     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1133     # Reject names that are not valid shell variable names.
1134     case $ac_envvar in #(
1135       '' | [0-9]* | *[!_$as_cr_alnum]* )
1136       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1137     esac
1138     eval $ac_envvar=\$ac_optarg
1139     export $ac_envvar ;;
1140
1141   *)
1142     # FIXME: should be removed in autoconf 3.0.
1143     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1144     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1145       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1146     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1147     ;;
1148
1149   esac
1150 done
1151
1152 if test -n "$ac_prev"; then
1153   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1154   as_fn_error "missing argument to $ac_option"
1155 fi
1156
1157 if test -n "$ac_unrecognized_opts"; then
1158   case $enable_option_checking in
1159     no) ;;
1160     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1161     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162   esac
1163 fi
1164
1165 # Check all directory arguments for consistency.
1166 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1167                 datadir sysconfdir sharedstatedir localstatedir includedir \
1168                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1169                 libdir localedir mandir
1170 do
1171   eval ac_val=\$$ac_var
1172   # Remove trailing slashes.
1173   case $ac_val in
1174     */ )
1175       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176       eval $ac_var=\$ac_val;;
1177   esac
1178   # Be sure to have absolute directory names.
1179   case $ac_val in
1180     [\\/$]* | ?:[\\/]* )  continue;;
1181     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182   esac
1183   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1184 done
1185
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1189 build=$build_alias
1190 host=$host_alias
1191 target=$target_alias
1192
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195   if test "x$build_alias" = x; then
1196     cross_compiling=maybe
1197     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198     If a cross compiler is detected then cross compile mode will be used." >&2
1199   elif test "x$build_alias" != "x$host_alias"; then
1200     cross_compiling=yes
1201   fi
1202 fi
1203
1204 ac_tool_prefix=
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207 test "$silent" = yes && exec 6>/dev/null
1208
1209
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213   as_fn_error "working directory cannot be determined"
1214 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1215   as_fn_error "pwd does not report name of working directory"
1216
1217
1218 # Find the source files, if location was not specified.
1219 if test -z "$srcdir"; then
1220   ac_srcdir_defaulted=yes
1221   # Try the directory containing this script, then the parent directory.
1222   ac_confdir=`$as_dirname -- "$as_myself" ||
1223 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1224          X"$as_myself" : 'X\(//\)[^/]' \| \
1225          X"$as_myself" : 'X\(//\)$' \| \
1226          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1227 $as_echo X"$as_myself" |
1228     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1229             s//\1/
1230             q
1231           }
1232           /^X\(\/\/\)[^/].*/{
1233             s//\1/
1234             q
1235           }
1236           /^X\(\/\/\)$/{
1237             s//\1/
1238             q
1239           }
1240           /^X\(\/\).*/{
1241             s//\1/
1242             q
1243           }
1244           s/.*/./; q'`
1245   srcdir=$ac_confdir
1246   if test ! -r "$srcdir/$ac_unique_file"; then
1247     srcdir=..
1248   fi
1249 else
1250   ac_srcdir_defaulted=no
1251 fi
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1254   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1259         pwd)`
1260 # When building in place, set srcdir=.
1261 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262   srcdir=.
1263 fi
1264 # Remove unnecessary trailing slashes from srcdir.
1265 # Double slashes in file names in object file debugging info
1266 # mess up M-x gdb in Emacs.
1267 case $srcdir in
1268 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1269 esac
1270 for ac_var in $ac_precious_vars; do
1271   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1272   eval ac_env_${ac_var}_value=\$${ac_var}
1273   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1274   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1275 done
1276
1277 #
1278 # Report the --help message.
1279 #
1280 if test "$ac_init_help" = "long"; then
1281   # Omit some internal or obsolete options to make the list less imposing.
1282   # This message is too long to be a string in the A/UX 3.1 sh.
1283   cat <<_ACEOF
1284 \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
1285
1286 Usage: $0 [OPTION]... [VAR=VALUE]...
1287
1288 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1289 VAR=VALUE.  See below for descriptions of some of the useful variables.
1290
1291 Defaults for the options are specified in brackets.
1292
1293 Configuration:
1294   -h, --help              display this help and exit
1295       --help=short        display options specific to this package
1296       --help=recursive    display the short help of all the included packages
1297   -V, --version           display version information and exit
1298   -q, --quiet, --silent   do not print \`checking...' messages
1299       --cache-file=FILE   cache test results in FILE [disabled]
1300   -C, --config-cache      alias for \`--cache-file=config.cache'
1301   -n, --no-create         do not create output files
1302       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1303
1304 Installation directories:
1305   --prefix=PREFIX         install architecture-independent files in PREFIX
1306                           [$ac_default_prefix]
1307   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1308                           [PREFIX]
1309
1310 By default, \`make install' will install all the files in
1311 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1312 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1313 for instance \`--prefix=\$HOME'.
1314
1315 For better control, use the options below.
1316
1317 Fine tuning of the installation directories:
1318   --bindir=DIR            user executables [EPREFIX/bin]
1319   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1320   --libexecdir=DIR        program executables [EPREFIX/libexec]
1321   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1322   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1323   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1324   --libdir=DIR            object code libraries [EPREFIX/lib]
1325   --includedir=DIR        C header files [PREFIX/include]
1326   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1327   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1328   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1329   --infodir=DIR           info documentation [DATAROOTDIR/info]
1330   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1331   --mandir=DIR            man documentation [DATAROOTDIR/man]
1332   --docdir=DIR            documentation root [DATAROOTDIR/doc/lto-plugin]
1333   --htmldir=DIR           html documentation [DOCDIR]
1334   --dvidir=DIR            dvi documentation [DOCDIR]
1335   --pdfdir=DIR            pdf documentation [DOCDIR]
1336   --psdir=DIR             ps documentation [DOCDIR]
1337 _ACEOF
1338
1339   cat <<\_ACEOF
1340
1341 Program names:
1342   --program-prefix=PREFIX            prepend PREFIX to installed program names
1343   --program-suffix=SUFFIX            append SUFFIX to installed program names
1344   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1345
1346 System types:
1347   --build=BUILD     configure for building on BUILD [guessed]
1348   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1349   --target=TARGET   configure for building compilers for TARGET [HOST]
1350 _ACEOF
1351 fi
1352
1353 if test -n "$ac_init_help"; then
1354   case $ac_init_help in
1355      short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
1356    esac
1357   cat <<\_ACEOF
1358
1359 Optional Features:
1360   --disable-option-checking  ignore unrecognized --enable/--with options
1361   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1362   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1363   --enable-maintainer-mode  enable make rules and dependencies not useful
1364                           (and sometimes confusing) to the casual installer
1365   --disable-dependency-tracking  speeds up one-time build
1366   --enable-dependency-tracking   do not reject slow dependency extractors
1367   --disable-largefile     omit support for large files
1368   --enable-shared[=PKGS]  build shared libraries [default=yes]
1369   --enable-static[=PKGS]  build static libraries [default=yes]
1370   --enable-fast-install[=PKGS]
1371                           optimize for fast installation [default=yes]
1372   --disable-libtool-lock  avoid locking (might break parallel builds)
1373
1374 Optional Packages:
1375   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1376   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1377   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1378   --with-pic              try to use only PIC/non-PIC objects [default=use
1379                           both]
1380   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1381
1382 Some influential environment variables:
1383   CC          C compiler command
1384   CFLAGS      C compiler flags
1385   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1386               nonstandard directory <lib dir>
1387   LIBS        libraries to pass to the linker, e.g. -l<library>
1388   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389               you have headers in a nonstandard directory <include dir>
1390   CPP         C preprocessor
1391
1392 Use these variables to override the choices made by `configure' or to help
1393 it to find libraries and programs with nonstandard names/locations.
1394
1395 Report bugs to the package provider.
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401   # If there are subdirs, report their specific --help.
1402   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403     test -d "$ac_dir" ||
1404       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1405       continue
1406     ac_builddir=.
1407
1408 case "$ac_dir" in
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *)
1411   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1412   # A ".." for each directory in $ac_dir_suffix.
1413   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1414   case $ac_top_builddir_sub in
1415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417   esac ;;
1418 esac
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1423
1424 case $srcdir in
1425   .)  # We are building in place.
1426     ac_srcdir=.
1427     ac_top_srcdir=$ac_top_builddir_sub
1428     ac_abs_top_srcdir=$ac_pwd ;;
1429   [\\/]* | ?:[\\/]* )  # Absolute name.
1430     ac_srcdir=$srcdir$ac_dir_suffix;
1431     ac_top_srcdir=$srcdir
1432     ac_abs_top_srcdir=$srcdir ;;
1433   *) # Relative name.
1434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435     ac_top_srcdir=$ac_top_build_prefix$srcdir
1436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1437 esac
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1439
1440     cd "$ac_dir" || { ac_status=$?; continue; }
1441     # Check for guested configure.
1442     if test -f "$ac_srcdir/configure.gnu"; then
1443       echo &&
1444       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445     elif test -f "$ac_srcdir/configure"; then
1446       echo &&
1447       $SHELL "$ac_srcdir/configure" --help=recursive
1448     else
1449       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1450     fi || ac_status=$?
1451     cd "$ac_pwd" || { ac_status=$?; break; }
1452   done
1453 fi
1454
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1457   cat <<\_ACEOF
1458 LTO plugin for ld configure 0.1
1459 generated by GNU Autoconf 2.64
1460
1461 Copyright (C) 2009 Free Software Foundation, Inc.
1462 This configure script is free software; the Free Software Foundation
1463 gives unlimited permission to copy, distribute and modify it.
1464 _ACEOF
1465   exit
1466 fi
1467
1468 ## ------------------------ ##
1469 ## Autoconf initialization. ##
1470 ## ------------------------ ##
1471
1472 # ac_fn_c_try_compile LINENO
1473 # --------------------------
1474 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1475 ac_fn_c_try_compile ()
1476 {
1477   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1478   rm -f conftest.$ac_objext
1479   if { { ac_try="$ac_compile"
1480 case "(($ac_try" in
1481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1482   *) ac_try_echo=$ac_try;;
1483 esac
1484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1485 $as_echo "$ac_try_echo"; } >&5
1486   (eval "$ac_compile") 2>conftest.err
1487   ac_status=$?
1488   if test -s conftest.err; then
1489     grep -v '^ *+' conftest.err >conftest.er1
1490     cat conftest.er1 >&5
1491     mv -f conftest.er1 conftest.err
1492   fi
1493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1494   test $ac_status = 0; } && {
1495          test -z "$ac_c_werror_flag" ||
1496          test ! -s conftest.err
1497        } && test -s conftest.$ac_objext; then :
1498   ac_retval=0
1499 else
1500   $as_echo "$as_me: failed program was:" >&5
1501 sed 's/^/| /' conftest.$ac_ext >&5
1502
1503         ac_retval=1
1504 fi
1505   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1506   return $ac_retval
1507
1508 } # ac_fn_c_try_compile
1509
1510 # ac_fn_c_try_link LINENO
1511 # -----------------------
1512 # Try to link conftest.$ac_ext, and return whether this succeeded.
1513 ac_fn_c_try_link ()
1514 {
1515   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516   rm -f conftest.$ac_objext conftest$ac_exeext
1517   if { { ac_try="$ac_link"
1518 case "(($ac_try" in
1519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520   *) ac_try_echo=$ac_try;;
1521 esac
1522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523 $as_echo "$ac_try_echo"; } >&5
1524   (eval "$ac_link") 2>conftest.err
1525   ac_status=$?
1526   if test -s conftest.err; then
1527     grep -v '^ *+' conftest.err >conftest.er1
1528     cat conftest.er1 >&5
1529     mv -f conftest.er1 conftest.err
1530   fi
1531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532   test $ac_status = 0; } && {
1533          test -z "$ac_c_werror_flag" ||
1534          test ! -s conftest.err
1535        } && test -s conftest$ac_exeext && {
1536          test "$cross_compiling" = yes ||
1537          $as_test_x conftest$ac_exeext
1538        }; then :
1539   ac_retval=0
1540 else
1541   $as_echo "$as_me: failed program was:" >&5
1542 sed 's/^/| /' conftest.$ac_ext >&5
1543
1544         ac_retval=1
1545 fi
1546   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1547   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1548   # interfere with the next link command; also delete a directory that is
1549   # left behind by Apple's compiler.  We do this before executing the actions.
1550   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1551   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1552   return $ac_retval
1553
1554 } # ac_fn_c_try_link
1555
1556 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1557 # -------------------------------------------------------
1558 # Tests whether HEADER exists and can be compiled using the include files in
1559 # INCLUDES, setting the cache variable VAR accordingly.
1560 ac_fn_c_check_header_compile ()
1561 {
1562   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1564 $as_echo_n "checking for $2... " >&6; }
1565 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1566   $as_echo_n "(cached) " >&6
1567 else
1568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h.  */
1570 $4
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"; then :
1574   eval "$3=yes"
1575 else
1576   eval "$3=no"
1577 fi
1578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1579 fi
1580 eval ac_res=\$$3
1581                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1584
1585 } # ac_fn_c_check_header_compile
1586
1587 # ac_fn_c_try_cpp LINENO
1588 # ----------------------
1589 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_cpp ()
1591 {
1592   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593   if { { ac_try="$ac_cpp conftest.$ac_ext"
1594 case "(($ac_try" in
1595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596   *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1601   ac_status=$?
1602   if test -s conftest.err; then
1603     grep -v '^ *+' conftest.err >conftest.er1
1604     cat conftest.er1 >&5
1605     mv -f conftest.er1 conftest.err
1606   fi
1607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608   test $ac_status = 0; } >/dev/null && {
1609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1610          test ! -s conftest.err
1611        }; then :
1612   ac_retval=0
1613 else
1614   $as_echo "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617     ac_retval=1
1618 fi
1619   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1620   return $ac_retval
1621
1622 } # ac_fn_c_try_cpp
1623
1624 # ac_fn_c_try_run LINENO
1625 # ----------------------
1626 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1627 # that executables *can* be run.
1628 ac_fn_c_try_run ()
1629 {
1630   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631   if { { ac_try="$ac_link"
1632 case "(($ac_try" in
1633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634   *) ac_try_echo=$ac_try;;
1635 esac
1636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637 $as_echo "$ac_try_echo"; } >&5
1638   (eval "$ac_link") 2>&5
1639   ac_status=$?
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1642   { { case "(($ac_try" in
1643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644   *) ac_try_echo=$ac_try;;
1645 esac
1646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647 $as_echo "$ac_try_echo"; } >&5
1648   (eval "$ac_try") 2>&5
1649   ac_status=$?
1650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651   test $ac_status = 0; }; }; then :
1652   ac_retval=0
1653 else
1654   $as_echo "$as_me: program exited with status $ac_status" >&5
1655        $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1657
1658        ac_retval=$ac_status
1659 fi
1660   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1662   return $ac_retval
1663
1664 } # ac_fn_c_try_run
1665
1666 # ac_fn_c_check_func LINENO FUNC VAR
1667 # ----------------------------------
1668 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1669 ac_fn_c_check_func ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1681 #define $2 innocuous_$2
1682
1683 /* System header to define __stub macros and hopefully few prototypes,
1684     which can conflict with char $2 (); below.
1685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1686     <limits.h> exists even on freestanding compilers.  */
1687
1688 #ifdef __STDC__
1689 # include <limits.h>
1690 #else
1691 # include <assert.h>
1692 #endif
1693
1694 #undef $2
1695
1696 /* Override any GCC internal prototype to avoid an error.
1697    Use char because int might match the return type of a GCC
1698    builtin and then its argument prototype would still apply.  */
1699 #ifdef __cplusplus
1700 extern "C"
1701 #endif
1702 char $2 ();
1703 /* The GNU C library defines this for functions which it implements
1704     to always fail with ENOSYS.  Some functions are actually named
1705     something starting with __ and the normal name is an alias.  */
1706 #if defined __stub_$2 || defined __stub___$2
1707 choke me
1708 #endif
1709
1710 int
1711 main ()
1712 {
1713 return $2 ();
1714   ;
1715   return 0;
1716 }
1717 _ACEOF
1718 if ac_fn_c_try_link "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext \
1724     conftest$ac_exeext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1730
1731 } # ac_fn_c_check_func
1732
1733 # ac_fn_c_find_uintX_t LINENO BITS VAR
1734 # ------------------------------------
1735 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1736 # accordingly.
1737 ac_fn_c_find_uintX_t ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1741 $as_echo_n "checking for uint$2_t... " >&6; }
1742 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1743   $as_echo_n "(cached) " >&6
1744 else
1745   eval "$3=no"
1746      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1747          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1748        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 $ac_includes_default
1751 int
1752 main ()
1753 {
1754 static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
1755 test_array [0] = 0
1756
1757   ;
1758   return 0;
1759 }
1760 _ACEOF
1761 if ac_fn_c_try_compile "$LINENO"; then :
1762   case $ac_type in #(
1763   uint$2_t) :
1764     eval "$3=yes" ;; #(
1765   *) :
1766     eval "$3=\$ac_type" ;;
1767 esac
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770        eval as_val=\$$3
1771    if test "x$as_val" = x""no; then :
1772
1773 else
1774   break
1775 fi
1776      done
1777 fi
1778 eval ac_res=\$$3
1779                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780 $as_echo "$ac_res" >&6; }
1781   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782
1783 } # ac_fn_c_find_uintX_t
1784 cat >config.log <<_ACEOF
1785 This file contains any messages produced by compilers while
1786 running configure, to aid debugging if configure makes a mistake.
1787
1788 It was created by LTO plugin for ld $as_me 0.1, which was
1789 generated by GNU Autoconf 2.64.  Invocation command line was
1790
1791   $ $0 $@
1792
1793 _ACEOF
1794 exec 5>>config.log
1795 {
1796 cat <<_ASUNAME
1797 ## --------- ##
1798 ## Platform. ##
1799 ## --------- ##
1800
1801 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1802 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1803 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1804 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1805 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1806
1807 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1808 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1809
1810 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1811 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1812 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1813 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1814 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1815 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1816 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1817
1818 _ASUNAME
1819
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 for as_dir in $PATH
1822 do
1823   IFS=$as_save_IFS
1824   test -z "$as_dir" && as_dir=.
1825     $as_echo "PATH: $as_dir"
1826   done
1827 IFS=$as_save_IFS
1828
1829 } >&5
1830
1831 cat >&5 <<_ACEOF
1832
1833
1834 ## ----------- ##
1835 ## Core tests. ##
1836 ## ----------- ##
1837
1838 _ACEOF
1839
1840
1841 # Keep a trace of the command line.
1842 # Strip out --no-create and --no-recursion so they do not pile up.
1843 # Strip out --silent because we don't want to record it for future runs.
1844 # Also quote any args containing shell meta-characters.
1845 # Make two passes to allow for proper duplicate-argument suppression.
1846 ac_configure_args=
1847 ac_configure_args0=
1848 ac_configure_args1=
1849 ac_must_keep_next=false
1850 for ac_pass in 1 2
1851 do
1852   for ac_arg
1853   do
1854     case $ac_arg in
1855     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1856     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1857     | -silent | --silent | --silen | --sile | --sil)
1858       continue ;;
1859     *\'*)
1860       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1861     esac
1862     case $ac_pass in
1863     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1864     2)
1865       as_fn_append ac_configure_args1 " '$ac_arg'"
1866       if test $ac_must_keep_next = true; then
1867         ac_must_keep_next=false # Got value, back to normal.
1868       else
1869         case $ac_arg in
1870           *=* | --config-cache | -C | -disable-* | --disable-* \
1871           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1872           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1873           | -with-* | --with-* | -without-* | --without-* | --x)
1874             case "$ac_configure_args0 " in
1875               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1876             esac
1877             ;;
1878           -* ) ac_must_keep_next=true ;;
1879         esac
1880       fi
1881       as_fn_append ac_configure_args " '$ac_arg'"
1882       ;;
1883     esac
1884   done
1885 done
1886 { ac_configure_args0=; unset ac_configure_args0;}
1887 { ac_configure_args1=; unset ac_configure_args1;}
1888
1889 # When interrupted or exit'd, cleanup temporary files, and complete
1890 # config.log.  We remove comments because anyway the quotes in there
1891 # would cause problems or look ugly.
1892 # WARNING: Use '\'' to represent an apostrophe within the trap.
1893 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1894 trap 'exit_status=$?
1895   # Save into config.log some information that might help in debugging.
1896   {
1897     echo
1898
1899     cat <<\_ASBOX
1900 ## ---------------- ##
1901 ## Cache variables. ##
1902 ## ---------------- ##
1903 _ASBOX
1904     echo
1905     # The following way of writing the cache mishandles newlines in values,
1906 (
1907   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1908     eval ac_val=\$$ac_var
1909     case $ac_val in #(
1910     *${as_nl}*)
1911       case $ac_var in #(
1912       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1914       esac
1915       case $ac_var in #(
1916       _ | IFS | as_nl) ;; #(
1917       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1918       *) { eval $ac_var=; unset $ac_var;} ;;
1919       esac ;;
1920     esac
1921   done
1922   (set) 2>&1 |
1923     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1924     *${as_nl}ac_space=\ *)
1925       sed -n \
1926         "s/'\''/'\''\\\\'\'''\''/g;
1927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1928       ;; #(
1929     *)
1930       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1931       ;;
1932     esac |
1933     sort
1934 )
1935     echo
1936
1937     cat <<\_ASBOX
1938 ## ----------------- ##
1939 ## Output variables. ##
1940 ## ----------------- ##
1941 _ASBOX
1942     echo
1943     for ac_var in $ac_subst_vars
1944     do
1945       eval ac_val=\$$ac_var
1946       case $ac_val in
1947       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948       esac
1949       $as_echo "$ac_var='\''$ac_val'\''"
1950     done | sort
1951     echo
1952
1953     if test -n "$ac_subst_files"; then
1954       cat <<\_ASBOX
1955 ## ------------------- ##
1956 ## File substitutions. ##
1957 ## ------------------- ##
1958 _ASBOX
1959       echo
1960       for ac_var in $ac_subst_files
1961       do
1962         eval ac_val=\$$ac_var
1963         case $ac_val in
1964         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965         esac
1966         $as_echo "$ac_var='\''$ac_val'\''"
1967       done | sort
1968       echo
1969     fi
1970
1971     if test -s confdefs.h; then
1972       cat <<\_ASBOX
1973 ## ----------- ##
1974 ## confdefs.h. ##
1975 ## ----------- ##
1976 _ASBOX
1977       echo
1978       cat confdefs.h
1979       echo
1980     fi
1981     test "$ac_signal" != 0 &&
1982       $as_echo "$as_me: caught signal $ac_signal"
1983     $as_echo "$as_me: exit $exit_status"
1984   } >&5
1985   rm -f core *.core core.conftest.* &&
1986     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1987     exit $exit_status
1988 ' 0
1989 for ac_signal in 1 2 13 15; do
1990   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1991 done
1992 ac_signal=0
1993
1994 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1995 rm -f -r conftest* confdefs.h
1996
1997 $as_echo "/* confdefs.h */" > confdefs.h
1998
1999 # Predefined preprocessor variables.
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_NAME "$PACKAGE_NAME"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_STRING "$PACKAGE_STRING"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021 cat >>confdefs.h <<_ACEOF
2022 #define PACKAGE_URL "$PACKAGE_URL"
2023 _ACEOF
2024
2025
2026 # Let the site file select an alternate cache file if it wants to.
2027 # Prefer an explicitly selected file to automatically selected ones.
2028 ac_site_file1=NONE
2029 ac_site_file2=NONE
2030 if test -n "$CONFIG_SITE"; then
2031   ac_site_file1=$CONFIG_SITE
2032 elif test "x$prefix" != xNONE; then
2033   ac_site_file1=$prefix/share/config.site
2034   ac_site_file2=$prefix/etc/config.site
2035 else
2036   ac_site_file1=$ac_default_prefix/share/config.site
2037   ac_site_file2=$ac_default_prefix/etc/config.site
2038 fi
2039 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2040 do
2041   test "x$ac_site_file" = xNONE && continue
2042   if test -r "$ac_site_file"; then
2043     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2045     sed 's/^/| /' "$ac_site_file" >&5
2046     . "$ac_site_file"
2047   fi
2048 done
2049
2050 if test -r "$cache_file"; then
2051   # Some versions of bash will fail to source /dev/null (special
2052   # files actually), so we avoid doing that.
2053   if test -f "$cache_file"; then
2054     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2055 $as_echo "$as_me: loading cache $cache_file" >&6;}
2056     case $cache_file in
2057       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2058       *)                      . "./$cache_file";;
2059     esac
2060   fi
2061 else
2062   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2063 $as_echo "$as_me: creating cache $cache_file" >&6;}
2064   >$cache_file
2065 fi
2066
2067 # Check that the precious variables saved in the cache have kept the same
2068 # value.
2069 ac_cache_corrupted=false
2070 for ac_var in $ac_precious_vars; do
2071   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2072   eval ac_new_set=\$ac_env_${ac_var}_set
2073   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2074   eval ac_new_val=\$ac_env_${ac_var}_value
2075   case $ac_old_set,$ac_new_set in
2076     set,)
2077       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2078 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2079       ac_cache_corrupted=: ;;
2080     ,set)
2081       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2082 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2083       ac_cache_corrupted=: ;;
2084     ,);;
2085     *)
2086       if test "x$ac_old_val" != "x$ac_new_val"; then
2087         # differences in whitespace do not lead to failure.
2088         ac_old_val_w=`echo x $ac_old_val`
2089         ac_new_val_w=`echo x $ac_new_val`
2090         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2091           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2092 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2093           ac_cache_corrupted=:
2094         else
2095           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2096 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2097           eval $ac_var=\$ac_old_val
2098         fi
2099         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2100 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2101         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2102 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2103       fi;;
2104   esac
2105   # Pass precious variables to config.status.
2106   if test "$ac_new_set" = set; then
2107     case $ac_new_val in
2108     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2109     *) ac_arg=$ac_var=$ac_new_val ;;
2110     esac
2111     case " $ac_configure_args " in
2112       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2113       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2114     esac
2115   fi
2116 done
2117 if $ac_cache_corrupted; then
2118   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2120   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2121 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2122   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2123 fi
2124 ## -------------------- ##
2125 ## Main body of script. ##
2126 ## -------------------- ##
2127
2128 ac_ext=c
2129 ac_cpp='$CPP $CPPFLAGS'
2130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2133
2134
2135
2136
2137
2138 ac_aux_dir=
2139 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2140   for ac_t in install-sh install.sh shtool; do
2141     if test -f "$ac_dir/$ac_t"; then
2142       ac_aux_dir=$ac_dir
2143       ac_install_sh="$ac_aux_dir/$ac_t -c"
2144       break 2
2145     fi
2146   done
2147 done
2148 if test -z "$ac_aux_dir"; then
2149   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2150 fi
2151
2152 # These three variables are undocumented and unsupported,
2153 # and are intended to be withdrawn in a future Autoconf release.
2154 # They can cause serious problems if a builder's source tree is in a directory
2155 # whose full name contains unusual characters.
2156 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2157 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2158 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2159
2160
2161 # Make sure we can run config.sub.
2162 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2163   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2164
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2166 $as_echo_n "checking build system type... " >&6; }
2167 if test "${ac_cv_build+set}" = set; then :
2168   $as_echo_n "(cached) " >&6
2169 else
2170   ac_build_alias=$build_alias
2171 test "x$ac_build_alias" = x &&
2172   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2173 test "x$ac_build_alias" = x &&
2174   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2175 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2176   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2177
2178 fi
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2180 $as_echo "$ac_cv_build" >&6; }
2181 case $ac_cv_build in
2182 *-*-*) ;;
2183 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2184 esac
2185 build=$ac_cv_build
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_build
2188 shift
2189 build_cpu=$1
2190 build_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 build_os=$*
2195 IFS=$ac_save_IFS
2196 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2200 $as_echo_n "checking host system type... " >&6; }
2201 if test "${ac_cv_host+set}" = set; then :
2202   $as_echo_n "(cached) " >&6
2203 else
2204   if test "x$host_alias" = x; then
2205   ac_cv_host=$ac_cv_build
2206 else
2207   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2208     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2209 fi
2210
2211 fi
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2213 $as_echo "$ac_cv_host" >&6; }
2214 case $ac_cv_host in
2215 *-*-*) ;;
2216 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2217 esac
2218 host=$ac_cv_host
2219 ac_save_IFS=$IFS; IFS='-'
2220 set x $ac_cv_host
2221 shift
2222 host_cpu=$1
2223 host_vendor=$2
2224 shift; shift
2225 # Remember, the first character of IFS is used to create $*,
2226 # except with old shells:
2227 host_os=$*
2228 IFS=$ac_save_IFS
2229 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2230
2231
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2233 $as_echo_n "checking target system type... " >&6; }
2234 if test "${ac_cv_target+set}" = set; then :
2235   $as_echo_n "(cached) " >&6
2236 else
2237   if test "x$target_alias" = x; then
2238   ac_cv_target=$ac_cv_host
2239 else
2240   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2241     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2242 fi
2243
2244 fi
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2246 $as_echo "$ac_cv_target" >&6; }
2247 case $ac_cv_target in
2248 *-*-*) ;;
2249 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2250 esac
2251 target=$ac_cv_target
2252 ac_save_IFS=$IFS; IFS='-'
2253 set x $ac_cv_target
2254 shift
2255 target_cpu=$1
2256 target_vendor=$2
2257 shift; shift
2258 # Remember, the first character of IFS is used to create $*,
2259 # except with old shells:
2260 target_os=$*
2261 IFS=$ac_save_IFS
2262 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2263
2264
2265 # The aliases save the names the user supplied, while $host etc.
2266 # will get canonicalized.
2267 test -n "$target_alias" &&
2268   test "$program_prefix$program_suffix$program_transform_name" = \
2269     NONENONEs,x,x, &&
2270   program_prefix=${target_alias}-
2271
2272  case ${build_alias} in
2273   "") build_noncanonical=${build} ;;
2274   *) build_noncanonical=${build_alias} ;;
2275 esac
2276
2277  case ${host_alias} in
2278   "") host_noncanonical=${build_noncanonical} ;;
2279   *) host_noncanonical=${host_alias} ;;
2280 esac
2281
2282  case ${target_alias} in
2283   "") target_noncanonical=${host_noncanonical} ;;
2284   *) target_noncanonical=${target_alias} ;;
2285 esac
2286
2287
2288 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2289 # have matching libraries, they should use host libraries: Makefile.tpl
2290 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2291 # However, they still use the build modules, because the corresponding
2292 # host modules (e.g. bison) are only built for the host when bootstrap
2293 # finishes. So:
2294 # - build_subdir is where we find build modules, and never changes.
2295 # - build_libsubdir is where we find build libraries, and can be overridden.
2296
2297 # Prefix 'build-' so this never conflicts with target_subdir.
2298 build_subdir="build-${build_noncanonical}"
2299
2300 # Check whether --with-build-libsubdir was given.
2301 if test "${with_build_libsubdir+set}" = set; then :
2302   withval=$with_build_libsubdir; build_libsubdir="$withval"
2303 else
2304   build_libsubdir="$build_subdir"
2305 fi
2306
2307 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2308 if ( test $srcdir = . && test -d gcc ) \
2309    || test -d $srcdir/../host-${host_noncanonical}; then
2310   host_subdir="host-${host_noncanonical}"
2311 else
2312   host_subdir=.
2313 fi
2314 # No prefix.
2315 target_subdir=${target_noncanonical}
2316
2317 am__api_version='1.11'
2318
2319 # Find a good install program.  We prefer a C program (faster),
2320 # so one script is as good as another.  But avoid the broken or
2321 # incompatible versions:
2322 # SysV /etc/install, /usr/sbin/install
2323 # SunOS /usr/etc/install
2324 # IRIX /sbin/install
2325 # AIX /bin/install
2326 # AmigaOS /C/install, which installs bootblocks on floppy discs
2327 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2328 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2329 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2330 # OS/2's system install, which has a completely different semantic
2331 # ./install, which can be erroneously created by make from ./install.sh.
2332 # Reject install programs that cannot install multiple files.
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2334 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2335 if test -z "$INSTALL"; then
2336 if test "${ac_cv_path_install+set}" = set; then :
2337   $as_echo_n "(cached) " >&6
2338 else
2339   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340 for as_dir in $PATH
2341 do
2342   IFS=$as_save_IFS
2343   test -z "$as_dir" && as_dir=.
2344     # Account for people who put trailing slashes in PATH elements.
2345 case $as_dir/ in #((
2346   ./ | .// | /[cC]/* | \
2347   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2348   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2349   /usr/ucb/* ) ;;
2350   *)
2351     # OSF1 and SCO ODT 3.0 have their own names for install.
2352     # Don't use installbsd from OSF since it installs stuff as root
2353     # by default.
2354     for ac_prog in ginstall scoinst install; do
2355       for ac_exec_ext in '' $ac_executable_extensions; do
2356         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2357           if test $ac_prog = install &&
2358             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2359             # AIX install.  It has an incompatible calling convention.
2360             :
2361           elif test $ac_prog = install &&
2362             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363             # program-specific install script used by HP pwplus--don't use.
2364             :
2365           else
2366             rm -rf conftest.one conftest.two conftest.dir
2367             echo one > conftest.one
2368             echo two > conftest.two
2369             mkdir conftest.dir
2370             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2371               test -s conftest.one && test -s conftest.two &&
2372               test -s conftest.dir/conftest.one &&
2373               test -s conftest.dir/conftest.two
2374             then
2375               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2376               break 3
2377             fi
2378           fi
2379         fi
2380       done
2381     done
2382     ;;
2383 esac
2384
2385   done
2386 IFS=$as_save_IFS
2387
2388 rm -rf conftest.one conftest.two conftest.dir
2389
2390 fi
2391   if test "${ac_cv_path_install+set}" = set; then
2392     INSTALL=$ac_cv_path_install
2393   else
2394     # As a last resort, use the slow shell script.  Don't cache a
2395     # value for INSTALL within a source directory, because that will
2396     # break other packages using the cache if that directory is
2397     # removed, or if the value is a relative name.
2398     INSTALL=$ac_install_sh
2399   fi
2400 fi
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2402 $as_echo "$INSTALL" >&6; }
2403
2404 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2405 # It thinks the first close brace ends the variable substitution.
2406 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2407
2408 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2409
2410 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2411
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2413 $as_echo_n "checking whether build environment is sane... " >&6; }
2414 # Just in case
2415 sleep 1
2416 echo timestamp > conftest.file
2417 # Reject unsafe characters in $srcdir or the absolute working directory
2418 # name.  Accept space and tab only in the latter.
2419 am_lf='
2420 '
2421 case `pwd` in
2422   *[\\\"\#\$\&\'\`$am_lf]*)
2423     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2424 esac
2425 case $srcdir in
2426   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2427     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2428 esac
2429
2430 # Do `set' in a subshell so we don't clobber the current shell's
2431 # arguments.  Must try -L first in case configure is actually a
2432 # symlink; some systems play weird games with the mod time of symlinks
2433 # (eg FreeBSD returns the mod time of the symlink's containing
2434 # directory).
2435 if (
2436    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2437    if test "$*" = "X"; then
2438       # -L didn't work.
2439       set X `ls -t "$srcdir/configure" conftest.file`
2440    fi
2441    rm -f conftest.file
2442    if test "$*" != "X $srcdir/configure conftest.file" \
2443       && test "$*" != "X conftest.file $srcdir/configure"; then
2444
2445       # If neither matched, then we have a broken ls.  This can happen
2446       # if, for instance, CONFIG_SHELL is bash and it inherits a
2447       # broken ls alias from the environment.  This has actually
2448       # happened.  Such a system could not be considered "sane".
2449       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2450 alias in your environment" "$LINENO" 5
2451    fi
2452
2453    test "$2" = conftest.file
2454    )
2455 then
2456    # Ok.
2457    :
2458 else
2459    as_fn_error "newly created file is older than distributed files!
2460 Check your system clock" "$LINENO" 5
2461 fi
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2463 $as_echo "yes" >&6; }
2464 test "$program_prefix" != NONE &&
2465   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2466 # Use a double $ so make ignores it.
2467 test "$program_suffix" != NONE &&
2468   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2469 # Double any \ or $.
2470 # By default was `s,x,x', remove it if useless.
2471 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2472 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2473
2474 # expand $ac_aux_dir to an absolute path
2475 am_aux_dir=`cd $ac_aux_dir && pwd`
2476
2477 if test x"${MISSING+set}" != xset; then
2478   case $am_aux_dir in
2479   *\ * | *\     *)
2480     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2481   *)
2482     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2483   esac
2484 fi
2485 # Use eval to expand $SHELL
2486 if eval "$MISSING --run true"; then
2487   am_missing_run="$MISSING --run "
2488 else
2489   am_missing_run=
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2491 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2492 fi
2493
2494 if test x"${install_sh}" != xset; then
2495   case $am_aux_dir in
2496   *\ * | *\     *)
2497     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2498   *)
2499     install_sh="\${SHELL} $am_aux_dir/install-sh"
2500   esac
2501 fi
2502
2503 # Installed binaries are usually stripped using `strip' when the user
2504 # run `make install-strip'.  However `strip' might not be the right
2505 # tool to use in cross-compilation environments, therefore Automake
2506 # will honor the `STRIP' environment variable to overrule this program.
2507 if test "$cross_compiling" != no; then
2508   if test -n "$ac_tool_prefix"; then
2509   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2510 set dummy ${ac_tool_prefix}strip; ac_word=$2
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2512 $as_echo_n "checking for $ac_word... " >&6; }
2513 if test "${ac_cv_prog_STRIP+set}" = set; then :
2514   $as_echo_n "(cached) " >&6
2515 else
2516   if test -n "$STRIP"; then
2517   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2518 else
2519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 for as_dir in $PATH
2521 do
2522   IFS=$as_save_IFS
2523   test -z "$as_dir" && as_dir=.
2524     for ac_exec_ext in '' $ac_executable_extensions; do
2525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2526     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2528     break 2
2529   fi
2530 done
2531   done
2532 IFS=$as_save_IFS
2533
2534 fi
2535 fi
2536 STRIP=$ac_cv_prog_STRIP
2537 if test -n "$STRIP"; then
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2539 $as_echo "$STRIP" >&6; }
2540 else
2541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2542 $as_echo "no" >&6; }
2543 fi
2544
2545
2546 fi
2547 if test -z "$ac_cv_prog_STRIP"; then
2548   ac_ct_STRIP=$STRIP
2549   # Extract the first word of "strip", so it can be a program name with args.
2550 set dummy strip; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2554   $as_echo_n "(cached) " >&6
2555 else
2556   if test -n "$ac_ct_STRIP"; then
2557   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564     for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_ac_ct_STRIP="strip"
2567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571   done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2577 if test -n "$ac_ct_STRIP"; then
2578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2579 $as_echo "$ac_ct_STRIP" >&6; }
2580 else
2581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585   if test "x$ac_ct_STRIP" = x; then
2586     STRIP=":"
2587   else
2588     case $cross_compiling:$ac_tool_warned in
2589 yes:)
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592 ac_tool_warned=yes ;;
2593 esac
2594     STRIP=$ac_ct_STRIP
2595   fi
2596 else
2597   STRIP="$ac_cv_prog_STRIP"
2598 fi
2599
2600 fi
2601 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2602
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2604 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2605 if test -z "$MKDIR_P"; then
2606   if test "${ac_cv_path_mkdir+set}" = set; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614     for ac_prog in mkdir gmkdir; do
2615          for ac_exec_ext in '' $ac_executable_extensions; do
2616            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2617            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2618              'mkdir (GNU coreutils) '* | \
2619              'mkdir (coreutils) '* | \
2620              'mkdir (fileutils) '4.1*)
2621                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2622                break 3;;
2623            esac
2624          done
2625        done
2626   done
2627 IFS=$as_save_IFS
2628
2629 fi
2630
2631   if test "${ac_cv_path_mkdir+set}" = set; then
2632     MKDIR_P="$ac_cv_path_mkdir -p"
2633   else
2634     # As a last resort, use the slow shell script.  Don't cache a
2635     # value for MKDIR_P within a source directory, because that will
2636     # break other packages using the cache if that directory is
2637     # removed, or if the value is a relative name.
2638     test -d ./--version && rmdir ./--version
2639     MKDIR_P="$ac_install_sh -d"
2640   fi
2641 fi
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2643 $as_echo "$MKDIR_P" >&6; }
2644
2645 mkdir_p="$MKDIR_P"
2646 case $mkdir_p in
2647   [\\/$]* | ?:[\\/]*) ;;
2648   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2649 esac
2650
2651 for ac_prog in gawk mawk nawk awk
2652 do
2653   # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if test "${ac_cv_prog_AWK+set}" = set; then :
2658   $as_echo_n "(cached) " >&6
2659 else
2660   if test -n "$AWK"; then
2661   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662 else
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 for as_dir in $PATH
2665 do
2666   IFS=$as_save_IFS
2667   test -z "$as_dir" && as_dir=.
2668     for ac_exec_ext in '' $ac_executable_extensions; do
2669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670     ac_cv_prog_AWK="$ac_prog"
2671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672     break 2
2673   fi
2674 done
2675   done
2676 IFS=$as_save_IFS
2677
2678 fi
2679 fi
2680 AWK=$ac_cv_prog_AWK
2681 if test -n "$AWK"; then
2682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683 $as_echo "$AWK" >&6; }
2684 else
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2687 fi
2688
2689
2690   test -n "$AWK" && break
2691 done
2692
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2694 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2695 set x ${MAKE-make}
2696 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2697 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2698   $as_echo_n "(cached) " >&6
2699 else
2700   cat >conftest.make <<\_ACEOF
2701 SHELL = /bin/sh
2702 all:
2703         @echo '@@@%%%=$(MAKE)=@@@%%%'
2704 _ACEOF
2705 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2706 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2707   *@@@%%%=?*=@@@%%%*)
2708     eval ac_cv_prog_make_${ac_make}_set=yes;;
2709   *)
2710     eval ac_cv_prog_make_${ac_make}_set=no;;
2711 esac
2712 rm -f conftest.make
2713 fi
2714 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716 $as_echo "yes" >&6; }
2717   SET_MAKE=
2718 else
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 $as_echo "no" >&6; }
2721   SET_MAKE="MAKE=${MAKE-make}"
2722 fi
2723
2724 rm -rf .tst 2>/dev/null
2725 mkdir .tst 2>/dev/null
2726 if test -d .tst; then
2727   am__leading_dot=.
2728 else
2729   am__leading_dot=_
2730 fi
2731 rmdir .tst 2>/dev/null
2732
2733 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2734   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2735   # is not polluted with repeated "-I."
2736   am__isrc=' -I$(srcdir)'
2737   # test to see if srcdir already configured
2738   if test -f $srcdir/config.status; then
2739     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2740   fi
2741 fi
2742
2743 # test whether we have cygpath
2744 if test -z "$CYGPATH_W"; then
2745   if (cygpath --version) >/dev/null 2>/dev/null; then
2746     CYGPATH_W='cygpath -w'
2747   else
2748     CYGPATH_W=echo
2749   fi
2750 fi
2751
2752
2753 # Define the identity of the package.
2754  PACKAGE='lto-plugin'
2755  VERSION='0.1'
2756
2757
2758 cat >>confdefs.h <<_ACEOF
2759 #define PACKAGE "$PACKAGE"
2760 _ACEOF
2761
2762
2763 cat >>confdefs.h <<_ACEOF
2764 #define VERSION "$VERSION"
2765 _ACEOF
2766
2767 # Some tools Automake needs.
2768
2769 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2770
2771
2772 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2773
2774
2775 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2776
2777
2778 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2779
2780
2781 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2782
2783 # We need awk for the "check" target.  The system "awk" is bad on
2784 # some platforms.
2785 # Always define AMTAR for backward compatibility.
2786
2787 AMTAR=${AMTAR-"${am_missing_run}tar"}
2788
2789 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2790
2791
2792
2793
2794
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2797 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2798     # Check whether --enable-maintainer-mode was given.
2799 if test "${enable_maintainer_mode+set}" = set; then :
2800   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2801 else
2802   USE_MAINTAINER_MODE=no
2803 fi
2804
2805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2806 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2807    if test $USE_MAINTAINER_MODE = yes; then
2808   MAINTAINER_MODE_TRUE=
2809   MAINTAINER_MODE_FALSE='#'
2810 else
2811   MAINTAINER_MODE_TRUE='#'
2812   MAINTAINER_MODE_FALSE=
2813 fi
2814
2815   MAINT=$MAINTAINER_MODE_TRUE
2816
2817
2818 ac_ext=c
2819 ac_cpp='$CPP $CPPFLAGS'
2820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2822 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2823 if test -n "$ac_tool_prefix"; then
2824   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2825 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if test "${ac_cv_prog_CC+set}" = set; then :
2829   $as_echo_n "(cached) " >&6
2830 else
2831   if test -n "$CC"; then
2832   ac_cv_prog_CC="$CC" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837   IFS=$as_save_IFS
2838   test -z "$as_dir" && as_dir=.
2839     for ac_exec_ext in '' $ac_executable_extensions; do
2840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2841     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843     break 2
2844   fi
2845 done
2846   done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 $as_echo "$CC" >&6; }
2855 else
2856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 if test -z "$ac_cv_prog_CC"; then
2863   ac_ct_CC=$CC
2864   # Extract the first word of "gcc", so it can be a program name with args.
2865 set dummy gcc; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2869   $as_echo_n "(cached) " >&6
2870 else
2871   if test -n "$ac_ct_CC"; then
2872   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877   IFS=$as_save_IFS
2878   test -z "$as_dir" && as_dir=.
2879     for ac_exec_ext in '' $ac_executable_extensions; do
2880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881     ac_cv_prog_ac_ct_CC="gcc"
2882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883     break 2
2884   fi
2885 done
2886   done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2894 $as_echo "$ac_ct_CC" >&6; }
2895 else
2896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 fi
2899
2900   if test "x$ac_ct_CC" = x; then
2901     CC=""
2902   else
2903     case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909     CC=$ac_ct_CC
2910   fi
2911 else
2912   CC="$ac_cv_prog_CC"
2913 fi
2914
2915 if test -z "$CC"; then
2916           if test -n "$ac_tool_prefix"; then
2917     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2918 set dummy ${ac_tool_prefix}cc; ac_word=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if test "${ac_cv_prog_CC+set}" = set; then :
2922   $as_echo_n "(cached) " >&6
2923 else
2924   if test -n "$CC"; then
2925   ac_cv_prog_CC="$CC" # Let the user override the test.
2926 else
2927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH
2929 do
2930   IFS=$as_save_IFS
2931   test -z "$as_dir" && as_dir=.
2932     for ac_exec_ext in '' $ac_executable_extensions; do
2933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934     ac_cv_prog_CC="${ac_tool_prefix}cc"
2935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2936     break 2
2937   fi
2938 done
2939   done
2940 IFS=$as_save_IFS
2941
2942 fi
2943 fi
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2948 else
2949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2951 fi
2952
2953
2954   fi
2955 fi
2956 if test -z "$CC"; then
2957   # Extract the first word of "cc", so it can be a program name with args.
2958 set dummy cc; ac_word=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if test "${ac_cv_prog_CC+set}" = set; then :
2962   $as_echo_n "(cached) " >&6
2963 else
2964   if test -n "$CC"; then
2965   ac_cv_prog_CC="$CC" # Let the user override the test.
2966 else
2967   ac_prog_rejected=no
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971   IFS=$as_save_IFS
2972   test -z "$as_dir" && as_dir=.
2973     for ac_exec_ext in '' $ac_executable_extensions; do
2974   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2976        ac_prog_rejected=yes
2977        continue
2978      fi
2979     ac_cv_prog_CC="cc"
2980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984   done
2985 IFS=$as_save_IFS
2986
2987 if test $ac_prog_rejected = yes; then
2988   # We found a bogon in the path, so make sure we never use it.
2989   set dummy $ac_cv_prog_CC
2990   shift
2991   if test $# != 0; then
2992     # We chose a different compiler from the bogus one.
2993     # However, it has the same basename, so the bogon will be chosen
2994     # first if we set CC to just the basename; use the full file name.
2995     shift
2996     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2997   fi
2998 fi
2999 fi
3000 fi
3001 CC=$ac_cv_prog_CC
3002 if test -n "$CC"; then
3003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3004 $as_echo "$CC" >&6; }
3005 else
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 $as_echo "no" >&6; }
3008 fi
3009
3010
3011 fi
3012 if test -z "$CC"; then
3013   if test -n "$ac_tool_prefix"; then
3014   for ac_prog in cl.exe
3015   do
3016     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3017 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3019 $as_echo_n "checking for $ac_word... " >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then :
3021   $as_echo_n "(cached) " >&6
3022 else
3023   if test -n "$CC"; then
3024   ac_cv_prog_CC="$CC" # Let the user override the test.
3025 else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035     break 2
3036   fi
3037 done
3038   done
3039 IFS=$as_save_IFS
3040
3041 fi
3042 fi
3043 CC=$ac_cv_prog_CC
3044 if test -n "$CC"; then
3045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3046 $as_echo "$CC" >&6; }
3047 else
3048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049 $as_echo "no" >&6; }
3050 fi
3051
3052
3053     test -n "$CC" && break
3054   done
3055 fi
3056 if test -z "$CC"; then
3057   ac_ct_CC=$CC
3058   for ac_prog in cl.exe
3059 do
3060   # Extract the first word of "$ac_prog", so it can be a program name with args.
3061 set dummy $ac_prog; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3065   $as_echo_n "(cached) " >&6
3066 else
3067   if test -n "$ac_ct_CC"; then
3068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075     for ac_exec_ext in '' $ac_executable_extensions; do
3076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077     ac_cv_prog_ac_ct_CC="$ac_prog"
3078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082   done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088 if test -n "$ac_ct_CC"; then
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090 $as_echo "$ac_ct_CC" >&6; }
3091 else
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096
3097   test -n "$ac_ct_CC" && break
3098 done
3099
3100   if test "x$ac_ct_CC" = x; then
3101     CC=""
3102   else
3103     case $cross_compiling:$ac_tool_warned in
3104 yes:)
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109     CC=$ac_ct_CC
3110   fi
3111 fi
3112
3113 fi
3114
3115
3116 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3118 as_fn_error "no acceptable C compiler found in \$PATH
3119 See \`config.log' for more details." "$LINENO" 5; }
3120
3121 # Provide some information about the compiler.
3122 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3123 set X $ac_compile
3124 ac_compiler=$2
3125 for ac_option in --version -v -V -qversion; do
3126   { { ac_try="$ac_compiler $ac_option >&5"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3132 $as_echo "$ac_try_echo"; } >&5
3133   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3134   ac_status=$?
3135   if test -s conftest.err; then
3136     sed '10a\
3137 ... rest of stderr output deleted ...
3138          10q' conftest.err >conftest.er1
3139     cat conftest.er1 >&5
3140     rm -f conftest.er1 conftest.err
3141   fi
3142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143   test $ac_status = 0; }
3144 done
3145
3146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 ac_clean_files_save=$ac_clean_files
3158 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3159 # Try to create an executable without -o first, disregard a.out.
3160 # It will help us diagnose broken compilers, and finding out an intuition
3161 # of exeext.
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3163 $as_echo_n "checking for C compiler default output file name... " >&6; }
3164 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3165
3166 # The possible output files:
3167 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3168
3169 ac_rmfiles=
3170 for ac_file in $ac_files
3171 do
3172   case $ac_file in
3173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3174     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3175   esac
3176 done
3177 rm -f $ac_rmfiles
3178
3179 if { { ac_try="$ac_link_default"
3180 case "(($ac_try" in
3181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182   *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 $as_echo "$ac_try_echo"; } >&5
3186   (eval "$ac_link_default") 2>&5
3187   ac_status=$?
3188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189   test $ac_status = 0; }; then :
3190   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3191 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3192 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3193 # so that the user can short-circuit this test for compilers unknown to
3194 # Autoconf.
3195 for ac_file in $ac_files ''
3196 do
3197   test -f "$ac_file" || continue
3198   case $ac_file in
3199     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3200         ;;
3201     [ab].out )
3202         # We found the default executable, but exeext='' is most
3203         # certainly right.
3204         break;;
3205     *.* )
3206         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3207         then :; else
3208            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209         fi
3210         # We set ac_cv_exeext here because the later test for it is not
3211         # safe: cross compilers may not add the suffix if given an `-o'
3212         # argument, so we may need to know it at that point already.
3213         # Even if this section looks crufty: it has the advantage of
3214         # actually working.
3215         break;;
3216     * )
3217         break;;
3218   esac
3219 done
3220 test "$ac_cv_exeext" = no && ac_cv_exeext=
3221
3222 else
3223   ac_file=''
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3226 $as_echo "$ac_file" >&6; }
3227 if test -z "$ac_file"; then :
3228   $as_echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3230
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 { as_fn_set_status 77
3234 as_fn_error "C compiler cannot create executables
3235 See \`config.log' for more details." "$LINENO" 5; }; }
3236 fi
3237 ac_exeext=$ac_cv_exeext
3238
3239 # Check that the compiler produces executables we can run.  If not, either
3240 # the compiler is broken, or we cross compile.
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3242 $as_echo_n "checking whether the C compiler works... " >&6; }
3243 # If not cross compiling, check that we can run a simple program.
3244 if test "$cross_compiling" != yes; then
3245   if { ac_try='./$ac_file'
3246   { { case "(($ac_try" in
3247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248   *) ac_try_echo=$ac_try;;
3249 esac
3250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251 $as_echo "$ac_try_echo"; } >&5
3252   (eval "$ac_try") 2>&5
3253   ac_status=$?
3254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255   test $ac_status = 0; }; }; then
3256     cross_compiling=no
3257   else
3258     if test "$cross_compiling" = maybe; then
3259         cross_compiling=yes
3260     else
3261         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error "cannot run C compiled programs.
3264 If you meant to cross compile, use \`--host'.
3265 See \`config.log' for more details." "$LINENO" 5; }
3266     fi
3267   fi
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270 $as_echo "yes" >&6; }
3271
3272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3273 ac_clean_files=$ac_clean_files_save
3274 # Check that the compiler produces executables we can run.  If not, either
3275 # the compiler is broken, or we cross compile.
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3277 $as_echo_n "checking whether we are cross compiling... " >&6; }
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3279 $as_echo "$cross_compiling" >&6; }
3280
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3282 $as_echo_n "checking for suffix of executables... " >&6; }
3283 if { { ac_try="$ac_link"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 $as_echo "$ac_try_echo"; } >&5
3290   (eval "$ac_link") 2>&5
3291   ac_status=$?
3292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293   test $ac_status = 0; }; then :
3294   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3295 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3296 # work properly (i.e., refer to `conftest.exe'), while it won't with
3297 # `rm'.
3298 for ac_file in conftest.exe conftest conftest.*; do
3299   test -f "$ac_file" || continue
3300   case $ac_file in
3301     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3302     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303           break;;
3304     * ) break;;
3305   esac
3306 done
3307 else
3308   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3310 as_fn_error "cannot compute suffix of executables: cannot compile and link
3311 See \`config.log' for more details." "$LINENO" 5; }
3312 fi
3313 rm -f conftest$ac_cv_exeext
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3315 $as_echo "$ac_cv_exeext" >&6; }
3316
3317 rm -f conftest.$ac_ext
3318 EXEEXT=$ac_cv_exeext
3319 ac_exeext=$EXEEXT
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3321 $as_echo_n "checking for suffix of object files... " >&6; }
3322 if test "${ac_cv_objext+set}" = set; then :
3323   $as_echo_n "(cached) " >&6
3324 else
3325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.o conftest.obj
3337 if { { ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 $as_echo "$ac_try_echo"; } >&5
3344   (eval "$ac_compile") 2>&5
3345   ac_status=$?
3346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347   test $ac_status = 0; }; then :
3348   for ac_file in conftest.o conftest.obj conftest.*; do
3349   test -f "$ac_file" || continue;
3350   case $ac_file in
3351     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3352     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3353        break;;
3354   esac
3355 done
3356 else
3357   $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 as_fn_error "cannot compute suffix of object files: cannot compile
3363 See \`config.log' for more details." "$LINENO" 5; }
3364 fi
3365 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3366 fi
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3368 $as_echo "$ac_cv_objext" >&6; }
3369 OBJEXT=$ac_cv_objext
3370 ac_objext=$OBJEXT
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3372 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3373 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3374   $as_echo_n "(cached) " >&6
3375 else
3376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h.  */
3378
3379 int
3380 main ()
3381 {
3382 #ifndef __GNUC__
3383        choke me
3384 #endif
3385
3386   ;
3387   return 0;
3388 }
3389 _ACEOF
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391   ac_compiler_gnu=yes
3392 else
3393   ac_compiler_gnu=no
3394 fi
3395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3396 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3397
3398 fi
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3400 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3401 if test $ac_compiler_gnu = yes; then
3402   GCC=yes
3403 else
3404   GCC=
3405 fi
3406 ac_test_CFLAGS=${CFLAGS+set}
3407 ac_save_CFLAGS=$CFLAGS
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3409 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3410 if test "${ac_cv_prog_cc_g+set}" = set; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   ac_save_c_werror_flag=$ac_c_werror_flag
3414    ac_c_werror_flag=yes
3415    ac_cv_prog_cc_g=no
3416    CFLAGS="-g"
3417    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3418 /* end confdefs.h.  */
3419
3420 int
3421 main ()
3422 {
3423
3424   ;
3425   return 0;
3426 }
3427 _ACEOF
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429   ac_cv_prog_cc_g=yes
3430 else
3431   CFLAGS=""
3432       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444
3445 else
3446   ac_c_werror_flag=$ac_save_c_werror_flag
3447          CFLAGS="-g"
3448          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449 /* end confdefs.h.  */
3450
3451 int
3452 main ()
3453 {
3454
3455   ;
3456   return 0;
3457 }
3458 _ACEOF
3459 if ac_fn_c_try_compile "$LINENO"; then :
3460   ac_cv_prog_cc_g=yes
3461 fi
3462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467    ac_c_werror_flag=$ac_save_c_werror_flag
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3470 $as_echo "$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472   CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474   if test "$GCC" = yes; then
3475     CFLAGS="-g -O2"
3476   else
3477     CFLAGS="-g"
3478   fi
3479 else
3480   if test "$GCC" = yes; then
3481     CFLAGS="-O2"
3482   else
3483     CFLAGS=
3484   fi
3485 fi
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3487 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3489   $as_echo_n "(cached) " >&6
3490 else
3491   ac_cv_prog_cc_c89=no
3492 ac_save_CC=$CC
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h.  */
3495 #include <stdarg.h>
3496 #include <stdio.h>
3497 #include <sys/types.h>
3498 #include <sys/stat.h>
3499 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3500 struct buf { int x; };
3501 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3502 static char *e (p, i)
3503      char **p;
3504      int i;
3505 {
3506   return p[i];
3507 }
3508 static char *f (char * (*g) (char **, int), char **p, ...)
3509 {
3510   char *s;
3511   va_list v;
3512   va_start (v,p);
3513   s = g (p, va_arg (v,int));
3514   va_end (v);
3515   return s;
3516 }
3517
3518 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3519    function prototypes and stuff, but not '\xHH' hex character constants.
3520    These don't provoke an error unfortunately, instead are silently treated
3521    as 'x'.  The following induces an error, until -std is added to get
3522    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3523    array size at least.  It's necessary to write '\x00'==0 to get something
3524    that's true only with -std.  */
3525 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3526
3527 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3528    inside strings and character constants.  */
3529 #define FOO(x) 'x'
3530 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3531
3532 int test (int i, double x);
3533 struct s1 {int (*f) (int a);};
3534 struct s2 {int (*f) (double a);};
3535 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3536 int argc;
3537 char **argv;
3538 int
3539 main ()
3540 {
3541 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3542   ;
3543   return 0;
3544 }
3545 _ACEOF
3546 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3547         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3548 do
3549   CC="$ac_save_CC $ac_arg"
3550   if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_c89=$ac_arg
3552 fi
3553 rm -f core conftest.err conftest.$ac_objext
3554   test "x$ac_cv_prog_cc_c89" != "xno" && break
3555 done
3556 rm -f conftest.$ac_ext
3557 CC=$ac_save_CC
3558
3559 fi
3560 # AC_CACHE_VAL
3561 case "x$ac_cv_prog_cc_c89" in
3562   x)
3563     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3564 $as_echo "none needed" >&6; } ;;
3565   xno)
3566     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3567 $as_echo "unsupported" >&6; } ;;
3568   *)
3569     CC="$CC $ac_cv_prog_cc_c89"
3570     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3571 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3572 esac
3573 if test "x$ac_cv_prog_cc_c89" != xno; then :
3574
3575 fi
3576
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3582 DEPDIR="${am__leading_dot}deps"
3583
3584 ac_config_commands="$ac_config_commands depfiles"
3585
3586
3587 am_make=${MAKE-make}
3588 cat > confinc << 'END'
3589 am__doit:
3590         @echo this is the am__doit target
3591 .PHONY: am__doit
3592 END
3593 # If we don't find an include directive, just comment out the code.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3595 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3596 am__include="#"
3597 am__quote=
3598 _am_result=none
3599 # First try GNU make style include.
3600 echo "include confinc" > confmf
3601 # Ignore all kinds of additional output from `make'.
3602 case `$am_make -s -f confmf 2> /dev/null` in #(
3603 *the\ am__doit\ target*)
3604   am__include=include
3605   am__quote=
3606   _am_result=GNU
3607   ;;
3608 esac
3609 # Now try BSD make style include.
3610 if test "$am__include" = "#"; then
3611    echo '.include "confinc"' > confmf
3612    case `$am_make -s -f confmf 2> /dev/null` in #(
3613    *the\ am__doit\ target*)
3614      am__include=.include
3615      am__quote="\""
3616      _am_result=BSD
3617      ;;
3618    esac
3619 fi
3620
3621
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3623 $as_echo "$_am_result" >&6; }
3624 rm -f confinc confmf
3625
3626 # Check whether --enable-dependency-tracking was given.
3627 if test "${enable_dependency_tracking+set}" = set; then :
3628   enableval=$enable_dependency_tracking;
3629 fi
3630
3631 if test "x$enable_dependency_tracking" != xno; then
3632   am_depcomp="$ac_aux_dir/depcomp"
3633   AMDEPBACKSLASH='\'
3634 fi
3635  if test "x$enable_dependency_tracking" != xno; then
3636   AMDEP_TRUE=
3637   AMDEP_FALSE='#'
3638 else
3639   AMDEP_TRUE='#'
3640   AMDEP_FALSE=
3641 fi
3642
3643
3644
3645 depcc="$CC"   am_compiler_list=
3646
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3648 $as_echo_n "checking dependency style of $depcc... " >&6; }
3649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3650   $as_echo_n "(cached) " >&6
3651 else
3652   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3653   # We make a subdir and do the tests there.  Otherwise we can end up
3654   # making bogus files that we don't know about and never remove.  For
3655   # instance it was reported that on HP-UX the gcc test will end up
3656   # making a dummy file named `D' -- because `-MD' means `put the output
3657   # in D'.
3658   mkdir conftest.dir
3659   # Copy depcomp to subdir because otherwise we won't find it if we're
3660   # using a relative directory.
3661   cp "$am_depcomp" conftest.dir
3662   cd conftest.dir
3663   # We will build objects and dependencies in a subdirectory because
3664   # it helps to detect inapplicable dependency modes.  For instance
3665   # both Tru64's cc and ICC support -MD to output dependencies as a
3666   # side effect of compilation, but ICC will put the dependencies in
3667   # the current directory while Tru64 will put them in the object
3668   # directory.
3669   mkdir sub
3670
3671   am_cv_CC_dependencies_compiler_type=none
3672   if test "$am_compiler_list" = ""; then
3673      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3674   fi
3675   am__universal=false
3676   case " $depcc " in #(
3677      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3678      esac
3679
3680   for depmode in $am_compiler_list; do
3681     # Setup a source with many dependencies, because some compilers
3682     # like to wrap large dependency lists on column 80 (with \), and
3683     # we should not choose a depcomp mode which is confused by this.
3684     #
3685     # We need to recreate these files for each test, as the compiler may
3686     # overwrite some of them when testing with obscure command lines.
3687     # This happens at least with the AIX C compiler.
3688     : > sub/conftest.c
3689     for i in 1 2 3 4 5 6; do
3690       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3691       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3692       # Solaris 8's {/usr,}/bin/sh.
3693       touch sub/conftst$i.h
3694     done
3695     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3696
3697     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3698     # mode.  It turns out that the SunPro C++ compiler does not properly
3699     # handle `-M -o', and we need to detect this.  Also, some Intel
3700     # versions had trouble with output in subdirs
3701     am__obj=sub/conftest.${OBJEXT-o}
3702     am__minus_obj="-o $am__obj"
3703     case $depmode in
3704     gcc)
3705       # This depmode causes a compiler race in universal mode.
3706       test "$am__universal" = false || continue
3707       ;;
3708     nosideeffect)
3709       # after this tag, mechanisms are not by side-effect, so they'll
3710       # only be used when explicitly requested
3711       if test "x$enable_dependency_tracking" = xyes; then
3712         continue
3713       else
3714         break
3715       fi
3716       ;;
3717     msvisualcpp | msvcmsys)
3718       # This compiler won't grok `-c -o', but also, the minuso test has
3719       # not run yet.  These depmodes are late enough in the game, and
3720       # so weak that their functioning should not be impacted.
3721       am__obj=conftest.${OBJEXT-o}
3722       am__minus_obj=
3723       ;;
3724     none) break ;;
3725     esac
3726     if depmode=$depmode \
3727        source=sub/conftest.c object=$am__obj \
3728        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3729        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3730          >/dev/null 2>conftest.err &&
3731        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3732        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3733        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3734        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3735       # icc doesn't choke on unknown options, it will just issue warnings
3736       # or remarks (even with -Werror).  So we grep stderr for any message
3737       # that says an option was ignored or not supported.
3738       # When given -MP, icc 7.0 and 7.1 complain thusly:
3739       #   icc: Command line warning: ignoring option '-M'; no argument required
3740       # The diagnosis changed in icc 8.0:
3741       #   icc: Command line remark: option '-MP' not supported
3742       if (grep 'ignoring option' conftest.err ||
3743           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3744         am_cv_CC_dependencies_compiler_type=$depmode
3745         break
3746       fi
3747     fi
3748   done
3749
3750   cd ..
3751   rm -rf conftest.dir
3752 else
3753   am_cv_CC_dependencies_compiler_type=none
3754 fi
3755
3756 fi
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3760
3761  if
3762   test "x$enable_dependency_tracking" != xno \
3763   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3764   am__fastdepCC_TRUE=
3765   am__fastdepCC_FALSE='#'
3766 else
3767   am__fastdepCC_TRUE='#'
3768   am__fastdepCC_FALSE=
3769 fi
3770
3771
3772
3773 # Check whether --enable-largefile was given.
3774 if test "${enable_largefile+set}" = set; then :
3775   enableval=$enable_largefile;
3776 fi
3777
3778 if test "$enable_largefile" != no; then
3779
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3781 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3782 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   ac_cv_sys_largefile_CC=no
3786      if test "$GCC" != yes; then
3787        ac_save_CC=$CC
3788        while :; do
3789          # IRIX 6.2 and later do not support large files by default,
3790          # so use the C compiler's -n32 option if that helps.
3791          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 /* end confdefs.h.  */
3793 #include <sys/types.h>
3794  /* Check that off_t can represent 2**63 - 1 correctly.
3795     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3796     since some C++ compilers masquerading as C compilers
3797     incorrectly reject 9223372036854775807.  */
3798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3799   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3800                        && LARGE_OFF_T % 2147483647 == 1)
3801                       ? 1 : -1];
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810          if ac_fn_c_try_compile "$LINENO"; then :
3811   break
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext
3814          CC="$CC -n32"
3815          if ac_fn_c_try_compile "$LINENO"; then :
3816   ac_cv_sys_largefile_CC=' -n32'; break
3817 fi
3818 rm -f core conftest.err conftest.$ac_objext
3819          break
3820        done
3821        CC=$ac_save_CC
3822        rm -f conftest.$ac_ext
3823     fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3826 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
3827   if test "$ac_cv_sys_largefile_CC" != no; then
3828     CC=$CC$ac_cv_sys_largefile_CC
3829   fi
3830
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3832 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3833 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   while :; do
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839 #include <sys/types.h>
3840  /* Check that off_t can represent 2**63 - 1 correctly.
3841     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3842     since some C++ compilers masquerading as C compilers
3843     incorrectly reject 9223372036854775807.  */
3844 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3845   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3846                        && LARGE_OFF_T % 2147483647 == 1)
3847                       ? 1 : -1];
3848 int
3849 main ()
3850 {
3851
3852   ;
3853   return 0;
3854 }
3855 _ACEOF
3856 if ac_fn_c_try_compile "$LINENO"; then :
3857   ac_cv_sys_file_offset_bits=no; break
3858 fi
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h.  */
3862 #define _FILE_OFFSET_BITS 64
3863 #include <sys/types.h>
3864  /* Check that off_t can represent 2**63 - 1 correctly.
3865     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3866     since some C++ compilers masquerading as C compilers
3867     incorrectly reject 9223372036854775807.  */
3868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3869   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3870                        && LARGE_OFF_T % 2147483647 == 1)
3871                       ? 1 : -1];
3872 int
3873 main ()
3874 {
3875
3876   ;
3877   return 0;
3878 }
3879 _ACEOF
3880 if ac_fn_c_try_compile "$LINENO"; then :
3881   ac_cv_sys_file_offset_bits=64; break
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884   ac_cv_sys_file_offset_bits=unknown
3885   break
3886 done
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3889 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3890 case $ac_cv_sys_file_offset_bits in #(
3891   no | unknown) ;;
3892   *)
3893 cat >>confdefs.h <<_ACEOF
3894 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3895 _ACEOF
3896 ;;
3897 esac
3898 rm -rf conftest*
3899   if test $ac_cv_sys_file_offset_bits = unknown; then
3900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3901 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3902 if test "${ac_cv_sys_large_files+set}" = set; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   while :; do
3906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908 #include <sys/types.h>
3909  /* Check that off_t can represent 2**63 - 1 correctly.
3910     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3911     since some C++ compilers masquerading as C compilers
3912     incorrectly reject 9223372036854775807.  */
3913 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3914   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3915                        && LARGE_OFF_T % 2147483647 == 1)
3916                       ? 1 : -1];
3917 int
3918 main ()
3919 {
3920
3921   ;
3922   return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"; then :
3926   ac_cv_sys_large_files=no; break
3927 fi
3928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931 #define _LARGE_FILES 1
3932 #include <sys/types.h>
3933  /* Check that off_t can represent 2**63 - 1 correctly.
3934     We can't simply define LARGE_OFF_T to be 9223372036854775807,
3935     since some C++ compilers masquerading as C compilers
3936     incorrectly reject 9223372036854775807.  */
3937 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3938   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3939                        && LARGE_OFF_T % 2147483647 == 1)
3940                       ? 1 : -1];
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950   ac_cv_sys_large_files=1; break
3951 fi
3952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3953   ac_cv_sys_large_files=unknown
3954   break
3955 done
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3958 $as_echo "$ac_cv_sys_large_files" >&6; }
3959 case $ac_cv_sys_large_files in #(
3960   no | unknown) ;;
3961   *)
3962 cat >>confdefs.h <<_ACEOF
3963 #define _LARGE_FILES $ac_cv_sys_large_files
3964 _ACEOF
3965 ;;
3966 esac
3967 rm -rf conftest*
3968   fi
3969 fi
3970
3971 case `pwd` in
3972   *\ * | *\     *)
3973     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3974 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3975 esac
3976
3977
3978
3979 macro_version='2.2.7a'
3980 macro_revision='1.3134'
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994 ltmain="$ac_aux_dir/ltmain.sh"
3995
3996 # Backslashify metacharacters that are still active within
3997 # double-quoted strings.
3998 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3999
4000 # Same as above, but do not quote variable references.
4001 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4002
4003 # Sed substitution to delay expansion of an escaped shell variable in a
4004 # double_quote_subst'ed string.
4005 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4006
4007 # Sed substitution to delay expansion of an escaped single quote.
4008 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4009
4010 # Sed substitution to avoid accidental globbing in evaled expressions
4011 no_glob_subst='s/\*/\\\*/g'
4012
4013 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4014 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4015 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4016
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4018 $as_echo_n "checking how to print strings... " >&6; }
4019 # Test print first, because it will be a builtin if present.
4020 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4021    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4022   ECHO='print -r --'
4023 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4024   ECHO='printf %s\n'
4025 else
4026   # Use this function as a fallback that always works.
4027   func_fallback_echo ()
4028   {
4029     eval 'cat <<_LTECHO_EOF
4030 $1
4031 _LTECHO_EOF'
4032   }
4033   ECHO='func_fallback_echo'
4034 fi
4035
4036 # func_echo_all arg...
4037 # Invoke $ECHO with all args, space-separated.
4038 func_echo_all ()
4039 {
4040     $ECHO ""
4041 }
4042
4043 case "$ECHO" in
4044   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4045 $as_echo "printf" >&6; } ;;
4046   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4047 $as_echo "print -r" >&6; } ;;
4048   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4049 $as_echo "cat" >&6; } ;;
4050 esac
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4066 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4067 if test "${ac_cv_path_SED+set}" = set; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4071      for ac_i in 1 2 3 4 5 6 7; do
4072        ac_script="$ac_script$as_nl$ac_script"
4073      done
4074      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4075      { ac_script=; unset ac_script;}
4076      if test -z "$SED"; then
4077   ac_path_SED_found=false
4078   # Loop through the user's path and test for each of PROGNAME-LIST
4079   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   test -z "$as_dir" && as_dir=.
4084     for ac_prog in sed gsed; do
4085     for ac_exec_ext in '' $ac_executable_extensions; do
4086       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4087       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4088 # Check for GNU ac_path_SED and select it if it is found.
4089   # Check for GNU $ac_path_SED
4090 case `"$ac_path_SED" --version 2>&1` in
4091 *GNU*)
4092   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4093 *)
4094   ac_count=0
4095   $as_echo_n 0123456789 >"conftest.in"
4096   while :
4097   do
4098     cat "conftest.in" "conftest.in" >"conftest.tmp"
4099     mv "conftest.tmp" "conftest.in"
4100     cp "conftest.in" "conftest.nl"
4101     $as_echo '' >> "conftest.nl"
4102     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4103     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4104     as_fn_arith $ac_count + 1 && ac_count=$as_val
4105     if test $ac_count -gt ${ac_path_SED_max-0}; then
4106       # Best one so far, save it but keep looking for a better one
4107       ac_cv_path_SED="$ac_path_SED"
4108       ac_path_SED_max=$ac_count
4109     fi
4110     # 10*(2^10) chars as input seems more than enough
4111     test $ac_count -gt 10 && break
4112   done
4113   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4114 esac
4115
4116       $ac_path_SED_found && break 3
4117     done
4118   done
4119   done
4120 IFS=$as_save_IFS
4121   if test -z "$ac_cv_path_SED"; then
4122     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4123   fi
4124 else
4125   ac_cv_path_SED=$SED
4126 fi
4127
4128 fi
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4130 $as_echo "$ac_cv_path_SED" >&6; }
4131  SED="$ac_cv_path_SED"
4132   rm -f conftest.sed
4133
4134 test -z "$SED" && SED=sed
4135 Xsed="$SED -e 1s/^X//"
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4149 if test "${ac_cv_path_GREP+set}" = set; then :
4150   $as_echo_n "(cached) " >&6
4151 else
4152   if test -z "$GREP"; then
4153   ac_path_GREP_found=false
4154   # Loop through the user's path and test for each of PROGNAME-LIST
4155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160     for ac_prog in grep ggrep; do
4161     for ac_exec_ext in '' $ac_executable_extensions; do
4162       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4163       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4164 # Check for GNU ac_path_GREP and select it if it is found.
4165   # Check for GNU $ac_path_GREP
4166 case `"$ac_path_GREP" --version 2>&1` in
4167 *GNU*)
4168   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4169 *)
4170   ac_count=0
4171   $as_echo_n 0123456789 >"conftest.in"
4172   while :
4173   do
4174     cat "conftest.in" "conftest.in" >"conftest.tmp"
4175     mv "conftest.tmp" "conftest.in"
4176     cp "conftest.in" "conftest.nl"
4177     $as_echo 'GREP' >> "conftest.nl"
4178     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4179     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4180     as_fn_arith $ac_count + 1 && ac_count=$as_val
4181     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4182       # Best one so far, save it but keep looking for a better one
4183       ac_cv_path_GREP="$ac_path_GREP"
4184       ac_path_GREP_max=$ac_count
4185     fi
4186     # 10*(2^10) chars as input seems more than enough
4187     test $ac_count -gt 10 && break
4188   done
4189   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4190 esac
4191
4192       $ac_path_GREP_found && break 3
4193     done
4194   done
4195   done
4196 IFS=$as_save_IFS
4197   if test -z "$ac_cv_path_GREP"; then
4198     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4199   fi
4200 else
4201   ac_cv_path_GREP=$GREP
4202 fi
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4206 $as_echo "$ac_cv_path_GREP" >&6; }
4207  GREP="$ac_cv_path_GREP"
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4211 $as_echo_n "checking for egrep... " >&6; }
4212 if test "${ac_cv_path_EGREP+set}" = set; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4216    then ac_cv_path_EGREP="$GREP -E"
4217    else
4218      if test -z "$EGREP"; then
4219   ac_path_EGREP_found=false
4220   # Loop through the user's path and test for each of PROGNAME-LIST
4221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4223 do
4224   IFS=$as_save_IFS
4225   test -z "$as_dir" && as_dir=.
4226     for ac_prog in egrep; do
4227     for ac_exec_ext in '' $ac_executable_extensions; do
4228       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4229       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231   # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4233 *GNU*)
4234   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4235 *)
4236   ac_count=0
4237   $as_echo_n 0123456789 >"conftest.in"
4238   while :
4239   do
4240     cat "conftest.in" "conftest.in" >"conftest.tmp"
4241     mv "conftest.tmp" "conftest.in"
4242     cp "conftest.in" "conftest.nl"
4243     $as_echo 'EGREP' >> "conftest.nl"
4244     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4245     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4246     as_fn_arith $ac_count + 1 && ac_count=$as_val
4247     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248       # Best one so far, save it but keep looking for a better one
4249       ac_cv_path_EGREP="$ac_path_EGREP"
4250       ac_path_EGREP_max=$ac_count
4251     fi
4252     # 10*(2^10) chars as input seems more than enough
4253     test $ac_count -gt 10 && break
4254   done
4255   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4256 esac
4257
4258       $ac_path_EGREP_found && break 3
4259     done
4260   done
4261   done
4262 IFS=$as_save_IFS
4263   if test -z "$ac_cv_path_EGREP"; then
4264     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4265   fi
4266 else
4267   ac_cv_path_EGREP=$EGREP
4268 fi
4269
4270    fi
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4273 $as_echo "$ac_cv_path_EGREP" >&6; }
4274  EGREP="$ac_cv_path_EGREP"
4275
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4278 $as_echo_n "checking for fgrep... " >&6; }
4279 if test "${ac_cv_path_FGREP+set}" = set; then :
4280   $as_echo_n "(cached) " >&6
4281 else
4282   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4283    then ac_cv_path_FGREP="$GREP -F"
4284    else
4285      if test -z "$FGREP"; then
4286   ac_path_FGREP_found=false
4287   # Loop through the user's path and test for each of PROGNAME-LIST
4288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293     for ac_prog in fgrep; do
4294     for ac_exec_ext in '' $ac_executable_extensions; do
4295       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4296       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4297 # Check for GNU ac_path_FGREP and select it if it is found.
4298   # Check for GNU $ac_path_FGREP
4299 case `"$ac_path_FGREP" --version 2>&1` in
4300 *GNU*)
4301   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4302 *)
4303   ac_count=0
4304   $as_echo_n 0123456789 >"conftest.in"
4305   while :
4306   do
4307     cat "conftest.in" "conftest.in" >"conftest.tmp"
4308     mv "conftest.tmp" "conftest.in"
4309     cp "conftest.in" "conftest.nl"
4310     $as_echo 'FGREP' >> "conftest.nl"
4311     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4312     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4313     as_fn_arith $ac_count + 1 && ac_count=$as_val
4314     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4315       # Best one so far, save it but keep looking for a better one
4316       ac_cv_path_FGREP="$ac_path_FGREP"
4317       ac_path_FGREP_max=$ac_count
4318     fi
4319     # 10*(2^10) chars as input seems more than enough
4320     test $ac_count -gt 10 && break
4321   done
4322   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4323 esac
4324
4325       $ac_path_FGREP_found && break 3
4326     done
4327   done
4328   done
4329 IFS=$as_save_IFS
4330   if test -z "$ac_cv_path_FGREP"; then
4331     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4332   fi
4333 else
4334   ac_cv_path_FGREP=$FGREP
4335 fi
4336
4337    fi
4338 fi
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4340 $as_echo "$ac_cv_path_FGREP" >&6; }
4341  FGREP="$ac_cv_path_FGREP"
4342
4343
4344 test -z "$GREP" && GREP=grep
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364 # Check whether --with-gnu-ld was given.
4365 if test "${with_gnu_ld+set}" = set; then :
4366   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4367 else
4368   with_gnu_ld=no
4369 fi
4370
4371 ac_prog=ld
4372 if test "$GCC" = yes; then
4373   # Check if gcc -print-prog-name=ld gives a path.
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4375 $as_echo_n "checking for ld used by $CC... " >&6; }
4376   case $host in
4377   *-*-mingw*)
4378     # gcc leaves a trailing carriage return which upsets mingw
4379     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4380   *)
4381     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4382   esac
4383   case $ac_prog in
4384     # Accept absolute paths.
4385     [\\/]* | ?:[\\/]*)
4386       re_direlt='/[^/][^/]*/\.\./'
4387       # Canonicalize the pathname of ld
4388       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4389       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4390         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4391       done
4392       test -z "$LD" && LD="$ac_prog"
4393       ;;
4394   "")
4395     # If it fails, then pretend we aren't using GCC.
4396     ac_prog=ld
4397     ;;
4398   *)
4399     # If it is relative, then search for the first ld in PATH.
4400     with_gnu_ld=unknown
4401     ;;
4402   esac
4403 elif test "$with_gnu_ld" = yes; then
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4405 $as_echo_n "checking for GNU ld... " >&6; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4408 $as_echo_n "checking for non-GNU ld... " >&6; }
4409 fi
4410 if test "${lt_cv_path_LD+set}" = set; then :
4411   $as_echo_n "(cached) " >&6
4412 else
4413   if test -z "$LD"; then
4414   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4415   for ac_dir in $PATH; do
4416     IFS="$lt_save_ifs"
4417     test -z "$ac_dir" && ac_dir=.
4418     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4419       lt_cv_path_LD="$ac_dir/$ac_prog"
4420       # Check to see if the program is GNU ld.  I'd rather use --version,
4421       # but apparently some variants of GNU ld only accept -v.
4422       # Break only if it was the GNU/non-GNU ld that we prefer.
4423       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4424       *GNU* | *'with BFD'*)
4425         test "$with_gnu_ld" != no && break
4426         ;;
4427       *)
4428         test "$with_gnu_ld" != yes && break
4429         ;;
4430       esac
4431     fi
4432   done
4433   IFS="$lt_save_ifs"
4434 else
4435   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4436 fi
4437 fi
4438
4439 LD="$lt_cv_path_LD"
4440 if test -n "$LD"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4442 $as_echo "$LD" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4449 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4450 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4451   $as_echo_n "(cached) " >&6
4452 else
4453   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4454 case `$LD -v 2>&1 </dev/null` in
4455 *GNU* | *'with BFD'*)
4456   lt_cv_prog_gnu_ld=yes
4457   ;;
4458 *)
4459   lt_cv_prog_gnu_ld=no
4460   ;;
4461 esac
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4464 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4465 with_gnu_ld=$lt_cv_prog_gnu_ld
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4476 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4477 if test "${lt_cv_path_NM+set}" = set; then :
4478   $as_echo_n "(cached) " >&6
4479 else
4480   if test -n "$NM"; then
4481   # Let the user override the test.
4482   lt_cv_path_NM="$NM"
4483 else
4484   lt_nm_to_check="${ac_tool_prefix}nm"
4485   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4486     lt_nm_to_check="$lt_nm_to_check nm"
4487   fi
4488   for lt_tmp_nm in $lt_nm_to_check; do
4489     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4490     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4491       IFS="$lt_save_ifs"
4492       test -z "$ac_dir" && ac_dir=.
4493       tmp_nm="$ac_dir/$lt_tmp_nm"
4494       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4495         # Check to see if the nm accepts a BSD-compat flag.
4496         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4497         #   nm: unknown option "B" ignored
4498         # Tru64's nm complains that /dev/null is an invalid object file
4499         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4500         */dev/null* | *'Invalid file or object type'*)
4501           lt_cv_path_NM="$tmp_nm -B"
4502           break
4503           ;;
4504         *)
4505           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4506           */dev/null*)
4507             lt_cv_path_NM="$tmp_nm -p"
4508             break
4509             ;;
4510           *)
4511             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4512             continue # so that we can try to find one that supports BSD flags
4513             ;;
4514           esac
4515           ;;
4516         esac
4517       fi
4518     done
4519     IFS="$lt_save_ifs"
4520   done
4521   : ${lt_cv_path_NM=no}
4522 fi
4523 fi
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4525 $as_echo "$lt_cv_path_NM" >&6; }
4526 if test "$lt_cv_path_NM" != "no"; then
4527   NM="$lt_cv_path_NM"
4528 else
4529   # Didn't find any BSD compatible name lister, look for dumpbin.
4530   if test -n "$DUMPBIN"; then :
4531     # Let the user override the test.
4532   else
4533     if test -n "$ac_tool_prefix"; then
4534   for ac_prog in dumpbin "link -dump"
4535   do
4536     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4539 $as_echo_n "checking for $ac_word... " >&6; }
4540 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4541   $as_echo_n "(cached) " >&6
4542 else
4543   if test -n "$DUMPBIN"; then
4544   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4545 else
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547 for as_dir in $PATH
4548 do
4549   IFS=$as_save_IFS
4550   test -z "$as_dir" && as_dir=.
4551     for ac_exec_ext in '' $ac_executable_extensions; do
4552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4553     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4555     break 2
4556   fi
4557 done
4558   done
4559 IFS=$as_save_IFS
4560
4561 fi
4562 fi
4563 DUMPBIN=$ac_cv_prog_DUMPBIN
4564 if test -n "$DUMPBIN"; then
4565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4566 $as_echo "$DUMPBIN" >&6; }
4567 else
4568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 $as_echo "no" >&6; }
4570 fi
4571
4572
4573     test -n "$DUMPBIN" && break
4574   done
4575 fi
4576 if test -z "$DUMPBIN"; then
4577   ac_ct_DUMPBIN=$DUMPBIN
4578   for ac_prog in dumpbin "link -dump"
4579 do
4580   # Extract the first word of "$ac_prog", so it can be a program name with args.
4581 set dummy $ac_prog; ac_word=$2
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4583 $as_echo_n "checking for $ac_word... " >&6; }
4584 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4585   $as_echo_n "(cached) " >&6
4586 else
4587   if test -n "$ac_ct_DUMPBIN"; then
4588   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4589 else
4590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 for as_dir in $PATH
4592 do
4593   IFS=$as_save_IFS
4594   test -z "$as_dir" && as_dir=.
4595     for ac_exec_ext in '' $ac_executable_extensions; do
4596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4597     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4599     break 2
4600   fi
4601 done
4602   done
4603 IFS=$as_save_IFS
4604
4605 fi
4606 fi
4607 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4608 if test -n "$ac_ct_DUMPBIN"; then
4609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4610 $as_echo "$ac_ct_DUMPBIN" >&6; }
4611 else
4612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 $as_echo "no" >&6; }
4614 fi
4615
4616
4617   test -n "$ac_ct_DUMPBIN" && break
4618 done
4619
4620   if test "x$ac_ct_DUMPBIN" = x; then
4621     DUMPBIN=":"
4622   else
4623     case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629     DUMPBIN=$ac_ct_DUMPBIN
4630   fi
4631 fi
4632
4633     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4634     *COFF*)
4635       DUMPBIN="$DUMPBIN -symbols"
4636       ;;
4637     *)
4638       DUMPBIN=:
4639       ;;
4640     esac
4641   fi
4642
4643   if test "$DUMPBIN" != ":"; then
4644     NM="$DUMPBIN"
4645   fi
4646 fi
4647 test -z "$NM" && NM=nm
4648
4649
4650
4651
4652
4653
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4655 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4656 if test "${lt_cv_nm_interface+set}" = set; then :
4657   $as_echo_n "(cached) " >&6
4658 else
4659   lt_cv_nm_interface="BSD nm"
4660   echo "int some_variable = 0;" > conftest.$ac_ext
4661   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4662   (eval "$ac_compile" 2>conftest.err)
4663   cat conftest.err >&5
4664   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4665   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4666   cat conftest.err >&5
4667   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4668   cat conftest.out >&5
4669   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4670     lt_cv_nm_interface="MS dumpbin"
4671   fi
4672   rm -f conftest*
4673 fi
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4675 $as_echo "$lt_cv_nm_interface" >&6; }
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4678 $as_echo_n "checking whether ln -s works... " >&6; }
4679 LN_S=$as_ln_s
4680 if test "$LN_S" = "ln -s"; then
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4682 $as_echo "yes" >&6; }
4683 else
4684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4685 $as_echo "no, using $LN_S" >&6; }
4686 fi
4687
4688 # find the maximum length of command line arguments
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4690 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4691 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694     i=0
4695   teststring="ABCD"
4696
4697   case $build_os in
4698   msdosdjgpp*)
4699     # On DJGPP, this test can blow up pretty badly due to problems in libc
4700     # (any single argument exceeding 2000 bytes causes a buffer overrun
4701     # during glob expansion).  Even if it were fixed, the result of this
4702     # check would be larger than it should be.
4703     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4704     ;;
4705
4706   gnu*)
4707     # Under GNU Hurd, this test is not required because there is
4708     # no limit to the length of command line arguments.
4709     # Libtool will interpret -1 as no limit whatsoever
4710     lt_cv_sys_max_cmd_len=-1;
4711     ;;
4712
4713   cygwin* | mingw* | cegcc*)
4714     # On Win9x/ME, this test blows up -- it succeeds, but takes
4715     # about 5 minutes as the teststring grows exponentially.
4716     # Worse, since 9x/ME are not pre-emptively multitasking,
4717     # you end up with a "frozen" computer, even though with patience
4718     # the test eventually succeeds (with a max line length of 256k).
4719     # Instead, let's just punt: use the minimum linelength reported by
4720     # all of the supported platforms: 8192 (on NT/2K/XP).
4721     lt_cv_sys_max_cmd_len=8192;
4722     ;;
4723
4724   mint*)
4725     # On MiNT this can take a long time and run out of memory.
4726     lt_cv_sys_max_cmd_len=8192;
4727     ;;
4728
4729   amigaos*)
4730     # On AmigaOS with pdksh, this test takes hours, literally.
4731     # So we just punt and use a minimum line length of 8192.
4732     lt_cv_sys_max_cmd_len=8192;
4733     ;;
4734
4735   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4736     # This has been around since 386BSD, at least.  Likely further.
4737     if test -x /sbin/sysctl; then
4738       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4739     elif test -x /usr/sbin/sysctl; then
4740       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4741     else
4742       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4743     fi
4744     # And add a safety zone
4745     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4746     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4747     ;;
4748
4749   interix*)
4750     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4751     lt_cv_sys_max_cmd_len=196608
4752     ;;
4753
4754   osf*)
4755     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4756     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4757     # nice to cause kernel panics so lets avoid the loop below.
4758     # First set a reasonable default.
4759     lt_cv_sys_max_cmd_len=16384
4760     #
4761     if test -x /sbin/sysconfig; then
4762       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4763         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4764       esac
4765     fi
4766     ;;
4767   sco3.2v5*)
4768     lt_cv_sys_max_cmd_len=102400
4769     ;;
4770   sysv5* | sco5v6* | sysv4.2uw2*)
4771     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4772     if test -n "$kargmax"; then
4773       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4774     else
4775       lt_cv_sys_max_cmd_len=32768
4776     fi
4777     ;;
4778   *)
4779     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4780     if test -n "$lt_cv_sys_max_cmd_len"; then
4781       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4782       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4783     else
4784       # Make teststring a little bigger before we do anything with it.
4785       # a 1K string should be a reasonable start.
4786       for i in 1 2 3 4 5 6 7 8 ; do
4787         teststring=$teststring$teststring
4788       done
4789       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4790       # If test is not a shell built-in, we'll probably end up computing a
4791       # maximum length that is only half of the actual maximum length, but
4792       # we can't tell.
4793       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4794                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4795               test $i != 17 # 1/2 MB should be enough
4796       do
4797         i=`expr $i + 1`
4798         teststring=$teststring$teststring
4799       done
4800       # Only check the string length outside the loop.
4801       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4802       teststring=
4803       # Add a significant safety factor because C++ compilers can tack on
4804       # massive amounts of additional arguments before passing them to the
4805       # linker.  It appears as though 1/2 is a usable value.
4806       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4807     fi
4808     ;;
4809   esac
4810
4811 fi
4812
4813 if test -n $lt_cv_sys_max_cmd_len ; then
4814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4815 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4816 else
4817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4818 $as_echo "none" >&6; }
4819 fi
4820 max_cmd_len=$lt_cv_sys_max_cmd_len
4821
4822
4823
4824
4825
4826
4827 : ${CP="cp -f"}
4828 : ${MV="mv -f"}
4829 : ${RM="rm -f"}
4830
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4832 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4833 # Try some XSI features
4834 xsi_shell=no
4835 ( _lt_dummy="a/b/c"
4836   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4837       = c,a/b,, \
4838     && eval 'test $(( 1 + 1 )) -eq 2 \
4839     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4840   && xsi_shell=yes
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4842 $as_echo "$xsi_shell" >&6; }
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4846 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4847 lt_shell_append=no
4848 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4849     >/dev/null 2>&1 \
4850   && lt_shell_append=yes
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4852 $as_echo "$lt_shell_append" >&6; }
4853
4854
4855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4856   lt_unset=unset
4857 else
4858   lt_unset=false
4859 fi
4860
4861
4862
4863
4864
4865 # test EBCDIC or ASCII
4866 case `echo X|tr X '\101'` in
4867  A) # ASCII based system
4868     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4869   lt_SP2NL='tr \040 \012'
4870   lt_NL2SP='tr \015\012 \040\040'
4871   ;;
4872  *) # EBCDIC based system
4873   lt_SP2NL='tr \100 \n'
4874   lt_NL2SP='tr \r\n \100\100'
4875   ;;
4876 esac
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4887 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4888 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   lt_cv_ld_reload_flag='-r'
4892 fi
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4894 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4895 reload_flag=$lt_cv_ld_reload_flag
4896 case $reload_flag in
4897 "" | " "*) ;;
4898 *) reload_flag=" $reload_flag" ;;
4899 esac
4900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4901 case $host_os in
4902   darwin*)
4903     if test "$GCC" = yes; then
4904       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4905     else
4906       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4907     fi
4908     ;;
4909 esac
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919 if test -n "$ac_tool_prefix"; then
4920   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4921 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4923 $as_echo_n "checking for $ac_word... " >&6; }
4924 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4925   $as_echo_n "(cached) " >&6
4926 else
4927   if test -n "$OBJDUMP"; then
4928   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4929 else
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH
4932 do
4933   IFS=$as_save_IFS
4934   test -z "$as_dir" && as_dir=.
4935     for ac_exec_ext in '' $ac_executable_extensions; do
4936   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4937     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4939     break 2
4940   fi
4941 done
4942   done
4943 IFS=$as_save_IFS
4944
4945 fi
4946 fi
4947 OBJDUMP=$ac_cv_prog_OBJDUMP
4948 if test -n "$OBJDUMP"; then
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4950 $as_echo "$OBJDUMP" >&6; }
4951 else
4952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4953 $as_echo "no" >&6; }
4954 fi
4955
4956
4957 fi
4958 if test -z "$ac_cv_prog_OBJDUMP"; then
4959   ac_ct_OBJDUMP=$OBJDUMP
4960   # Extract the first word of "objdump", so it can be a program name with args.
4961 set dummy objdump; ac_word=$2
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4963 $as_echo_n "checking for $ac_word... " >&6; }
4964 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   if test -n "$ac_ct_OBJDUMP"; then
4968   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4969 else
4970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975     for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982   done
4983 IFS=$as_save_IFS
4984
4985 fi
4986 fi
4987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4988 if test -n "$ac_ct_OBJDUMP"; then
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4990 $as_echo "$ac_ct_OBJDUMP" >&6; }
4991 else
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995
4996   if test "x$ac_ct_OBJDUMP" = x; then
4997     OBJDUMP="false"
4998   else
4999     case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005     OBJDUMP=$ac_ct_OBJDUMP
5006   fi
5007 else
5008   OBJDUMP="$ac_cv_prog_OBJDUMP"
5009 fi
5010
5011 test -z "$OBJDUMP" && OBJDUMP=objdump
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   lt_cv_file_magic_cmd='$MAGIC_CMD'
5027 lt_cv_file_magic_test_file=
5028 lt_cv_deplibs_check_method='unknown'
5029 # Need to set the preceding variable on all platforms that support
5030 # interlibrary dependencies.
5031 # 'none' -- dependencies not supported.
5032 # `unknown' -- same as none, but documents that we really don't know.
5033 # 'pass_all' -- all dependencies passed with no checks.
5034 # 'test_compile' -- check by making test program.
5035 # 'file_magic [[regex]]' -- check by looking for files in library path
5036 # which responds to the $file_magic_cmd with a given extended regex.
5037 # If you have `file' or equivalent on your system and you're not sure
5038 # whether `pass_all' will *always* work, you probably want this one.
5039
5040 case $host_os in
5041 aix[4-9]*)
5042   lt_cv_deplibs_check_method=pass_all
5043   ;;
5044
5045 beos*)
5046   lt_cv_deplibs_check_method=pass_all
5047   ;;
5048
5049 bsdi[45]*)
5050   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5051   lt_cv_file_magic_cmd='/usr/bin/file -L'
5052   lt_cv_file_magic_test_file=/shlib/libc.so
5053   ;;
5054
5055 cygwin*)
5056   # func_win32_libid is a shell function defined in ltmain.sh
5057   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5058   lt_cv_file_magic_cmd='func_win32_libid'
5059   ;;
5060
5061 mingw* | pw32*)
5062   # Base MSYS/MinGW do not provide the 'file' command needed by
5063   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5064   # unless we find 'file', for example because we are cross-compiling.
5065   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5066   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5067     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5068     lt_cv_file_magic_cmd='func_win32_libid'
5069   else
5070     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5071     lt_cv_file_magic_cmd='$OBJDUMP -f'
5072   fi
5073   ;;
5074
5075 cegcc*)
5076   # use the weaker test based on 'objdump'. See mingw*.
5077   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5078   lt_cv_file_magic_cmd='$OBJDUMP -f'
5079   ;;
5080
5081 darwin* | rhapsody*)
5082   lt_cv_deplibs_check_method=pass_all
5083   ;;
5084
5085 freebsd* | dragonfly*)
5086   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5087     case $host_cpu in
5088     i*86 )
5089       # Not sure whether the presence of OpenBSD here was a mistake.
5090       # Let's accept both of them until this is cleared up.
5091       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5092       lt_cv_file_magic_cmd=/usr/bin/file
5093       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5094       ;;
5095     esac
5096   else
5097     lt_cv_deplibs_check_method=pass_all
5098   fi
5099   ;;
5100
5101 gnu*)
5102   lt_cv_deplibs_check_method=pass_all
5103   ;;
5104
5105 haiku*)
5106   lt_cv_deplibs_check_method=pass_all
5107   ;;
5108
5109 hpux10.20* | hpux11*)
5110   lt_cv_file_magic_cmd=/usr/bin/file
5111   case $host_cpu in
5112   ia64*)
5113     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5114     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5115     ;;
5116   hppa*64*)
5117     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]'
5118     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5119     ;;
5120   *)
5121     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5122     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5123     ;;
5124   esac
5125   ;;
5126
5127 interix[3-9]*)
5128   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5129   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5130   ;;
5131
5132 irix5* | irix6* | nonstopux*)
5133   case $LD in
5134   *-32|*"-32 ") libmagic=32-bit;;
5135   *-n32|*"-n32 ") libmagic=N32;;
5136   *-64|*"-64 ") libmagic=64-bit;;
5137   *) libmagic=never-match;;
5138   esac
5139   lt_cv_deplibs_check_method=pass_all
5140   ;;
5141
5142 # This must be Linux ELF.
5143 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5144   lt_cv_deplibs_check_method=pass_all
5145   ;;
5146
5147 netbsd*)
5148   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5150   else
5151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5152   fi
5153   ;;
5154
5155 newos6*)
5156   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5157   lt_cv_file_magic_cmd=/usr/bin/file
5158   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5159   ;;
5160
5161 *nto* | *qnx*)
5162   lt_cv_deplibs_check_method=pass_all
5163   ;;
5164
5165 openbsd*)
5166   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5167     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5168   else
5169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5170   fi
5171   ;;
5172
5173 osf3* | osf4* | osf5*)
5174   lt_cv_deplibs_check_method=pass_all
5175   ;;
5176
5177 rdos*)
5178   lt_cv_deplibs_check_method=pass_all
5179   ;;
5180
5181 solaris*)
5182   lt_cv_deplibs_check_method=pass_all
5183   ;;
5184
5185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5186   lt_cv_deplibs_check_method=pass_all
5187   ;;
5188
5189 sysv4 | sysv4.3*)
5190   case $host_vendor in
5191   motorola)
5192     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]'
5193     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5194     ;;
5195   ncr)
5196     lt_cv_deplibs_check_method=pass_all
5197     ;;
5198   sequent)
5199     lt_cv_file_magic_cmd='/bin/file'
5200     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5201     ;;
5202   sni)
5203     lt_cv_file_magic_cmd='/bin/file'
5204     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5205     lt_cv_file_magic_test_file=/lib/libc.so
5206     ;;
5207   siemens)
5208     lt_cv_deplibs_check_method=pass_all
5209     ;;
5210   pc)
5211     lt_cv_deplibs_check_method=pass_all
5212     ;;
5213   esac
5214   ;;
5215
5216 tpf*)
5217   lt_cv_deplibs_check_method=pass_all
5218   ;;
5219 esac
5220
5221 fi
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5223 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5224 file_magic_cmd=$lt_cv_file_magic_cmd
5225 deplibs_check_method=$lt_cv_deplibs_check_method
5226 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 if test -n "$ac_tool_prefix"; then
5240   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5241 set dummy ${ac_tool_prefix}ar; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_prog_AR+set}" = set; then :
5245   $as_echo_n "(cached) " >&6
5246 else
5247   if test -n "$AR"; then
5248   ac_cv_prog_AR="$AR" # Let the user override the test.
5249 else
5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 for as_dir in $PATH
5252 do
5253   IFS=$as_save_IFS
5254   test -z "$as_dir" && as_dir=.
5255     for ac_exec_ext in '' $ac_executable_extensions; do
5256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5257     ac_cv_prog_AR="${ac_tool_prefix}ar"
5258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5259     break 2
5260   fi
5261 done
5262   done
5263 IFS=$as_save_IFS
5264
5265 fi
5266 fi
5267 AR=$ac_cv_prog_AR
5268 if test -n "$AR"; then
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5270 $as_echo "$AR" >&6; }
5271 else
5272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5273 $as_echo "no" >&6; }
5274 fi
5275
5276
5277 fi
5278 if test -z "$ac_cv_prog_AR"; then
5279   ac_ct_AR=$AR
5280   # Extract the first word of "ar", so it can be a program name with args.
5281 set dummy ar; ac_word=$2
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 $as_echo_n "checking for $ac_word... " >&6; }
5284 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5285   $as_echo_n "(cached) " >&6
5286 else
5287   if test -n "$ac_ct_AR"; then
5288   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5289 else
5290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 for as_dir in $PATH
5292 do
5293   IFS=$as_save_IFS
5294   test -z "$as_dir" && as_dir=.
5295     for ac_exec_ext in '' $ac_executable_extensions; do
5296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5297     ac_cv_prog_ac_ct_AR="ar"
5298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5299     break 2
5300   fi
5301 done
5302   done
5303 IFS=$as_save_IFS
5304
5305 fi
5306 fi
5307 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5308 if test -n "$ac_ct_AR"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5310 $as_echo "$ac_ct_AR" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316   if test "x$ac_ct_AR" = x; then
5317     AR="false"
5318   else
5319     case $cross_compiling:$ac_tool_warned in
5320 yes:)
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5323 ac_tool_warned=yes ;;
5324 esac
5325     AR=$ac_ct_AR
5326   fi
5327 else
5328   AR="$ac_cv_prog_AR"
5329 fi
5330
5331 test -z "$AR" && AR=ar
5332 test -z "$AR_FLAGS" && AR_FLAGS=cru
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344 if test -n "$ac_tool_prefix"; then
5345   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5346 set dummy ${ac_tool_prefix}strip; ac_word=$2
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348 $as_echo_n "checking for $ac_word... " >&6; }
5349 if test "${ac_cv_prog_STRIP+set}" = set; then :
5350   $as_echo_n "(cached) " >&6
5351 else
5352   if test -n "$STRIP"; then
5353   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5354 else
5355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5362     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369
5370 fi
5371 fi
5372 STRIP=$ac_cv_prog_STRIP
5373 if test -n "$STRIP"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5375 $as_echo "$STRIP" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 fi
5383 if test -z "$ac_cv_prog_STRIP"; then
5384   ac_ct_STRIP=$STRIP
5385   # Extract the first word of "strip", so it can be a program name with args.
5386 set dummy strip; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   if test -n "$ac_ct_STRIP"; then
5393   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402     ac_cv_prog_ac_ct_STRIP="strip"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409
5410 fi
5411 fi
5412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5413 if test -n "$ac_ct_STRIP"; then
5414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5415 $as_echo "$ac_ct_STRIP" >&6; }
5416 else
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5419 fi
5420
5421   if test "x$ac_ct_STRIP" = x; then
5422     STRIP=":"
5423   else
5424     case $cross_compiling:$ac_tool_warned in
5425 yes:)
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5428 ac_tool_warned=yes ;;
5429 esac
5430     STRIP=$ac_ct_STRIP
5431   fi
5432 else
5433   STRIP="$ac_cv_prog_STRIP"
5434 fi
5435
5436 test -z "$STRIP" && STRIP=:
5437
5438
5439
5440
5441
5442
5443 if test -n "$ac_tool_prefix"; then
5444   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5449   $as_echo_n "(cached) " >&6
5450 else
5451   if test -n "$RANLIB"; then
5452   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5453 else
5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 for as_dir in $PATH
5456 do
5457   IFS=$as_save_IFS
5458   test -z "$as_dir" && as_dir=.
5459     for ac_exec_ext in '' $ac_executable_extensions; do
5460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5461     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463     break 2
5464   fi
5465 done
5466   done
5467 IFS=$as_save_IFS
5468
5469 fi
5470 fi
5471 RANLIB=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 fi
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483   ac_ct_RANLIB=$RANLIB
5484   # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib; ac_word=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5489   $as_echo_n "(cached) " >&6
5490 else
5491   if test -n "$ac_ct_RANLIB"; then
5492   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5493 else
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495 for as_dir in $PATH
5496 do
5497   IFS=$as_save_IFS
5498   test -z "$as_dir" && as_dir=.
5499     for ac_exec_ext in '' $ac_executable_extensions; do
5500   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5501     ac_cv_prog_ac_ct_RANLIB="ranlib"
5502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503     break 2
5504   fi
5505 done
5506   done
5507 IFS=$as_save_IFS
5508
5509 fi
5510 fi
5511 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520   if test "x$ac_ct_RANLIB" = x; then
5521     RANLIB=":"
5522   else
5523     case $cross_compiling:$ac_tool_warned in
5524 yes:)
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned=yes ;;
5528 esac
5529     RANLIB=$ac_ct_RANLIB
5530   fi
5531 else
5532   RANLIB="$ac_cv_prog_RANLIB"
5533 fi
5534
5535 test -z "$RANLIB" && RANLIB=:
5536
5537
5538
5539
5540
5541
5542 # Determine commands to create old-style static archives.
5543 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5544 old_postinstall_cmds='chmod 644 $oldlib'
5545 old_postuninstall_cmds=
5546
5547 if test -n "$RANLIB"; then
5548   case $host_os in
5549   openbsd*)
5550     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5551     ;;
5552   *)
5553     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5554     ;;
5555   esac
5556   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5557 fi
5558
5559 case $host_os in
5560   darwin*)
5561     lock_old_archive_extraction=yes ;;
5562   *)
5563     lock_old_archive_extraction=no ;;
5564 esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604 # If no C compiler was specified, use CC.
5605 LTCC=${LTCC-"$CC"}
5606
5607 # If no C compiler flags were specified, use CFLAGS.
5608 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5609
5610 # Allow CC to be a program name with arguments.
5611 compiler=$CC
5612
5613
5614 # Check for command to grab the raw symbol name followed by C symbol from nm.
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5616 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5617 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620
5621 # These are sane defaults that work on at least a few old systems.
5622 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5623
5624 # Character class describing NM global symbol codes.
5625 symcode='[BCDEGRST]'
5626
5627 # Regexp to match symbols that can be accessed directly from C.
5628 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5629
5630 # Define system-specific variables.
5631 case $host_os in
5632 aix*)
5633   symcode='[BCDT]'
5634   ;;
5635 cygwin* | mingw* | pw32* | cegcc*)
5636   symcode='[ABCDGISTW]'
5637   ;;
5638 hpux*)
5639   if test "$host_cpu" = ia64; then
5640     symcode='[ABCDEGRST]'
5641   fi
5642   ;;
5643 irix* | nonstopux*)
5644   symcode='[BCDEGRST]'
5645   ;;
5646 osf*)
5647   symcode='[BCDEGQRST]'
5648   ;;
5649 solaris*)
5650   symcode='[BDRT]'
5651   ;;
5652 sco3.2v5*)
5653   symcode='[DT]'
5654   ;;
5655 sysv4.2uw2*)
5656   symcode='[DT]'
5657   ;;
5658 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5659   symcode='[ABDT]'
5660   ;;
5661 sysv4)
5662   symcode='[DFNSTU]'
5663   ;;
5664 esac
5665
5666 # If we're using GNU nm, then use its standard symbol codes.
5667 case `$NM -V 2>&1` in
5668 *GNU* | *'with BFD'*)
5669   symcode='[ABCDGIRSTW]' ;;
5670 esac
5671
5672 # Transform an extracted symbol line into a proper C declaration.
5673 # Some systems (esp. on ia64) link data and code symbols differently,
5674 # so use this general approach.
5675 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5676
5677 # Transform an extracted symbol line into symbol name and symbol address
5678 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5679 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'"
5680
5681 # Handle CRLF in mingw tool chain
5682 opt_cr=
5683 case $build_os in
5684 mingw*)
5685   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5686   ;;
5687 esac
5688
5689 # Try without a prefix underscore, then with it.
5690 for ac_symprfx in "" "_"; do
5691
5692   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5693   symxfrm="\\1 $ac_symprfx\\2 \\2"
5694
5695   # Write the raw and C identifiers.
5696   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5697     # Fake it for dumpbin and say T for any non-static function
5698     # and D for any global variable.
5699     # Also find C++ and __fastcall symbols from MSVC++,
5700     # which start with @ or ?.
5701     lt_cv_sys_global_symbol_pipe="$AWK '"\
5702 "     {last_section=section; section=\$ 3};"\
5703 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5704 "     \$ 0!~/External *\|/{next};"\
5705 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5706 "     {if(hide[section]) next};"\
5707 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5708 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5709 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5710 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5711 "     ' prfx=^$ac_symprfx"
5712   else
5713     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5714   fi
5715
5716   # Check to see that the pipe works correctly.
5717   pipe_works=no
5718
5719   rm -f conftest*
5720   cat > conftest.$ac_ext <<_LT_EOF
5721 #ifdef __cplusplus
5722 extern "C" {
5723 #endif
5724 char nm_test_var;
5725 void nm_test_func(void);
5726 void nm_test_func(void){}
5727 #ifdef __cplusplus
5728 }
5729 #endif
5730 int main(){nm_test_var='a';nm_test_func();return(0);}
5731 _LT_EOF
5732
5733   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5734   (eval $ac_compile) 2>&5
5735   ac_status=$?
5736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737   test $ac_status = 0; }; then
5738     # Now try to grab the symbols.
5739     nlist=conftest.nm
5740     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5741   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5742   ac_status=$?
5743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5744   test $ac_status = 0; } && test -s "$nlist"; then
5745       # Try sorting and uniquifying the output.
5746       if sort "$nlist" | uniq > "$nlist"T; then
5747         mv -f "$nlist"T "$nlist"
5748       else
5749         rm -f "$nlist"T
5750       fi
5751
5752       # Make sure that we snagged all the symbols we need.
5753       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5754         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5755           cat <<_LT_EOF > conftest.$ac_ext
5756 #ifdef __cplusplus
5757 extern "C" {
5758 #endif
5759
5760 _LT_EOF
5761           # Now generate the symbol file.
5762           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5763
5764           cat <<_LT_EOF >> conftest.$ac_ext
5765
5766 /* The mapping between symbol names and symbols.  */
5767 const struct {
5768   const char *name;
5769   void       *address;
5770 }
5771 lt__PROGRAM__LTX_preloaded_symbols[] =
5772 {
5773   { "@PROGRAM@", (void *) 0 },
5774 _LT_EOF
5775           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5776           cat <<\_LT_EOF >> conftest.$ac_ext
5777   {0, (void *) 0}
5778 };
5779
5780 /* This works around a problem in FreeBSD linker */
5781 #ifdef FREEBSD_WORKAROUND
5782 static const void *lt_preloaded_setup() {
5783   return lt__PROGRAM__LTX_preloaded_symbols;
5784 }
5785 #endif
5786
5787 #ifdef __cplusplus
5788 }
5789 #endif
5790 _LT_EOF
5791           # Now try linking the two files.
5792           mv conftest.$ac_objext conftstm.$ac_objext
5793           lt_save_LIBS="$LIBS"
5794           lt_save_CFLAGS="$CFLAGS"
5795           LIBS="conftstm.$ac_objext"
5796           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5797           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5798   (eval $ac_link) 2>&5
5799   ac_status=$?
5800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5801   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5802             pipe_works=yes
5803           fi
5804           LIBS="$lt_save_LIBS"
5805           CFLAGS="$lt_save_CFLAGS"
5806         else
5807           echo "cannot find nm_test_func in $nlist" >&5
5808         fi
5809       else
5810         echo "cannot find nm_test_var in $nlist" >&5
5811       fi
5812     else
5813       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5814     fi
5815   else
5816     echo "$progname: failed program was:" >&5
5817     cat conftest.$ac_ext >&5
5818   fi
5819   rm -rf conftest* conftst*
5820
5821   # Do not use the global_symbol_pipe unless it works.
5822   if test "$pipe_works" = yes; then
5823     break
5824   else
5825     lt_cv_sys_global_symbol_pipe=
5826   fi
5827 done
5828
5829 fi
5830
5831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5832   lt_cv_sys_global_symbol_to_cdecl=
5833 fi
5834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5836 $as_echo "failed" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5839 $as_echo "ok" >&6; }
5840 fi
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863 # Check whether --enable-libtool-lock was given.
5864 if test "${enable_libtool_lock+set}" = set; then :
5865   enableval=$enable_libtool_lock;
5866 fi
5867
5868 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5869
5870 # Some flags need to be propagated to the compiler or linker for good
5871 # libtool support.
5872 case $host in
5873 ia64-*-hpux*)
5874   # Find out which ABI we are using.
5875   echo 'int i;' > conftest.$ac_ext
5876   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5877   (eval $ac_compile) 2>&5
5878   ac_status=$?
5879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5880   test $ac_status = 0; }; then
5881     case `/usr/bin/file conftest.$ac_objext` in
5882       *ELF-32*)
5883         HPUX_IA64_MODE="32"
5884         ;;
5885       *ELF-64*)
5886         HPUX_IA64_MODE="64"
5887         ;;
5888     esac
5889   fi
5890   rm -rf conftest*
5891   ;;
5892 *-*-irix6*)
5893   # Find out which ABI we are using.
5894   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5895   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5896   (eval $ac_compile) 2>&5
5897   ac_status=$?
5898   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5899   test $ac_status = 0; }; then
5900     if test "$lt_cv_prog_gnu_ld" = yes; then
5901       case `/usr/bin/file conftest.$ac_objext` in
5902         *32-bit*)
5903           LD="${LD-ld} -melf32bsmip"
5904           ;;
5905         *N32*)
5906           LD="${LD-ld} -melf32bmipn32"
5907           ;;
5908         *64-bit*)
5909           LD="${LD-ld} -melf64bmip"
5910         ;;
5911       esac
5912     else
5913       case `/usr/bin/file conftest.$ac_objext` in
5914         *32-bit*)
5915           LD="${LD-ld} -32"
5916           ;;
5917         *N32*)
5918           LD="${LD-ld} -n32"
5919           ;;
5920         *64-bit*)
5921           LD="${LD-ld} -64"
5922           ;;
5923       esac
5924     fi
5925   fi
5926   rm -rf conftest*
5927   ;;
5928
5929 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5930 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5931   # Find out which ABI we are using.
5932   echo 'int i;' > conftest.$ac_ext
5933   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934   (eval $ac_compile) 2>&5
5935   ac_status=$?
5936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937   test $ac_status = 0; }; then
5938     case `/usr/bin/file conftest.o` in
5939       *32-bit*)
5940         case $host in
5941           x86_64-*kfreebsd*-gnu)
5942             LD="${LD-ld} -m elf_i386_fbsd"
5943             ;;
5944           x86_64-*linux*)
5945             LD="${LD-ld} -m elf_i386"
5946             ;;
5947           ppc64-*linux*|powerpc64-*linux*)
5948             LD="${LD-ld} -m elf32ppclinux"
5949             ;;
5950           s390x-*linux*)
5951             LD="${LD-ld} -m elf_s390"
5952             ;;
5953           sparc64-*linux*)
5954             LD="${LD-ld} -m elf32_sparc"
5955             ;;
5956         esac
5957         ;;
5958       *64-bit*)
5959         case $host in
5960           x86_64-*kfreebsd*-gnu)
5961             LD="${LD-ld} -m elf_x86_64_fbsd"
5962             ;;
5963           x86_64-*linux*)
5964             LD="${LD-ld} -m elf_x86_64"
5965             ;;
5966           ppc*-*linux*|powerpc*-*linux*)
5967             LD="${LD-ld} -m elf64ppc"
5968             ;;
5969           s390*-*linux*|s390*-*tpf*)
5970             LD="${LD-ld} -m elf64_s390"
5971             ;;
5972           sparc*-*linux*)
5973             LD="${LD-ld} -m elf64_sparc"
5974             ;;
5975         esac
5976         ;;
5977     esac
5978   fi
5979   rm -rf conftest*
5980   ;;
5981
5982 *-*-sco3.2v5*)
5983   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5984   SAVE_CFLAGS="$CFLAGS"
5985   CFLAGS="$CFLAGS -belf"
5986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5987 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5988 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5996
5997      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h.  */
5999
6000 int
6001 main ()
6002 {
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"; then :
6009   lt_cv_cc_needs_belf=yes
6010 else
6011   lt_cv_cc_needs_belf=no
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext \
6014     conftest$ac_exeext conftest.$ac_ext
6015      ac_ext=c
6016 ac_cpp='$CPP $CPPFLAGS'
6017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6023 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6024   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6025     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6026     CFLAGS="$SAVE_CFLAGS"
6027   fi
6028   ;;
6029 sparc*-*solaris*)
6030   # Find out which ABI we are using.
6031   echo 'int i;' > conftest.$ac_ext
6032   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6033   (eval $ac_compile) 2>&5
6034   ac_status=$?
6035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6036   test $ac_status = 0; }; then
6037     case `/usr/bin/file conftest.o` in
6038     *64-bit*)
6039       case $lt_cv_prog_gnu_ld in
6040       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6041       *)
6042         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6043           LD="${LD-ld} -64"
6044         fi
6045         ;;
6046       esac
6047       ;;
6048     esac
6049   fi
6050   rm -rf conftest*
6051   ;;
6052 esac
6053
6054 need_locks="$enable_libtool_lock"
6055
6056
6057   case $host_os in
6058     rhapsody* | darwin*)
6059     if test -n "$ac_tool_prefix"; then
6060   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6061 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063 $as_echo_n "checking for $ac_word... " >&6; }
6064 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6065   $as_echo_n "(cached) " >&6
6066 else
6067   if test -n "$DSYMUTIL"; then
6068   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6069 else
6070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6071 for as_dir in $PATH
6072 do
6073   IFS=$as_save_IFS
6074   test -z "$as_dir" && as_dir=.
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6077     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079     break 2
6080   fi
6081 done
6082   done
6083 IFS=$as_save_IFS
6084
6085 fi
6086 fi
6087 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6088 if test -n "$DSYMUTIL"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6090 $as_echo "$DSYMUTIL" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095
6096
6097 fi
6098 if test -z "$ac_cv_prog_DSYMUTIL"; then
6099   ac_ct_DSYMUTIL=$DSYMUTIL
6100   # Extract the first word of "dsymutil", so it can be a program name with args.
6101 set dummy dsymutil; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   if test -n "$ac_ct_DSYMUTIL"; then
6108   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6109 else
6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6111 for as_dir in $PATH
6112 do
6113   IFS=$as_save_IFS
6114   test -z "$as_dir" && as_dir=.
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122   done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6128 if test -n "$ac_ct_DSYMUTIL"; then
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6130 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6131 else
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 $as_echo "no" >&6; }
6134 fi
6135
6136   if test "x$ac_ct_DSYMUTIL" = x; then
6137     DSYMUTIL=":"
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145     DSYMUTIL=$ac_ct_DSYMUTIL
6146   fi
6147 else
6148   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6149 fi
6150
6151     if test -n "$ac_tool_prefix"; then
6152   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6153 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6155 $as_echo_n "checking for $ac_word... " >&6; }
6156 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6157   $as_echo_n "(cached) " >&6
6158 else
6159   if test -n "$NMEDIT"; then
6160   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6161 else
6162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6163 for as_dir in $PATH
6164 do
6165   IFS=$as_save_IFS
6166   test -z "$as_dir" && as_dir=.
6167     for ac_exec_ext in '' $ac_executable_extensions; do
6168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6169     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6171     break 2
6172   fi
6173 done
6174   done
6175 IFS=$as_save_IFS
6176
6177 fi
6178 fi
6179 NMEDIT=$ac_cv_prog_NMEDIT
6180 if test -n "$NMEDIT"; then
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6182 $as_echo "$NMEDIT" >&6; }
6183 else
6184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 fi
6187
6188
6189 fi
6190 if test -z "$ac_cv_prog_NMEDIT"; then
6191   ac_ct_NMEDIT=$NMEDIT
6192   # Extract the first word of "nmedit", so it can be a program name with args.
6193 set dummy nmedit; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   if test -n "$ac_ct_NMEDIT"; then
6200   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205   IFS=$as_save_IFS
6206   test -z "$as_dir" && as_dir=.
6207     for ac_exec_ext in '' $ac_executable_extensions; do
6208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211     break 2
6212   fi
6213 done
6214   done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6220 if test -n "$ac_ct_NMEDIT"; then
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6222 $as_echo "$ac_ct_NMEDIT" >&6; }
6223 else
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228   if test "x$ac_ct_NMEDIT" = x; then
6229     NMEDIT=":"
6230   else
6231     case $cross_compiling:$ac_tool_warned in
6232 yes:)
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6235 ac_tool_warned=yes ;;
6236 esac
6237     NMEDIT=$ac_ct_NMEDIT
6238   fi
6239 else
6240   NMEDIT="$ac_cv_prog_NMEDIT"
6241 fi
6242
6243     if test -n "$ac_tool_prefix"; then
6244   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6245 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if test "${ac_cv_prog_LIPO+set}" = set; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   if test -n "$LIPO"; then
6252   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259     for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266   done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 LIPO=$ac_cv_prog_LIPO
6272 if test -n "$LIPO"; then
6273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6274 $as_echo "$LIPO" >&6; }
6275 else
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277 $as_echo "no" >&6; }
6278 fi
6279
6280
6281 fi
6282 if test -z "$ac_cv_prog_LIPO"; then
6283   ac_ct_LIPO=$LIPO
6284   # Extract the first word of "lipo", so it can be a program name with args.
6285 set dummy lipo; ac_word=$2
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6287 $as_echo_n "checking for $ac_word... " >&6; }
6288 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6289   $as_echo_n "(cached) " >&6
6290 else
6291   if test -n "$ac_ct_LIPO"; then
6292   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6293 else
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH
6296 do
6297   IFS=$as_save_IFS
6298   test -z "$as_dir" && as_dir=.
6299     for ac_exec_ext in '' $ac_executable_extensions; do
6300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301     ac_cv_prog_ac_ct_LIPO="lipo"
6302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6303     break 2
6304   fi
6305 done
6306   done
6307 IFS=$as_save_IFS
6308
6309 fi
6310 fi
6311 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6312 if test -n "$ac_ct_LIPO"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6314 $as_echo "$ac_ct_LIPO" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319
6320   if test "x$ac_ct_LIPO" = x; then
6321     LIPO=":"
6322   else
6323     case $cross_compiling:$ac_tool_warned in
6324 yes:)
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6327 ac_tool_warned=yes ;;
6328 esac
6329     LIPO=$ac_ct_LIPO
6330   fi
6331 else
6332   LIPO="$ac_cv_prog_LIPO"
6333 fi
6334
6335     if test -n "$ac_tool_prefix"; then
6336   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}otool; ac_word=$2
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6341   $as_echo_n "(cached) " >&6
6342 else
6343   if test -n "$OTOOL"; then
6344   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349   IFS=$as_save_IFS
6350   test -z "$as_dir" && as_dir=.
6351     for ac_exec_ext in '' $ac_executable_extensions; do
6352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6353     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6355     break 2
6356   fi
6357 done
6358   done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 OTOOL=$ac_cv_prog_OTOOL
6364 if test -n "$OTOOL"; then
6365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6366 $as_echo "$OTOOL" >&6; }
6367 else
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_OTOOL"; then
6375   ac_ct_OTOOL=$OTOOL
6376   # Extract the first word of "otool", so it can be a program name with args.
6377 set dummy otool; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$ac_ct_OTOOL"; then
6384   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393     ac_cv_prog_ac_ct_OTOOL="otool"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6404 if test -n "$ac_ct_OTOOL"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6406 $as_echo "$ac_ct_OTOOL" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412   if test "x$ac_ct_OTOOL" = x; then
6413     OTOOL=":"
6414   else
6415     case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6419 ac_tool_warned=yes ;;
6420 esac
6421     OTOOL=$ac_ct_OTOOL
6422   fi
6423 else
6424   OTOOL="$ac_cv_prog_OTOOL"
6425 fi
6426
6427     if test -n "$ac_tool_prefix"; then
6428   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6429 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$OTOOL64"; then
6436   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443     for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450   done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 OTOOL64=$ac_cv_prog_OTOOL64
6456 if test -n "$OTOOL64"; then
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6458 $as_echo "$OTOOL64" >&6; }
6459 else
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464
6465 fi
6466 if test -z "$ac_cv_prog_OTOOL64"; then
6467   ac_ct_OTOOL64=$OTOOL64
6468   # Extract the first word of "otool64", so it can be a program name with args.
6469 set dummy otool64; ac_word=$2
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6471 $as_echo_n "checking for $ac_word... " >&6; }
6472 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   if test -n "$ac_ct_OTOOL64"; then
6476   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6477 else
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6479 for as_dir in $PATH
6480 do
6481   IFS=$as_save_IFS
6482   test -z "$as_dir" && as_dir=.
6483     for ac_exec_ext in '' $ac_executable_extensions; do
6484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485     ac_cv_prog_ac_ct_OTOOL64="otool64"
6486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487     break 2
6488   fi
6489 done
6490   done
6491 IFS=$as_save_IFS
6492
6493 fi
6494 fi
6495 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6496 if test -n "$ac_ct_OTOOL64"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6498 $as_echo "$ac_ct_OTOOL64" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6501 $as_echo "no" >&6; }
6502 fi
6503
6504   if test "x$ac_ct_OTOOL64" = x; then
6505     OTOOL64=":"
6506   else
6507     case $cross_compiling:$ac_tool_warned in
6508 yes:)
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6511 ac_tool_warned=yes ;;
6512 esac
6513     OTOOL64=$ac_ct_OTOOL64
6514   fi
6515 else
6516   OTOOL64="$ac_cv_prog_OTOOL64"
6517 fi
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6546 $as_echo_n "checking for -single_module linker flag... " >&6; }
6547 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6548   $as_echo_n "(cached) " >&6
6549 else
6550   lt_cv_apple_cc_single_mod=no
6551       if test -z "${LT_MULTI_MODULE}"; then
6552         # By default we will add the -single_module flag. You can override
6553         # by either setting the environment variable LT_MULTI_MODULE
6554         # non-empty at configure time, or by adding -multi_module to the
6555         # link flags.
6556         rm -rf libconftest.dylib*
6557         echo "int foo(void){return 1;}" > conftest.c
6558         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6559 -dynamiclib -Wl,-single_module conftest.c" >&5
6560         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6561           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6562         _lt_result=$?
6563         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6564           lt_cv_apple_cc_single_mod=yes
6565         else
6566           cat conftest.err >&5
6567         fi
6568         rm -rf libconftest.dylib*
6569         rm -f conftest.*
6570       fi
6571 fi
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6573 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6574     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6575 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6576 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   lt_cv_ld_exported_symbols_list=no
6580       save_LDFLAGS=$LDFLAGS
6581       echo "_main" > conftest.sym
6582       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6583       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h.  */
6585
6586 int
6587 main ()
6588 {
6589
6590   ;
6591   return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"; then :
6595   lt_cv_ld_exported_symbols_list=yes
6596 else
6597   lt_cv_ld_exported_symbols_list=no
6598 fi
6599 rm -f core conftest.err conftest.$ac_objext \
6600     conftest$ac_exeext conftest.$ac_ext
6601         LDFLAGS="$save_LDFLAGS"
6602
6603 fi
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6605 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6607 $as_echo_n "checking for -force_load linker flag... " >&6; }
6608 if test "${lt_cv_ld_force_load+set}" = set; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   lt_cv_ld_force_load=no
6612       cat > conftest.c << _LT_EOF
6613 int forced_loaded() { return 2;}
6614 _LT_EOF
6615       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6616       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6617       echo "$AR cru libconftest.a conftest.o" >&5
6618       $AR cru libconftest.a conftest.o 2>&5
6619       cat > conftest.c << _LT_EOF
6620 int main() { return 0;}
6621 _LT_EOF
6622       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6623       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6624       _lt_result=$?
6625       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6626         lt_cv_ld_force_load=yes
6627       else
6628         cat conftest.err >&5
6629       fi
6630         rm -f conftest.err libconftest.a conftest conftest.c
6631         rm -rf conftest.dSYM
6632
6633 fi
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6635 $as_echo "$lt_cv_ld_force_load" >&6; }
6636     case $host_os in
6637     rhapsody* | darwin1.[012])
6638       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6639     darwin1.*)
6640       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6641     darwin*) # darwin 5.x on
6642       # if running on 10.5 or later, the deployment target defaults
6643       # to the OS version, if on x86, and 10.4, the deployment
6644       # target defaults to 10.4. Don't you love it?
6645       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6646         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6647           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6648         10.[012]*)
6649           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6650         10.*)
6651           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6652       esac
6653     ;;
6654   esac
6655     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6656       _lt_dar_single_mod='$single_module'
6657     fi
6658     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6659       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6660     else
6661       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6662     fi
6663     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6664       _lt_dsymutil='~$DSYMUTIL $lib || :'
6665     else
6666       _lt_dsymutil=
6667     fi
6668     ;;
6669   esac
6670
6671 ac_ext=c
6672 ac_cpp='$CPP $CPPFLAGS'
6673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6677 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6678 # On Suns, sometimes $CPP names a directory.
6679 if test -n "$CPP" && test -d "$CPP"; then
6680   CPP=
6681 fi
6682 if test -z "$CPP"; then
6683   if test "${ac_cv_prog_CPP+set}" = set; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686       # Double quotes because CPP needs to be expanded
6687     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6688     do
6689       ac_preproc_ok=false
6690 for ac_c_preproc_warn_flag in '' yes
6691 do
6692   # Use a header file that comes with gcc, so configuring glibc
6693   # with a fresh cross-compiler works.
6694   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6695   # <limits.h> exists even on freestanding compilers.
6696   # On the NeXT, cc -E runs the code through the compiler's parser,
6697   # not just through cpp. "Syntax error" is here to catch this case.
6698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h.  */
6700 #ifdef __STDC__
6701 # include <limits.h>
6702 #else
6703 # include <assert.h>
6704 #endif
6705                      Syntax error
6706 _ACEOF
6707 if ac_fn_c_try_cpp "$LINENO"; then :
6708
6709 else
6710   # Broken: fails on valid input.
6711 continue
6712 fi
6713 rm -f conftest.err conftest.$ac_ext
6714
6715   # OK, works on sane cases.  Now check whether nonexistent headers
6716   # can be detected and how.
6717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h.  */
6719 #include <ac_nonexistent.h>
6720 _ACEOF
6721 if ac_fn_c_try_cpp "$LINENO"; then :
6722   # Broken: success on invalid input.
6723 continue
6724 else
6725   # Passes both tests.
6726 ac_preproc_ok=:
6727 break
6728 fi
6729 rm -f conftest.err conftest.$ac_ext
6730
6731 done
6732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6733 rm -f conftest.err conftest.$ac_ext
6734 if $ac_preproc_ok; then :
6735   break
6736 fi
6737
6738     done
6739     ac_cv_prog_CPP=$CPP
6740
6741 fi
6742   CPP=$ac_cv_prog_CPP
6743 else
6744   ac_cv_prog_CPP=$CPP
6745 fi
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6747 $as_echo "$CPP" >&6; }
6748 ac_preproc_ok=false
6749 for ac_c_preproc_warn_flag in '' yes
6750 do
6751   # Use a header file that comes with gcc, so configuring glibc
6752   # with a fresh cross-compiler works.
6753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6754   # <limits.h> exists even on freestanding compilers.
6755   # On the NeXT, cc -E runs the code through the compiler's parser,
6756   # not just through cpp. "Syntax error" is here to catch this case.
6757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h.  */
6759 #ifdef __STDC__
6760 # include <limits.h>
6761 #else
6762 # include <assert.h>
6763 #endif
6764                      Syntax error
6765 _ACEOF
6766 if ac_fn_c_try_cpp "$LINENO"; then :
6767
6768 else
6769   # Broken: fails on valid input.
6770 continue
6771 fi
6772 rm -f conftest.err conftest.$ac_ext
6773
6774   # OK, works on sane cases.  Now check whether nonexistent headers
6775   # can be detected and how.
6776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h.  */
6778 #include <ac_nonexistent.h>
6779 _ACEOF
6780 if ac_fn_c_try_cpp "$LINENO"; then :
6781   # Broken: success on invalid input.
6782 continue
6783 else
6784   # Passes both tests.
6785 ac_preproc_ok=:
6786 break
6787 fi
6788 rm -f conftest.err conftest.$ac_ext
6789
6790 done
6791 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6792 rm -f conftest.err conftest.$ac_ext
6793 if $ac_preproc_ok; then :
6794
6795 else
6796   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6797 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6798 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6799 See \`config.log' for more details." "$LINENO" 5; }
6800 fi
6801
6802 ac_ext=c
6803 ac_cpp='$CPP $CPPFLAGS'
6804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6807
6808
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6810 $as_echo_n "checking for ANSI C header files... " >&6; }
6811 if test "${ac_cv_header_stdc+set}" = set; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h.  */
6816 #include <stdlib.h>
6817 #include <stdarg.h>
6818 #include <string.h>
6819 #include <float.h>
6820
6821 int
6822 main ()
6823 {
6824
6825   ;
6826   return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_compile "$LINENO"; then :
6830   ac_cv_header_stdc=yes
6831 else
6832   ac_cv_header_stdc=no
6833 fi
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835
6836 if test $ac_cv_header_stdc = yes; then
6837   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h.  */
6840 #include <string.h>
6841
6842 _ACEOF
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844   $EGREP "memchr" >/dev/null 2>&1; then :
6845
6846 else
6847   ac_cv_header_stdc=no
6848 fi
6849 rm -f conftest*
6850
6851 fi
6852
6853 if test $ac_cv_header_stdc = yes; then
6854   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h.  */
6857 #include <stdlib.h>
6858
6859 _ACEOF
6860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6861   $EGREP "free" >/dev/null 2>&1; then :
6862
6863 else
6864   ac_cv_header_stdc=no
6865 fi
6866 rm -f conftest*
6867
6868 fi
6869
6870 if test $ac_cv_header_stdc = yes; then
6871   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6872   if test "$cross_compiling" = yes; then :
6873   :
6874 else
6875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h.  */
6877 #include <ctype.h>
6878 #include <stdlib.h>
6879 #if ((' ' & 0x0FF) == 0x020)
6880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6882 #else
6883 # define ISLOWER(c) \
6884                    (('a' <= (c) && (c) <= 'i') \
6885                      || ('j' <= (c) && (c) <= 'r') \
6886                      || ('s' <= (c) && (c) <= 'z'))
6887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6888 #endif
6889
6890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6891 int
6892 main ()
6893 {
6894   int i;
6895   for (i = 0; i < 256; i++)
6896     if (XOR (islower (i), ISLOWER (i))
6897         || toupper (i) != TOUPPER (i))
6898       return 2;
6899   return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_run "$LINENO"; then :
6903
6904 else
6905   ac_cv_header_stdc=no
6906 fi
6907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6908   conftest.$ac_objext conftest.beam conftest.$ac_ext
6909 fi
6910
6911 fi
6912 fi
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6914 $as_echo "$ac_cv_header_stdc" >&6; }
6915 if test $ac_cv_header_stdc = yes; then
6916
6917 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6918
6919 fi
6920
6921 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6922 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6923                   inttypes.h stdint.h unistd.h
6924 do :
6925   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6926 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6927 "
6928 eval as_val=\$$as_ac_Header
6929    if test "x$as_val" = x""yes; then :
6930   cat >>confdefs.h <<_ACEOF
6931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6932 _ACEOF
6933
6934 fi
6935
6936 done
6937
6938
6939 for ac_header in dlfcn.h
6940 do :
6941   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6942 "
6943 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6944   cat >>confdefs.h <<_ACEOF
6945 #define HAVE_DLFCN_H 1
6946 _ACEOF
6947
6948 fi
6949
6950 done
6951
6952
6953
6954
6955
6956 # Set options
6957
6958
6959
6960         enable_dlopen=no
6961
6962
6963   enable_win32_dll=no
6964
6965
6966             # Check whether --enable-shared was given.
6967 if test "${enable_shared+set}" = set; then :
6968   enableval=$enable_shared; p=${PACKAGE-default}
6969     case $enableval in
6970     yes) enable_shared=yes ;;
6971     no) enable_shared=no ;;
6972     *)
6973       enable_shared=no
6974       # Look at the argument we got.  We use all the common list separators.
6975       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6976       for pkg in $enableval; do
6977         IFS="$lt_save_ifs"
6978         if test "X$pkg" = "X$p"; then
6979           enable_shared=yes
6980         fi
6981       done
6982       IFS="$lt_save_ifs"
6983       ;;
6984     esac
6985 else
6986   enable_shared=yes
6987 fi
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997   # Check whether --enable-static was given.
6998 if test "${enable_static+set}" = set; then :
6999   enableval=$enable_static; p=${PACKAGE-default}
7000     case $enableval in
7001     yes) enable_static=yes ;;
7002     no) enable_static=no ;;
7003     *)
7004      enable_static=no
7005       # Look at the argument we got.  We use all the common list separators.
7006       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7007       for pkg in $enableval; do
7008         IFS="$lt_save_ifs"
7009         if test "X$pkg" = "X$p"; then
7010           enable_static=yes
7011         fi
7012       done
7013       IFS="$lt_save_ifs"
7014       ;;
7015     esac
7016 else
7017   enable_static=yes
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 # Check whether --with-pic was given.
7030 if test "${with_pic+set}" = set; then :
7031   withval=$with_pic; pic_mode="$withval"
7032 else
7033   pic_mode=default
7034 fi
7035
7036
7037 test -z "$pic_mode" && pic_mode=default
7038
7039
7040
7041
7042
7043
7044
7045   # Check whether --enable-fast-install was given.
7046 if test "${enable_fast_install+set}" = set; then :
7047   enableval=$enable_fast_install; p=${PACKAGE-default}
7048     case $enableval in
7049     yes) enable_fast_install=yes ;;
7050     no) enable_fast_install=no ;;
7051     *)
7052       enable_fast_install=no
7053       # Look at the argument we got.  We use all the common list separators.
7054       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7055       for pkg in $enableval; do
7056         IFS="$lt_save_ifs"
7057         if test "X$pkg" = "X$p"; then
7058           enable_fast_install=yes
7059         fi
7060       done
7061       IFS="$lt_save_ifs"
7062       ;;
7063     esac
7064 else
7065   enable_fast_install=yes
7066 fi
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 # This can be used to rebuild libtool when needed
7079 LIBTOOL_DEPS="$ltmain"
7080
7081 # Always use our own libtool.
7082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 test -z "$LN_S" && LN_S="ln -s"
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124 if test -n "${ZSH_VERSION+set}" ; then
7125    setopt NO_GLOB_SUBST
7126 fi
7127
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7129 $as_echo_n "checking for objdir... " >&6; }
7130 if test "${lt_cv_objdir+set}" = set; then :
7131   $as_echo_n "(cached) " >&6
7132 else
7133   rm -f .libs 2>/dev/null
7134 mkdir .libs 2>/dev/null
7135 if test -d .libs; then
7136   lt_cv_objdir=.libs
7137 else
7138   # MS-DOS does not allow filenames that begin with a dot.
7139   lt_cv_objdir=_libs
7140 fi
7141 rmdir .libs 2>/dev/null
7142 fi
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7144 $as_echo "$lt_cv_objdir" >&6; }
7145 objdir=$lt_cv_objdir
7146
7147
7148
7149
7150
7151 cat >>confdefs.h <<_ACEOF
7152 #define LT_OBJDIR "$lt_cv_objdir/"
7153 _ACEOF
7154
7155
7156
7157
7158 case $host_os in
7159 aix3*)
7160   # AIX sometimes has problems with the GCC collect2 program.  For some
7161   # reason, if we set the COLLECT_NAMES environment variable, the problems
7162   # vanish in a puff of smoke.
7163   if test "X${COLLECT_NAMES+set}" != Xset; then
7164     COLLECT_NAMES=
7165     export COLLECT_NAMES
7166   fi
7167   ;;
7168 esac
7169
7170 # Global variables:
7171 ofile=libtool
7172 can_build_shared=yes
7173
7174 # All known linkers require a `.a' archive for static linking (except MSVC,
7175 # which needs '.lib').
7176 libext=a
7177
7178 with_gnu_ld="$lt_cv_prog_gnu_ld"
7179
7180 old_CC="$CC"
7181 old_CFLAGS="$CFLAGS"
7182
7183 # Set sane defaults for various variables
7184 test -z "$CC" && CC=cc
7185 test -z "$LTCC" && LTCC=$CC
7186 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7187 test -z "$LD" && LD=ld
7188 test -z "$ac_objext" && ac_objext=o
7189
7190 for cc_temp in $compiler""; do
7191   case $cc_temp in
7192     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7193     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7194     \-*) ;;
7195     *) break;;
7196   esac
7197 done
7198 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7199
7200
7201 # Only perform the check for file, if the check method requires it
7202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7203 case $deplibs_check_method in
7204 file_magic*)
7205   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7207 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7208 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   case $MAGIC_CMD in
7212 [\\/*] |  ?:[\\/]*)
7213   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7214   ;;
7215 *)
7216   lt_save_MAGIC_CMD="$MAGIC_CMD"
7217   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7218   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7219   for ac_dir in $ac_dummy; do
7220     IFS="$lt_save_ifs"
7221     test -z "$ac_dir" && ac_dir=.
7222     if test -f $ac_dir/${ac_tool_prefix}file; then
7223       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7224       if test -n "$file_magic_test_file"; then
7225         case $deplibs_check_method in
7226         "file_magic "*)
7227           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7228           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7229           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7230             $EGREP "$file_magic_regex" > /dev/null; then
7231             :
7232           else
7233             cat <<_LT_EOF 1>&2
7234
7235 *** Warning: the command libtool uses to detect shared libraries,
7236 *** $file_magic_cmd, produces output that libtool cannot recognize.
7237 *** The result is that libtool may fail to recognize shared libraries
7238 *** as such.  This will affect the creation of libtool libraries that
7239 *** depend on shared libraries, but programs linked with such libtool
7240 *** libraries will work regardless of this problem.  Nevertheless, you
7241 *** may want to report the problem to your system manager and/or to
7242 *** bug-libtool@gnu.org
7243
7244 _LT_EOF
7245           fi ;;
7246         esac
7247       fi
7248       break
7249     fi
7250   done
7251   IFS="$lt_save_ifs"
7252   MAGIC_CMD="$lt_save_MAGIC_CMD"
7253   ;;
7254 esac
7255 fi
7256
7257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7258 if test -n "$MAGIC_CMD"; then
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7260 $as_echo "$MAGIC_CMD" >&6; }
7261 else
7262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7263 $as_echo "no" >&6; }
7264 fi
7265
7266
7267
7268
7269
7270 if test -z "$lt_cv_path_MAGIC_CMD"; then
7271   if test -n "$ac_tool_prefix"; then
7272     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7273 $as_echo_n "checking for file... " >&6; }
7274 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7275   $as_echo_n "(cached) " >&6
7276 else
7277   case $MAGIC_CMD in
7278 [\\/*] |  ?:[\\/]*)
7279   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7280   ;;
7281 *)
7282   lt_save_MAGIC_CMD="$MAGIC_CMD"
7283   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7284   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7285   for ac_dir in $ac_dummy; do
7286     IFS="$lt_save_ifs"
7287     test -z "$ac_dir" && ac_dir=.
7288     if test -f $ac_dir/file; then
7289       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7290       if test -n "$file_magic_test_file"; then
7291         case $deplibs_check_method in
7292         "file_magic "*)
7293           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7294           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7295           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7296             $EGREP "$file_magic_regex" > /dev/null; then
7297             :
7298           else
7299             cat <<_LT_EOF 1>&2
7300
7301 *** Warning: the command libtool uses to detect shared libraries,
7302 *** $file_magic_cmd, produces output that libtool cannot recognize.
7303 *** The result is that libtool may fail to recognize shared libraries
7304 *** as such.  This will affect the creation of libtool libraries that
7305 *** depend on shared libraries, but programs linked with such libtool
7306 *** libraries will work regardless of this problem.  Nevertheless, you
7307 *** may want to report the problem to your system manager and/or to
7308 *** bug-libtool@gnu.org
7309
7310 _LT_EOF
7311           fi ;;
7312         esac
7313       fi
7314       break
7315     fi
7316   done
7317   IFS="$lt_save_ifs"
7318   MAGIC_CMD="$lt_save_MAGIC_CMD"
7319   ;;
7320 esac
7321 fi
7322
7323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7324 if test -n "$MAGIC_CMD"; then
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7326 $as_echo "$MAGIC_CMD" >&6; }
7327 else
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329 $as_echo "no" >&6; }
7330 fi
7331
7332
7333   else
7334     MAGIC_CMD=:
7335   fi
7336 fi
7337
7338   fi
7339   ;;
7340 esac
7341
7342 # Use C for the default configuration in the libtool script
7343
7344 lt_save_CC="$CC"
7345 ac_ext=c
7346 ac_cpp='$CPP $CPPFLAGS'
7347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7350
7351
7352 # Source file extension for C test sources.
7353 ac_ext=c
7354
7355 # Object file extension for compiled C test sources.
7356 objext=o
7357 objext=$objext
7358
7359 # Code to be used in simple compile tests
7360 lt_simple_compile_test_code="int some_variable = 0;"
7361
7362 # Code to be used in simple link tests
7363 lt_simple_link_test_code='int main(){return(0);}'
7364
7365
7366
7367
7368
7369
7370
7371 # If no C compiler was specified, use CC.
7372 LTCC=${LTCC-"$CC"}
7373
7374 # If no C compiler flags were specified, use CFLAGS.
7375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7376
7377 # Allow CC to be a program name with arguments.
7378 compiler=$CC
7379
7380 # Save the default compiler, since it gets overwritten when the other
7381 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7382 compiler_DEFAULT=$CC
7383
7384 # save warnings/boilerplate of simple test code
7385 ac_outfile=conftest.$ac_objext
7386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7388 _lt_compiler_boilerplate=`cat conftest.err`
7389 $RM conftest*
7390
7391 ac_outfile=conftest.$ac_objext
7392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7394 _lt_linker_boilerplate=`cat conftest.err`
7395 $RM -r conftest*
7396
7397
7398 ## CAVEAT EMPTOR:
7399 ## There is no encapsulation within the following macros, do not change
7400 ## the running order or otherwise move them around unless you know exactly
7401 ## what you are doing...
7402 if test -n "$compiler"; then
7403
7404 lt_prog_compiler_no_builtin_flag=
7405
7406 if test "$GCC" = yes; then
7407   case $cc_basename in
7408   nvcc*)
7409     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7410   *)
7411     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7412   esac
7413
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7415 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7416 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   lt_cv_prog_compiler_rtti_exceptions=no
7420    ac_outfile=conftest.$ac_objext
7421    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7422    lt_compiler_flag="-fno-rtti -fno-exceptions"
7423    # Insert the option either (1) after the last *FLAGS variable, or
7424    # (2) before a word containing "conftest.", or (3) at the end.
7425    # Note that $ac_compile itself does not contain backslashes and begins
7426    # with a dollar sign (not a hyphen), so the echo should work correctly.
7427    # The option is referenced via a variable to avoid confusing sed.
7428    lt_compile=`echo "$ac_compile" | $SED \
7429    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7430    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7431    -e 's:$: $lt_compiler_flag:'`
7432    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7433    (eval "$lt_compile" 2>conftest.err)
7434    ac_status=$?
7435    cat conftest.err >&5
7436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437    if (exit $ac_status) && test -s "$ac_outfile"; then
7438      # The compiler can only warn and ignore the option if not recognized
7439      # So say no if there are warnings other than the usual output.
7440      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7441      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7442      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7443        lt_cv_prog_compiler_rtti_exceptions=yes
7444      fi
7445    fi
7446    $RM conftest*
7447
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7450 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7451
7452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7453     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7454 else
7455     :
7456 fi
7457
7458 fi
7459
7460
7461
7462
7463
7464
7465   lt_prog_compiler_wl=
7466 lt_prog_compiler_pic=
7467 lt_prog_compiler_static=
7468
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7471
7472   if test "$GCC" = yes; then
7473     lt_prog_compiler_wl='-Wl,'
7474     lt_prog_compiler_static='-static'
7475
7476     case $host_os in
7477       aix*)
7478       # All AIX code is PIC.
7479       if test "$host_cpu" = ia64; then
7480         # AIX 5 now supports IA64 processor
7481         lt_prog_compiler_static='-Bstatic'
7482       fi
7483       ;;
7484
7485     amigaos*)
7486       case $host_cpu in
7487       powerpc)
7488             # see comment about AmigaOS4 .so support
7489             lt_prog_compiler_pic='-fPIC'
7490         ;;
7491       m68k)
7492             # FIXME: we need at least 68020 code to build shared libraries, but
7493             # adding the `-m68020' flag to GCC prevents building anything better,
7494             # like `-m68040'.
7495             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7496         ;;
7497       esac
7498       ;;
7499
7500     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7501       # PIC is the default for these OSes.
7502       ;;
7503
7504     mingw* | cygwin* | pw32* | os2* | cegcc*)
7505       # This hack is so that the source file can tell whether it is being
7506       # built for inclusion in a dll (and should export symbols for example).
7507       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7508       # (--disable-auto-import) libraries
7509       lt_prog_compiler_pic='-DDLL_EXPORT'
7510       ;;
7511
7512     darwin* | rhapsody*)
7513       # PIC is the default on this platform
7514       # Common symbols not allowed in MH_DYLIB files
7515       lt_prog_compiler_pic='-fno-common'
7516       ;;
7517
7518     haiku*)
7519       # PIC is the default for Haiku.
7520       # The "-static" flag exists, but is broken.
7521       lt_prog_compiler_static=
7522       ;;
7523
7524     hpux*)
7525       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7526       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7527       # sets the default TLS model and affects inlining.
7528       case $host_cpu in
7529       hppa*64*)
7530         # +Z the default
7531         ;;
7532       *)
7533         lt_prog_compiler_pic='-fPIC'
7534         ;;
7535       esac
7536       ;;
7537
7538     interix[3-9]*)
7539       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7540       # Instead, we relocate shared libraries at runtime.
7541       ;;
7542
7543     msdosdjgpp*)
7544       # Just because we use GCC doesn't mean we suddenly get shared libraries
7545       # on systems that don't support them.
7546       lt_prog_compiler_can_build_shared=no
7547       enable_shared=no
7548       ;;
7549
7550     *nto* | *qnx*)
7551       # QNX uses GNU C++, but need to define -shared option too, otherwise
7552       # it will coredump.
7553       lt_prog_compiler_pic='-fPIC -shared'
7554       ;;
7555
7556     sysv4*MP*)
7557       if test -d /usr/nec; then
7558         lt_prog_compiler_pic=-Kconform_pic
7559       fi
7560       ;;
7561
7562     *)
7563       lt_prog_compiler_pic='-fPIC'
7564       ;;
7565     esac
7566
7567     case $cc_basename in
7568     nvcc*) # Cuda Compiler Driver 2.2
7569       lt_prog_compiler_wl='-Xlinker '
7570       lt_prog_compiler_pic='-Xcompiler -fPIC'
7571       ;;
7572     esac
7573   else
7574     # PORTME Check for flag to pass linker flags through the system compiler.
7575     case $host_os in
7576     aix*)
7577       lt_prog_compiler_wl='-Wl,'
7578       if test "$host_cpu" = ia64; then
7579         # AIX 5 now supports IA64 processor
7580         lt_prog_compiler_static='-Bstatic'
7581       else
7582         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7583       fi
7584       ;;
7585
7586     mingw* | cygwin* | pw32* | os2* | cegcc*)
7587       # This hack is so that the source file can tell whether it is being
7588       # built for inclusion in a dll (and should export symbols for example).
7589       lt_prog_compiler_pic='-DDLL_EXPORT'
7590       ;;
7591
7592     hpux9* | hpux10* | hpux11*)
7593       lt_prog_compiler_wl='-Wl,'
7594       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7595       # not for PA HP-UX.
7596       case $host_cpu in
7597       hppa*64*|ia64*)
7598         # +Z the default
7599         ;;
7600       *)
7601         lt_prog_compiler_pic='+Z'
7602         ;;
7603       esac
7604       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7605       lt_prog_compiler_static='${wl}-a ${wl}archive'
7606       ;;
7607
7608     irix5* | irix6* | nonstopux*)
7609       lt_prog_compiler_wl='-Wl,'
7610       # PIC (with -KPIC) is the default.
7611       lt_prog_compiler_static='-non_shared'
7612       ;;
7613
7614     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7615       case $cc_basename in
7616       # old Intel for x86_64 which still supported -KPIC.
7617       ecc*)
7618         lt_prog_compiler_wl='-Wl,'
7619         lt_prog_compiler_pic='-KPIC'
7620         lt_prog_compiler_static='-static'
7621         ;;
7622       # icc used to be incompatible with GCC.
7623       # ICC 10 doesn't accept -KPIC any more.
7624       icc* | ifort*)
7625         lt_prog_compiler_wl='-Wl,'
7626         lt_prog_compiler_pic='-fPIC'
7627         lt_prog_compiler_static='-static'
7628         ;;
7629       # Lahey Fortran 8.1.
7630       lf95*)
7631         lt_prog_compiler_wl='-Wl,'
7632         lt_prog_compiler_pic='--shared'
7633         lt_prog_compiler_static='--static'
7634         ;;
7635       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7636         # Portland Group compilers (*not* the Pentium gcc compiler,
7637         # which looks to be a dead project)
7638         lt_prog_compiler_wl='-Wl,'
7639         lt_prog_compiler_pic='-fpic'
7640         lt_prog_compiler_static='-Bstatic'
7641         ;;
7642       ccc*)
7643         lt_prog_compiler_wl='-Wl,'
7644         # All Alpha code is PIC.
7645         lt_prog_compiler_static='-non_shared'
7646         ;;
7647       xl* | bgxl* | bgf* | mpixl*)
7648         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7649         lt_prog_compiler_wl='-Wl,'
7650         lt_prog_compiler_pic='-qpic'
7651         lt_prog_compiler_static='-qstaticlink'
7652         ;;
7653       *)
7654         case `$CC -V 2>&1 | sed 5q` in
7655         *Sun\ F* | *Sun*Fortran*)
7656           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7657           lt_prog_compiler_pic='-KPIC'
7658           lt_prog_compiler_static='-Bstatic'
7659           lt_prog_compiler_wl=''
7660           ;;
7661         *Sun\ C*)
7662           # Sun C 5.9
7663           lt_prog_compiler_pic='-KPIC'
7664           lt_prog_compiler_static='-Bstatic'
7665           lt_prog_compiler_wl='-Wl,'
7666           ;;
7667         esac
7668         ;;
7669       esac
7670       ;;
7671
7672     newsos6)
7673       lt_prog_compiler_pic='-KPIC'
7674       lt_prog_compiler_static='-Bstatic'
7675       ;;
7676
7677     *nto* | *qnx*)
7678       # QNX uses GNU C++, but need to define -shared option too, otherwise
7679       # it will coredump.
7680       lt_prog_compiler_pic='-fPIC -shared'
7681       ;;
7682
7683     osf3* | osf4* | osf5*)
7684       lt_prog_compiler_wl='-Wl,'
7685       # All OSF/1 code is PIC.
7686       lt_prog_compiler_static='-non_shared'
7687       ;;
7688
7689     rdos*)
7690       lt_prog_compiler_static='-non_shared'
7691       ;;
7692
7693     solaris*)
7694       lt_prog_compiler_pic='-KPIC'
7695       lt_prog_compiler_static='-Bstatic'
7696       case $cc_basename in
7697       f77* | f90* | f95*)
7698         lt_prog_compiler_wl='-Qoption ld ';;
7699       *)
7700         lt_prog_compiler_wl='-Wl,';;
7701       esac
7702       ;;
7703
7704     sunos4*)
7705       lt_prog_compiler_wl='-Qoption ld '
7706       lt_prog_compiler_pic='-PIC'
7707       lt_prog_compiler_static='-Bstatic'
7708       ;;
7709
7710     sysv4 | sysv4.2uw2* | sysv4.3*)
7711       lt_prog_compiler_wl='-Wl,'
7712       lt_prog_compiler_pic='-KPIC'
7713       lt_prog_compiler_static='-Bstatic'
7714       ;;
7715
7716     sysv4*MP*)
7717       if test -d /usr/nec ;then
7718         lt_prog_compiler_pic='-Kconform_pic'
7719         lt_prog_compiler_static='-Bstatic'
7720       fi
7721       ;;
7722
7723     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7724       lt_prog_compiler_wl='-Wl,'
7725       lt_prog_compiler_pic='-KPIC'
7726       lt_prog_compiler_static='-Bstatic'
7727       ;;
7728
7729     unicos*)
7730       lt_prog_compiler_wl='-Wl,'
7731       lt_prog_compiler_can_build_shared=no
7732       ;;
7733
7734     uts4*)
7735       lt_prog_compiler_pic='-pic'
7736       lt_prog_compiler_static='-Bstatic'
7737       ;;
7738
7739     *)
7740       lt_prog_compiler_can_build_shared=no
7741       ;;
7742     esac
7743   fi
7744
7745 case $host_os in
7746   # For platforms which do not support PIC, -DPIC is meaningless:
7747   *djgpp*)
7748     lt_prog_compiler_pic=
7749     ;;
7750   *)
7751     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7752     ;;
7753 esac
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7755 $as_echo "$lt_prog_compiler_pic" >&6; }
7756
7757
7758
7759
7760
7761
7762 #
7763 # Check to make sure the PIC flag actually works.
7764 #
7765 if test -n "$lt_prog_compiler_pic"; then
7766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7767 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7768 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7769   $as_echo_n "(cached) " >&6
7770 else
7771   lt_cv_prog_compiler_pic_works=no
7772    ac_outfile=conftest.$ac_objext
7773    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7775    # Insert the option either (1) after the last *FLAGS variable, or
7776    # (2) before a word containing "conftest.", or (3) at the end.
7777    # Note that $ac_compile itself does not contain backslashes and begins
7778    # with a dollar sign (not a hyphen), so the echo should work correctly.
7779    # The option is referenced via a variable to avoid confusing sed.
7780    lt_compile=`echo "$ac_compile" | $SED \
7781    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783    -e 's:$: $lt_compiler_flag:'`
7784    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7785    (eval "$lt_compile" 2>conftest.err)
7786    ac_status=$?
7787    cat conftest.err >&5
7788    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789    if (exit $ac_status) && test -s "$ac_outfile"; then
7790      # The compiler can only warn and ignore the option if not recognized
7791      # So say no if there are warnings other than the usual output.
7792      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7793      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795        lt_cv_prog_compiler_pic_works=yes
7796      fi
7797    fi
7798    $RM conftest*
7799
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7802 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7803
7804 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7805     case $lt_prog_compiler_pic in
7806      "" | " "*) ;;
7807      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7808      esac
7809 else
7810     lt_prog_compiler_pic=
7811      lt_prog_compiler_can_build_shared=no
7812 fi
7813
7814 fi
7815
7816
7817
7818
7819
7820
7821 #
7822 # Check to make sure the static flag actually works.
7823 #
7824 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7826 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7827 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   lt_cv_prog_compiler_static_works=no
7831    save_LDFLAGS="$LDFLAGS"
7832    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7833    echo "$lt_simple_link_test_code" > conftest.$ac_ext
7834    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7835      # The linker can only warn and ignore the option if not recognized
7836      # So say no if there are warnings
7837      if test -s conftest.err; then
7838        # Append any errors to the config.log.
7839        cat conftest.err 1>&5
7840        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7841        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842        if diff conftest.exp conftest.er2 >/dev/null; then
7843          lt_cv_prog_compiler_static_works=yes
7844        fi
7845      else
7846        lt_cv_prog_compiler_static_works=yes
7847      fi
7848    fi
7849    $RM -r conftest*
7850    LDFLAGS="$save_LDFLAGS"
7851
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7854 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7855
7856 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7857     :
7858 else
7859     lt_prog_compiler_static=
7860 fi
7861
7862
7863
7864
7865
7866
7867
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7869 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7870 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7871   $as_echo_n "(cached) " >&6
7872 else
7873   lt_cv_prog_compiler_c_o=no
7874    $RM -r conftest 2>/dev/null
7875    mkdir conftest
7876    cd conftest
7877    mkdir out
7878    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879
7880    lt_compiler_flag="-o out/conftest2.$ac_objext"
7881    # Insert the option either (1) after the last *FLAGS variable, or
7882    # (2) before a word containing "conftest.", or (3) at the end.
7883    # Note that $ac_compile itself does not contain backslashes and begins
7884    # with a dollar sign (not a hyphen), so the echo should work correctly.
7885    lt_compile=`echo "$ac_compile" | $SED \
7886    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888    -e 's:$: $lt_compiler_flag:'`
7889    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7890    (eval "$lt_compile" 2>out/conftest.err)
7891    ac_status=$?
7892    cat out/conftest.err >&5
7893    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7895    then
7896      # The compiler can only warn and ignore the option if not recognized
7897      # So say no if there are warnings
7898      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7899      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7900      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7901        lt_cv_prog_compiler_c_o=yes
7902      fi
7903    fi
7904    chmod u+w . 2>&5
7905    $RM conftest*
7906    # SGI C++ compiler will create directory out/ii_files/ for
7907    # template instantiation
7908    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7909    $RM out/* && rmdir out
7910    cd ..
7911    $RM -r conftest
7912    $RM conftest*
7913
7914 fi
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7916 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7917
7918
7919
7920
7921
7922
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7924 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7925 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   lt_cv_prog_compiler_c_o=no
7929    $RM -r conftest 2>/dev/null
7930    mkdir conftest
7931    cd conftest
7932    mkdir out
7933    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934
7935    lt_compiler_flag="-o out/conftest2.$ac_objext"
7936    # Insert the option either (1) after the last *FLAGS variable, or
7937    # (2) before a word containing "conftest.", or (3) at the end.
7938    # Note that $ac_compile itself does not contain backslashes and begins
7939    # with a dollar sign (not a hyphen), so the echo should work correctly.
7940    lt_compile=`echo "$ac_compile" | $SED \
7941    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943    -e 's:$: $lt_compiler_flag:'`
7944    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7945    (eval "$lt_compile" 2>out/conftest.err)
7946    ac_status=$?
7947    cat out/conftest.err >&5
7948    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949    if (exit $ac_status) && test -s out/conftest2.$ac_objext
7950    then
7951      # The compiler can only warn and ignore the option if not recognized
7952      # So say no if there are warnings
7953      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7954      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7955      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7956        lt_cv_prog_compiler_c_o=yes
7957      fi
7958    fi
7959    chmod u+w . 2>&5
7960    $RM conftest*
7961    # SGI C++ compiler will create directory out/ii_files/ for
7962    # template instantiation
7963    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7964    $RM out/* && rmdir out
7965    cd ..
7966    $RM -r conftest
7967    $RM conftest*
7968
7969 fi
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7971 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7972
7973
7974
7975
7976 hard_links="nottested"
7977 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7978   # do not overwrite the value of need_locks provided by the user
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7980 $as_echo_n "checking if we can lock with hard links... " >&6; }
7981   hard_links=yes
7982   $RM conftest*
7983   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7984   touch conftest.a
7985   ln conftest.a conftest.b 2>&5 || hard_links=no
7986   ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7988 $as_echo "$hard_links" >&6; }
7989   if test "$hard_links" = no; then
7990     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7991 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7992     need_locks=warn
7993   fi
7994 else
7995   need_locks=no
7996 fi
7997
7998
7999
8000
8001
8002
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8005
8006   runpath_var=
8007   allow_undefined_flag=
8008   always_export_symbols=no
8009   archive_cmds=
8010   archive_expsym_cmds=
8011   compiler_needs_object=no
8012   enable_shared_with_static_runtimes=no
8013   export_dynamic_flag_spec=
8014   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8015   hardcode_automatic=no
8016   hardcode_direct=no
8017   hardcode_direct_absolute=no
8018   hardcode_libdir_flag_spec=
8019   hardcode_libdir_flag_spec_ld=
8020   hardcode_libdir_separator=
8021   hardcode_minus_L=no
8022   hardcode_shlibpath_var=unsupported
8023   inherit_rpath=no
8024   link_all_deplibs=unknown
8025   module_cmds=
8026   module_expsym_cmds=
8027   old_archive_from_new_cmds=
8028   old_archive_from_expsyms_cmds=
8029   thread_safe_flag_spec=
8030   whole_archive_flag_spec=
8031   # include_expsyms should be a list of space-separated symbols to be *always*
8032   # included in the symbol list
8033   include_expsyms=
8034   # exclude_expsyms can be an extended regexp of symbols to exclude
8035   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8036   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8037   # as well as any symbol that contains `d'.
8038   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8039   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8040   # platforms (ab)use it in PIC code, but their linkers get confused if
8041   # the symbol is explicitly referenced.  Since portable code cannot
8042   # rely on this symbol name, it's probably fine to never include it in
8043   # preloaded symbol tables.
8044   # Exclude shared library initialization/finalization symbols.
8045   extract_expsyms_cmds=
8046
8047   case $host_os in
8048   cygwin* | mingw* | pw32* | cegcc*)
8049     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8050     # When not using gcc, we currently assume that we are using
8051     # Microsoft Visual C++.
8052     if test "$GCC" != yes; then
8053       with_gnu_ld=no
8054     fi
8055     ;;
8056   interix*)
8057     # we just hope/assume this is gcc and not c89 (= MSVC++)
8058     with_gnu_ld=yes
8059     ;;
8060   openbsd*)
8061     with_gnu_ld=no
8062     ;;
8063   esac
8064
8065   ld_shlibs=yes
8066
8067   # On some targets, GNU ld is compatible enough with the native linker
8068   # that we're better off using the native interface for both.
8069   lt_use_gnu_ld_interface=no
8070   if test "$with_gnu_ld" = yes; then
8071     case $host_os in
8072       aix*)
8073         # The AIX port of GNU ld has always aspired to compatibility
8074         # with the native linker.  However, as the warning in the GNU ld
8075         # block says, versions before 2.19.5* couldn't really create working
8076         # shared libraries, regardless of the interface used.
8077         case `$LD -v 2>&1` in
8078           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8079           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8080           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8081           *)
8082             lt_use_gnu_ld_interface=yes
8083             ;;
8084         esac
8085         ;;
8086       *)
8087         lt_use_gnu_ld_interface=yes
8088         ;;
8089     esac
8090   fi
8091
8092   if test "$lt_use_gnu_ld_interface" = yes; then
8093     # If archive_cmds runs LD, not CC, wlarc should be empty
8094     wlarc='${wl}'
8095
8096     # Set some defaults for GNU ld with shared library support. These
8097     # are reset later if shared libraries are not supported. Putting them
8098     # here allows them to be overridden if necessary.
8099     runpath_var=LD_RUN_PATH
8100     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8101     export_dynamic_flag_spec='${wl}--export-dynamic'
8102     # ancient GNU ld didn't support --whole-archive et. al.
8103     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8104       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8105     else
8106       whole_archive_flag_spec=
8107     fi
8108     supports_anon_versioning=no
8109     case `$LD -v 2>&1` in
8110       *GNU\ gold*) supports_anon_versioning=yes ;;
8111       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8112       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8113       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8114       *\ 2.11.*) ;; # other 2.11 versions
8115       *) supports_anon_versioning=yes ;;
8116     esac
8117
8118     # See if GNU ld supports shared libraries.
8119     case $host_os in
8120     aix[3-9]*)
8121       # On AIX/PPC, the GNU linker is very broken
8122       if test "$host_cpu" != ia64; then
8123         ld_shlibs=no
8124         cat <<_LT_EOF 1>&2
8125
8126 *** Warning: the GNU linker, at least up to release 2.19, is reported
8127 *** to be unable to reliably create shared libraries on AIX.
8128 *** Therefore, libtool is disabling shared libraries support.  If you
8129 *** really care for shared libraries, you may want to install binutils
8130 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8131 *** You will then need to restart the configuration process.
8132
8133 _LT_EOF
8134       fi
8135       ;;
8136
8137     amigaos*)
8138       case $host_cpu in
8139       powerpc)
8140             # see comment about AmigaOS4 .so support
8141             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8142             archive_expsym_cmds=''
8143         ;;
8144       m68k)
8145             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)'
8146             hardcode_libdir_flag_spec='-L$libdir'
8147             hardcode_minus_L=yes
8148         ;;
8149       esac
8150       ;;
8151
8152     beos*)
8153       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8154         allow_undefined_flag=unsupported
8155         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8156         # support --undefined.  This deserves some investigation.  FIXME
8157         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8158       else
8159         ld_shlibs=no
8160       fi
8161       ;;
8162
8163     cygwin* | mingw* | pw32* | cegcc*)
8164       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8165       # as there is no search path for DLLs.
8166       hardcode_libdir_flag_spec='-L$libdir'
8167       export_dynamic_flag_spec='${wl}--export-all-symbols'
8168       allow_undefined_flag=unsupported
8169       always_export_symbols=no
8170       enable_shared_with_static_runtimes=yes
8171       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8172
8173       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8174         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175         # If the export-symbols file already is a .def file (1st line
8176         # is EXPORTS), use it as is; otherwise, prepend...
8177         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8178           cp $export_symbols $output_objdir/$soname.def;
8179         else
8180           echo EXPORTS > $output_objdir/$soname.def;
8181           cat $export_symbols >> $output_objdir/$soname.def;
8182         fi~
8183         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8184       else
8185         ld_shlibs=no
8186       fi
8187       ;;
8188
8189     haiku*)
8190       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8191       link_all_deplibs=yes
8192       ;;
8193
8194     interix[3-9]*)
8195       hardcode_direct=no
8196       hardcode_shlibpath_var=no
8197       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198       export_dynamic_flag_spec='${wl}-E'
8199       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8200       # Instead, shared libraries are loaded at an image base (0x10000000 by
8201       # default) and relocated if they conflict, which is a slow very memory
8202       # consuming and fragmenting process.  To avoid this, we pick a random,
8203       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8204       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8205       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8206       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'
8207       ;;
8208
8209     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8210       tmp_diet=no
8211       if test "$host_os" = linux-dietlibc; then
8212         case $cc_basename in
8213           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8214         esac
8215       fi
8216       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8217          && test "$tmp_diet" = no
8218       then
8219         tmp_addflag=
8220         tmp_sharedflag='-shared'
8221         case $cc_basename,$host_cpu in
8222         pgcc*)                          # Portland Group C compiler
8223           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'
8224           tmp_addflag=' $pic_flag'
8225           ;;
8226         pgf77* | pgf90* | pgf95* | pgfortran*)
8227                                         # Portland Group f77 and f90 compilers
8228           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'
8229           tmp_addflag=' $pic_flag -Mnomain' ;;
8230         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8231           tmp_addflag=' -i_dynamic' ;;
8232         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8233           tmp_addflag=' -i_dynamic -nofor_main' ;;
8234         ifc* | ifort*)                  # Intel Fortran compiler
8235           tmp_addflag=' -nofor_main' ;;
8236         lf95*)                          # Lahey Fortran 8.1
8237           whole_archive_flag_spec=
8238           tmp_sharedflag='--shared' ;;
8239         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8240           tmp_sharedflag='-qmkshrobj'
8241           tmp_addflag= ;;
8242         nvcc*)  # Cuda Compiler Driver 2.2
8243           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'
8244           compiler_needs_object=yes
8245           ;;
8246         esac
8247         case `$CC -V 2>&1 | sed 5q` in
8248         *Sun\ C*)                       # Sun C 5.9
8249           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'
8250           compiler_needs_object=yes
8251           tmp_sharedflag='-G' ;;
8252         *Sun\ F*)                       # Sun Fortran 8.3
8253           tmp_sharedflag='-G' ;;
8254         esac
8255         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8256
8257         if test "x$supports_anon_versioning" = xyes; then
8258           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8259             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8260             echo "local: *; };" >> $output_objdir/$libname.ver~
8261             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8262         fi
8263
8264         case $cc_basename in
8265         xlf* | bgf* | bgxlf* | mpixlf*)
8266           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8267           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8268           hardcode_libdir_flag_spec=
8269           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8270           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8271           if test "x$supports_anon_versioning" = xyes; then
8272             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8273               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8274               echo "local: *; };" >> $output_objdir/$libname.ver~
8275               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8276           fi
8277           ;;
8278         esac
8279       else
8280         ld_shlibs=no
8281       fi
8282       ;;
8283
8284     netbsd*)
8285       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8286         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8287         wlarc=
8288       else
8289         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8290         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8291       fi
8292       ;;
8293
8294     solaris*)
8295       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8296         ld_shlibs=no
8297         cat <<_LT_EOF 1>&2
8298
8299 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8300 *** create shared libraries on Solaris systems.  Therefore, libtool
8301 *** is disabling shared libraries support.  We urge you to upgrade GNU
8302 *** binutils to release 2.9.1 or newer.  Another option is to modify
8303 *** your PATH or compiler configuration so that the native linker is
8304 *** used, and then restart.
8305
8306 _LT_EOF
8307       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8308         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8309         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8310       else
8311         ld_shlibs=no
8312       fi
8313       ;;
8314
8315     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8316       case `$LD -v 2>&1` in
8317         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8318         ld_shlibs=no
8319         cat <<_LT_EOF 1>&2
8320
8321 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8322 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8323 *** is disabling shared libraries support.  We urge you to upgrade GNU
8324 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8325 *** your PATH or compiler configuration so that the native linker is
8326 *** used, and then restart.
8327
8328 _LT_EOF
8329         ;;
8330         *)
8331           # For security reasons, it is highly recommended that you always
8332           # use absolute paths for naming shared libraries, and exclude the
8333           # DT_RUNPATH tag from executables and libraries.  But doing so
8334           # requires that you compile everything twice, which is a pain.
8335           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8336             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8337             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8338             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8339           else
8340             ld_shlibs=no
8341           fi
8342         ;;
8343       esac
8344       ;;
8345
8346     sunos4*)
8347       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8348       wlarc=
8349       hardcode_direct=yes
8350       hardcode_shlibpath_var=no
8351       ;;
8352
8353     *)
8354       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8355         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8356         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8357       else
8358         ld_shlibs=no
8359       fi
8360       ;;
8361     esac
8362
8363     if test "$ld_shlibs" = no; then
8364       runpath_var=
8365       hardcode_libdir_flag_spec=
8366       export_dynamic_flag_spec=
8367       whole_archive_flag_spec=
8368     fi
8369   else
8370     # PORTME fill in a description of your system's linker (not GNU ld)
8371     case $host_os in
8372     aix3*)
8373       allow_undefined_flag=unsupported
8374       always_export_symbols=yes
8375       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'
8376       # Note: this linker hardcodes the directories in LIBPATH if there
8377       # are no directories specified by -L.
8378       hardcode_minus_L=yes
8379       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8380         # Neither direct hardcoding nor static linking is supported with a
8381         # broken collect2.
8382         hardcode_direct=unsupported
8383       fi
8384       ;;
8385
8386     aix[4-9]*)
8387       if test "$host_cpu" = ia64; then
8388         # On IA64, the linker does run time linking by default, so we don't
8389         # have to do anything special.
8390         aix_use_runtimelinking=no
8391         exp_sym_flag='-Bexport'
8392         no_entry_flag=""
8393       else
8394         # If we're using GNU nm, then we don't want the "-C" option.
8395         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8396         # Also, AIX nm treats weak defined symbols like other global
8397         # defined symbols, whereas GNU nm marks them as "W".
8398         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8399           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'
8400         else
8401           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'
8402         fi
8403         aix_use_runtimelinking=no
8404
8405         # Test if we are trying to use run time linking or normal
8406         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8407         # need to do runtime linking.
8408         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8409           for ld_flag in $LDFLAGS; do
8410           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8411             aix_use_runtimelinking=yes
8412             break
8413           fi
8414           done
8415           ;;
8416         esac
8417
8418         exp_sym_flag='-bexport'
8419         no_entry_flag='-bnoentry'
8420       fi
8421
8422       # When large executables or shared objects are built, AIX ld can
8423       # have problems creating the table of contents.  If linking a library
8424       # or program results in "error TOC overflow" add -mminimal-toc to
8425       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8426       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8427
8428       archive_cmds=''
8429       hardcode_direct=yes
8430       hardcode_direct_absolute=yes
8431       hardcode_libdir_separator=':'
8432       link_all_deplibs=yes
8433       file_list_spec='${wl}-f,'
8434
8435       if test "$GCC" = yes; then
8436         case $host_os in aix4.[012]|aix4.[012].*)
8437         # We only want to do this on AIX 4.2 and lower, the check
8438         # below for broken collect2 doesn't work under 4.3+
8439           collect2name=`${CC} -print-prog-name=collect2`
8440           if test -f "$collect2name" &&
8441            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8442           then
8443           # We have reworked collect2
8444           :
8445           else
8446           # We have old collect2
8447           hardcode_direct=unsupported
8448           # It fails to find uninstalled libraries when the uninstalled
8449           # path is not listed in the libpath.  Setting hardcode_minus_L
8450           # to unsupported forces relinking
8451           hardcode_minus_L=yes
8452           hardcode_libdir_flag_spec='-L$libdir'
8453           hardcode_libdir_separator=
8454           fi
8455           ;;
8456         esac
8457         shared_flag='-shared'
8458         if test "$aix_use_runtimelinking" = yes; then
8459           shared_flag="$shared_flag "'${wl}-G'
8460         fi
8461       else
8462         # not using gcc
8463         if test "$host_cpu" = ia64; then
8464         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8465         # chokes on -Wl,-G. The following line is correct:
8466           shared_flag='-G'
8467         else
8468           if test "$aix_use_runtimelinking" = yes; then
8469             shared_flag='${wl}-G'
8470           else
8471             shared_flag='${wl}-bM:SRE'
8472           fi
8473         fi
8474       fi
8475
8476       export_dynamic_flag_spec='${wl}-bexpall'
8477       # It seems that -bexpall does not export symbols beginning with
8478       # underscore (_), so it is better to generate a list of symbols to export.
8479       always_export_symbols=yes
8480       if test "$aix_use_runtimelinking" = yes; then
8481         # Warning - without using the other runtime loading flags (-brtl),
8482         # -berok will link without error, but may produce a broken library.
8483         allow_undefined_flag='-berok'
8484         # Determine the default libpath from the value encoded in an
8485         # empty executable.
8486         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h.  */
8488
8489 int
8490 main ()
8491 {
8492
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498
8499 lt_aix_libpath_sed='
8500     /Import File Strings/,/^$/ {
8501         /^0/ {
8502             s/^0  *\(.*\)$/\1/
8503             p
8504         }
8505     }'
8506 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8507 # Check for a 64-bit object if we didn't find anything.
8508 if test -z "$aix_libpath"; then
8509   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8510 fi
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext \
8513     conftest$ac_exeext conftest.$ac_ext
8514 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8515
8516         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8517         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"
8518       else
8519         if test "$host_cpu" = ia64; then
8520           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8521           allow_undefined_flag="-z nodefs"
8522           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"
8523         else
8524          # Determine the default libpath from the value encoded in an
8525          # empty executable.
8526          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8527 /* end confdefs.h.  */
8528
8529 int
8530 main ()
8531 {
8532
8533   ;
8534   return 0;
8535 }
8536 _ACEOF
8537 if ac_fn_c_try_link "$LINENO"; then :
8538
8539 lt_aix_libpath_sed='
8540     /Import File Strings/,/^$/ {
8541         /^0/ {
8542             s/^0  *\(.*\)$/\1/
8543             p
8544         }
8545     }'
8546 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8547 # Check for a 64-bit object if we didn't find anything.
8548 if test -z "$aix_libpath"; then
8549   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8550 fi
8551 fi
8552 rm -f core conftest.err conftest.$ac_objext \
8553     conftest$ac_exeext conftest.$ac_ext
8554 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8555
8556          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8557           # Warning - without using the other run time loading flags,
8558           # -berok will link without error, but may produce a broken library.
8559           no_undefined_flag=' ${wl}-bernotok'
8560           allow_undefined_flag=' ${wl}-berok'
8561           if test "$with_gnu_ld" = yes; then
8562             # We only use this code for GNU lds that support --whole-archive.
8563             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8564           else
8565             # Exported symbols can be pulled into shared objects from archives
8566             whole_archive_flag_spec='$convenience'
8567           fi
8568           archive_cmds_need_lc=yes
8569           # This is similar to how AIX traditionally builds its shared libraries.
8570           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'
8571         fi
8572       fi
8573       ;;
8574
8575     amigaos*)
8576       case $host_cpu in
8577       powerpc)
8578             # see comment about AmigaOS4 .so support
8579             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8580             archive_expsym_cmds=''
8581         ;;
8582       m68k)
8583             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)'
8584             hardcode_libdir_flag_spec='-L$libdir'
8585             hardcode_minus_L=yes
8586         ;;
8587       esac
8588       ;;
8589
8590     bsdi[45]*)
8591       export_dynamic_flag_spec=-rdynamic
8592       ;;
8593
8594     cygwin* | mingw* | pw32* | cegcc*)
8595       # When not using gcc, we currently assume that we are using
8596       # Microsoft Visual C++.
8597       # hardcode_libdir_flag_spec is actually meaningless, as there is
8598       # no search path for DLLs.
8599       hardcode_libdir_flag_spec=' '
8600       allow_undefined_flag=unsupported
8601       # Tell ltmain to make .lib files, not .a files.
8602       libext=lib
8603       # Tell ltmain to make .dll files, not .so files.
8604       shrext_cmds=".dll"
8605       # FIXME: Setting linknames here is a bad hack.
8606       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8607       # The linker will automatically build a .lib file if we build a DLL.
8608       old_archive_from_new_cmds='true'
8609       # FIXME: Should let the user specify the lib program.
8610       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8611       fix_srcfile_path='`cygpath -w "$srcfile"`'
8612       enable_shared_with_static_runtimes=yes
8613       ;;
8614
8615     darwin* | rhapsody*)
8616
8617
8618   archive_cmds_need_lc=no
8619   hardcode_direct=no
8620   hardcode_automatic=yes
8621   hardcode_shlibpath_var=unsupported
8622   if test "$lt_cv_ld_force_load" = "yes"; then
8623     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\"`'
8624   else
8625     whole_archive_flag_spec=''
8626   fi
8627   link_all_deplibs=yes
8628   allow_undefined_flag="$_lt_dar_allow_undefined"
8629   case $cc_basename in
8630      ifort*) _lt_dar_can_shared=yes ;;
8631      *) _lt_dar_can_shared=$GCC ;;
8632   esac
8633   if test "$_lt_dar_can_shared" = "yes"; then
8634     output_verbose_link_cmd=func_echo_all
8635     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8636     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8637     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}"
8638     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}"
8639
8640   else
8641   ld_shlibs=no
8642   fi
8643
8644       ;;
8645
8646     dgux*)
8647       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8648       hardcode_libdir_flag_spec='-L$libdir'
8649       hardcode_shlibpath_var=no
8650       ;;
8651
8652     freebsd1*)
8653       ld_shlibs=no
8654       ;;
8655
8656     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8657     # support.  Future versions do this automatically, but an explicit c++rt0.o
8658     # does not break anything, and helps significantly (at the cost of a little
8659     # extra space).
8660     freebsd2.2*)
8661       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8662       hardcode_libdir_flag_spec='-R$libdir'
8663       hardcode_direct=yes
8664       hardcode_shlibpath_var=no
8665       ;;
8666
8667     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8668     freebsd2*)
8669       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8670       hardcode_direct=yes
8671       hardcode_minus_L=yes
8672       hardcode_shlibpath_var=no
8673       ;;
8674
8675     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8676     freebsd* | dragonfly*)
8677       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8678       hardcode_libdir_flag_spec='-R$libdir'
8679       hardcode_direct=yes
8680       hardcode_shlibpath_var=no
8681       ;;
8682
8683     hpux9*)
8684       if test "$GCC" = yes; then
8685         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'
8686       else
8687         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'
8688       fi
8689       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8690       hardcode_libdir_separator=:
8691       hardcode_direct=yes
8692
8693       # hardcode_minus_L: Not really in the search PATH,
8694       # but as the default location of the library.
8695       hardcode_minus_L=yes
8696       export_dynamic_flag_spec='${wl}-E'
8697       ;;
8698
8699     hpux10*)
8700       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8701         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8702       else
8703         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8704       fi
8705       if test "$with_gnu_ld" = no; then
8706         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8707         hardcode_libdir_flag_spec_ld='+b $libdir'
8708         hardcode_libdir_separator=:
8709         hardcode_direct=yes
8710         hardcode_direct_absolute=yes
8711         export_dynamic_flag_spec='${wl}-E'
8712         # hardcode_minus_L: Not really in the search PATH,
8713         # but as the default location of the library.
8714         hardcode_minus_L=yes
8715       fi
8716       ;;
8717
8718     hpux11*)
8719       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8720         case $host_cpu in
8721         hppa*64*)
8722           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8723           ;;
8724         ia64*)
8725           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8726           ;;
8727         *)
8728           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8729           ;;
8730         esac
8731       else
8732         case $host_cpu in
8733         hppa*64*)
8734           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8735           ;;
8736         ia64*)
8737           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8738           ;;
8739         *)
8740
8741           # Older versions of the 11.00 compiler do not understand -b yet
8742           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8743           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8744 $as_echo_n "checking if $CC understands -b... " >&6; }
8745 if test "${lt_cv_prog_compiler__b+set}" = set; then :
8746   $as_echo_n "(cached) " >&6
8747 else
8748   lt_cv_prog_compiler__b=no
8749    save_LDFLAGS="$LDFLAGS"
8750    LDFLAGS="$LDFLAGS -b"
8751    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8752    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8753      # The linker can only warn and ignore the option if not recognized
8754      # So say no if there are warnings
8755      if test -s conftest.err; then
8756        # Append any errors to the config.log.
8757        cat conftest.err 1>&5
8758        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8759        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760        if diff conftest.exp conftest.er2 >/dev/null; then
8761          lt_cv_prog_compiler__b=yes
8762        fi
8763      else
8764        lt_cv_prog_compiler__b=yes
8765      fi
8766    fi
8767    $RM -r conftest*
8768    LDFLAGS="$save_LDFLAGS"
8769
8770 fi
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8772 $as_echo "$lt_cv_prog_compiler__b" >&6; }
8773
8774 if test x"$lt_cv_prog_compiler__b" = xyes; then
8775     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8776 else
8777     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8778 fi
8779
8780           ;;
8781         esac
8782       fi
8783       if test "$with_gnu_ld" = no; then
8784         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8785         hardcode_libdir_separator=:
8786
8787         case $host_cpu in
8788         hppa*64*|ia64*)
8789           hardcode_direct=no
8790           hardcode_shlibpath_var=no
8791           ;;
8792         *)
8793           hardcode_direct=yes
8794           hardcode_direct_absolute=yes
8795           export_dynamic_flag_spec='${wl}-E'
8796
8797           # hardcode_minus_L: Not really in the search PATH,
8798           # but as the default location of the library.
8799           hardcode_minus_L=yes
8800           ;;
8801         esac
8802       fi
8803       ;;
8804
8805     irix5* | irix6* | nonstopux*)
8806       if test "$GCC" = yes; then
8807         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'
8808         # Try to use the -exported_symbol ld option, if it does not
8809         # work, assume that -exports_file does not work either and
8810         # implicitly export all symbols.
8811         save_LDFLAGS="$LDFLAGS"
8812         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8813         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h.  */
8815 int foo(void) {}
8816 _ACEOF
8817 if ac_fn_c_try_link "$LINENO"; then :
8818   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'
8819
8820 fi
8821 rm -f core conftest.err conftest.$ac_objext \
8822     conftest$ac_exeext conftest.$ac_ext
8823         LDFLAGS="$save_LDFLAGS"
8824       else
8825         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'
8826         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'
8827       fi
8828       archive_cmds_need_lc='no'
8829       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8830       hardcode_libdir_separator=:
8831       inherit_rpath=yes
8832       link_all_deplibs=yes
8833       ;;
8834
8835     netbsd*)
8836       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8837         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8838       else
8839         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8840       fi
8841       hardcode_libdir_flag_spec='-R$libdir'
8842       hardcode_direct=yes
8843       hardcode_shlibpath_var=no
8844       ;;
8845
8846     newsos6)
8847       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8848       hardcode_direct=yes
8849       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8850       hardcode_libdir_separator=:
8851       hardcode_shlibpath_var=no
8852       ;;
8853
8854     *nto* | *qnx*)
8855       ;;
8856
8857     openbsd*)
8858       if test -f /usr/libexec/ld.so; then
8859         hardcode_direct=yes
8860         hardcode_shlibpath_var=no
8861         hardcode_direct_absolute=yes
8862         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8863           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8864           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8865           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8866           export_dynamic_flag_spec='${wl}-E'
8867         else
8868           case $host_os in
8869            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8870              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8871              hardcode_libdir_flag_spec='-R$libdir'
8872              ;;
8873            *)
8874              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8875              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8876              ;;
8877           esac
8878         fi
8879       else
8880         ld_shlibs=no
8881       fi
8882       ;;
8883
8884     os2*)
8885       hardcode_libdir_flag_spec='-L$libdir'
8886       hardcode_minus_L=yes
8887       allow_undefined_flag=unsupported
8888       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'
8889       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8890       ;;
8891
8892     osf3*)
8893       if test "$GCC" = yes; then
8894         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8895         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'
8896       else
8897         allow_undefined_flag=' -expect_unresolved \*'
8898         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'
8899       fi
8900       archive_cmds_need_lc='no'
8901       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8902       hardcode_libdir_separator=:
8903       ;;
8904
8905     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8906       if test "$GCC" = yes; then
8907         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8908         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'
8909         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8910       else
8911         allow_undefined_flag=' -expect_unresolved \*'
8912         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'
8913         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~
8914         $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'
8915
8916         # Both c and cxx compiler support -rpath directly
8917         hardcode_libdir_flag_spec='-rpath $libdir'
8918       fi
8919       archive_cmds_need_lc='no'
8920       hardcode_libdir_separator=:
8921       ;;
8922
8923     solaris*)
8924       no_undefined_flag=' -z defs'
8925       if test "$GCC" = yes; then
8926         wlarc='${wl}'
8927         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8928         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8929           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8930       else
8931         case `$CC -V 2>&1` in
8932         *"Compilers 5.0"*)
8933           wlarc=''
8934           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8935           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8936           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8937           ;;
8938         *)
8939           wlarc='${wl}'
8940           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8941           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8942           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8943           ;;
8944         esac
8945       fi
8946       hardcode_libdir_flag_spec='-R$libdir'
8947       hardcode_shlibpath_var=no
8948       case $host_os in
8949       solaris2.[0-5] | solaris2.[0-5].*) ;;
8950       *)
8951         # The compiler driver will combine and reorder linker options,
8952         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8953         # but is careful enough not to reorder.
8954         # Supported since Solaris 2.6 (maybe 2.5.1?)
8955         if test "$GCC" = yes; then
8956           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8957         else
8958           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8959         fi
8960         ;;
8961       esac
8962       link_all_deplibs=yes
8963       ;;
8964
8965     sunos4*)
8966       if test "x$host_vendor" = xsequent; then
8967         # Use $CC to link under sequent, because it throws in some extra .o
8968         # files that make .init and .fini sections work.
8969         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8970       else
8971         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8972       fi
8973       hardcode_libdir_flag_spec='-L$libdir'
8974       hardcode_direct=yes
8975       hardcode_minus_L=yes
8976       hardcode_shlibpath_var=no
8977       ;;
8978
8979     sysv4)
8980       case $host_vendor in
8981         sni)
8982           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8983           hardcode_direct=yes # is this really true???
8984         ;;
8985         siemens)
8986           ## LD is ld it makes a PLAMLIB
8987           ## CC just makes a GrossModule.
8988           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8989           reload_cmds='$CC -r -o $output$reload_objs'
8990           hardcode_direct=no
8991         ;;
8992         motorola)
8993           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8994           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8995         ;;
8996       esac
8997       runpath_var='LD_RUN_PATH'
8998       hardcode_shlibpath_var=no
8999       ;;
9000
9001     sysv4.3*)
9002       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9003       hardcode_shlibpath_var=no
9004       export_dynamic_flag_spec='-Bexport'
9005       ;;
9006
9007     sysv4*MP*)
9008       if test -d /usr/nec; then
9009         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010         hardcode_shlibpath_var=no
9011         runpath_var=LD_RUN_PATH
9012         hardcode_runpath_var=yes
9013         ld_shlibs=yes
9014       fi
9015       ;;
9016
9017     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9018       no_undefined_flag='${wl}-z,text'
9019       archive_cmds_need_lc=no
9020       hardcode_shlibpath_var=no
9021       runpath_var='LD_RUN_PATH'
9022
9023       if test "$GCC" = yes; then
9024         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9025         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9026       else
9027         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9028         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9029       fi
9030       ;;
9031
9032     sysv5* | sco3.2v5* | sco5v6*)
9033       # Note: We can NOT use -z defs as we might desire, because we do not
9034       # link with -lc, and that would cause any symbols used from libc to
9035       # always be unresolved, which means just about no library would
9036       # ever link correctly.  If we're not using GNU ld we use -z text
9037       # though, which does catch some bad symbols but isn't as heavy-handed
9038       # as -z defs.
9039       no_undefined_flag='${wl}-z,text'
9040       allow_undefined_flag='${wl}-z,nodefs'
9041       archive_cmds_need_lc=no
9042       hardcode_shlibpath_var=no
9043       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9044       hardcode_libdir_separator=':'
9045       link_all_deplibs=yes
9046       export_dynamic_flag_spec='${wl}-Bexport'
9047       runpath_var='LD_RUN_PATH'
9048
9049       if test "$GCC" = yes; then
9050         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9051         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9052       else
9053         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9055       fi
9056       ;;
9057
9058     uts4*)
9059       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9060       hardcode_libdir_flag_spec='-L$libdir'
9061       hardcode_shlibpath_var=no
9062       ;;
9063
9064     *)
9065       ld_shlibs=no
9066       ;;
9067     esac
9068
9069     if test x$host_vendor = xsni; then
9070       case $host in
9071       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9072         export_dynamic_flag_spec='${wl}-Blargedynsym'
9073         ;;
9074       esac
9075     fi
9076   fi
9077
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9079 $as_echo "$ld_shlibs" >&6; }
9080 test "$ld_shlibs" = no && can_build_shared=no
9081
9082 with_gnu_ld=$with_gnu_ld
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098 #
9099 # Do we need to explicitly link libc?
9100 #
9101 case "x$archive_cmds_need_lc" in
9102 x|xyes)
9103   # Assume -lc should be added
9104   archive_cmds_need_lc=yes
9105
9106   if test "$enable_shared" = yes && test "$GCC" = yes; then
9107     case $archive_cmds in
9108     *'~'*)
9109       # FIXME: we may have to deal with multi-command sequences.
9110       ;;
9111     '$CC '*)
9112       # Test whether the compiler implicitly links with -lc since on some
9113       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9114       # to ld, don't add -lc before -lgcc.
9115       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9116 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9117 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9118   $as_echo_n "(cached) " >&6
9119 else
9120   $RM conftest*
9121         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122
9123         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9124   (eval $ac_compile) 2>&5
9125   ac_status=$?
9126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9127   test $ac_status = 0; } 2>conftest.err; then
9128           soname=conftest
9129           lib=conftest
9130           libobjs=conftest.$ac_objext
9131           deplibs=
9132           wl=$lt_prog_compiler_wl
9133           pic_flag=$lt_prog_compiler_pic
9134           compiler_flags=-v
9135           linker_flags=-v
9136           verstring=
9137           output_objdir=.
9138           libname=conftest
9139           lt_save_allow_undefined_flag=$allow_undefined_flag
9140           allow_undefined_flag=
9141           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9142   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9143   ac_status=$?
9144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9145   test $ac_status = 0; }
9146           then
9147             lt_cv_archive_cmds_need_lc=no
9148           else
9149             lt_cv_archive_cmds_need_lc=yes
9150           fi
9151           allow_undefined_flag=$lt_save_allow_undefined_flag
9152         else
9153           cat conftest.err 1>&5
9154         fi
9155         $RM conftest*
9156
9157 fi
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9159 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9160       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9161       ;;
9162     esac
9163   fi
9164   ;;
9165 esac
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9324 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9325
9326 if test "$GCC" = yes; then
9327   case $host_os in
9328     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9329     *) lt_awk_arg="/^libraries:/" ;;
9330   esac
9331   case $host_os in
9332     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9333     *) lt_sed_strip_eq="s,=/,/,g" ;;
9334   esac
9335   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9336   case $lt_search_path_spec in
9337   *\;*)
9338     # if the path contains ";" then we assume it to be the separator
9339     # otherwise default to the standard path separator (i.e. ":") - it is
9340     # assumed that no part of a normal pathname contains ";" but that should
9341     # okay in the real world where ";" in dirpaths is itself problematic.
9342     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9343     ;;
9344   *)
9345     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9346     ;;
9347   esac
9348   # Ok, now we have the path, separated by spaces, we can step through it
9349   # and add multilib dir if necessary.
9350   lt_tmp_lt_search_path_spec=
9351   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9352   for lt_sys_path in $lt_search_path_spec; do
9353     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9354       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9355     else
9356       test -d "$lt_sys_path" && \
9357         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9358     fi
9359   done
9360   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9361 BEGIN {RS=" "; FS="/|\n";} {
9362   lt_foo="";
9363   lt_count=0;
9364   for (lt_i = NF; lt_i > 0; lt_i--) {
9365     if ($lt_i != "" && $lt_i != ".") {
9366       if ($lt_i == "..") {
9367         lt_count++;
9368       } else {
9369         if (lt_count == 0) {
9370           lt_foo="/" $lt_i lt_foo;
9371         } else {
9372           lt_count--;
9373         }
9374       }
9375     }
9376   }
9377   if (lt_foo != "") { lt_freq[lt_foo]++; }
9378   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9379 }'`
9380   # AWK program above erroneously prepends '/' to C:/dos/paths
9381   # for these hosts.
9382   case $host_os in
9383     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9384       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9385   esac
9386   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9387 else
9388   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9389 fi
9390 library_names_spec=
9391 libname_spec='lib$name'
9392 soname_spec=
9393 shrext_cmds=".so"
9394 postinstall_cmds=
9395 postuninstall_cmds=
9396 finish_cmds=
9397 finish_eval=
9398 shlibpath_var=
9399 shlibpath_overrides_runpath=unknown
9400 version_type=none
9401 dynamic_linker="$host_os ld.so"
9402 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9403 need_lib_prefix=unknown
9404 hardcode_into_libs=no
9405
9406 # when you set need_version to no, make sure it does not cause -set_version
9407 # flags to be left without arguments
9408 need_version=unknown
9409
9410 case $host_os in
9411 aix3*)
9412   version_type=linux
9413   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9414   shlibpath_var=LIBPATH
9415
9416   # AIX 3 has no versioning support, so we append a major version to the name.
9417   soname_spec='${libname}${release}${shared_ext}$major'
9418   ;;
9419
9420 aix[4-9]*)
9421   version_type=linux
9422   need_lib_prefix=no
9423   need_version=no
9424   hardcode_into_libs=yes
9425   if test "$host_cpu" = ia64; then
9426     # AIX 5 supports IA64
9427     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9428     shlibpath_var=LD_LIBRARY_PATH
9429   else
9430     # With GCC up to 2.95.x, collect2 would create an import file
9431     # for dependence libraries.  The import file would start with
9432     # the line `#! .'.  This would cause the generated library to
9433     # depend on `.', always an invalid library.  This was fixed in
9434     # development snapshots of GCC prior to 3.0.
9435     case $host_os in
9436       aix4 | aix4.[01] | aix4.[01].*)
9437       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9438            echo ' yes '
9439            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9440         :
9441       else
9442         can_build_shared=no
9443       fi
9444       ;;
9445     esac
9446     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9447     # soname into executable. Probably we can add versioning support to
9448     # collect2, so additional links can be useful in future.
9449     if test "$aix_use_runtimelinking" = yes; then
9450       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9451       # instead of lib<name>.a to let people know that these are not
9452       # typical AIX shared libraries.
9453       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454     else
9455       # We preserve .a as extension for shared libraries through AIX4.2
9456       # and later when we are not doing run time linking.
9457       library_names_spec='${libname}${release}.a $libname.a'
9458       soname_spec='${libname}${release}${shared_ext}$major'
9459     fi
9460     shlibpath_var=LIBPATH
9461   fi
9462   ;;
9463
9464 amigaos*)
9465   case $host_cpu in
9466   powerpc)
9467     # Since July 2007 AmigaOS4 officially supports .so libraries.
9468     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9469     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9470     ;;
9471   m68k)
9472     library_names_spec='$libname.ixlibrary $libname.a'
9473     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9474     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'
9475     ;;
9476   esac
9477   ;;
9478
9479 beos*)
9480   library_names_spec='${libname}${shared_ext}'
9481   dynamic_linker="$host_os ld.so"
9482   shlibpath_var=LIBRARY_PATH
9483   ;;
9484
9485 bsdi[45]*)
9486   version_type=linux
9487   need_version=no
9488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489   soname_spec='${libname}${release}${shared_ext}$major'
9490   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9491   shlibpath_var=LD_LIBRARY_PATH
9492   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9493   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9494   # the default ld.so.conf also contains /usr/contrib/lib and
9495   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9496   # libtool to hard-code these into programs
9497   ;;
9498
9499 cygwin* | mingw* | pw32* | cegcc*)
9500   version_type=windows
9501   shrext_cmds=".dll"
9502   need_version=no
9503   need_lib_prefix=no
9504
9505   case $GCC,$host_os in
9506   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9507     library_names_spec='$libname.dll.a'
9508     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9509     postinstall_cmds='base_file=`basename \${file}`~
9510       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9511       dldir=$destdir/`dirname \$dlpath`~
9512       test -d \$dldir || mkdir -p \$dldir~
9513       $install_prog $dir/$dlname \$dldir/$dlname~
9514       chmod a+x \$dldir/$dlname~
9515       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9516         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9517       fi'
9518     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9519       dlpath=$dir/\$dldll~
9520        $RM \$dlpath'
9521     shlibpath_overrides_runpath=yes
9522
9523     case $host_os in
9524     cygwin*)
9525       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9526       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9527
9528       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9529       ;;
9530     mingw* | cegcc*)
9531       # MinGW DLLs use traditional 'lib' prefix
9532       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9533       ;;
9534     pw32*)
9535       # pw32 DLLs use 'pw' prefix rather than 'lib'
9536       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537       ;;
9538     esac
9539     ;;
9540
9541   *)
9542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9543     ;;
9544   esac
9545   dynamic_linker='Win32 ld.exe'
9546   # FIXME: first we should search . and the directory the executable is in
9547   shlibpath_var=PATH
9548   ;;
9549
9550 darwin* | rhapsody*)
9551   dynamic_linker="$host_os dyld"
9552   version_type=darwin
9553   need_lib_prefix=no
9554   need_version=no
9555   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9556   soname_spec='${libname}${release}${major}$shared_ext'
9557   shlibpath_overrides_runpath=yes
9558   shlibpath_var=DYLD_LIBRARY_PATH
9559   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9560
9561   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9563   ;;
9564
9565 dgux*)
9566   version_type=linux
9567   need_lib_prefix=no
9568   need_version=no
9569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9570   soname_spec='${libname}${release}${shared_ext}$major'
9571   shlibpath_var=LD_LIBRARY_PATH
9572   ;;
9573
9574 freebsd1*)
9575   dynamic_linker=no
9576   ;;
9577
9578 freebsd* | dragonfly*)
9579   # DragonFly does not have aout.  When/if they implement a new
9580   # versioning mechanism, adjust this.
9581   if test -x /usr/bin/objformat; then
9582     objformat=`/usr/bin/objformat`
9583   else
9584     case $host_os in
9585     freebsd[123]*) objformat=aout ;;
9586     *) objformat=elf ;;
9587     esac
9588   fi
9589   version_type=freebsd-$objformat
9590   case $version_type in
9591     freebsd-elf*)
9592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9593       need_version=no
9594       need_lib_prefix=no
9595       ;;
9596     freebsd-*)
9597       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9598       need_version=yes
9599       ;;
9600   esac
9601   shlibpath_var=LD_LIBRARY_PATH
9602   case $host_os in
9603   freebsd2*)
9604     shlibpath_overrides_runpath=yes
9605     ;;
9606   freebsd3.[01]* | freebsdelf3.[01]*)
9607     shlibpath_overrides_runpath=yes
9608     hardcode_into_libs=yes
9609     ;;
9610   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9611   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9612     shlibpath_overrides_runpath=no
9613     hardcode_into_libs=yes
9614     ;;
9615   *) # from 4.6 on, and DragonFly
9616     shlibpath_overrides_runpath=yes
9617     hardcode_into_libs=yes
9618     ;;
9619   esac
9620   ;;
9621
9622 gnu*)
9623   version_type=linux
9624   need_lib_prefix=no
9625   need_version=no
9626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9627   soname_spec='${libname}${release}${shared_ext}$major'
9628   shlibpath_var=LD_LIBRARY_PATH
9629   hardcode_into_libs=yes
9630   ;;
9631
9632 haiku*)
9633   version_type=linux
9634   need_lib_prefix=no
9635   need_version=no
9636   dynamic_linker="$host_os runtime_loader"
9637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9638   soname_spec='${libname}${release}${shared_ext}$major'
9639   shlibpath_var=LIBRARY_PATH
9640   shlibpath_overrides_runpath=yes
9641   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9642   hardcode_into_libs=yes
9643   ;;
9644
9645 hpux9* | hpux10* | hpux11*)
9646   # Give a soname corresponding to the major version so that dld.sl refuses to
9647   # link against other versions.
9648   version_type=sunos
9649   need_lib_prefix=no
9650   need_version=no
9651   case $host_cpu in
9652   ia64*)
9653     shrext_cmds='.so'
9654     hardcode_into_libs=yes
9655     dynamic_linker="$host_os dld.so"
9656     shlibpath_var=LD_LIBRARY_PATH
9657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9659     soname_spec='${libname}${release}${shared_ext}$major'
9660     if test "X$HPUX_IA64_MODE" = X32; then
9661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9662     else
9663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9664     fi
9665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9666     ;;
9667   hppa*64*)
9668     shrext_cmds='.sl'
9669     hardcode_into_libs=yes
9670     dynamic_linker="$host_os dld.sl"
9671     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9674     soname_spec='${libname}${release}${shared_ext}$major'
9675     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9676     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9677     ;;
9678   *)
9679     shrext_cmds='.sl'
9680     dynamic_linker="$host_os dld.sl"
9681     shlibpath_var=SHLIB_PATH
9682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9684     soname_spec='${libname}${release}${shared_ext}$major'
9685     ;;
9686   esac
9687   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9688   postinstall_cmds='chmod 555 $lib'
9689   # or fails outright, so override atomically:
9690   install_override_mode=555
9691   ;;
9692
9693 interix[3-9]*)
9694   version_type=linux
9695   need_lib_prefix=no
9696   need_version=no
9697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9698   soname_spec='${libname}${release}${shared_ext}$major'
9699   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9700   shlibpath_var=LD_LIBRARY_PATH
9701   shlibpath_overrides_runpath=no
9702   hardcode_into_libs=yes
9703   ;;
9704
9705 irix5* | irix6* | nonstopux*)
9706   case $host_os in
9707     nonstopux*) version_type=nonstopux ;;
9708     *)
9709         if test "$lt_cv_prog_gnu_ld" = yes; then
9710                 version_type=linux
9711         else
9712                 version_type=irix
9713         fi ;;
9714   esac
9715   need_lib_prefix=no
9716   need_version=no
9717   soname_spec='${libname}${release}${shared_ext}$major'
9718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9719   case $host_os in
9720   irix5* | nonstopux*)
9721     libsuff= shlibsuff=
9722     ;;
9723   *)
9724     case $LD in # libtool.m4 will add one of these switches to LD
9725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9726       libsuff= shlibsuff= libmagic=32-bit;;
9727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9728       libsuff=32 shlibsuff=N32 libmagic=N32;;
9729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9731     *) libsuff= shlibsuff= libmagic=never-match;;
9732     esac
9733     ;;
9734   esac
9735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9736   shlibpath_overrides_runpath=no
9737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9739   hardcode_into_libs=yes
9740   ;;
9741
9742 # No shared lib support for Linux oldld, aout, or coff.
9743 linux*oldld* | linux*aout* | linux*coff*)
9744   dynamic_linker=no
9745   ;;
9746
9747 # This must be Linux ELF.
9748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9749   version_type=linux
9750   need_lib_prefix=no
9751   need_version=no
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9753   soname_spec='${libname}${release}${shared_ext}$major'
9754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9755   shlibpath_var=LD_LIBRARY_PATH
9756   shlibpath_overrides_runpath=no
9757
9758   # Some binutils ld are patched to set DT_RUNPATH
9759   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   lt_cv_shlibpath_overrides_runpath=no
9763     save_LDFLAGS=$LDFLAGS
9764     save_libdir=$libdir
9765     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9766          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769
9770 int
9771 main ()
9772 {
9773
9774   ;
9775   return 0;
9776 }
9777 _ACEOF
9778 if ac_fn_c_try_link "$LINENO"; then :
9779   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9780   lt_cv_shlibpath_overrides_runpath=yes
9781 fi
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext \
9784     conftest$ac_exeext conftest.$ac_ext
9785     LDFLAGS=$save_LDFLAGS
9786     libdir=$save_libdir
9787
9788 fi
9789
9790   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9791
9792   # This implies no fast_install, which is unacceptable.
9793   # Some rework will be needed to allow for fast_install
9794   # before this can be enabled.
9795   hardcode_into_libs=yes
9796
9797   # Append ld.so.conf contents to the search path
9798   if test -f /etc/ld.so.conf; then
9799     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' ' '`
9800     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9801   fi
9802
9803   # We used to test for /lib/ld.so.1 and disable shared libraries on
9804   # powerpc, because MkLinux only supported shared libraries with the
9805   # GNU dynamic linker.  Since this was broken with cross compilers,
9806   # most powerpc-linux boxes support dynamic linking these days and
9807   # people can always --disable-shared, the test was removed, and we
9808   # assume the GNU/Linux dynamic linker is in use.
9809   dynamic_linker='GNU/Linux ld.so'
9810   ;;
9811
9812 netbsd*)
9813   version_type=sunos
9814   need_lib_prefix=no
9815   need_version=no
9816   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9817     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9818     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9819     dynamic_linker='NetBSD (a.out) ld.so'
9820   else
9821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9822     soname_spec='${libname}${release}${shared_ext}$major'
9823     dynamic_linker='NetBSD ld.elf_so'
9824   fi
9825   shlibpath_var=LD_LIBRARY_PATH
9826   shlibpath_overrides_runpath=yes
9827   hardcode_into_libs=yes
9828   ;;
9829
9830 newsos6)
9831   version_type=linux
9832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9833   shlibpath_var=LD_LIBRARY_PATH
9834   shlibpath_overrides_runpath=yes
9835   ;;
9836
9837 *nto* | *qnx*)
9838   version_type=qnx
9839   need_lib_prefix=no
9840   need_version=no
9841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9842   soname_spec='${libname}${release}${shared_ext}$major'
9843   shlibpath_var=LD_LIBRARY_PATH
9844   shlibpath_overrides_runpath=no
9845   hardcode_into_libs=yes
9846   dynamic_linker='ldqnx.so'
9847   ;;
9848
9849 openbsd*)
9850   version_type=sunos
9851   sys_lib_dlsearch_path_spec="/usr/lib"
9852   need_lib_prefix=no
9853   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9854   case $host_os in
9855     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
9856     *)                          need_version=no  ;;
9857   esac
9858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9860   shlibpath_var=LD_LIBRARY_PATH
9861   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9862     case $host_os in
9863       openbsd2.[89] | openbsd2.[89].*)
9864         shlibpath_overrides_runpath=no
9865         ;;
9866       *)
9867         shlibpath_overrides_runpath=yes
9868         ;;
9869       esac
9870   else
9871     shlibpath_overrides_runpath=yes
9872   fi
9873   ;;
9874
9875 os2*)
9876   libname_spec='$name'
9877   shrext_cmds=".dll"
9878   need_lib_prefix=no
9879   library_names_spec='$libname${shared_ext} $libname.a'
9880   dynamic_linker='OS/2 ld.exe'
9881   shlibpath_var=LIBPATH
9882   ;;
9883
9884 osf3* | osf4* | osf5*)
9885   version_type=osf
9886   need_lib_prefix=no
9887   need_version=no
9888   soname_spec='${libname}${release}${shared_ext}$major'
9889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9890   shlibpath_var=LD_LIBRARY_PATH
9891   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9892   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9893   ;;
9894
9895 rdos*)
9896   dynamic_linker=no
9897   ;;
9898
9899 solaris*)
9900   version_type=linux
9901   need_lib_prefix=no
9902   need_version=no
9903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904   soname_spec='${libname}${release}${shared_ext}$major'
9905   shlibpath_var=LD_LIBRARY_PATH
9906   shlibpath_overrides_runpath=yes
9907   hardcode_into_libs=yes
9908   # ldd complains unless libraries are executable
9909   postinstall_cmds='chmod +x $lib'
9910   ;;
9911
9912 sunos4*)
9913   version_type=sunos
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9915   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9916   shlibpath_var=LD_LIBRARY_PATH
9917   shlibpath_overrides_runpath=yes
9918   if test "$with_gnu_ld" = yes; then
9919     need_lib_prefix=no
9920   fi
9921   need_version=yes
9922   ;;
9923
9924 sysv4 | sysv4.3*)
9925   version_type=linux
9926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9927   soname_spec='${libname}${release}${shared_ext}$major'
9928   shlibpath_var=LD_LIBRARY_PATH
9929   case $host_vendor in
9930     sni)
9931       shlibpath_overrides_runpath=no
9932       need_lib_prefix=no
9933       runpath_var=LD_RUN_PATH
9934       ;;
9935     siemens)
9936       need_lib_prefix=no
9937       ;;
9938     motorola)
9939       need_lib_prefix=no
9940       need_version=no
9941       shlibpath_overrides_runpath=no
9942       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9943       ;;
9944   esac
9945   ;;
9946
9947 sysv4*MP*)
9948   if test -d /usr/nec ;then
9949     version_type=linux
9950     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9951     soname_spec='$libname${shared_ext}.$major'
9952     shlibpath_var=LD_LIBRARY_PATH
9953   fi
9954   ;;
9955
9956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9957   version_type=freebsd-elf
9958   need_lib_prefix=no
9959   need_version=no
9960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9961   soname_spec='${libname}${release}${shared_ext}$major'
9962   shlibpath_var=LD_LIBRARY_PATH
9963   shlibpath_overrides_runpath=yes
9964   hardcode_into_libs=yes
9965   if test "$with_gnu_ld" = yes; then
9966     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9967   else
9968     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9969     case $host_os in
9970       sco3.2v5*)
9971         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9972         ;;
9973     esac
9974   fi
9975   sys_lib_dlsearch_path_spec='/usr/lib'
9976   ;;
9977
9978 tpf*)
9979   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
9980   version_type=linux
9981   need_lib_prefix=no
9982   need_version=no
9983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9984   shlibpath_var=LD_LIBRARY_PATH
9985   shlibpath_overrides_runpath=no
9986   hardcode_into_libs=yes
9987   ;;
9988
9989 uts4*)
9990   version_type=linux
9991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992   soname_spec='${libname}${release}${shared_ext}$major'
9993   shlibpath_var=LD_LIBRARY_PATH
9994   ;;
9995
9996 *)
9997   dynamic_linker=no
9998   ;;
9999 esac
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10001 $as_echo "$dynamic_linker" >&6; }
10002 test "$dynamic_linker" = no && can_build_shared=no
10003
10004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10005 if test "$GCC" = yes; then
10006   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10007 fi
10008
10009 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10010   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10011 fi
10012 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10013   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10014 fi
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10108 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10109 hardcode_action=
10110 if test -n "$hardcode_libdir_flag_spec" ||
10111    test -n "$runpath_var" ||
10112    test "X$hardcode_automatic" = "Xyes" ; then
10113
10114   # We can hardcode non-existent directories.
10115   if test "$hardcode_direct" != no &&
10116      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10117      # have to relink, otherwise we might link with an installed library
10118      # when we should be linking with a yet-to-be-installed one
10119      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10120      test "$hardcode_minus_L" != no; then
10121     # Linking always hardcodes the temporary library directory.
10122     hardcode_action=relink
10123   else
10124     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10125     hardcode_action=immediate
10126   fi
10127 else
10128   # We cannot hardcode anything, or else we can only hardcode existing
10129   # directories.
10130   hardcode_action=unsupported
10131 fi
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10133 $as_echo "$hardcode_action" >&6; }
10134
10135 if test "$hardcode_action" = relink ||
10136    test "$inherit_rpath" = yes; then
10137   # Fast installation is not supported
10138   enable_fast_install=no
10139 elif test "$shlibpath_overrides_runpath" = yes ||
10140      test "$enable_shared" = no; then
10141   # Fast installation is not necessary
10142   enable_fast_install=needless
10143 fi
10144
10145
10146
10147
10148
10149
10150   if test "x$enable_dlopen" != xyes; then
10151   enable_dlopen=unknown
10152   enable_dlopen_self=unknown
10153   enable_dlopen_self_static=unknown
10154 else
10155   lt_cv_dlopen=no
10156   lt_cv_dlopen_libs=
10157
10158   case $host_os in
10159   beos*)
10160     lt_cv_dlopen="load_add_on"
10161     lt_cv_dlopen_libs=
10162     lt_cv_dlopen_self=yes
10163     ;;
10164
10165   mingw* | pw32* | cegcc*)
10166     lt_cv_dlopen="LoadLibrary"
10167     lt_cv_dlopen_libs=
10168     ;;
10169
10170   cygwin*)
10171     lt_cv_dlopen="dlopen"
10172     lt_cv_dlopen_libs=
10173     ;;
10174
10175   darwin*)
10176   # if libdl is installed we need to link against it
10177     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10178 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10179 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10180   $as_echo_n "(cached) " >&6
10181 else
10182   ac_check_lib_save_LIBS=$LIBS
10183 LIBS="-ldl  $LIBS"
10184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10185 /* end confdefs.h.  */
10186
10187 /* Override any GCC internal prototype to avoid an error.
10188    Use char because int might match the return type of a GCC
10189    builtin and then its argument prototype would still apply.  */
10190 #ifdef __cplusplus
10191 extern "C"
10192 #endif
10193 char dlopen ();
10194 int
10195 main ()
10196 {
10197 return dlopen ();
10198   ;
10199   return 0;
10200 }
10201 _ACEOF
10202 if ac_fn_c_try_link "$LINENO"; then :
10203   ac_cv_lib_dl_dlopen=yes
10204 else
10205   ac_cv_lib_dl_dlopen=no
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext \
10208     conftest$ac_exeext conftest.$ac_ext
10209 LIBS=$ac_check_lib_save_LIBS
10210 fi
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10212 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10213 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10214   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10215 else
10216
10217     lt_cv_dlopen="dyld"
10218     lt_cv_dlopen_libs=
10219     lt_cv_dlopen_self=yes
10220
10221 fi
10222
10223     ;;
10224
10225   *)
10226     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10227 if test "x$ac_cv_func_shl_load" = x""yes; then :
10228   lt_cv_dlopen="shl_load"
10229 else
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10231 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10232 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10233   $as_echo_n "(cached) " >&6
10234 else
10235   ac_check_lib_save_LIBS=$LIBS
10236 LIBS="-ldld  $LIBS"
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h.  */
10239
10240 /* Override any GCC internal prototype to avoid an error.
10241    Use char because int might match the return type of a GCC
10242    builtin and then its argument prototype would still apply.  */
10243 #ifdef __cplusplus
10244 extern "C"
10245 #endif
10246 char shl_load ();
10247 int
10248 main ()
10249 {
10250 return shl_load ();
10251   ;
10252   return 0;
10253 }
10254 _ACEOF
10255 if ac_fn_c_try_link "$LINENO"; then :
10256   ac_cv_lib_dld_shl_load=yes
10257 else
10258   ac_cv_lib_dld_shl_load=no
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext \
10261     conftest$ac_exeext conftest.$ac_ext
10262 LIBS=$ac_check_lib_save_LIBS
10263 fi
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10265 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10266 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10267   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10268 else
10269   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10270 if test "x$ac_cv_func_dlopen" = x""yes; then :
10271   lt_cv_dlopen="dlopen"
10272 else
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10274 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10275 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10276   $as_echo_n "(cached) " >&6
10277 else
10278   ac_check_lib_save_LIBS=$LIBS
10279 LIBS="-ldl  $LIBS"
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h.  */
10282
10283 /* Override any GCC internal prototype to avoid an error.
10284    Use char because int might match the return type of a GCC
10285    builtin and then its argument prototype would still apply.  */
10286 #ifdef __cplusplus
10287 extern "C"
10288 #endif
10289 char dlopen ();
10290 int
10291 main ()
10292 {
10293 return dlopen ();
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 if ac_fn_c_try_link "$LINENO"; then :
10299   ac_cv_lib_dl_dlopen=yes
10300 else
10301   ac_cv_lib_dl_dlopen=no
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext \
10304     conftest$ac_exeext conftest.$ac_ext
10305 LIBS=$ac_check_lib_save_LIBS
10306 fi
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10308 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10309 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10310   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10311 else
10312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10313 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10314 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10315   $as_echo_n "(cached) " >&6
10316 else
10317   ac_check_lib_save_LIBS=$LIBS
10318 LIBS="-lsvld  $LIBS"
10319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10320 /* end confdefs.h.  */
10321
10322 /* Override any GCC internal prototype to avoid an error.
10323    Use char because int might match the return type of a GCC
10324    builtin and then its argument prototype would still apply.  */
10325 #ifdef __cplusplus
10326 extern "C"
10327 #endif
10328 char dlopen ();
10329 int
10330 main ()
10331 {
10332 return dlopen ();
10333   ;
10334   return 0;
10335 }
10336 _ACEOF
10337 if ac_fn_c_try_link "$LINENO"; then :
10338   ac_cv_lib_svld_dlopen=yes
10339 else
10340   ac_cv_lib_svld_dlopen=no
10341 fi
10342 rm -f core conftest.err conftest.$ac_objext \
10343     conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10347 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10348 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10349   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10350 else
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10352 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10353 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10354   $as_echo_n "(cached) " >&6
10355 else
10356   ac_check_lib_save_LIBS=$LIBS
10357 LIBS="-ldld  $LIBS"
10358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10359 /* end confdefs.h.  */
10360
10361 /* Override any GCC internal prototype to avoid an error.
10362    Use char because int might match the return type of a GCC
10363    builtin and then its argument prototype would still apply.  */
10364 #ifdef __cplusplus
10365 extern "C"
10366 #endif
10367 char dld_link ();
10368 int
10369 main ()
10370 {
10371 return dld_link ();
10372   ;
10373   return 0;
10374 }
10375 _ACEOF
10376 if ac_fn_c_try_link "$LINENO"; then :
10377   ac_cv_lib_dld_dld_link=yes
10378 else
10379   ac_cv_lib_dld_dld_link=no
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext \
10382     conftest$ac_exeext conftest.$ac_ext
10383 LIBS=$ac_check_lib_save_LIBS
10384 fi
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10386 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10387 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10388   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10389 fi
10390
10391
10392 fi
10393
10394
10395 fi
10396
10397
10398 fi
10399
10400
10401 fi
10402
10403
10404 fi
10405
10406     ;;
10407   esac
10408
10409   if test "x$lt_cv_dlopen" != xno; then
10410     enable_dlopen=yes
10411   else
10412     enable_dlopen=no
10413   fi
10414
10415   case $lt_cv_dlopen in
10416   dlopen)
10417     save_CPPFLAGS="$CPPFLAGS"
10418     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10419
10420     save_LDFLAGS="$LDFLAGS"
10421     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10422
10423     save_LIBS="$LIBS"
10424     LIBS="$lt_cv_dlopen_libs $LIBS"
10425
10426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10427 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10428 if test "${lt_cv_dlopen_self+set}" = set; then :
10429   $as_echo_n "(cached) " >&6
10430 else
10431           if test "$cross_compiling" = yes; then :
10432   lt_cv_dlopen_self=cross
10433 else
10434   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10435   lt_status=$lt_dlunknown
10436   cat > conftest.$ac_ext <<_LT_EOF
10437 #line 10437 "configure"
10438 #include "confdefs.h"
10439
10440 #if HAVE_DLFCN_H
10441 #include <dlfcn.h>
10442 #endif
10443
10444 #include <stdio.h>
10445
10446 #ifdef RTLD_GLOBAL
10447 #  define LT_DLGLOBAL           RTLD_GLOBAL
10448 #else
10449 #  ifdef DL_GLOBAL
10450 #    define LT_DLGLOBAL         DL_GLOBAL
10451 #  else
10452 #    define LT_DLGLOBAL         0
10453 #  endif
10454 #endif
10455
10456 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10457    find out it does not work in some platform. */
10458 #ifndef LT_DLLAZY_OR_NOW
10459 #  ifdef RTLD_LAZY
10460 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10461 #  else
10462 #    ifdef DL_LAZY
10463 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10464 #    else
10465 #      ifdef RTLD_NOW
10466 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10467 #      else
10468 #        ifdef DL_NOW
10469 #          define LT_DLLAZY_OR_NOW      DL_NOW
10470 #        else
10471 #          define LT_DLLAZY_OR_NOW      0
10472 #        endif
10473 #      endif
10474 #    endif
10475 #  endif
10476 #endif
10477
10478 /* When -fvisbility=hidden is used, assume the code has been annotated
10479    correspondingly for the symbols needed.  */
10480 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10481 void fnord () __attribute__((visibility("default")));
10482 #endif
10483
10484 void fnord () { int i=42; }
10485 int main ()
10486 {
10487   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488   int status = $lt_dlunknown;
10489
10490   if (self)
10491     {
10492       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10493       else
10494         {
10495           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10496           else puts (dlerror ());
10497         }
10498       /* dlclose (self); */
10499     }
10500   else
10501     puts (dlerror ());
10502
10503   return status;
10504 }
10505 _LT_EOF
10506   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10507   (eval $ac_link) 2>&5
10508   ac_status=$?
10509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10510   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10511     (./conftest; exit; ) >&5 2>/dev/null
10512     lt_status=$?
10513     case x$lt_status in
10514       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10515       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10516       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10517     esac
10518   else :
10519     # compilation failed
10520     lt_cv_dlopen_self=no
10521   fi
10522 fi
10523 rm -fr conftest*
10524
10525
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10528 $as_echo "$lt_cv_dlopen_self" >&6; }
10529
10530     if test "x$lt_cv_dlopen_self" = xyes; then
10531       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10532       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10533 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10534 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10535   $as_echo_n "(cached) " >&6
10536 else
10537           if test "$cross_compiling" = yes; then :
10538   lt_cv_dlopen_self_static=cross
10539 else
10540   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10541   lt_status=$lt_dlunknown
10542   cat > conftest.$ac_ext <<_LT_EOF
10543 #line 10543 "configure"
10544 #include "confdefs.h"
10545
10546 #if HAVE_DLFCN_H
10547 #include <dlfcn.h>
10548 #endif
10549
10550 #include <stdio.h>
10551
10552 #ifdef RTLD_GLOBAL
10553 #  define LT_DLGLOBAL           RTLD_GLOBAL
10554 #else
10555 #  ifdef DL_GLOBAL
10556 #    define LT_DLGLOBAL         DL_GLOBAL
10557 #  else
10558 #    define LT_DLGLOBAL         0
10559 #  endif
10560 #endif
10561
10562 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10563    find out it does not work in some platform. */
10564 #ifndef LT_DLLAZY_OR_NOW
10565 #  ifdef RTLD_LAZY
10566 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10567 #  else
10568 #    ifdef DL_LAZY
10569 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10570 #    else
10571 #      ifdef RTLD_NOW
10572 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10573 #      else
10574 #        ifdef DL_NOW
10575 #          define LT_DLLAZY_OR_NOW      DL_NOW
10576 #        else
10577 #          define LT_DLLAZY_OR_NOW      0
10578 #        endif
10579 #      endif
10580 #    endif
10581 #  endif
10582 #endif
10583
10584 /* When -fvisbility=hidden is used, assume the code has been annotated
10585    correspondingly for the symbols needed.  */
10586 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10587 void fnord () __attribute__((visibility("default")));
10588 #endif
10589
10590 void fnord () { int i=42; }
10591 int main ()
10592 {
10593   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10594   int status = $lt_dlunknown;
10595
10596   if (self)
10597     {
10598       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10599       else
10600         {
10601           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10602           else puts (dlerror ());
10603         }
10604       /* dlclose (self); */
10605     }
10606   else
10607     puts (dlerror ());
10608
10609   return status;
10610 }
10611 _LT_EOF
10612   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10613   (eval $ac_link) 2>&5
10614   ac_status=$?
10615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10616   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10617     (./conftest; exit; ) >&5 2>/dev/null
10618     lt_status=$?
10619     case x$lt_status in
10620       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10621       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10622       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10623     esac
10624   else :
10625     # compilation failed
10626     lt_cv_dlopen_self_static=no
10627   fi
10628 fi
10629 rm -fr conftest*
10630
10631
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10634 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10635     fi
10636
10637     CPPFLAGS="$save_CPPFLAGS"
10638     LDFLAGS="$save_LDFLAGS"
10639     LIBS="$save_LIBS"
10640     ;;
10641   esac
10642
10643   case $lt_cv_dlopen_self in
10644   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10645   *) enable_dlopen_self=unknown ;;
10646   esac
10647
10648   case $lt_cv_dlopen_self_static in
10649   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10650   *) enable_dlopen_self_static=unknown ;;
10651   esac
10652 fi
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670 striplib=
10671 old_striplib=
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10673 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10674 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10675   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10676   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10678 $as_echo "yes" >&6; }
10679 else
10680 # FIXME - insert some real tests, host_os isn't really good enough
10681   case $host_os in
10682   darwin*)
10683     if test -n "$STRIP" ; then
10684       striplib="$STRIP -x"
10685       old_striplib="$STRIP -S"
10686       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10688     else
10689       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10690 $as_echo "no" >&6; }
10691     fi
10692     ;;
10693   *)
10694     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695 $as_echo "no" >&6; }
10696     ;;
10697   esac
10698 fi
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711   # Report which library types will actually be built
10712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10713 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10715 $as_echo "$can_build_shared" >&6; }
10716
10717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10718 $as_echo_n "checking whether to build shared libraries... " >&6; }
10719   test "$can_build_shared" = "no" && enable_shared=no
10720
10721   # On AIX, shared libraries and static libraries use the same namespace, and
10722   # are all built from PIC.
10723   case $host_os in
10724   aix3*)
10725     test "$enable_shared" = yes && enable_static=no
10726     if test -n "$RANLIB"; then
10727       archive_cmds="$archive_cmds~\$RANLIB \$lib"
10728       postinstall_cmds='$RANLIB $lib'
10729     fi
10730     ;;
10731
10732   aix[4-9]*)
10733     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10734       test "$enable_shared" = yes && enable_static=no
10735     fi
10736     ;;
10737   esac
10738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10739 $as_echo "$enable_shared" >&6; }
10740
10741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10742 $as_echo_n "checking whether to build static libraries... " >&6; }
10743   # Make sure either enable_shared or enable_static is yes.
10744   test "$enable_shared" = yes || enable_static=yes
10745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10746 $as_echo "$enable_static" >&6; }
10747
10748
10749
10750
10751 fi
10752 ac_ext=c
10753 ac_cpp='$CPP $CPPFLAGS'
10754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10757
10758 CC="$lt_save_CC"
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772         ac_config_commands="$ac_config_commands libtool"
10773
10774
10775
10776
10777 # Only expand once:
10778
10779
10780
10781 # Trying to get this information from gcc's config is tricky.
10782 case $target in
10783   x86_64*-mingw*)
10784
10785 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10786
10787     ;;
10788   *-cygwin* | i?86*-mingw* )
10789
10790 $as_echo "#define SYM_STYLE ss_win32" >>confdefs.h
10791
10792     ;;
10793   *)
10794
10795 $as_echo "#define SYM_STYLE ss_none" >>confdefs.h
10796
10797     ;;
10798 esac
10799 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
10800 case $ac_cv_c_uint64_t in #(
10801   no|yes) ;; #(
10802   *)
10803
10804 $as_echo "#define _UINT64_T 1" >>confdefs.h
10805
10806
10807 cat >>confdefs.h <<_ACEOF
10808 #define uint64_t $ac_cv_c_uint64_t
10809 _ACEOF
10810 ;;
10811   esac
10812
10813 ac_config_files="$ac_config_files Makefile"
10814
10815 ac_config_headers="$ac_config_headers config.h"
10816
10817 cat >confcache <<\_ACEOF
10818 # This file is a shell script that caches the results of configure
10819 # tests run on this system so they can be shared between configure
10820 # scripts and configure runs, see configure's option --config-cache.
10821 # It is not useful on other systems.  If it contains results you don't
10822 # want to keep, you may remove or edit it.
10823 #
10824 # config.status only pays attention to the cache file if you give it
10825 # the --recheck option to rerun configure.
10826 #
10827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10829 # following values.
10830
10831 _ACEOF
10832
10833 # The following way of writing the cache mishandles newlines in values,
10834 # but we know of no workaround that is simple, portable, and efficient.
10835 # So, we kill variables containing newlines.
10836 # Ultrix sh set writes to stderr and can't be redirected directly,
10837 # and sets the high bit in the cache file unless we assign to the vars.
10838 (
10839   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10840     eval ac_val=\$$ac_var
10841     case $ac_val in #(
10842     *${as_nl}*)
10843       case $ac_var in #(
10844       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10846       esac
10847       case $ac_var in #(
10848       _ | IFS | as_nl) ;; #(
10849       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10850       *) { eval $ac_var=; unset $ac_var;} ;;
10851       esac ;;
10852     esac
10853   done
10854
10855   (set) 2>&1 |
10856     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10857     *${as_nl}ac_space=\ *)
10858       # `set' does not quote correctly, so add quotes: double-quote
10859       # substitution turns \\\\ into \\, and sed turns \\ into \.
10860       sed -n \
10861         "s/'/'\\\\''/g;
10862           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10863       ;; #(
10864     *)
10865       # `set' quotes correctly as required by POSIX, so do not add quotes.
10866       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10867       ;;
10868     esac |
10869     sort
10870 ) |
10871   sed '
10872      /^ac_cv_env_/b end
10873      t clear
10874      :clear
10875      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10876      t end
10877      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10878      :end' >>confcache
10879 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10880   if test -w "$cache_file"; then
10881     test "x$cache_file" != "x/dev/null" &&
10882       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10883 $as_echo "$as_me: updating cache $cache_file" >&6;}
10884     cat confcache >$cache_file
10885   else
10886     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10887 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10888   fi
10889 fi
10890 rm -f confcache
10891
10892 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10893 # Let make expand exec_prefix.
10894 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10895
10896 DEFS=-DHAVE_CONFIG_H
10897
10898 ac_libobjs=
10899 ac_ltlibobjs=
10900 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10901   # 1. Remove the extension, and $U if already installed.
10902   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10903   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10904   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10905   #    will be set to the directory where LIBOBJS objects are built.
10906   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10907   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10908 done
10909 LIBOBJS=$ac_libobjs
10910
10911 LTLIBOBJS=$ac_ltlibobjs
10912
10913
10914  if test -n "$EXEEXT"; then
10915   am__EXEEXT_TRUE=
10916   am__EXEEXT_FALSE='#'
10917 else
10918   am__EXEEXT_TRUE='#'
10919   am__EXEEXT_FALSE=
10920 fi
10921
10922 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10923   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
10924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10925 fi
10926 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10927   as_fn_error "conditional \"AMDEP\" was never defined.
10928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10929 fi
10930 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10931   as_fn_error "conditional \"am__fastdepCC\" was never defined.
10932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10933 fi
10934
10935 : ${CONFIG_STATUS=./config.status}
10936 ac_write_fail=0
10937 ac_clean_files_save=$ac_clean_files
10938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10941 as_write_fail=0
10942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10943 #! $SHELL
10944 # Generated by $as_me.
10945 # Run this file to recreate the current configuration.
10946 # Compiler output produced by configure, useful for debugging
10947 # configure, is in config.log if it exists.
10948
10949 debug=false
10950 ac_cs_recheck=false
10951 ac_cs_silent=false
10952
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10954 export SHELL
10955 _ASEOF
10956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10957 ## -------------------- ##
10958 ## M4sh Initialization. ##
10959 ## -------------------- ##
10960
10961 # Be more Bourne compatible
10962 DUALCASE=1; export DUALCASE # for MKS sh
10963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10964   emulate sh
10965   NULLCMD=:
10966   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10967   # is contrary to our usage.  Disable this feature.
10968   alias -g '${1+"$@"}'='"$@"'
10969   setopt NO_GLOB_SUBST
10970 else
10971   case `(set -o) 2>/dev/null` in #(
10972   *posix*) :
10973     set -o posix ;; #(
10974   *) :
10975      ;;
10976 esac
10977 fi
10978
10979
10980 as_nl='
10981 '
10982 export as_nl
10983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10987 # Prefer a ksh shell builtin over an external printf program on Solaris,
10988 # but without wasting forks for bash or zsh.
10989 if test -z "$BASH_VERSION$ZSH_VERSION" \
10990     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10991   as_echo='print -r --'
10992   as_echo_n='print -rn --'
10993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10994   as_echo='printf %s\n'
10995   as_echo_n='printf %s'
10996 else
10997   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10998     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10999     as_echo_n='/usr/ucb/echo -n'
11000   else
11001     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11002     as_echo_n_body='eval
11003       arg=$1;
11004       case $arg in #(
11005       *"$as_nl"*)
11006         expr "X$arg" : "X\\(.*\\)$as_nl";
11007         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11008       esac;
11009       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11010     '
11011     export as_echo_n_body
11012     as_echo_n='sh -c $as_echo_n_body as_echo'
11013   fi
11014   export as_echo_body
11015   as_echo='sh -c $as_echo_body as_echo'
11016 fi
11017
11018 # The user is always right.
11019 if test "${PATH_SEPARATOR+set}" != set; then
11020   PATH_SEPARATOR=:
11021   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11022     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11023       PATH_SEPARATOR=';'
11024   }
11025 fi
11026
11027
11028 # IFS
11029 # We need space, tab and new line, in precisely that order.  Quoting is
11030 # there to prevent editors from complaining about space-tab.
11031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11032 # splitting by setting IFS to empty value.)
11033 IFS=" ""        $as_nl"
11034
11035 # Find who we are.  Look in the path if we contain no directory separator.
11036 case $0 in #((
11037   *[\\/]* ) as_myself=$0 ;;
11038   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041   IFS=$as_save_IFS
11042   test -z "$as_dir" && as_dir=.
11043     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11044   done
11045 IFS=$as_save_IFS
11046
11047      ;;
11048 esac
11049 # We did not find ourselves, most probably we were run as `sh COMMAND'
11050 # in which case we are not to be found in the path.
11051 if test "x$as_myself" = x; then
11052   as_myself=$0
11053 fi
11054 if test ! -f "$as_myself"; then
11055   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11056   exit 1
11057 fi
11058
11059 # Unset variables that we do not need and which cause bugs (e.g. in
11060 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
11061 # suppresses any "Segmentation fault" message there.  '((' could
11062 # trigger a bug in pdksh 5.2.14.
11063 for as_var in BASH_ENV ENV MAIL MAILPATH
11064 do eval test x\${$as_var+set} = xset \
11065   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11066 done
11067 PS1='$ '
11068 PS2='> '
11069 PS4='+ '
11070
11071 # NLS nuisances.
11072 LC_ALL=C
11073 export LC_ALL
11074 LANGUAGE=C
11075 export LANGUAGE
11076
11077 # CDPATH.
11078 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11079
11080
11081 # as_fn_error ERROR [LINENO LOG_FD]
11082 # ---------------------------------
11083 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11084 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11085 # script with status $?, using 1 if that was 0.
11086 as_fn_error ()
11087 {
11088   as_status=$?; test $as_status -eq 0 && as_status=1
11089   if test "$3"; then
11090     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11091     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11092   fi
11093   $as_echo "$as_me: error: $1" >&2
11094   as_fn_exit $as_status
11095 } # as_fn_error
11096
11097
11098 # as_fn_set_status STATUS
11099 # -----------------------
11100 # Set $? to STATUS, without forking.
11101 as_fn_set_status ()
11102 {
11103   return $1
11104 } # as_fn_set_status
11105
11106 # as_fn_exit STATUS
11107 # -----------------
11108 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11109 as_fn_exit ()
11110 {
11111   set +e
11112   as_fn_set_status $1
11113   exit $1
11114 } # as_fn_exit
11115
11116 # as_fn_unset VAR
11117 # ---------------
11118 # Portably unset VAR.
11119 as_fn_unset ()
11120 {
11121   { eval $1=; unset $1;}
11122 }
11123 as_unset=as_fn_unset
11124 # as_fn_append VAR VALUE
11125 # ----------------------
11126 # Append the text in VALUE to the end of the definition contained in VAR. Take
11127 # advantage of any shell optimizations that allow amortized linear growth over
11128 # repeated appends, instead of the typical quadratic growth present in naive
11129 # implementations.
11130 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11131   eval 'as_fn_append ()
11132   {
11133     eval $1+=\$2
11134   }'
11135 else
11136   as_fn_append ()
11137   {
11138     eval $1=\$$1\$2
11139   }
11140 fi # as_fn_append
11141
11142 # as_fn_arith ARG...
11143 # ------------------
11144 # Perform arithmetic evaluation on the ARGs, and store the result in the
11145 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11146 # must be portable across $(()) and expr.
11147 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11148   eval 'as_fn_arith ()
11149   {
11150     as_val=$(( $* ))
11151   }'
11152 else
11153   as_fn_arith ()
11154   {
11155     as_val=`expr "$@" || test $? -eq 1`
11156   }
11157 fi # as_fn_arith
11158
11159
11160 if expr a : '\(a\)' >/dev/null 2>&1 &&
11161    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11162   as_expr=expr
11163 else
11164   as_expr=false
11165 fi
11166
11167 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11168   as_basename=basename
11169 else
11170   as_basename=false
11171 fi
11172
11173 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11174   as_dirname=dirname
11175 else
11176   as_dirname=false
11177 fi
11178
11179 as_me=`$as_basename -- "$0" ||
11180 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11181          X"$0" : 'X\(//\)$' \| \
11182          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11183 $as_echo X/"$0" |
11184     sed '/^.*\/\([^/][^/]*\)\/*$/{
11185             s//\1/
11186             q
11187           }
11188           /^X\/\(\/\/\)$/{
11189             s//\1/
11190             q
11191           }
11192           /^X\/\(\/\).*/{
11193             s//\1/
11194             q
11195           }
11196           s/.*/./; q'`
11197
11198 # Avoid depending upon Character Ranges.
11199 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11200 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11201 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11202 as_cr_digits='0123456789'
11203 as_cr_alnum=$as_cr_Letters$as_cr_digits
11204
11205 ECHO_C= ECHO_N= ECHO_T=
11206 case `echo -n x` in #(((((
11207 -n*)
11208   case `echo 'xy\c'` in
11209   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11210   xy)  ECHO_C='\c';;
11211   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
11212        ECHO_T=' ';;
11213   esac;;
11214 *)
11215   ECHO_N='-n';;
11216 esac
11217
11218 rm -f conf$$ conf$$.exe conf$$.file
11219 if test -d conf$$.dir; then
11220   rm -f conf$$.dir/conf$$.file
11221 else
11222   rm -f conf$$.dir
11223   mkdir conf$$.dir 2>/dev/null
11224 fi
11225 if (echo >conf$$.file) 2>/dev/null; then
11226   if ln -s conf$$.file conf$$ 2>/dev/null; then
11227     as_ln_s='ln -s'
11228     # ... but there are two gotchas:
11229     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11230     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11231     # In both cases, we have to default to `cp -p'.
11232     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11233       as_ln_s='cp -p'
11234   elif ln conf$$.file conf$$ 2>/dev/null; then
11235     as_ln_s=ln
11236   else
11237     as_ln_s='cp -p'
11238   fi
11239 else
11240   as_ln_s='cp -p'
11241 fi
11242 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11243 rmdir conf$$.dir 2>/dev/null
11244
11245
11246 # as_fn_mkdir_p
11247 # -------------
11248 # Create "$as_dir" as a directory, including parents if necessary.
11249 as_fn_mkdir_p ()
11250 {
11251
11252   case $as_dir in #(
11253   -*) as_dir=./$as_dir;;
11254   esac
11255   test -d "$as_dir" || eval $as_mkdir_p || {
11256     as_dirs=
11257     while :; do
11258       case $as_dir in #(
11259       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11260       *) as_qdir=$as_dir;;
11261       esac
11262       as_dirs="'$as_qdir' $as_dirs"
11263       as_dir=`$as_dirname -- "$as_dir" ||
11264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11265          X"$as_dir" : 'X\(//\)[^/]' \| \
11266          X"$as_dir" : 'X\(//\)$' \| \
11267          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11268 $as_echo X"$as_dir" |
11269     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11270             s//\1/
11271             q
11272           }
11273           /^X\(\/\/\)[^/].*/{
11274             s//\1/
11275             q
11276           }
11277           /^X\(\/\/\)$/{
11278             s//\1/
11279             q
11280           }
11281           /^X\(\/\).*/{
11282             s//\1/
11283             q
11284           }
11285           s/.*/./; q'`
11286       test -d "$as_dir" && break
11287     done
11288     test -z "$as_dirs" || eval "mkdir $as_dirs"
11289   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11290
11291
11292 } # as_fn_mkdir_p
11293 if mkdir -p . 2>/dev/null; then
11294   as_mkdir_p='mkdir -p "$as_dir"'
11295 else
11296   test -d ./-p && rmdir ./-p
11297   as_mkdir_p=false
11298 fi
11299
11300 if test -x / >/dev/null 2>&1; then
11301   as_test_x='test -x'
11302 else
11303   if ls -dL / >/dev/null 2>&1; then
11304     as_ls_L_option=L
11305   else
11306     as_ls_L_option=
11307   fi
11308   as_test_x='
11309     eval sh -c '\''
11310       if test -d "$1"; then
11311         test -d "$1/.";
11312       else
11313         case $1 in #(
11314         -*)set "./$1";;
11315         esac;
11316         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11317         ???[sx]*):;;*)false;;esac;fi
11318     '\'' sh
11319   '
11320 fi
11321 as_executable_p=$as_test_x
11322
11323 # Sed expression to map a string onto a valid CPP name.
11324 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11325
11326 # Sed expression to map a string onto a valid variable name.
11327 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11328
11329
11330 exec 6>&1
11331 ## ----------------------------------- ##
11332 ## Main body of $CONFIG_STATUS script. ##
11333 ## ----------------------------------- ##
11334 _ASEOF
11335 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11336
11337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11338 # Save the log message, to keep $0 and so on meaningful, and to
11339 # report actual input values of CONFIG_FILES etc. instead of their
11340 # values after options handling.
11341 ac_log="
11342 This file was extended by LTO plugin for ld $as_me 0.1, which was
11343 generated by GNU Autoconf 2.64.  Invocation command line was
11344
11345   CONFIG_FILES    = $CONFIG_FILES
11346   CONFIG_HEADERS  = $CONFIG_HEADERS
11347   CONFIG_LINKS    = $CONFIG_LINKS
11348   CONFIG_COMMANDS = $CONFIG_COMMANDS
11349   $ $0 $@
11350
11351 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11352 "
11353
11354 _ACEOF
11355
11356 case $ac_config_files in *"
11357 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11358 esac
11359
11360 case $ac_config_headers in *"
11361 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11362 esac
11363
11364
11365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11366 # Files that config.status was made for.
11367 config_files="$ac_config_files"
11368 config_headers="$ac_config_headers"
11369 config_commands="$ac_config_commands"
11370
11371 _ACEOF
11372
11373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11374 ac_cs_usage="\
11375 \`$as_me' instantiates files and other configuration actions
11376 from templates according to the current configuration.  Unless the files
11377 and actions are specified as TAGs, all are instantiated by default.
11378
11379 Usage: $0 [OPTION]... [TAG]...
11380
11381   -h, --help       print this help, then exit
11382   -V, --version    print version number and configuration settings, then exit
11383   -q, --quiet, --silent
11384                    do not print progress messages
11385   -d, --debug      don't remove temporary files
11386       --recheck    update $as_me by reconfiguring in the same conditions
11387       --file=FILE[:TEMPLATE]
11388                    instantiate the configuration file FILE
11389       --header=FILE[:TEMPLATE]
11390                    instantiate the configuration header FILE
11391
11392 Configuration files:
11393 $config_files
11394
11395 Configuration headers:
11396 $config_headers
11397
11398 Configuration commands:
11399 $config_commands
11400
11401 Report bugs to the package provider."
11402
11403 _ACEOF
11404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11405 ac_cs_version="\\
11406 LTO plugin for ld config.status 0.1
11407 configured by $0, generated by GNU Autoconf 2.64,
11408   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11409
11410 Copyright (C) 2009 Free Software Foundation, Inc.
11411 This config.status script is free software; the Free Software Foundation
11412 gives unlimited permission to copy, distribute and modify it."
11413
11414 ac_pwd='$ac_pwd'
11415 srcdir='$srcdir'
11416 INSTALL='$INSTALL'
11417 MKDIR_P='$MKDIR_P'
11418 AWK='$AWK'
11419 test -n "\$AWK" || AWK=awk
11420 _ACEOF
11421
11422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11423 # The default lists apply if the user does not specify any file.
11424 ac_need_defaults=:
11425 while test $# != 0
11426 do
11427   case $1 in
11428   --*=*)
11429     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11430     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11431     ac_shift=:
11432     ;;
11433   *)
11434     ac_option=$1
11435     ac_optarg=$2
11436     ac_shift=shift
11437     ;;
11438   esac
11439
11440   case $ac_option in
11441   # Handling of the options.
11442   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11443     ac_cs_recheck=: ;;
11444   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11445     $as_echo "$ac_cs_version"; exit ;;
11446   --debug | --debu | --deb | --de | --d | -d )
11447     debug=: ;;
11448   --file | --fil | --fi | --f )
11449     $ac_shift
11450     case $ac_optarg in
11451     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11452     esac
11453     as_fn_append CONFIG_FILES " '$ac_optarg'"
11454     ac_need_defaults=false;;
11455   --header | --heade | --head | --hea )
11456     $ac_shift
11457     case $ac_optarg in
11458     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11459     esac
11460     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11461     ac_need_defaults=false;;
11462   --he | --h)
11463     # Conflict between --help and --header
11464     as_fn_error "ambiguous option: \`$1'
11465 Try \`$0 --help' for more information.";;
11466   --help | --hel | -h )
11467     $as_echo "$ac_cs_usage"; exit ;;
11468   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11469   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11470     ac_cs_silent=: ;;
11471
11472   # This is an error.
11473   -*) as_fn_error "unrecognized option: \`$1'
11474 Try \`$0 --help' for more information." ;;
11475
11476   *) as_fn_append ac_config_targets " $1"
11477      ac_need_defaults=false ;;
11478
11479   esac
11480   shift
11481 done
11482
11483 ac_configure_extra_args=
11484
11485 if $ac_cs_silent; then
11486   exec 6>/dev/null
11487   ac_configure_extra_args="$ac_configure_extra_args --silent"
11488 fi
11489
11490 _ACEOF
11491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11492 if \$ac_cs_recheck; then
11493   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11494   shift
11495   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11496   CONFIG_SHELL='$SHELL'
11497   export CONFIG_SHELL
11498   exec "\$@"
11499 fi
11500
11501 _ACEOF
11502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11503 exec 5>>config.log
11504 {
11505   echo
11506   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11507 ## Running $as_me. ##
11508 _ASBOX
11509   $as_echo "$ac_log"
11510 } >&5
11511
11512 _ACEOF
11513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11514 #
11515 # INIT-COMMANDS
11516 #
11517 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11518
11519
11520 # The HP-UX ksh and POSIX shell print the target directory to stdout
11521 # if CDPATH is set.
11522 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11523
11524 sed_quote_subst='$sed_quote_subst'
11525 double_quote_subst='$double_quote_subst'
11526 delay_variable_subst='$delay_variable_subst'
11527 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11528 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11529 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11530 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11531 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11532 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11533 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11534 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11535 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11536 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11537 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11538 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11539 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11540 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11541 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11542 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11543 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11544 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11545 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11546 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11547 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11548 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11549 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11550 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11551 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11552 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11553 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11554 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11555 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11556 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11557 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11558 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11559 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11560 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11561 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11562 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11563 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11564 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11565 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11566 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11567 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11568 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11569 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11570 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11571 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11572 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11573 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11574 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11575 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"`'
11576 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11577 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11578 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11579 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11580 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11581 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11582 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11583 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11584 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11585 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11586 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11587 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11588 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11589 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11590 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11591 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11592 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11593 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11594 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11595 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11596 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11597 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11598 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11599 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11600 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11601 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11602 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11603 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11604 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11605 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11606 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11607 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11608 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11609 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11610 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11611 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11612 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11613 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11614 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11615 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11616 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11617 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11618 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11619 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11620 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11621 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11622 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11623 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11624 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11625 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11626 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11627 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11628 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11629 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11630 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11631 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11632 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11633 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11634 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11635 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11636 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11637 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11638 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11639 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11640 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11641 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11642 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11643 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11644 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11645 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11646 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11647
11648 LTCC='$LTCC'
11649 LTCFLAGS='$LTCFLAGS'
11650 compiler='$compiler_DEFAULT'
11651
11652 # A function that is used when there is no print builtin or printf.
11653 func_fallback_echo ()
11654 {
11655   eval 'cat <<_LTECHO_EOF
11656 \$1
11657 _LTECHO_EOF'
11658 }
11659
11660 # Quote evaled strings.
11661 for var in SHELL \
11662 ECHO \
11663 SED \
11664 GREP \
11665 EGREP \
11666 FGREP \
11667 LD \
11668 NM \
11669 LN_S \
11670 lt_SP2NL \
11671 lt_NL2SP \
11672 reload_flag \
11673 OBJDUMP \
11674 deplibs_check_method \
11675 file_magic_cmd \
11676 AR \
11677 AR_FLAGS \
11678 STRIP \
11679 RANLIB \
11680 CC \
11681 CFLAGS \
11682 compiler \
11683 lt_cv_sys_global_symbol_pipe \
11684 lt_cv_sys_global_symbol_to_cdecl \
11685 lt_cv_sys_global_symbol_to_c_name_address \
11686 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11687 lt_prog_compiler_no_builtin_flag \
11688 lt_prog_compiler_wl \
11689 lt_prog_compiler_pic \
11690 lt_prog_compiler_static \
11691 lt_cv_prog_compiler_c_o \
11692 need_locks \
11693 DSYMUTIL \
11694 NMEDIT \
11695 LIPO \
11696 OTOOL \
11697 OTOOL64 \
11698 shrext_cmds \
11699 export_dynamic_flag_spec \
11700 whole_archive_flag_spec \
11701 compiler_needs_object \
11702 with_gnu_ld \
11703 allow_undefined_flag \
11704 no_undefined_flag \
11705 hardcode_libdir_flag_spec \
11706 hardcode_libdir_flag_spec_ld \
11707 hardcode_libdir_separator \
11708 fix_srcfile_path \
11709 exclude_expsyms \
11710 include_expsyms \
11711 file_list_spec \
11712 variables_saved_for_relink \
11713 libname_spec \
11714 library_names_spec \
11715 soname_spec \
11716 install_override_mode \
11717 finish_eval \
11718 old_striplib \
11719 striplib; do
11720     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11721     *[\\\\\\\`\\"\\\$]*)
11722       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11723       ;;
11724     *)
11725       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11726       ;;
11727     esac
11728 done
11729
11730 # Double-quote double-evaled strings.
11731 for var in reload_cmds \
11732 old_postinstall_cmds \
11733 old_postuninstall_cmds \
11734 old_archive_cmds \
11735 extract_expsyms_cmds \
11736 old_archive_from_new_cmds \
11737 old_archive_from_expsyms_cmds \
11738 archive_cmds \
11739 archive_expsym_cmds \
11740 module_cmds \
11741 module_expsym_cmds \
11742 export_symbols_cmds \
11743 prelink_cmds \
11744 postinstall_cmds \
11745 postuninstall_cmds \
11746 finish_cmds \
11747 sys_lib_search_path_spec \
11748 sys_lib_dlsearch_path_spec; do
11749     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11750     *[\\\\\\\`\\"\\\$]*)
11751       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11752       ;;
11753     *)
11754       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11755       ;;
11756     esac
11757 done
11758
11759 ac_aux_dir='$ac_aux_dir'
11760 xsi_shell='$xsi_shell'
11761 lt_shell_append='$lt_shell_append'
11762
11763 # See if we are running on zsh, and set the options which allow our
11764 # commands through without removal of \ escapes INIT.
11765 if test -n "\${ZSH_VERSION+set}" ; then
11766    setopt NO_GLOB_SUBST
11767 fi
11768
11769
11770     PACKAGE='$PACKAGE'
11771     VERSION='$VERSION'
11772     TIMESTAMP='$TIMESTAMP'
11773     RM='$RM'
11774     ofile='$ofile'
11775
11776
11777
11778
11779 _ACEOF
11780
11781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11782
11783 # Handling of arguments.
11784 for ac_config_target in $ac_config_targets
11785 do
11786   case $ac_config_target in
11787     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11788     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11789     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11790     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11791
11792   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11793   esac
11794 done
11795
11796
11797 # If the user did not use the arguments to specify the items to instantiate,
11798 # then the envvar interface is used.  Set only those that are not.
11799 # We use the long form for the default assignment because of an extremely
11800 # bizarre bug on SunOS 4.1.3.
11801 if $ac_need_defaults; then
11802   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11803   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11804   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11805 fi
11806
11807 # Have a temporary directory for convenience.  Make it in the build tree
11808 # simply because there is no reason against having it here, and in addition,
11809 # creating and moving files from /tmp can sometimes cause problems.
11810 # Hook for its removal unless debugging.
11811 # Note that there is a small window in which the directory will not be cleaned:
11812 # after its creation but before its name has been assigned to `$tmp'.
11813 $debug ||
11814 {
11815   tmp=
11816   trap 'exit_status=$?
11817   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11818 ' 0
11819   trap 'as_fn_exit 1' 1 2 13 15
11820 }
11821 # Create a (secure) tmp directory for tmp files.
11822
11823 {
11824   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11825   test -n "$tmp" && test -d "$tmp"
11826 }  ||
11827 {
11828   tmp=./conf$$-$RANDOM
11829   (umask 077 && mkdir "$tmp")
11830 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11831
11832 # Set up the scripts for CONFIG_FILES section.
11833 # No need to generate them if there are no CONFIG_FILES.
11834 # This happens for instance with `./config.status config.h'.
11835 if test -n "$CONFIG_FILES"; then
11836
11837
11838 ac_cr=`echo X | tr X '\015'`
11839 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11840 # But we know of no other shell where ac_cr would be empty at this
11841 # point, so we can use a bashism as a fallback.
11842 if test "x$ac_cr" = x; then
11843   eval ac_cr=\$\'\\r\'
11844 fi
11845 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11846 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11847   ac_cs_awk_cr='\r'
11848 else
11849   ac_cs_awk_cr=$ac_cr
11850 fi
11851
11852 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11853 _ACEOF
11854
11855
11856 {
11857   echo "cat >conf$$subs.awk <<_ACEOF" &&
11858   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11859   echo "_ACEOF"
11860 } >conf$$subs.sh ||
11861   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11862 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11863 ac_delim='%!_!# '
11864 for ac_last_try in false false false false false :; do
11865   . ./conf$$subs.sh ||
11866     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11867
11868   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11869   if test $ac_delim_n = $ac_delim_num; then
11870     break
11871   elif $ac_last_try; then
11872     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11873   else
11874     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11875   fi
11876 done
11877 rm -f conf$$subs.sh
11878
11879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11880 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11881 _ACEOF
11882 sed -n '
11883 h
11884 s/^/S["/; s/!.*/"]=/
11885 p
11886 g
11887 s/^[^!]*!//
11888 :repl
11889 t repl
11890 s/'"$ac_delim"'$//
11891 t delim
11892 :nl
11893 h
11894 s/\(.\{148\}\).*/\1/
11895 t more1
11896 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11897 p
11898 n
11899 b repl
11900 :more1
11901 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11902 p
11903 g
11904 s/.\{148\}//
11905 t nl
11906 :delim
11907 h
11908 s/\(.\{148\}\).*/\1/
11909 t more2
11910 s/["\\]/\\&/g; s/^/"/; s/$/"/
11911 p
11912 b
11913 :more2
11914 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11915 p
11916 g
11917 s/.\{148\}//
11918 t delim
11919 ' <conf$$subs.awk | sed '
11920 /^[^""]/{
11921   N
11922   s/\n//
11923 }
11924 ' >>$CONFIG_STATUS || ac_write_fail=1
11925 rm -f conf$$subs.awk
11926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11927 _ACAWK
11928 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11929   for (key in S) S_is_set[key] = 1
11930   FS = "\a"
11931
11932 }
11933 {
11934   line = $ 0
11935   nfields = split(line, field, "@")
11936   substed = 0
11937   len = length(field[1])
11938   for (i = 2; i < nfields; i++) {
11939     key = field[i]
11940     keylen = length(key)
11941     if (S_is_set[key]) {
11942       value = S[key]
11943       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11944       len += length(value) + length(field[++i])
11945       substed = 1
11946     } else
11947       len += 1 + keylen
11948   }
11949
11950   print line
11951 }
11952
11953 _ACAWK
11954 _ACEOF
11955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11956 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11957   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11958 else
11959   cat
11960 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11961   || as_fn_error "could not setup config files machinery" "$LINENO" 5
11962 _ACEOF
11963
11964 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11965 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11966 # trailing colons and then remove the whole line if VPATH becomes empty
11967 # (actually we leave an empty line to preserve line numbers).
11968 if test "x$srcdir" = x.; then
11969   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11970 s/:*\$(srcdir):*/:/
11971 s/:*\${srcdir}:*/:/
11972 s/:*@srcdir@:*/:/
11973 s/^\([^=]*=[     ]*\):*/\1/
11974 s/:*$//
11975 s/^[^=]*=[       ]*$//
11976 }'
11977 fi
11978
11979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11980 fi # test -n "$CONFIG_FILES"
11981
11982 # Set up the scripts for CONFIG_HEADERS section.
11983 # No need to generate them if there are no CONFIG_HEADERS.
11984 # This happens for instance with `./config.status Makefile'.
11985 if test -n "$CONFIG_HEADERS"; then
11986 cat >"$tmp/defines.awk" <<\_ACAWK ||
11987 BEGIN {
11988 _ACEOF
11989
11990 # Transform confdefs.h into an awk script `defines.awk', embedded as
11991 # here-document in config.status, that substitutes the proper values into
11992 # config.h.in to produce config.h.
11993
11994 # Create a delimiter string that does not exist in confdefs.h, to ease
11995 # handling of long lines.
11996 ac_delim='%!_!# '
11997 for ac_last_try in false false :; do
11998   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11999   if test -z "$ac_t"; then
12000     break
12001   elif $ac_last_try; then
12002     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12003   else
12004     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12005   fi
12006 done
12007
12008 # For the awk script, D is an array of macro values keyed by name,
12009 # likewise P contains macro parameters if any.  Preserve backslash
12010 # newline sequences.
12011
12012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12013 sed -n '
12014 s/.\{148\}/&'"$ac_delim"'/g
12015 t rset
12016 :rset
12017 s/^[     ]*#[    ]*define[       ][      ]*/ /
12018 t def
12019 d
12020 :def
12021 s/\\$//
12022 t bsnl
12023 s/["\\]/\\&/g
12024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12025 D["\1"]=" \3"/p
12026 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12027 d
12028 :bsnl
12029 s/["\\]/\\&/g
12030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12031 D["\1"]=" \3\\\\\\n"\\/p
12032 t cont
12033 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12034 t cont
12035 d
12036 :cont
12037 n
12038 s/.\{148\}/&'"$ac_delim"'/g
12039 t clear
12040 :clear
12041 s/\\$//
12042 t bsnlc
12043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12044 d
12045 :bsnlc
12046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12047 b cont
12048 ' <confdefs.h | sed '
12049 s/'"$ac_delim"'/"\\\
12050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12051
12052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053   for (key in D) D_is_set[key] = 1
12054   FS = "\a"
12055 }
12056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12057   line = \$ 0
12058   split(line, arg, " ")
12059   if (arg[1] == "#") {
12060     defundef = arg[2]
12061     mac1 = arg[3]
12062   } else {
12063     defundef = substr(arg[1], 2)
12064     mac1 = arg[2]
12065   }
12066   split(mac1, mac2, "(") #)
12067   macro = mac2[1]
12068   prefix = substr(line, 1, index(line, defundef) - 1)
12069   if (D_is_set[macro]) {
12070     # Preserve the white space surrounding the "#".
12071     print prefix "define", macro P[macro] D[macro]
12072     next
12073   } else {
12074     # Replace #undef with comments.  This is necessary, for example,
12075     # in the case of _POSIX_SOURCE, which is predefined and required
12076     # on some systems where configure will not decide to define it.
12077     if (defundef == "undef") {
12078       print "/*", prefix defundef, macro, "*/"
12079       next
12080     }
12081   }
12082 }
12083 { print }
12084 _ACAWK
12085 _ACEOF
12086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12087   as_fn_error "could not setup config headers machinery" "$LINENO" 5
12088 fi # test -n "$CONFIG_HEADERS"
12089
12090
12091 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12092 shift
12093 for ac_tag
12094 do
12095   case $ac_tag in
12096   :[FHLC]) ac_mode=$ac_tag; continue;;
12097   esac
12098   case $ac_mode$ac_tag in
12099   :[FHL]*:*);;
12100   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12101   :[FH]-) ac_tag=-:-;;
12102   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12103   esac
12104   ac_save_IFS=$IFS
12105   IFS=:
12106   set x $ac_tag
12107   IFS=$ac_save_IFS
12108   shift
12109   ac_file=$1
12110   shift
12111
12112   case $ac_mode in
12113   :L) ac_source=$1;;
12114   :[FH])
12115     ac_file_inputs=
12116     for ac_f
12117     do
12118       case $ac_f in
12119       -) ac_f="$tmp/stdin";;
12120       *) # Look for the file first in the build tree, then in the source tree
12121          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12122          # because $ac_f cannot contain `:'.
12123          test -f "$ac_f" ||
12124            case $ac_f in
12125            [\\/$]*) false;;
12126            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12127            esac ||
12128            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12129       esac
12130       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12131       as_fn_append ac_file_inputs " '$ac_f'"
12132     done
12133
12134     # Let's still pretend it is `configure' which instantiates (i.e., don't
12135     # use $as_me), people would be surprised to read:
12136     #    /* config.h.  Generated by config.status.  */
12137     configure_input='Generated from '`
12138           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12139         `' by configure.'
12140     if test x"$ac_file" != x-; then
12141       configure_input="$ac_file.  $configure_input"
12142       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12143 $as_echo "$as_me: creating $ac_file" >&6;}
12144     fi
12145     # Neutralize special characters interpreted by sed in replacement strings.
12146     case $configure_input in #(
12147     *\&* | *\|* | *\\* )
12148        ac_sed_conf_input=`$as_echo "$configure_input" |
12149        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12150     *) ac_sed_conf_input=$configure_input;;
12151     esac
12152
12153     case $ac_tag in
12154     *:-:* | *:-) cat >"$tmp/stdin" \
12155       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12156     esac
12157     ;;
12158   esac
12159
12160   ac_dir=`$as_dirname -- "$ac_file" ||
12161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12162          X"$ac_file" : 'X\(//\)[^/]' \| \
12163          X"$ac_file" : 'X\(//\)$' \| \
12164          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12165 $as_echo X"$ac_file" |
12166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12167             s//\1/
12168             q
12169           }
12170           /^X\(\/\/\)[^/].*/{
12171             s//\1/
12172             q
12173           }
12174           /^X\(\/\/\)$/{
12175             s//\1/
12176             q
12177           }
12178           /^X\(\/\).*/{
12179             s//\1/
12180             q
12181           }
12182           s/.*/./; q'`
12183   as_dir="$ac_dir"; as_fn_mkdir_p
12184   ac_builddir=.
12185
12186 case "$ac_dir" in
12187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12188 *)
12189   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12190   # A ".." for each directory in $ac_dir_suffix.
12191   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12192   case $ac_top_builddir_sub in
12193   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12194   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12195   esac ;;
12196 esac
12197 ac_abs_top_builddir=$ac_pwd
12198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12199 # for backward compatibility:
12200 ac_top_builddir=$ac_top_build_prefix
12201
12202 case $srcdir in
12203   .)  # We are building in place.
12204     ac_srcdir=.
12205     ac_top_srcdir=$ac_top_builddir_sub
12206     ac_abs_top_srcdir=$ac_pwd ;;
12207   [\\/]* | ?:[\\/]* )  # Absolute name.
12208     ac_srcdir=$srcdir$ac_dir_suffix;
12209     ac_top_srcdir=$srcdir
12210     ac_abs_top_srcdir=$srcdir ;;
12211   *) # Relative name.
12212     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12213     ac_top_srcdir=$ac_top_build_prefix$srcdir
12214     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12215 esac
12216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12217
12218
12219   case $ac_mode in
12220   :F)
12221   #
12222   # CONFIG_FILE
12223   #
12224
12225   case $INSTALL in
12226   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12227   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12228   esac
12229   ac_MKDIR_P=$MKDIR_P
12230   case $MKDIR_P in
12231   [\\/$]* | ?:[\\/]* ) ;;
12232   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12233   esac
12234 _ACEOF
12235
12236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12237 # If the template does not know about datarootdir, expand it.
12238 # FIXME: This hack should be removed a few years after 2.60.
12239 ac_datarootdir_hack=; ac_datarootdir_seen=
12240 ac_sed_dataroot='
12241 /datarootdir/ {
12242   p
12243   q
12244 }
12245 /@datadir@/p
12246 /@docdir@/p
12247 /@infodir@/p
12248 /@localedir@/p
12249 /@mandir@/p'
12250 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12251 *datarootdir*) ac_datarootdir_seen=yes;;
12252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12254 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12255 _ACEOF
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257   ac_datarootdir_hack='
12258   s&@datadir@&$datadir&g
12259   s&@docdir@&$docdir&g
12260   s&@infodir@&$infodir&g
12261   s&@localedir@&$localedir&g
12262   s&@mandir@&$mandir&g
12263   s&\\\${datarootdir}&$datarootdir&g' ;;
12264 esac
12265 _ACEOF
12266
12267 # Neutralize VPATH when `$srcdir' = `.'.
12268 # Shell code in configure.ac might set extrasub.
12269 # FIXME: do we really want to maintain this feature?
12270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12271 ac_sed_extra="$ac_vpsub
12272 $extrasub
12273 _ACEOF
12274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12275 :t
12276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12277 s|@configure_input@|$ac_sed_conf_input|;t t
12278 s&@top_builddir@&$ac_top_builddir_sub&;t t
12279 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12280 s&@srcdir@&$ac_srcdir&;t t
12281 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12282 s&@top_srcdir@&$ac_top_srcdir&;t t
12283 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12284 s&@builddir@&$ac_builddir&;t t
12285 s&@abs_builddir@&$ac_abs_builddir&;t t
12286 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12287 s&@INSTALL@&$ac_INSTALL&;t t
12288 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12289 $ac_datarootdir_hack
12290 "
12291 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12292   || as_fn_error "could not create $ac_file" "$LINENO" 5
12293
12294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12295   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12296   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12297   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12298 which seems to be undefined.  Please make sure it is defined." >&5
12299 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12300 which seems to be undefined.  Please make sure it is defined." >&2;}
12301
12302   rm -f "$tmp/stdin"
12303   case $ac_file in
12304   -) cat "$tmp/out" && rm -f "$tmp/out";;
12305   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12306   esac \
12307   || as_fn_error "could not create $ac_file" "$LINENO" 5
12308  ;;
12309   :H)
12310   #
12311   # CONFIG_HEADER
12312   #
12313   if test x"$ac_file" != x-; then
12314     {
12315       $as_echo "/* $configure_input  */" \
12316       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12317     } >"$tmp/config.h" \
12318       || as_fn_error "could not create $ac_file" "$LINENO" 5
12319     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12320       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12321 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12322     else
12323       rm -f "$ac_file"
12324       mv "$tmp/config.h" "$ac_file" \
12325         || as_fn_error "could not create $ac_file" "$LINENO" 5
12326     fi
12327   else
12328     $as_echo "/* $configure_input  */" \
12329       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12330       || as_fn_error "could not create -" "$LINENO" 5
12331   fi
12332 # Compute "$ac_file"'s index in $config_headers.
12333 _am_arg="$ac_file"
12334 _am_stamp_count=1
12335 for _am_header in $config_headers :; do
12336   case $_am_header in
12337     $_am_arg | $_am_arg:* )
12338       break ;;
12339     * )
12340       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12341   esac
12342 done
12343 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12344 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12345          X"$_am_arg" : 'X\(//\)[^/]' \| \
12346          X"$_am_arg" : 'X\(//\)$' \| \
12347          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12348 $as_echo X"$_am_arg" |
12349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12350             s//\1/
12351             q
12352           }
12353           /^X\(\/\/\)[^/].*/{
12354             s//\1/
12355             q
12356           }
12357           /^X\(\/\/\)$/{
12358             s//\1/
12359             q
12360           }
12361           /^X\(\/\).*/{
12362             s//\1/
12363             q
12364           }
12365           s/.*/./; q'`/stamp-h$_am_stamp_count
12366  ;;
12367
12368   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12369 $as_echo "$as_me: executing $ac_file commands" >&6;}
12370  ;;
12371   esac
12372
12373
12374   case $ac_file$ac_mode in
12375     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12376   # Autoconf 2.62 quotes --file arguments for eval, but not when files
12377   # are listed without --file.  Let's play safe and only enable the eval
12378   # if we detect the quoting.
12379   case $CONFIG_FILES in
12380   *\'*) eval set x "$CONFIG_FILES" ;;
12381   *)   set x $CONFIG_FILES ;;
12382   esac
12383   shift
12384   for mf
12385   do
12386     # Strip MF so we end up with the name of the file.
12387     mf=`echo "$mf" | sed -e 's/:.*$//'`
12388     # Check whether this is an Automake generated Makefile or not.
12389     # We used to match only the files named `Makefile.in', but
12390     # some people rename them; so instead we look at the file content.
12391     # Grep'ing the first line is not enough: some people post-process
12392     # each Makefile.in and add a new line on top of each file to say so.
12393     # Grep'ing the whole file is not good either: AIX grep has a line
12394     # limit of 2048, but all sed's we know have understand at least 4000.
12395     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12396       dirpart=`$as_dirname -- "$mf" ||
12397 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12398          X"$mf" : 'X\(//\)[^/]' \| \
12399          X"$mf" : 'X\(//\)$' \| \
12400          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12401 $as_echo X"$mf" |
12402     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12403             s//\1/
12404             q
12405           }
12406           /^X\(\/\/\)[^/].*/{
12407             s//\1/
12408             q
12409           }
12410           /^X\(\/\/\)$/{
12411             s//\1/
12412             q
12413           }
12414           /^X\(\/\).*/{
12415             s//\1/
12416             q
12417           }
12418           s/.*/./; q'`
12419     else
12420       continue
12421     fi
12422     # Extract the definition of DEPDIR, am__include, and am__quote
12423     # from the Makefile without running `make'.
12424     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12425     test -z "$DEPDIR" && continue
12426     am__include=`sed -n 's/^am__include = //p' < "$mf"`
12427     test -z "am__include" && continue
12428     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12429     # When using ansi2knr, U may be empty or an underscore; expand it
12430     U=`sed -n 's/^U = //p' < "$mf"`
12431     # Find all dependency output files, they are included files with
12432     # $(DEPDIR) in their names.  We invoke sed twice because it is the
12433     # simplest approach to changing $(DEPDIR) to its actual value in the
12434     # expansion.
12435     for file in `sed -n "
12436       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12437          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12438       # Make sure the directory exists.
12439       test -f "$dirpart/$file" && continue
12440       fdir=`$as_dirname -- "$file" ||
12441 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12442          X"$file" : 'X\(//\)[^/]' \| \
12443          X"$file" : 'X\(//\)$' \| \
12444          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12445 $as_echo X"$file" |
12446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12447             s//\1/
12448             q
12449           }
12450           /^X\(\/\/\)[^/].*/{
12451             s//\1/
12452             q
12453           }
12454           /^X\(\/\/\)$/{
12455             s//\1/
12456             q
12457           }
12458           /^X\(\/\).*/{
12459             s//\1/
12460             q
12461           }
12462           s/.*/./; q'`
12463       as_dir=$dirpart/$fdir; as_fn_mkdir_p
12464       # echo "creating $dirpart/$file"
12465       echo '# dummy' > "$dirpart/$file"
12466     done
12467   done
12468 }
12469  ;;
12470     "libtool":C)
12471
12472     # See if we are running on zsh, and set the options which allow our
12473     # commands through without removal of \ escapes.
12474     if test -n "${ZSH_VERSION+set}" ; then
12475       setopt NO_GLOB_SUBST
12476     fi
12477
12478     cfgfile="${ofile}T"
12479     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12480     $RM "$cfgfile"
12481
12482     cat <<_LT_EOF >> "$cfgfile"
12483 #! $SHELL
12484
12485 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12486 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12487 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12488 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12489 #
12490 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12491 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12492 #   Written by Gordon Matzigkeit, 1996
12493 #
12494 #   This file is part of GNU Libtool.
12495 #
12496 # GNU Libtool is free software; you can redistribute it and/or
12497 # modify it under the terms of the GNU General Public License as
12498 # published by the Free Software Foundation; either version 2 of
12499 # the License, or (at your option) any later version.
12500 #
12501 # As a special exception to the GNU General Public License,
12502 # if you distribute this file as part of a program or library that
12503 # is built using GNU Libtool, you may include this file under the
12504 # same distribution terms that you use for the rest of that program.
12505 #
12506 # GNU Libtool is distributed in the hope that it will be useful,
12507 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12508 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12509 # GNU General Public License for more details.
12510 #
12511 # You should have received a copy of the GNU General Public License
12512 # along with GNU Libtool; see the file COPYING.  If not, a copy
12513 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12514 # obtained by writing to the Free Software Foundation, Inc.,
12515 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12516
12517
12518 # The names of the tagged configurations supported by this script.
12519 available_tags=""
12520
12521 # ### BEGIN LIBTOOL CONFIG
12522
12523 # Which release of libtool.m4 was used?
12524 macro_version=$macro_version
12525 macro_revision=$macro_revision
12526
12527 # Whether or not to build shared libraries.
12528 build_libtool_libs=$enable_shared
12529
12530 # Whether or not to build static libraries.
12531 build_old_libs=$enable_static
12532
12533 # What type of objects to build.
12534 pic_mode=$pic_mode
12535
12536 # Whether or not to optimize for fast installation.
12537 fast_install=$enable_fast_install
12538
12539 # Shell to use when invoking shell scripts.
12540 SHELL=$lt_SHELL
12541
12542 # An echo program that protects backslashes.
12543 ECHO=$lt_ECHO
12544
12545 # The host system.
12546 host_alias=$host_alias
12547 host=$host
12548 host_os=$host_os
12549
12550 # The build system.
12551 build_alias=$build_alias
12552 build=$build
12553 build_os=$build_os
12554
12555 # A sed program that does not truncate output.
12556 SED=$lt_SED
12557
12558 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12559 Xsed="\$SED -e 1s/^X//"
12560
12561 # A grep program that handles long lines.
12562 GREP=$lt_GREP
12563
12564 # An ERE matcher.
12565 EGREP=$lt_EGREP
12566
12567 # A literal string matcher.
12568 FGREP=$lt_FGREP
12569
12570 # A BSD- or MS-compatible name lister.
12571 NM=$lt_NM
12572
12573 # Whether we need soft or hard links.
12574 LN_S=$lt_LN_S
12575
12576 # What is the maximum length of a command?
12577 max_cmd_len=$max_cmd_len
12578
12579 # Object file suffix (normally "o").
12580 objext=$ac_objext
12581
12582 # Executable file suffix (normally "").
12583 exeext=$exeext
12584
12585 # whether the shell understands "unset".
12586 lt_unset=$lt_unset
12587
12588 # turn spaces into newlines.
12589 SP2NL=$lt_lt_SP2NL
12590
12591 # turn newlines into spaces.
12592 NL2SP=$lt_lt_NL2SP
12593
12594 # An object symbol dumper.
12595 OBJDUMP=$lt_OBJDUMP
12596
12597 # Method to check whether dependent libraries are shared objects.
12598 deplibs_check_method=$lt_deplibs_check_method
12599
12600 # Command to use when deplibs_check_method == "file_magic".
12601 file_magic_cmd=$lt_file_magic_cmd
12602
12603 # The archiver.
12604 AR=$lt_AR
12605 AR_FLAGS=$lt_AR_FLAGS
12606
12607 # A symbol stripping program.
12608 STRIP=$lt_STRIP
12609
12610 # Commands used to install an old-style archive.
12611 RANLIB=$lt_RANLIB
12612 old_postinstall_cmds=$lt_old_postinstall_cmds
12613 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12614
12615 # Whether to use a lock for old archive extraction.
12616 lock_old_archive_extraction=$lock_old_archive_extraction
12617
12618 # A C compiler.
12619 LTCC=$lt_CC
12620
12621 # LTCC compiler flags.
12622 LTCFLAGS=$lt_CFLAGS
12623
12624 # Take the output of nm and produce a listing of raw symbols and C names.
12625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12626
12627 # Transform the output of nm in a proper C declaration.
12628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12629
12630 # Transform the output of nm in a C name address pair.
12631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12632
12633 # Transform the output of nm in a C name address pair when lib prefix is needed.
12634 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12635
12636 # The name of the directory that contains temporary libtool files.
12637 objdir=$objdir
12638
12639 # Used to examine libraries when file_magic_cmd begins with "file".
12640 MAGIC_CMD=$MAGIC_CMD
12641
12642 # Must we lock files when doing compilation?
12643 need_locks=$lt_need_locks
12644
12645 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12646 DSYMUTIL=$lt_DSYMUTIL
12647
12648 # Tool to change global to local symbols on Mac OS X.
12649 NMEDIT=$lt_NMEDIT
12650
12651 # Tool to manipulate fat objects and archives on Mac OS X.
12652 LIPO=$lt_LIPO
12653
12654 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
12655 OTOOL=$lt_OTOOL
12656
12657 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12658 OTOOL64=$lt_OTOOL64
12659
12660 # Old archive suffix (normally "a").
12661 libext=$libext
12662
12663 # Shared library suffix (normally ".so").
12664 shrext_cmds=$lt_shrext_cmds
12665
12666 # The commands to extract the exported symbol list from a shared archive.
12667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12668
12669 # Variables whose values should be saved in libtool wrapper scripts and
12670 # restored at link time.
12671 variables_saved_for_relink=$lt_variables_saved_for_relink
12672
12673 # Do we need the "lib" prefix for modules?
12674 need_lib_prefix=$need_lib_prefix
12675
12676 # Do we need a version for libraries?
12677 need_version=$need_version
12678
12679 # Library versioning type.
12680 version_type=$version_type
12681
12682 # Shared library runtime path variable.
12683 runpath_var=$runpath_var
12684
12685 # Shared library path variable.
12686 shlibpath_var=$shlibpath_var
12687
12688 # Is shlibpath searched before the hard-coded library search path?
12689 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12690
12691 # Format of library name prefix.
12692 libname_spec=$lt_libname_spec
12693
12694 # List of archive names.  First name is the real one, the rest are links.
12695 # The last name is the one that the linker finds with -lNAME
12696 library_names_spec=$lt_library_names_spec
12697
12698 # The coded name of the library, if different from the real name.
12699 soname_spec=$lt_soname_spec
12700
12701 # Permission mode override for installation of shared libraries.
12702 install_override_mode=$lt_install_override_mode
12703
12704 # Command to use after installation of a shared archive.
12705 postinstall_cmds=$lt_postinstall_cmds
12706
12707 # Command to use after uninstallation of a shared archive.
12708 postuninstall_cmds=$lt_postuninstall_cmds
12709
12710 # Commands used to finish a libtool library installation in a directory.
12711 finish_cmds=$lt_finish_cmds
12712
12713 # As "finish_cmds", except a single script fragment to be evaled but
12714 # not shown.
12715 finish_eval=$lt_finish_eval
12716
12717 # Whether we should hardcode library paths into libraries.
12718 hardcode_into_libs=$hardcode_into_libs
12719
12720 # Compile-time system search path for libraries.
12721 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12722
12723 # Run-time system search path for libraries.
12724 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12725
12726 # Whether dlopen is supported.
12727 dlopen_support=$enable_dlopen
12728
12729 # Whether dlopen of programs is supported.
12730 dlopen_self=$enable_dlopen_self
12731
12732 # Whether dlopen of statically linked programs is supported.
12733 dlopen_self_static=$enable_dlopen_self_static
12734
12735 # Commands to strip libraries.
12736 old_striplib=$lt_old_striplib
12737 striplib=$lt_striplib
12738
12739
12740 # The linker used to build libraries.
12741 LD=$lt_LD
12742
12743 # How to create reloadable object files.
12744 reload_flag=$lt_reload_flag
12745 reload_cmds=$lt_reload_cmds
12746
12747 # Commands used to build an old-style archive.
12748 old_archive_cmds=$lt_old_archive_cmds
12749
12750 # A language specific compiler.
12751 CC=$lt_compiler
12752
12753 # Is the compiler the GNU compiler?
12754 with_gcc=$GCC
12755
12756 # Compiler flag to turn off builtin functions.
12757 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12758
12759 # How to pass a linker flag through the compiler.
12760 wl=$lt_lt_prog_compiler_wl
12761
12762 # Additional compiler flags for building library objects.
12763 pic_flag=$lt_lt_prog_compiler_pic
12764
12765 # Compiler flag to prevent dynamic linking.
12766 link_static_flag=$lt_lt_prog_compiler_static
12767
12768 # Does compiler simultaneously support -c and -o options?
12769 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12770
12771 # Whether or not to add -lc for building shared libraries.
12772 build_libtool_need_lc=$archive_cmds_need_lc
12773
12774 # Whether or not to disallow shared libs when runtime libs are static.
12775 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12776
12777 # Compiler flag to allow reflexive dlopens.
12778 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12779
12780 # Compiler flag to generate shared objects directly from archives.
12781 whole_archive_flag_spec=$lt_whole_archive_flag_spec
12782
12783 # Whether the compiler copes with passing no objects directly.
12784 compiler_needs_object=$lt_compiler_needs_object
12785
12786 # Create an old-style archive from a shared archive.
12787 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12788
12789 # Create a temporary old-style archive to link instead of a shared archive.
12790 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12791
12792 # Commands used to build a shared archive.
12793 archive_cmds=$lt_archive_cmds
12794 archive_expsym_cmds=$lt_archive_expsym_cmds
12795
12796 # Commands used to build a loadable module if different from building
12797 # a shared archive.
12798 module_cmds=$lt_module_cmds
12799 module_expsym_cmds=$lt_module_expsym_cmds
12800
12801 # Whether we are building with GNU ld or not.
12802 with_gnu_ld=$lt_with_gnu_ld
12803
12804 # Flag that allows shared libraries with undefined symbols to be built.
12805 allow_undefined_flag=$lt_allow_undefined_flag
12806
12807 # Flag that enforces no undefined symbols.
12808 no_undefined_flag=$lt_no_undefined_flag
12809
12810 # Flag to hardcode \$libdir into a binary during linking.
12811 # This must work even if \$libdir does not exist
12812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12813
12814 # If ld is used when linking, flag to hardcode \$libdir into a binary
12815 # during linking.  This must work even if \$libdir does not exist.
12816 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12817
12818 # Whether we need a single "-rpath" flag with a separated argument.
12819 hardcode_libdir_separator=$lt_hardcode_libdir_separator
12820
12821 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12822 # DIR into the resulting binary.
12823 hardcode_direct=$hardcode_direct
12824
12825 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12826 # DIR into the resulting binary and the resulting library dependency is
12827 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12828 # library is relocated.
12829 hardcode_direct_absolute=$hardcode_direct_absolute
12830
12831 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12832 # into the resulting binary.
12833 hardcode_minus_L=$hardcode_minus_L
12834
12835 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12836 # into the resulting binary.
12837 hardcode_shlibpath_var=$hardcode_shlibpath_var
12838
12839 # Set to "yes" if building a shared library automatically hardcodes DIR
12840 # into the library and all subsequent libraries and executables linked
12841 # against it.
12842 hardcode_automatic=$hardcode_automatic
12843
12844 # Set to yes if linker adds runtime paths of dependent libraries
12845 # to runtime path list.
12846 inherit_rpath=$inherit_rpath
12847
12848 # Whether libtool must link a program against all its dependency libraries.
12849 link_all_deplibs=$link_all_deplibs
12850
12851 # Fix the shell variable \$srcfile for the compiler.
12852 fix_srcfile_path=$lt_fix_srcfile_path
12853
12854 # Set to "yes" if exported symbols are required.
12855 always_export_symbols=$always_export_symbols
12856
12857 # The commands to list exported symbols.
12858 export_symbols_cmds=$lt_export_symbols_cmds
12859
12860 # Symbols that should not be listed in the preloaded symbols.
12861 exclude_expsyms=$lt_exclude_expsyms
12862
12863 # Symbols that must always be exported.
12864 include_expsyms=$lt_include_expsyms
12865
12866 # Commands necessary for linking programs (against libraries) with templates.
12867 prelink_cmds=$lt_prelink_cmds
12868
12869 # Specify filename containing input files.
12870 file_list_spec=$lt_file_list_spec
12871
12872 # How to hardcode a shared library path into an executable.
12873 hardcode_action=$hardcode_action
12874
12875 # ### END LIBTOOL CONFIG
12876
12877 _LT_EOF
12878
12879   case $host_os in
12880   aix3*)
12881     cat <<\_LT_EOF >> "$cfgfile"
12882 # AIX sometimes has problems with the GCC collect2 program.  For some
12883 # reason, if we set the COLLECT_NAMES environment variable, the problems
12884 # vanish in a puff of smoke.
12885 if test "X${COLLECT_NAMES+set}" != Xset; then
12886   COLLECT_NAMES=
12887   export COLLECT_NAMES
12888 fi
12889 _LT_EOF
12890     ;;
12891   esac
12892
12893
12894 ltmain="$ac_aux_dir/ltmain.sh"
12895
12896
12897   # We use sed instead of cat because bash on DJGPP gets confused if
12898   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
12899   # text mode, it properly converts lines to CR/LF.  This bash problem
12900   # is reportedly fixed, but why not run on old versions too?
12901   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12902     || (rm -f "$cfgfile"; exit 1)
12903
12904   case $xsi_shell in
12905   yes)
12906     cat << \_LT_EOF >> "$cfgfile"
12907
12908 # func_dirname file append nondir_replacement
12909 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
12910 # otherwise set result to NONDIR_REPLACEMENT.
12911 func_dirname ()
12912 {
12913   case ${1} in
12914     */*) func_dirname_result="${1%/*}${2}" ;;
12915     *  ) func_dirname_result="${3}" ;;
12916   esac
12917 }
12918
12919 # func_basename file
12920 func_basename ()
12921 {
12922   func_basename_result="${1##*/}"
12923 }
12924
12925 # func_dirname_and_basename file append nondir_replacement
12926 # perform func_basename and func_dirname in a single function
12927 # call:
12928 #   dirname:  Compute the dirname of FILE.  If nonempty,
12929 #             add APPEND to the result, otherwise set result
12930 #             to NONDIR_REPLACEMENT.
12931 #             value returned in "$func_dirname_result"
12932 #   basename: Compute filename of FILE.
12933 #             value retuned in "$func_basename_result"
12934 # Implementation must be kept synchronized with func_dirname
12935 # and func_basename. For efficiency, we do not delegate to
12936 # those functions but instead duplicate the functionality here.
12937 func_dirname_and_basename ()
12938 {
12939   case ${1} in
12940     */*) func_dirname_result="${1%/*}${2}" ;;
12941     *  ) func_dirname_result="${3}" ;;
12942   esac
12943   func_basename_result="${1##*/}"
12944 }
12945
12946 # func_stripname prefix suffix name
12947 # strip PREFIX and SUFFIX off of NAME.
12948 # PREFIX and SUFFIX must not contain globbing or regex special
12949 # characters, hashes, percent signs, but SUFFIX may contain a leading
12950 # dot (in which case that matches only a dot).
12951 func_stripname ()
12952 {
12953   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12954   # positional parameters, so assign one to ordinary parameter first.
12955   func_stripname_result=${3}
12956   func_stripname_result=${func_stripname_result#"${1}"}
12957   func_stripname_result=${func_stripname_result%"${2}"}
12958 }
12959
12960 # func_opt_split
12961 func_opt_split ()
12962 {
12963   func_opt_split_opt=${1%%=*}
12964   func_opt_split_arg=${1#*=}
12965 }
12966
12967 # func_lo2o object
12968 func_lo2o ()
12969 {
12970   case ${1} in
12971     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12972     *)    func_lo2o_result=${1} ;;
12973   esac
12974 }
12975
12976 # func_xform libobj-or-source
12977 func_xform ()
12978 {
12979   func_xform_result=${1%.*}.lo
12980 }
12981
12982 # func_arith arithmetic-term...
12983 func_arith ()
12984 {
12985   func_arith_result=$(( $* ))
12986 }
12987
12988 # func_len string
12989 # STRING may not start with a hyphen.
12990 func_len ()
12991 {
12992   func_len_result=${#1}
12993 }
12994
12995 _LT_EOF
12996     ;;
12997   *) # Bourne compatible functions.
12998     cat << \_LT_EOF >> "$cfgfile"
12999
13000 # func_dirname file append nondir_replacement
13001 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13002 # otherwise set result to NONDIR_REPLACEMENT.
13003 func_dirname ()
13004 {
13005   # Extract subdirectory from the argument.
13006   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13007   if test "X$func_dirname_result" = "X${1}"; then
13008     func_dirname_result="${3}"
13009   else
13010     func_dirname_result="$func_dirname_result${2}"
13011   fi
13012 }
13013
13014 # func_basename file
13015 func_basename ()
13016 {
13017   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13018 }
13019
13020
13021 # func_stripname prefix suffix name
13022 # strip PREFIX and SUFFIX off of NAME.
13023 # PREFIX and SUFFIX must not contain globbing or regex special
13024 # characters, hashes, percent signs, but SUFFIX may contain a leading
13025 # dot (in which case that matches only a dot).
13026 # func_strip_suffix prefix name
13027 func_stripname ()
13028 {
13029   case ${2} in
13030     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13031     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13032   esac
13033 }
13034
13035 # sed scripts:
13036 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13037 my_sed_long_arg='1s/^-[^=]*=//'
13038
13039 # func_opt_split
13040 func_opt_split ()
13041 {
13042   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13043   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13044 }
13045
13046 # func_lo2o object
13047 func_lo2o ()
13048 {
13049   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13050 }
13051
13052 # func_xform libobj-or-source
13053 func_xform ()
13054 {
13055   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13056 }
13057
13058 # func_arith arithmetic-term...
13059 func_arith ()
13060 {
13061   func_arith_result=`expr "$@"`
13062 }
13063
13064 # func_len string
13065 # STRING may not start with a hyphen.
13066 func_len ()
13067 {
13068   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13069 }
13070
13071 _LT_EOF
13072 esac
13073
13074 case $lt_shell_append in
13075   yes)
13076     cat << \_LT_EOF >> "$cfgfile"
13077
13078 # func_append var value
13079 # Append VALUE to the end of shell variable VAR.
13080 func_append ()
13081 {
13082   eval "$1+=\$2"
13083 }
13084 _LT_EOF
13085     ;;
13086   *)
13087     cat << \_LT_EOF >> "$cfgfile"
13088
13089 # func_append var value
13090 # Append VALUE to the end of shell variable VAR.
13091 func_append ()
13092 {
13093   eval "$1=\$$1\$2"
13094 }
13095
13096 _LT_EOF
13097     ;;
13098   esac
13099
13100
13101   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13102     || (rm -f "$cfgfile"; exit 1)
13103
13104   mv -f "$cfgfile" "$ofile" ||
13105     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13106   chmod +x "$ofile"
13107
13108  ;;
13109
13110   esac
13111 done # for ac_tag
13112
13113
13114 as_fn_exit 0
13115 _ACEOF
13116 ac_clean_files=$ac_clean_files_save
13117
13118 test $ac_write_fail = 0 ||
13119   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13120
13121
13122 # configure is writing to config.log, and then calls config.status.
13123 # config.status does its own redirection, appending to config.log.
13124 # Unfortunately, on DOS this fails, as config.log is still kept open
13125 # by configure, so config.status won't be able to write to it; its
13126 # output is simply discarded.  So we exec the FD to /dev/null,
13127 # effectively closing config.log, so it can be properly (re)opened and
13128 # appended to by config.status.  When coming back to configure, we
13129 # need to make the FD available again.
13130 if test "$no_create" != yes; then
13131   ac_cs_success=:
13132   ac_config_status_args=
13133   test "$silent" = yes &&
13134     ac_config_status_args="$ac_config_status_args --quiet"
13135   exec 5>/dev/null
13136   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13137   exec 5>>config.log
13138   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13139   # would make configure fail if this is the last instruction.
13140   $ac_cs_success || as_fn_exit $?
13141 fi
13142 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13144 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13145 fi
13146