OSDN Git Service

Update some net tests from master sources.
[pf3gnuchains/gcc-fork.git] / libgo / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 case $0 in #((
91   *[\\/]* ) as_myself=$0 ;;
92   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95   IFS=$as_save_IFS
96   test -z "$as_dir" && as_dir=.
97     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98   done
99 IFS=$as_save_IFS
100
101      ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106   as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110   exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there.  '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136   emulate sh
137   NULLCMD=:
138   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139   # is contrary to our usage.  Disable this feature.
140   alias -g '\${1+\"\$@\"}'='\"\$@\"'
141   setopt NO_GLOB_SUBST
142 else
143   case \`(set -o) 2>/dev/null\` in #(
144   *posix*) :
145     set -o posix ;; #(
146   *) :
147      ;;
148 esac
149 fi
150 "
151   as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
173
174   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     PATH=/empty FPATH=/empty; export PATH FPATH
179     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181   if (eval "$as_required") 2>/dev/null; then :
182   as_have_required=yes
183 else
184   as_have_required=no
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
188 else
189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
198            for as_base in sh bash ksh sh5; do
199              # Try only shells that exist, to save several forks.
200              as_shell=$as_dir/$as_base
201              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   break 2
206 fi
207 fi
208            done;;
209        esac
210   as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214   CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
217
218
219       if test "x$CONFIG_SHELL" != x; then :
220   # We cannot yet assume a decent shell, so we have to provide a
221         # neutralization value for shells without unset; and this also
222         # works around shells that cannot unset nonexistent variables.
223         BASH_ENV=/dev/null
224         ENV=/dev/null
225         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226         export CONFIG_SHELL
227         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 fi
229
230     if test x$as_have_required = xno; then :
231   $as_echo "$0: This script requires a shell more modern than all"
232   $as_echo "$0: the shells that I found on your system."
233   if test x${ZSH_VERSION+set} = xset ; then
234     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236   else
237     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
241   fi
242   exit 1
243 fi
244 fi
245 fi
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
288   case $as_dir in #(
289   -*) as_dir=./$as_dir;;
290   esac
291   test -d "$as_dir" || eval $as_mkdir_p || {
292     as_dirs=
293     while :; do
294       case $as_dir in #(
295       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296       *) as_qdir=$as_dir;;
297       esac
298       as_dirs="'$as_qdir' $as_dirs"
299       as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301          X"$as_dir" : 'X\(//\)[^/]' \| \
302          X"$as_dir" : 'X\(//\)$' \| \
303          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306             s//\1/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
321           s/.*/./; q'`
322       test -d "$as_dir" && break
323     done
324     test -z "$as_dirs" || eval "mkdir $as_dirs"
325   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326
327
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336   eval 'as_fn_append ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353   eval 'as_fn_arith ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
371 {
372   as_status=$?; test $as_status -eq 0 && as_status=1
373   if test "$3"; then
374     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382    test "X`expr 00001 : '.*\(...\)'`" = X001; then
383   as_expr=expr
384 else
385   as_expr=false
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395   as_dirname=dirname
396 else
397   as_dirname=false
398 fi
399
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402          X"$0" : 'X\(//\)$' \| \
403          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405     sed '/^.*\/\([^/][^/]*\)\/*$/{
406             s//\1/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
425
426
427   as_lineno_1=$LINENO as_lineno_1a=$LINENO
428   as_lineno_2=$LINENO as_lineno_2a=$LINENO
429   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
449
450   # Don't try to exec as it changes $[0], causing all sort of problems
451   # (the dirname of $[0] is not the place where we might find the
452   # original and so on.  Autoconf is especially sensitive to this).
453   . "./$as_me.lineno"
454   # Exit status is that of the last command.
455   exit
456 }
457
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461   case `echo 'xy\c'` in
462   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
463   xy)  ECHO_C='\c';;
464   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
465        ECHO_T=' ';;
466   esac;;
467 *)
468   ECHO_N='-n';;
469 esac
470
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473   rm -f conf$$.dir/conf$$.file
474 else
475   rm -f conf$$.dir
476   mkdir conf$$.dir 2>/dev/null
477 fi
478 if (echo >conf$$.file) 2>/dev/null; then
479   if ln -s conf$$.file conf$$ 2>/dev/null; then
480     as_ln_s='ln -s'
481     # ... but there are two gotchas:
482     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484     # In both cases, we have to default to `cp -p'.
485     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486       as_ln_s='cp -p'
487   elif ln conf$$.file conf$$ 2>/dev/null; then
488     as_ln_s=ln
489   else
490     as_ln_s='cp -p'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
498 if mkdir -p . 2>/dev/null; then
499   as_mkdir_p='mkdir -p "$as_dir"'
500 else
501   test -d ./-p && rmdir ./-p
502   as_mkdir_p=false
503 fi
504
505 if test -x / >/dev/null 2>&1; then
506   as_test_x='test -x'
507 else
508   if ls -dL / >/dev/null 2>&1; then
509     as_ls_L_option=L
510   else
511     as_ls_L_option=
512   fi
513   as_test_x='
514     eval sh -c '\''
515       if test -d "$1"; then
516         test -d "$1/.";
517       else
518         case $1 in #(
519         -*)set "./$1";;
520         esac;
521         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522         ???[sx]*):;;*)false;;esac;fi
523     '\'' sh
524   '
525 fi
526 as_executable_p=$as_test_x
527
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555
556 # Identity of this package.
557 PACKAGE_NAME='package-unused'
558 PACKAGE_TARNAME='libgo'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='package-unused version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
563
564 ac_unique_file="Makefile.am"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 STRINGOPS_FLAG
606 HAVE_SYS_MMAN_H_FALSE
607 HAVE_SYS_MMAN_H_TRUE
608 PTHREAD_LIBS
609 PTHREAD_CFLAGS
610 NET_LIBS
611 MATH_LIBS
612 USING_SPLIT_STACK_FALSE
613 USING_SPLIT_STACK_TRUE
614 SPLIT_STACK
615 GO_DEBUG_PROC_REGS_OS_ARCH_FILE
616 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE
617 GOARCH
618 LIBGO_IS_X86_64_FALSE
619 LIBGO_IS_X86_64_TRUE
620 LIBGO_IS_SPARC64_FALSE
621 LIBGO_IS_SPARC64_TRUE
622 LIBGO_IS_SPARC_FALSE
623 LIBGO_IS_SPARC_TRUE
624 LIBGO_IS_PPC64_FALSE
625 LIBGO_IS_PPC64_TRUE
626 LIBGO_IS_PPC_FALSE
627 LIBGO_IS_PPC_TRUE
628 LIBGO_IS_MIPS64_FALSE
629 LIBGO_IS_MIPS64_TRUE
630 LIBGO_IS_MIPS_FALSE
631 LIBGO_IS_MIPS_TRUE
632 LIBGO_IS_M68K_FALSE
633 LIBGO_IS_M68K_TRUE
634 LIBGO_IS_ARM_FALSE
635 LIBGO_IS_ARM_TRUE
636 LIBGO_IS_386_FALSE
637 LIBGO_IS_386_TRUE
638 GOOS
639 LIBGO_IS_SOLARIS_FALSE
640 LIBGO_IS_SOLARIS_TRUE
641 LIBGO_IS_RTEMS_FALSE
642 LIBGO_IS_RTEMS_TRUE
643 LIBGO_IS_LINUX_FALSE
644 LIBGO_IS_LINUX_TRUE
645 LIBGO_IS_FREEBSD_FALSE
646 LIBGO_IS_FREEBSD_TRUE
647 LIBGO_IS_DARWIN_FALSE
648 LIBGO_IS_DARWIN_TRUE
649 LIBFFIINCS
650 LIBFFI
651 glibgo_toolexeclibdir
652 glibgo_toolexecdir
653 glibgo_prefixdir
654 WERROR
655 WARN_FLAGS
656 enable_static
657 enable_shared
658 CPP
659 OTOOL64
660 OTOOL
661 LIPO
662 NMEDIT
663 DSYMUTIL
664 AR
665 OBJDUMP
666 LN_S
667 NM
668 ac_ct_DUMPBIN
669 DUMPBIN
670 LIBTOOL
671 OBJCOPY
672 RANLIB
673 LD
674 FGREP
675 EGREP
676 GREP
677 SED
678 MAINT
679 MAINTAINER_MODE_FALSE
680 MAINTAINER_MODE_TRUE
681 GOCFLAGS
682 GOC
683 am__fastdepCC_FALSE
684 am__fastdepCC_TRUE
685 CCDEPMODE
686 AMDEPBACKSLASH
687 AMDEP_FALSE
688 AMDEP_TRUE
689 am__quote
690 am__include
691 DEPDIR
692 OBJEXT
693 EXEEXT
694 ac_ct_CC
695 CPPFLAGS
696 LDFLAGS
697 CFLAGS
698 CC
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_os
723 target_vendor
724 target_cpu
725 target
726 host_os
727 host_vendor
728 host_cpu
729 host
730 build_os
731 build_vendor
732 build_cpu
733 build
734 multi_basedir
735 libtool_VERSION
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL'
774 ac_subst_files=''
775 ac_user_opts='
776 enable_option_checking
777 enable_multilib
778 enable_dependency_tracking
779 enable_maintainer_mode
780 with_gnu_ld
781 enable_shared
782 enable_static
783 with_pic
784 enable_fast_install
785 enable_libtool_lock
786 enable_version_specific_runtime_libs
787 with_libffi
788 with_system_libunwind
789 '
790       ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CPP
794 CPPFLAGS'
795
796
797 # Initialize some variables set by options.
798 ac_init_help=
799 ac_init_version=false
800 ac_unrecognized_opts=
801 ac_unrecognized_sep=
802 # The variables have the same names as the options, with
803 # dashes changed to underlines.
804 cache_file=/dev/null
805 exec_prefix=NONE
806 no_create=
807 no_recursion=
808 prefix=NONE
809 program_prefix=NONE
810 program_suffix=NONE
811 program_transform_name=s,x,x,
812 silent=
813 site=
814 srcdir=
815 verbose=
816 x_includes=NONE
817 x_libraries=NONE
818
819 # Installation directory options.
820 # These are left unexpanded so users can "make install exec_prefix=/foo"
821 # and all the variables that are supposed to be based on exec_prefix
822 # by default will actually change.
823 # Use braces instead of parens because sh, perl, etc. also accept them.
824 # (The list follows the same order as the GNU Coding Standards.)
825 bindir='${exec_prefix}/bin'
826 sbindir='${exec_prefix}/sbin'
827 libexecdir='${exec_prefix}/libexec'
828 datarootdir='${prefix}/share'
829 datadir='${datarootdir}'
830 sysconfdir='${prefix}/etc'
831 sharedstatedir='${prefix}/com'
832 localstatedir='${prefix}/var'
833 includedir='${prefix}/include'
834 oldincludedir='/usr/include'
835 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
836 infodir='${datarootdir}/info'
837 htmldir='${docdir}'
838 dvidir='${docdir}'
839 pdfdir='${docdir}'
840 psdir='${docdir}'
841 libdir='${exec_prefix}/lib'
842 localedir='${datarootdir}/locale'
843 mandir='${datarootdir}/man'
844
845 ac_prev=
846 ac_dashdash=
847 for ac_option
848 do
849   # If the previous option needs an argument, assign it.
850   if test -n "$ac_prev"; then
851     eval $ac_prev=\$ac_option
852     ac_prev=
853     continue
854   fi
855
856   case $ac_option in
857   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
858   *)    ac_optarg=yes ;;
859   esac
860
861   # Accept the important Cygnus configure options, so we can diagnose typos.
862
863   case $ac_dashdash$ac_option in
864   --)
865     ac_dashdash=yes ;;
866
867   -bindir | --bindir | --bindi | --bind | --bin | --bi)
868     ac_prev=bindir ;;
869   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
870     bindir=$ac_optarg ;;
871
872   -build | --build | --buil | --bui | --bu)
873     ac_prev=build_alias ;;
874   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
875     build_alias=$ac_optarg ;;
876
877   -cache-file | --cache-file | --cache-fil | --cache-fi \
878   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
879     ac_prev=cache_file ;;
880   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
881   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
882     cache_file=$ac_optarg ;;
883
884   --config-cache | -C)
885     cache_file=config.cache ;;
886
887   -datadir | --datadir | --datadi | --datad)
888     ac_prev=datadir ;;
889   -datadir=* | --datadir=* | --datadi=* | --datad=*)
890     datadir=$ac_optarg ;;
891
892   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
893   | --dataroo | --dataro | --datar)
894     ac_prev=datarootdir ;;
895   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
896   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
897     datarootdir=$ac_optarg ;;
898
899   -disable-* | --disable-*)
900     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
901     # Reject names that are not valid shell variable names.
902     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
903       as_fn_error "invalid feature name: $ac_useropt"
904     ac_useropt_orig=$ac_useropt
905     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
906     case $ac_user_opts in
907       *"
908 "enable_$ac_useropt"
909 "*) ;;
910       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
911          ac_unrecognized_sep=', ';;
912     esac
913     eval enable_$ac_useropt=no ;;
914
915   -docdir | --docdir | --docdi | --doc | --do)
916     ac_prev=docdir ;;
917   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
918     docdir=$ac_optarg ;;
919
920   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
921     ac_prev=dvidir ;;
922   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
923     dvidir=$ac_optarg ;;
924
925   -enable-* | --enable-*)
926     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
927     # Reject names that are not valid shell variable names.
928     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929       as_fn_error "invalid feature name: $ac_useropt"
930     ac_useropt_orig=$ac_useropt
931     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932     case $ac_user_opts in
933       *"
934 "enable_$ac_useropt"
935 "*) ;;
936       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
937          ac_unrecognized_sep=', ';;
938     esac
939     eval enable_$ac_useropt=\$ac_optarg ;;
940
941   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
942   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
943   | --exec | --exe | --ex)
944     ac_prev=exec_prefix ;;
945   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
946   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
947   | --exec=* | --exe=* | --ex=*)
948     exec_prefix=$ac_optarg ;;
949
950   -gas | --gas | --ga | --g)
951     # Obsolete; use --with-gas.
952     with_gas=yes ;;
953
954   -help | --help | --hel | --he | -h)
955     ac_init_help=long ;;
956   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
957     ac_init_help=recursive ;;
958   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
959     ac_init_help=short ;;
960
961   -host | --host | --hos | --ho)
962     ac_prev=host_alias ;;
963   -host=* | --host=* | --hos=* | --ho=*)
964     host_alias=$ac_optarg ;;
965
966   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
967     ac_prev=htmldir ;;
968   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
969   | --ht=*)
970     htmldir=$ac_optarg ;;
971
972   -includedir | --includedir | --includedi | --included | --include \
973   | --includ | --inclu | --incl | --inc)
974     ac_prev=includedir ;;
975   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
976   | --includ=* | --inclu=* | --incl=* | --inc=*)
977     includedir=$ac_optarg ;;
978
979   -infodir | --infodir | --infodi | --infod | --info | --inf)
980     ac_prev=infodir ;;
981   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
982     infodir=$ac_optarg ;;
983
984   -libdir | --libdir | --libdi | --libd)
985     ac_prev=libdir ;;
986   -libdir=* | --libdir=* | --libdi=* | --libd=*)
987     libdir=$ac_optarg ;;
988
989   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
990   | --libexe | --libex | --libe)
991     ac_prev=libexecdir ;;
992   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
993   | --libexe=* | --libex=* | --libe=*)
994     libexecdir=$ac_optarg ;;
995
996   -localedir | --localedir | --localedi | --localed | --locale)
997     ac_prev=localedir ;;
998   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
999     localedir=$ac_optarg ;;
1000
1001   -localstatedir | --localstatedir | --localstatedi | --localstated \
1002   | --localstate | --localstat | --localsta | --localst | --locals)
1003     ac_prev=localstatedir ;;
1004   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1005   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1006     localstatedir=$ac_optarg ;;
1007
1008   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1009     ac_prev=mandir ;;
1010   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1011     mandir=$ac_optarg ;;
1012
1013   -nfp | --nfp | --nf)
1014     # Obsolete; use --without-fp.
1015     with_fp=no ;;
1016
1017   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1018   | --no-cr | --no-c | -n)
1019     no_create=yes ;;
1020
1021   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1022   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023     no_recursion=yes ;;
1024
1025   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1026   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1027   | --oldin | --oldi | --old | --ol | --o)
1028     ac_prev=oldincludedir ;;
1029   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1030   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1031   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1032     oldincludedir=$ac_optarg ;;
1033
1034   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1035     ac_prev=prefix ;;
1036   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1037     prefix=$ac_optarg ;;
1038
1039   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1040   | --program-pre | --program-pr | --program-p)
1041     ac_prev=program_prefix ;;
1042   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1043   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1044     program_prefix=$ac_optarg ;;
1045
1046   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1047   | --program-suf | --program-su | --program-s)
1048     ac_prev=program_suffix ;;
1049   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1050   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1051     program_suffix=$ac_optarg ;;
1052
1053   -program-transform-name | --program-transform-name \
1054   | --program-transform-nam | --program-transform-na \
1055   | --program-transform-n | --program-transform- \
1056   | --program-transform | --program-transfor \
1057   | --program-transfo | --program-transf \
1058   | --program-trans | --program-tran \
1059   | --progr-tra | --program-tr | --program-t)
1060     ac_prev=program_transform_name ;;
1061   -program-transform-name=* | --program-transform-name=* \
1062   | --program-transform-nam=* | --program-transform-na=* \
1063   | --program-transform-n=* | --program-transform-=* \
1064   | --program-transform=* | --program-transfor=* \
1065   | --program-transfo=* | --program-transf=* \
1066   | --program-trans=* | --program-tran=* \
1067   | --progr-tra=* | --program-tr=* | --program-t=*)
1068     program_transform_name=$ac_optarg ;;
1069
1070   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1071     ac_prev=pdfdir ;;
1072   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1073     pdfdir=$ac_optarg ;;
1074
1075   -psdir | --psdir | --psdi | --psd | --ps)
1076     ac_prev=psdir ;;
1077   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078     psdir=$ac_optarg ;;
1079
1080   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081   | -silent | --silent | --silen | --sile | --sil)
1082     silent=yes ;;
1083
1084   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1085     ac_prev=sbindir ;;
1086   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1087   | --sbi=* | --sb=*)
1088     sbindir=$ac_optarg ;;
1089
1090   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1091   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1092   | --sharedst | --shareds | --shared | --share | --shar \
1093   | --sha | --sh)
1094     ac_prev=sharedstatedir ;;
1095   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1096   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1097   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1098   | --sha=* | --sh=*)
1099     sharedstatedir=$ac_optarg ;;
1100
1101   -site | --site | --sit)
1102     ac_prev=site ;;
1103   -site=* | --site=* | --sit=*)
1104     site=$ac_optarg ;;
1105
1106   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1107     ac_prev=srcdir ;;
1108   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1109     srcdir=$ac_optarg ;;
1110
1111   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1112   | --syscon | --sysco | --sysc | --sys | --sy)
1113     ac_prev=sysconfdir ;;
1114   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1115   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1116     sysconfdir=$ac_optarg ;;
1117
1118   -target | --target | --targe | --targ | --tar | --ta | --t)
1119     ac_prev=target_alias ;;
1120   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1121     target_alias=$ac_optarg ;;
1122
1123   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124     verbose=yes ;;
1125
1126   -version | --version | --versio | --versi | --vers | -V)
1127     ac_init_version=: ;;
1128
1129   -with-* | --with-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=\$ac_optarg ;;
1144
1145   -without-* | --without-*)
1146     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1147     # Reject names that are not valid shell variable names.
1148     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149       as_fn_error "invalid package name: $ac_useropt"
1150     ac_useropt_orig=$ac_useropt
1151     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152     case $ac_user_opts in
1153       *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1157          ac_unrecognized_sep=', ';;
1158     esac
1159     eval with_$ac_useropt=no ;;
1160
1161   --x)
1162     # Obsolete; use --with-x.
1163     with_x=yes ;;
1164
1165   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1166   | --x-incl | --x-inc | --x-in | --x-i)
1167     ac_prev=x_includes ;;
1168   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1169   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1170     x_includes=$ac_optarg ;;
1171
1172   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1173   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1174     ac_prev=x_libraries ;;
1175   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1176   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1177     x_libraries=$ac_optarg ;;
1178
1179   -*) as_fn_error "unrecognized option: \`$ac_option'
1180 Try \`$0 --help' for more information."
1181     ;;
1182
1183   *=*)
1184     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185     # Reject names that are not valid shell variable names.
1186     case $ac_envvar in #(
1187       '' | [0-9]* | *[!_$as_cr_alnum]* )
1188       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1189     esac
1190     eval $ac_envvar=\$ac_optarg
1191     export $ac_envvar ;;
1192
1193   *)
1194     # FIXME: should be removed in autoconf 3.0.
1195     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1196     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1197       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1198     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199     ;;
1200
1201   esac
1202 done
1203
1204 if test -n "$ac_prev"; then
1205   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1206   as_fn_error "missing argument to $ac_option"
1207 fi
1208
1209 if test -n "$ac_unrecognized_opts"; then
1210   case $enable_option_checking in
1211     no) ;;
1212     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1213     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1214   esac
1215 fi
1216
1217 # Check all directory arguments for consistency.
1218 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1219                 datadir sysconfdir sharedstatedir localstatedir includedir \
1220                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1221                 libdir localedir mandir
1222 do
1223   eval ac_val=\$$ac_var
1224   # Remove trailing slashes.
1225   case $ac_val in
1226     */ )
1227       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1228       eval $ac_var=\$ac_val;;
1229   esac
1230   # Be sure to have absolute directory names.
1231   case $ac_val in
1232     [\\/$]* | ?:[\\/]* )  continue;;
1233     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1234   esac
1235   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1236 done
1237
1238 # There might be people who depend on the old broken behavior: `$host'
1239 # used to hold the argument of --host etc.
1240 # FIXME: To remove some day.
1241 build=$build_alias
1242 host=$host_alias
1243 target=$target_alias
1244
1245 # FIXME: To remove some day.
1246 if test "x$host_alias" != x; then
1247   if test "x$build_alias" = x; then
1248     cross_compiling=maybe
1249     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1250     If a cross compiler is detected then cross compile mode will be used." >&2
1251   elif test "x$build_alias" != "x$host_alias"; then
1252     cross_compiling=yes
1253   fi
1254 fi
1255
1256 ac_tool_prefix=
1257 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1258
1259 test "$silent" = yes && exec 6>/dev/null
1260
1261
1262 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1263 ac_ls_di=`ls -di .` &&
1264 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1265   as_fn_error "working directory cannot be determined"
1266 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1267   as_fn_error "pwd does not report name of working directory"
1268
1269
1270 # Find the source files, if location was not specified.
1271 if test -z "$srcdir"; then
1272   ac_srcdir_defaulted=yes
1273   # Try the directory containing this script, then the parent directory.
1274   ac_confdir=`$as_dirname -- "$as_myself" ||
1275 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1276          X"$as_myself" : 'X\(//\)[^/]' \| \
1277          X"$as_myself" : 'X\(//\)$' \| \
1278          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1279 $as_echo X"$as_myself" |
1280     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281             s//\1/
1282             q
1283           }
1284           /^X\(\/\/\)[^/].*/{
1285             s//\1/
1286             q
1287           }
1288           /^X\(\/\/\)$/{
1289             s//\1/
1290             q
1291           }
1292           /^X\(\/\).*/{
1293             s//\1/
1294             q
1295           }
1296           s/.*/./; q'`
1297   srcdir=$ac_confdir
1298   if test ! -r "$srcdir/$ac_unique_file"; then
1299     srcdir=..
1300   fi
1301 else
1302   ac_srcdir_defaulted=no
1303 fi
1304 if test ! -r "$srcdir/$ac_unique_file"; then
1305   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1306   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1307 fi
1308 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1309 ac_abs_confdir=`(
1310         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1311         pwd)`
1312 # When building in place, set srcdir=.
1313 if test "$ac_abs_confdir" = "$ac_pwd"; then
1314   srcdir=.
1315 fi
1316 # Remove unnecessary trailing slashes from srcdir.
1317 # Double slashes in file names in object file debugging info
1318 # mess up M-x gdb in Emacs.
1319 case $srcdir in
1320 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1321 esac
1322 for ac_var in $ac_precious_vars; do
1323   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1324   eval ac_env_${ac_var}_value=\$${ac_var}
1325   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1326   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1327 done
1328
1329 #
1330 # Report the --help message.
1331 #
1332 if test "$ac_init_help" = "long"; then
1333   # Omit some internal or obsolete options to make the list less imposing.
1334   # This message is too long to be a string in the A/UX 3.1 sh.
1335   cat <<_ACEOF
1336 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1337
1338 Usage: $0 [OPTION]... [VAR=VALUE]...
1339
1340 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1341 VAR=VALUE.  See below for descriptions of some of the useful variables.
1342
1343 Defaults for the options are specified in brackets.
1344
1345 Configuration:
1346   -h, --help              display this help and exit
1347       --help=short        display options specific to this package
1348       --help=recursive    display the short help of all the included packages
1349   -V, --version           display version information and exit
1350   -q, --quiet, --silent   do not print \`checking...' messages
1351       --cache-file=FILE   cache test results in FILE [disabled]
1352   -C, --config-cache      alias for \`--cache-file=config.cache'
1353   -n, --no-create         do not create output files
1354       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1355
1356 Installation directories:
1357   --prefix=PREFIX         install architecture-independent files in PREFIX
1358                           [$ac_default_prefix]
1359   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1360                           [PREFIX]
1361
1362 By default, \`make install' will install all the files in
1363 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1364 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1365 for instance \`--prefix=\$HOME'.
1366
1367 For better control, use the options below.
1368
1369 Fine tuning of the installation directories:
1370   --bindir=DIR            user executables [EPREFIX/bin]
1371   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1372   --libexecdir=DIR        program executables [EPREFIX/libexec]
1373   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1374   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1375   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1376   --libdir=DIR            object code libraries [EPREFIX/lib]
1377   --includedir=DIR        C header files [PREFIX/include]
1378   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1379   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1380   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1381   --infodir=DIR           info documentation [DATAROOTDIR/info]
1382   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1383   --mandir=DIR            man documentation [DATAROOTDIR/man]
1384   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1385   --htmldir=DIR           html documentation [DOCDIR]
1386   --dvidir=DIR            dvi documentation [DOCDIR]
1387   --pdfdir=DIR            pdf documentation [DOCDIR]
1388   --psdir=DIR             ps documentation [DOCDIR]
1389 _ACEOF
1390
1391   cat <<\_ACEOF
1392
1393 Program names:
1394   --program-prefix=PREFIX            prepend PREFIX to installed program names
1395   --program-suffix=SUFFIX            append SUFFIX to installed program names
1396   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1397
1398 System types:
1399   --build=BUILD     configure for building on BUILD [guessed]
1400   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1401   --target=TARGET   configure for building compilers for TARGET [HOST]
1402 _ACEOF
1403 fi
1404
1405 if test -n "$ac_init_help"; then
1406   case $ac_init_help in
1407      short | recursive ) echo "Configuration of package-unused version-unused:";;
1408    esac
1409   cat <<\_ACEOF
1410
1411 Optional Features:
1412   --disable-option-checking  ignore unrecognized --enable/--with options
1413   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1414   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1415   --enable-multilib       build many library versions (default)
1416   --disable-dependency-tracking  speeds up one-time build
1417   --enable-dependency-tracking   do not reject slow dependency extractors
1418   --enable-maintainer-mode  enable make rules and dependencies not useful
1419                           (and sometimes confusing) to the casual installer
1420   --enable-shared[=PKGS]  build shared libraries [default=yes]
1421   --enable-static[=PKGS]  build static libraries [default=yes]
1422   --enable-fast-install[=PKGS]
1423                           optimize for fast installation [default=yes]
1424   --disable-libtool-lock  avoid locking (might break parallel builds)
1425   --enable-version-specific-runtime-libs
1426                           Specify that runtime libraries should be installed
1427                           in a compiler-specific directory
1428
1429 Optional Packages:
1430   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1431   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1432   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433   --with-pic              try to use only PIC/non-PIC objects [default=use
1434                           both]
1435   --without-libffi        don't use libffi
1436   --with-system-libunwind use installed libunwind
1437
1438 Some influential environment variables:
1439   CC          C compiler command
1440   CFLAGS      C compiler flags
1441   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1442               nonstandard directory <lib dir>
1443   LIBS        libraries to pass to the linker, e.g. -l<library>
1444   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445               you have headers in a nonstandard directory <include dir>
1446   GOC         Go compiler command
1447   GOCFLAGS    Go compiler flags
1448   CPP         C preprocessor
1449
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1452
1453 Report bugs to the package provider.
1454 _ACEOF
1455 ac_status=$?
1456 fi
1457
1458 if test "$ac_init_help" = "recursive"; then
1459   # If there are subdirs, report their specific --help.
1460   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1461     test -d "$ac_dir" ||
1462       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1463       continue
1464     ac_builddir=.
1465
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1468 *)
1469   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470   # A ".." for each directory in $ac_dir_suffix.
1471   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472   case $ac_top_builddir_sub in
1473   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475   esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1481
1482 case $srcdir in
1483   .)  # We are building in place.
1484     ac_srcdir=.
1485     ac_top_srcdir=$ac_top_builddir_sub
1486     ac_abs_top_srcdir=$ac_pwd ;;
1487   [\\/]* | ?:[\\/]* )  # Absolute name.
1488     ac_srcdir=$srcdir$ac_dir_suffix;
1489     ac_top_srcdir=$srcdir
1490     ac_abs_top_srcdir=$srcdir ;;
1491   *) # Relative name.
1492     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493     ac_top_srcdir=$ac_top_build_prefix$srcdir
1494     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1497
1498     cd "$ac_dir" || { ac_status=$?; continue; }
1499     # Check for guested configure.
1500     if test -f "$ac_srcdir/configure.gnu"; then
1501       echo &&
1502       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503     elif test -f "$ac_srcdir/configure"; then
1504       echo &&
1505       $SHELL "$ac_srcdir/configure" --help=recursive
1506     else
1507       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508     fi || ac_status=$?
1509     cd "$ac_pwd" || { ac_status=$?; break; }
1510   done
1511 fi
1512
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515   cat <<\_ACEOF
1516 package-unused configure version-unused
1517 generated by GNU Autoconf 2.64
1518
1519 Copyright (C) 2009 Free Software Foundation, Inc.
1520 This configure script is free software; the Free Software Foundation
1521 gives unlimited permission to copy, distribute and modify it.
1522 _ACEOF
1523   exit
1524 fi
1525
1526 ## ------------------------ ##
1527 ## Autoconf initialization. ##
1528 ## ------------------------ ##
1529
1530 # ac_fn_c_try_compile LINENO
1531 # --------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_c_try_compile ()
1534 {
1535   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536   rm -f conftest.$ac_objext
1537   if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540   *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544   (eval "$ac_compile") 2>conftest.err
1545   ac_status=$?
1546   if test -s conftest.err; then
1547     grep -v '^ *+' conftest.err >conftest.er1
1548     cat conftest.er1 >&5
1549     mv -f conftest.er1 conftest.err
1550   fi
1551   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552   test $ac_status = 0; } && {
1553          test -z "$ac_c_werror_flag" ||
1554          test ! -s conftest.err
1555        } && test -s conftest.$ac_objext; then :
1556   ac_retval=0
1557 else
1558   $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1560
1561         ac_retval=1
1562 fi
1563   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564   return $ac_retval
1565
1566 } # ac_fn_c_try_compile
1567
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1572 {
1573   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574   rm -f conftest.$ac_objext conftest$ac_exeext
1575   if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578   *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582   (eval "$ac_link") 2>conftest.err
1583   ac_status=$?
1584   if test -s conftest.err; then
1585     grep -v '^ *+' conftest.err >conftest.er1
1586     cat conftest.er1 >&5
1587     mv -f conftest.er1 conftest.err
1588   fi
1589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590   test $ac_status = 0; } && {
1591          test -z "$ac_c_werror_flag" ||
1592          test ! -s conftest.err
1593        } && test -s conftest$ac_exeext && {
1594          test "$cross_compiling" = yes ||
1595          $as_test_x conftest$ac_exeext
1596        }; then :
1597   ac_retval=0
1598 else
1599   $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602         ac_retval=1
1603 fi
1604   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606   # interfere with the next link command; also delete a directory that is
1607   # left behind by Apple's compiler.  We do this before executing the actions.
1608   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610   return $ac_retval
1611
1612 } # ac_fn_c_try_link
1613
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624   $as_echo_n "(cached) " >&6
1625 else
1626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h.  */
1628 $4
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632   eval "$3=yes"
1633 else
1634   eval "$3=no"
1635 fi
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 fi
1638 eval ac_res=\$$3
1639                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642
1643 } # ac_fn_c_check_header_compile
1644
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1649 {
1650   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651   if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654   *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659   ac_status=$?
1660   if test -s conftest.err; then
1661     grep -v '^ *+' conftest.err >conftest.er1
1662     cat conftest.er1 >&5
1663     mv -f conftest.er1 conftest.err
1664   fi
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; } >/dev/null && {
1667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668          test ! -s conftest.err
1669        }; then :
1670   ac_retval=0
1671 else
1672   $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675     ac_retval=1
1676 fi
1677   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678   return $ac_retval
1679
1680 } # ac_fn_c_try_cpp
1681
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692   *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696   (eval "$ac_link") 2>&5
1697   ac_status=$?
1698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700   { { case "(($ac_try" in
1701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702   *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706   (eval "$ac_try") 2>&5
1707   ac_status=$?
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; }; }; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: program exited with status $ac_status" >&5
1713        $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716        ac_retval=$ac_status
1717 fi
1718   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720   return $ac_retval
1721
1722 } # ac_fn_c_try_run
1723
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733   $as_echo_n "(cached) " >&6
1734 else
1735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h.  */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1739 #define $2 innocuous_$2
1740
1741 /* System header to define __stub macros and hopefully few prototypes,
1742     which can conflict with char $2 (); below.
1743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744     <limits.h> exists even on freestanding compilers.  */
1745
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1751
1752 #undef $2
1753
1754 /* Override any GCC internal prototype to avoid an error.
1755    Use char because int might match the return type of a GCC
1756    builtin and then its argument prototype would still apply.  */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762     to always fail with ENOSYS.  Some functions are actually named
1763     something starting with __ and the normal name is an alias.  */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1767
1768 int
1769 main ()
1770 {
1771 return $2 ();
1772   ;
1773   return 0;
1774 }
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777   eval "$3=yes"
1778 else
1779   eval "$3=no"
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext \
1782     conftest$ac_exeext conftest.$ac_ext
1783 fi
1784 eval ac_res=\$$3
1785                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788
1789 } # ac_fn_c_check_func
1790
1791 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1794 # the include files in INCLUDES and setting the cache variable VAR
1795 # accordingly.
1796 ac_fn_c_check_header_mongrel ()
1797 {
1798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1801 $as_echo_n "checking for $2... " >&6; }
1802 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803   $as_echo_n "(cached) " >&6
1804 fi
1805 eval ac_res=\$$3
1806                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807 $as_echo "$ac_res" >&6; }
1808 else
1809   # Is the header compilable?
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1811 $as_echo_n "checking $2 usability... " >&6; }
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813 /* end confdefs.h.  */
1814 $4
1815 #include <$2>
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"; then :
1818   ac_header_compiler=yes
1819 else
1820   ac_header_compiler=no
1821 fi
1822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1824 $as_echo "$ac_header_compiler" >&6; }
1825
1826 # Is the header present?
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1828 $as_echo_n "checking $2 presence... " >&6; }
1829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1830 /* end confdefs.h.  */
1831 #include <$2>
1832 _ACEOF
1833 if ac_fn_c_try_cpp "$LINENO"; then :
1834   ac_header_preproc=yes
1835 else
1836   ac_header_preproc=no
1837 fi
1838 rm -f conftest.err conftest.$ac_ext
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1840 $as_echo "$ac_header_preproc" >&6; }
1841
1842 # So?  What about this header?
1843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1844   yes:no: )
1845     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1846 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1849     ;;
1850   no:yes:* )
1851     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1852 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1853     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1854 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1855     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1856 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1857     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1858 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1859     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1860 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1861     ;;
1862 esac
1863   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866   $as_echo_n "(cached) " >&6
1867 else
1868   eval "$3=\$ac_header_compiler"
1869 fi
1870 eval ac_res=\$$3
1871                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872 $as_echo "$ac_res" >&6; }
1873 fi
1874   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1875
1876 } # ac_fn_c_check_header_mongrel
1877
1878 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1879 # -------------------------------------------
1880 # Tests whether TYPE exists after having included INCLUDES, setting cache
1881 # variable VAR accordingly.
1882 ac_fn_c_check_type ()
1883 {
1884   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888   $as_echo_n "(cached) " >&6
1889 else
1890   eval "$3=no"
1891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 int
1895 main ()
1896 {
1897 if (sizeof ($2))
1898          return 0;
1899   ;
1900   return 0;
1901 }
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905 /* end confdefs.h.  */
1906 $4
1907 int
1908 main ()
1909 {
1910 if (sizeof (($2)))
1911             return 0;
1912   ;
1913   return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917
1918 else
1919   eval "$3=yes"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929
1930 } # ac_fn_c_check_type
1931 cat >config.log <<_ACEOF
1932 This file contains any messages produced by compilers while
1933 running configure, to aid debugging if configure makes a mistake.
1934
1935 It was created by package-unused $as_me version-unused, which was
1936 generated by GNU Autoconf 2.64.  Invocation command line was
1937
1938   $ $0 $@
1939
1940 _ACEOF
1941 exec 5>>config.log
1942 {
1943 cat <<_ASUNAME
1944 ## --------- ##
1945 ## Platform. ##
1946 ## --------- ##
1947
1948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1953
1954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1955 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1956
1957 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1958 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1960 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1961 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1962 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1963 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1964
1965 _ASUNAME
1966
1967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 for as_dir in $PATH
1969 do
1970   IFS=$as_save_IFS
1971   test -z "$as_dir" && as_dir=.
1972     $as_echo "PATH: $as_dir"
1973   done
1974 IFS=$as_save_IFS
1975
1976 } >&5
1977
1978 cat >&5 <<_ACEOF
1979
1980
1981 ## ----------- ##
1982 ## Core tests. ##
1983 ## ----------- ##
1984
1985 _ACEOF
1986
1987
1988 # Keep a trace of the command line.
1989 # Strip out --no-create and --no-recursion so they do not pile up.
1990 # Strip out --silent because we don't want to record it for future runs.
1991 # Also quote any args containing shell meta-characters.
1992 # Make two passes to allow for proper duplicate-argument suppression.
1993 ac_configure_args=
1994 ac_configure_args0=
1995 ac_configure_args1=
1996 ac_must_keep_next=false
1997 for ac_pass in 1 2
1998 do
1999   for ac_arg
2000   do
2001     case $ac_arg in
2002     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2003     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2004     | -silent | --silent | --silen | --sile | --sil)
2005       continue ;;
2006     *\'*)
2007       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2008     esac
2009     case $ac_pass in
2010     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2011     2)
2012       as_fn_append ac_configure_args1 " '$ac_arg'"
2013       if test $ac_must_keep_next = true; then
2014         ac_must_keep_next=false # Got value, back to normal.
2015       else
2016         case $ac_arg in
2017           *=* | --config-cache | -C | -disable-* | --disable-* \
2018           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2019           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2020           | -with-* | --with-* | -without-* | --without-* | --x)
2021             case "$ac_configure_args0 " in
2022               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2023             esac
2024             ;;
2025           -* ) ac_must_keep_next=true ;;
2026         esac
2027       fi
2028       as_fn_append ac_configure_args " '$ac_arg'"
2029       ;;
2030     esac
2031   done
2032 done
2033 { ac_configure_args0=; unset ac_configure_args0;}
2034 { ac_configure_args1=; unset ac_configure_args1;}
2035
2036 # When interrupted or exit'd, cleanup temporary files, and complete
2037 # config.log.  We remove comments because anyway the quotes in there
2038 # would cause problems or look ugly.
2039 # WARNING: Use '\'' to represent an apostrophe within the trap.
2040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2041 trap 'exit_status=$?
2042   # Save into config.log some information that might help in debugging.
2043   {
2044     echo
2045
2046     cat <<\_ASBOX
2047 ## ---------------- ##
2048 ## Cache variables. ##
2049 ## ---------------- ##
2050 _ASBOX
2051     echo
2052     # The following way of writing the cache mishandles newlines in values,
2053 (
2054   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055     eval ac_val=\$$ac_var
2056     case $ac_val in #(
2057     *${as_nl}*)
2058       case $ac_var in #(
2059       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061       esac
2062       case $ac_var in #(
2063       _ | IFS | as_nl) ;; #(
2064       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065       *) { eval $ac_var=; unset $ac_var;} ;;
2066       esac ;;
2067     esac
2068   done
2069   (set) 2>&1 |
2070     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071     *${as_nl}ac_space=\ *)
2072       sed -n \
2073         "s/'\''/'\''\\\\'\'''\''/g;
2074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075       ;; #(
2076     *)
2077       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078       ;;
2079     esac |
2080     sort
2081 )
2082     echo
2083
2084     cat <<\_ASBOX
2085 ## ----------------- ##
2086 ## Output variables. ##
2087 ## ----------------- ##
2088 _ASBOX
2089     echo
2090     for ac_var in $ac_subst_vars
2091     do
2092       eval ac_val=\$$ac_var
2093       case $ac_val in
2094       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095       esac
2096       $as_echo "$ac_var='\''$ac_val'\''"
2097     done | sort
2098     echo
2099
2100     if test -n "$ac_subst_files"; then
2101       cat <<\_ASBOX
2102 ## ------------------- ##
2103 ## File substitutions. ##
2104 ## ------------------- ##
2105 _ASBOX
2106       echo
2107       for ac_var in $ac_subst_files
2108       do
2109         eval ac_val=\$$ac_var
2110         case $ac_val in
2111         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2112         esac
2113         $as_echo "$ac_var='\''$ac_val'\''"
2114       done | sort
2115       echo
2116     fi
2117
2118     if test -s confdefs.h; then
2119       cat <<\_ASBOX
2120 ## ----------- ##
2121 ## confdefs.h. ##
2122 ## ----------- ##
2123 _ASBOX
2124       echo
2125       cat confdefs.h
2126       echo
2127     fi
2128     test "$ac_signal" != 0 &&
2129       $as_echo "$as_me: caught signal $ac_signal"
2130     $as_echo "$as_me: exit $exit_status"
2131   } >&5
2132   rm -f core *.core core.conftest.* &&
2133     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134     exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 $as_echo "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 cat >>confdefs.h <<_ACEOF
2149 #define PACKAGE_NAME "$PACKAGE_NAME"
2150 _ACEOF
2151
2152 cat >>confdefs.h <<_ACEOF
2153 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2154 _ACEOF
2155
2156 cat >>confdefs.h <<_ACEOF
2157 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2158 _ACEOF
2159
2160 cat >>confdefs.h <<_ACEOF
2161 #define PACKAGE_STRING "$PACKAGE_STRING"
2162 _ACEOF
2163
2164 cat >>confdefs.h <<_ACEOF
2165 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2166 _ACEOF
2167
2168 cat >>confdefs.h <<_ACEOF
2169 #define PACKAGE_URL "$PACKAGE_URL"
2170 _ACEOF
2171
2172
2173 # Let the site file select an alternate cache file if it wants to.
2174 # Prefer an explicitly selected file to automatically selected ones.
2175 ac_site_file1=NONE
2176 ac_site_file2=NONE
2177 if test -n "$CONFIG_SITE"; then
2178   ac_site_file1=$CONFIG_SITE
2179 elif test "x$prefix" != xNONE; then
2180   ac_site_file1=$prefix/share/config.site
2181   ac_site_file2=$prefix/etc/config.site
2182 else
2183   ac_site_file1=$ac_default_prefix/share/config.site
2184   ac_site_file2=$ac_default_prefix/etc/config.site
2185 fi
2186 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2187 do
2188   test "x$ac_site_file" = xNONE && continue
2189   if test -r "$ac_site_file"; then
2190     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2191 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2192     sed 's/^/| /' "$ac_site_file" >&5
2193     . "$ac_site_file"
2194   fi
2195 done
2196
2197 if test -r "$cache_file"; then
2198   # Some versions of bash will fail to source /dev/null (special
2199   # files actually), so we avoid doing that.
2200   if test -f "$cache_file"; then
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2202 $as_echo "$as_me: loading cache $cache_file" >&6;}
2203     case $cache_file in
2204       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2205       *)                      . "./$cache_file";;
2206     esac
2207   fi
2208 else
2209   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2210 $as_echo "$as_me: creating cache $cache_file" >&6;}
2211   >$cache_file
2212 fi
2213
2214 # Check that the precious variables saved in the cache have kept the same
2215 # value.
2216 ac_cache_corrupted=false
2217 for ac_var in $ac_precious_vars; do
2218   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2219   eval ac_new_set=\$ac_env_${ac_var}_set
2220   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2221   eval ac_new_val=\$ac_env_${ac_var}_value
2222   case $ac_old_set,$ac_new_set in
2223     set,)
2224       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2225 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2226       ac_cache_corrupted=: ;;
2227     ,set)
2228       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2229 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2230       ac_cache_corrupted=: ;;
2231     ,);;
2232     *)
2233       if test "x$ac_old_val" != "x$ac_new_val"; then
2234         # differences in whitespace do not lead to failure.
2235         ac_old_val_w=`echo x $ac_old_val`
2236         ac_new_val_w=`echo x $ac_new_val`
2237         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2238           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2239 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2240           ac_cache_corrupted=:
2241         else
2242           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2243 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2244           eval $ac_var=\$ac_old_val
2245         fi
2246         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2247 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2248         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2249 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2250       fi;;
2251   esac
2252   # Pass precious variables to config.status.
2253   if test "$ac_new_set" = set; then
2254     case $ac_new_val in
2255     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2256     *) ac_arg=$ac_var=$ac_new_val ;;
2257     esac
2258     case " $ac_configure_args " in
2259       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2260       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2261     esac
2262   fi
2263 done
2264 if $ac_cache_corrupted; then
2265   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2266 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2267   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2268 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2269   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2270 fi
2271 ## -------------------- ##
2272 ## Main body of script. ##
2273 ## -------------------- ##
2274
2275 ac_ext=c
2276 ac_cpp='$CPP $CPPFLAGS'
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2280
2281
2282
2283
2284
2285
2286 ac_config_headers="$ac_config_headers config.h"
2287
2288
2289 libtool_VERSION=1:0:0
2290
2291
2292 # Default to --enable-multilib
2293 # Check whether --enable-multilib was given.
2294 if test "${enable_multilib+set}" = set; then :
2295   enableval=$enable_multilib; case "$enableval" in
2296   yes) multilib=yes ;;
2297   no)  multilib=no ;;
2298   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2299  esac
2300 else
2301   multilib=yes
2302 fi
2303
2304
2305 # We may get other options which we leave undocumented:
2306 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2307 # See config-ml.in if you want the gory details.
2308
2309 if test "$srcdir" = "."; then
2310   if test "$with_target_subdir" != "."; then
2311     multi_basedir="$srcdir/$with_multisrctop../.."
2312   else
2313     multi_basedir="$srcdir/$with_multisrctop.."
2314   fi
2315 else
2316   multi_basedir="$srcdir/.."
2317 fi
2318
2319
2320 # Even if the default multilib is not a cross compilation,
2321 # it may be that some of the other multilibs are.
2322 if test $cross_compiling = no && test $multilib = yes \
2323    && test "x${with_multisubdir}" != x ; then
2324    cross_compiling=maybe
2325 fi
2326
2327 ac_config_commands="$ac_config_commands default-1"
2328
2329
2330 ac_aux_dir=
2331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2332   for ac_t in install-sh install.sh shtool; do
2333     if test -f "$ac_dir/$ac_t"; then
2334       ac_aux_dir=$ac_dir
2335       ac_install_sh="$ac_aux_dir/$ac_t -c"
2336       break 2
2337     fi
2338   done
2339 done
2340 if test -z "$ac_aux_dir"; then
2341   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2342 fi
2343
2344 # These three variables are undocumented and unsupported,
2345 # and are intended to be withdrawn in a future Autoconf release.
2346 # They can cause serious problems if a builder's source tree is in a directory
2347 # whose full name contains unusual characters.
2348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2350 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2351
2352
2353 # Make sure we can run config.sub.
2354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2355   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2356
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2358 $as_echo_n "checking build system type... " >&6; }
2359 if test "${ac_cv_build+set}" = set; then :
2360   $as_echo_n "(cached) " >&6
2361 else
2362   ac_build_alias=$build_alias
2363 test "x$ac_build_alias" = x &&
2364   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2365 test "x$ac_build_alias" = x &&
2366   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2368   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2369
2370 fi
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2372 $as_echo "$ac_cv_build" >&6; }
2373 case $ac_cv_build in
2374 *-*-*) ;;
2375 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2376 esac
2377 build=$ac_cv_build
2378 ac_save_IFS=$IFS; IFS='-'
2379 set x $ac_cv_build
2380 shift
2381 build_cpu=$1
2382 build_vendor=$2
2383 shift; shift
2384 # Remember, the first character of IFS is used to create $*,
2385 # except with old shells:
2386 build_os=$*
2387 IFS=$ac_save_IFS
2388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2389
2390
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2392 $as_echo_n "checking host system type... " >&6; }
2393 if test "${ac_cv_host+set}" = set; then :
2394   $as_echo_n "(cached) " >&6
2395 else
2396   if test "x$host_alias" = x; then
2397   ac_cv_host=$ac_cv_build
2398 else
2399   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2400     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2401 fi
2402
2403 fi
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2405 $as_echo "$ac_cv_host" >&6; }
2406 case $ac_cv_host in
2407 *-*-*) ;;
2408 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2409 esac
2410 host=$ac_cv_host
2411 ac_save_IFS=$IFS; IFS='-'
2412 set x $ac_cv_host
2413 shift
2414 host_cpu=$1
2415 host_vendor=$2
2416 shift; shift
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2419 host_os=$*
2420 IFS=$ac_save_IFS
2421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2422
2423
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2425 $as_echo_n "checking target system type... " >&6; }
2426 if test "${ac_cv_target+set}" = set; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   if test "x$target_alias" = x; then
2430   ac_cv_target=$ac_cv_host
2431 else
2432   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2433     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2434 fi
2435
2436 fi
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2438 $as_echo "$ac_cv_target" >&6; }
2439 case $ac_cv_target in
2440 *-*-*) ;;
2441 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2442 esac
2443 target=$ac_cv_target
2444 ac_save_IFS=$IFS; IFS='-'
2445 set x $ac_cv_target
2446 shift
2447 target_cpu=$1
2448 target_vendor=$2
2449 shift; shift
2450 # Remember, the first character of IFS is used to create $*,
2451 # except with old shells:
2452 target_os=$*
2453 IFS=$ac_save_IFS
2454 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2455
2456
2457 # The aliases save the names the user supplied, while $host etc.
2458 # will get canonicalized.
2459 test -n "$target_alias" &&
2460   test "$program_prefix$program_suffix$program_transform_name" = \
2461     NONENONEs,x,x, &&
2462   program_prefix=${target_alias}-
2463
2464 target_alias=${target_alias-$host_alias}
2465
2466 am__api_version='1.11'
2467
2468 # Find a good install program.  We prefer a C program (faster),
2469 # so one script is as good as another.  But avoid the broken or
2470 # incompatible versions:
2471 # SysV /etc/install, /usr/sbin/install
2472 # SunOS /usr/etc/install
2473 # IRIX /sbin/install
2474 # AIX /bin/install
2475 # AmigaOS /C/install, which installs bootblocks on floppy discs
2476 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2477 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2478 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2479 # OS/2's system install, which has a completely different semantic
2480 # ./install, which can be erroneously created by make from ./install.sh.
2481 # Reject install programs that cannot install multiple files.
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2483 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2484 if test -z "$INSTALL"; then
2485 if test "${ac_cv_path_install+set}" = set; then :
2486   $as_echo_n "(cached) " >&6
2487 else
2488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493     # Account for people who put trailing slashes in PATH elements.
2494 case $as_dir/ in #((
2495   ./ | .// | /[cC]/* | \
2496   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2497   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2498   /usr/ucb/* ) ;;
2499   *)
2500     # OSF1 and SCO ODT 3.0 have their own names for install.
2501     # Don't use installbsd from OSF since it installs stuff as root
2502     # by default.
2503     for ac_prog in ginstall scoinst install; do
2504       for ac_exec_ext in '' $ac_executable_extensions; do
2505         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2506           if test $ac_prog = install &&
2507             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2508             # AIX install.  It has an incompatible calling convention.
2509             :
2510           elif test $ac_prog = install &&
2511             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2512             # program-specific install script used by HP pwplus--don't use.
2513             :
2514           else
2515             rm -rf conftest.one conftest.two conftest.dir
2516             echo one > conftest.one
2517             echo two > conftest.two
2518             mkdir conftest.dir
2519             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2520               test -s conftest.one && test -s conftest.two &&
2521               test -s conftest.dir/conftest.one &&
2522               test -s conftest.dir/conftest.two
2523             then
2524               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2525               break 3
2526             fi
2527           fi
2528         fi
2529       done
2530     done
2531     ;;
2532 esac
2533
2534   done
2535 IFS=$as_save_IFS
2536
2537 rm -rf conftest.one conftest.two conftest.dir
2538
2539 fi
2540   if test "${ac_cv_path_install+set}" = set; then
2541     INSTALL=$ac_cv_path_install
2542   else
2543     # As a last resort, use the slow shell script.  Don't cache a
2544     # value for INSTALL within a source directory, because that will
2545     # break other packages using the cache if that directory is
2546     # removed, or if the value is a relative name.
2547     INSTALL=$ac_install_sh
2548   fi
2549 fi
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2551 $as_echo "$INSTALL" >&6; }
2552
2553 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2554 # It thinks the first close brace ends the variable substitution.
2555 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2556
2557 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2558
2559 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2562 $as_echo_n "checking whether build environment is sane... " >&6; }
2563 # Just in case
2564 sleep 1
2565 echo timestamp > conftest.file
2566 # Reject unsafe characters in $srcdir or the absolute working directory
2567 # name.  Accept space and tab only in the latter.
2568 am_lf='
2569 '
2570 case `pwd` in
2571   *[\\\"\#\$\&\'\`$am_lf]*)
2572     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2573 esac
2574 case $srcdir in
2575   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2576     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2577 esac
2578
2579 # Do `set' in a subshell so we don't clobber the current shell's
2580 # arguments.  Must try -L first in case configure is actually a
2581 # symlink; some systems play weird games with the mod time of symlinks
2582 # (eg FreeBSD returns the mod time of the symlink's containing
2583 # directory).
2584 if (
2585    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2586    if test "$*" = "X"; then
2587       # -L didn't work.
2588       set X `ls -t "$srcdir/configure" conftest.file`
2589    fi
2590    rm -f conftest.file
2591    if test "$*" != "X $srcdir/configure conftest.file" \
2592       && test "$*" != "X conftest.file $srcdir/configure"; then
2593
2594       # If neither matched, then we have a broken ls.  This can happen
2595       # if, for instance, CONFIG_SHELL is bash and it inherits a
2596       # broken ls alias from the environment.  This has actually
2597       # happened.  Such a system could not be considered "sane".
2598       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2599 alias in your environment" "$LINENO" 5
2600    fi
2601
2602    test "$2" = conftest.file
2603    )
2604 then
2605    # Ok.
2606    :
2607 else
2608    as_fn_error "newly created file is older than distributed files!
2609 Check your system clock" "$LINENO" 5
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2613 test "$program_prefix" != NONE &&
2614   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2615 # Use a double $ so make ignores it.
2616 test "$program_suffix" != NONE &&
2617   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2618 # Double any \ or $.
2619 # By default was `s,x,x', remove it if useless.
2620 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2621 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2622
2623 # expand $ac_aux_dir to an absolute path
2624 am_aux_dir=`cd $ac_aux_dir && pwd`
2625
2626 if test x"${MISSING+set}" != xset; then
2627   case $am_aux_dir in
2628   *\ * | *\     *)
2629     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2630   *)
2631     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2632   esac
2633 fi
2634 # Use eval to expand $SHELL
2635 if eval "$MISSING --run true"; then
2636   am_missing_run="$MISSING --run "
2637 else
2638   am_missing_run=
2639   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2640 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2641 fi
2642
2643 if test x"${install_sh}" != xset; then
2644   case $am_aux_dir in
2645   *\ * | *\     *)
2646     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2647   *)
2648     install_sh="\${SHELL} $am_aux_dir/install-sh"
2649   esac
2650 fi
2651
2652 # Installed binaries are usually stripped using `strip' when the user
2653 # run `make install-strip'.  However `strip' might not be the right
2654 # tool to use in cross-compilation environments, therefore Automake
2655 # will honor the `STRIP' environment variable to overrule this program.
2656 if test "$cross_compiling" != no; then
2657   if test -n "$ac_tool_prefix"; then
2658   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2659 set dummy ${ac_tool_prefix}strip; ac_word=$2
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661 $as_echo_n "checking for $ac_word... " >&6; }
2662 if test "${ac_cv_prog_STRIP+set}" = set; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test -n "$STRIP"; then
2666   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2667 else
2668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 for as_dir in $PATH
2670 do
2671   IFS=$as_save_IFS
2672   test -z "$as_dir" && as_dir=.
2673     for ac_exec_ext in '' $ac_executable_extensions; do
2674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2675     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677     break 2
2678   fi
2679 done
2680   done
2681 IFS=$as_save_IFS
2682
2683 fi
2684 fi
2685 STRIP=$ac_cv_prog_STRIP
2686 if test -n "$STRIP"; then
2687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2688 $as_echo "$STRIP" >&6; }
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691 $as_echo "no" >&6; }
2692 fi
2693
2694
2695 fi
2696 if test -z "$ac_cv_prog_STRIP"; then
2697   ac_ct_STRIP=$STRIP
2698   # Extract the first word of "strip", so it can be a program name with args.
2699 set dummy strip; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2703   $as_echo_n "(cached) " >&6
2704 else
2705   if test -n "$ac_ct_STRIP"; then
2706   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711   IFS=$as_save_IFS
2712   test -z "$as_dir" && as_dir=.
2713     for ac_exec_ext in '' $ac_executable_extensions; do
2714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715     ac_cv_prog_ac_ct_STRIP="strip"
2716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717     break 2
2718   fi
2719 done
2720   done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2726 if test -n "$ac_ct_STRIP"; then
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2728 $as_echo "$ac_ct_STRIP" >&6; }
2729 else
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734   if test "x$ac_ct_STRIP" = x; then
2735     STRIP=":"
2736   else
2737     case $cross_compiling:$ac_tool_warned in
2738 yes:)
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2741 ac_tool_warned=yes ;;
2742 esac
2743     STRIP=$ac_ct_STRIP
2744   fi
2745 else
2746   STRIP="$ac_cv_prog_STRIP"
2747 fi
2748
2749 fi
2750 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2751
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2753 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2754 if test -z "$MKDIR_P"; then
2755   if test "${ac_cv_path_mkdir+set}" = set; then :
2756   $as_echo_n "(cached) " >&6
2757 else
2758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2760 do
2761   IFS=$as_save_IFS
2762   test -z "$as_dir" && as_dir=.
2763     for ac_prog in mkdir gmkdir; do
2764          for ac_exec_ext in '' $ac_executable_extensions; do
2765            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2766            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2767              'mkdir (GNU coreutils) '* | \
2768              'mkdir (coreutils) '* | \
2769              'mkdir (fileutils) '4.1*)
2770                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2771                break 3;;
2772            esac
2773          done
2774        done
2775   done
2776 IFS=$as_save_IFS
2777
2778 fi
2779
2780   if test "${ac_cv_path_mkdir+set}" = set; then
2781     MKDIR_P="$ac_cv_path_mkdir -p"
2782   else
2783     # As a last resort, use the slow shell script.  Don't cache a
2784     # value for MKDIR_P within a source directory, because that will
2785     # break other packages using the cache if that directory is
2786     # removed, or if the value is a relative name.
2787     test -d ./--version && rmdir ./--version
2788     MKDIR_P="$ac_install_sh -d"
2789   fi
2790 fi
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2792 $as_echo "$MKDIR_P" >&6; }
2793
2794 mkdir_p="$MKDIR_P"
2795 case $mkdir_p in
2796   [\\/$]* | ?:[\\/]*) ;;
2797   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2798 esac
2799
2800 for ac_prog in gawk mawk nawk awk
2801 do
2802   # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if test "${ac_cv_prog_AWK+set}" = set; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$AWK"; then
2810   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 for as_dir in $PATH
2814 do
2815   IFS=$as_save_IFS
2816   test -z "$as_dir" && as_dir=.
2817     for ac_exec_ext in '' $ac_executable_extensions; do
2818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819     ac_cv_prog_AWK="$ac_prog"
2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821     break 2
2822   fi
2823 done
2824   done
2825 IFS=$as_save_IFS
2826
2827 fi
2828 fi
2829 AWK=$ac_cv_prog_AWK
2830 if test -n "$AWK"; then
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2832 $as_echo "$AWK" >&6; }
2833 else
2834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835 $as_echo "no" >&6; }
2836 fi
2837
2838
2839   test -n "$AWK" && break
2840 done
2841
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2843 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2844 set x ${MAKE-make}
2845 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2846 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   cat >conftest.make <<\_ACEOF
2850 SHELL = /bin/sh
2851 all:
2852         @echo '@@@%%%=$(MAKE)=@@@%%%'
2853 _ACEOF
2854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2855 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2856   *@@@%%%=?*=@@@%%%*)
2857     eval ac_cv_prog_make_${ac_make}_set=yes;;
2858   *)
2859     eval ac_cv_prog_make_${ac_make}_set=no;;
2860 esac
2861 rm -f conftest.make
2862 fi
2863 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2865 $as_echo "yes" >&6; }
2866   SET_MAKE=
2867 else
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870   SET_MAKE="MAKE=${MAKE-make}"
2871 fi
2872
2873 rm -rf .tst 2>/dev/null
2874 mkdir .tst 2>/dev/null
2875 if test -d .tst; then
2876   am__leading_dot=.
2877 else
2878   am__leading_dot=_
2879 fi
2880 rmdir .tst 2>/dev/null
2881
2882 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2883   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2884   # is not polluted with repeated "-I."
2885   am__isrc=' -I$(srcdir)'
2886   # test to see if srcdir already configured
2887   if test -f $srcdir/config.status; then
2888     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2889   fi
2890 fi
2891
2892 # test whether we have cygpath
2893 if test -z "$CYGPATH_W"; then
2894   if (cygpath --version) >/dev/null 2>/dev/null; then
2895     CYGPATH_W='cygpath -w'
2896   else
2897     CYGPATH_W=echo
2898   fi
2899 fi
2900
2901
2902 # Define the identity of the package.
2903  PACKAGE='libgo'
2904  VERSION='version-unused'
2905
2906
2907 # Some tools Automake needs.
2908
2909 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2910
2911
2912 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2913
2914
2915 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2916
2917
2918 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2919
2920
2921 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2922
2923 # We need awk for the "check" target.  The system "awk" is bad on
2924 # some platforms.
2925 # Always define AMTAR for backward compatibility.
2926
2927 AMTAR=${AMTAR-"${am_missing_run}tar"}
2928
2929 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940 ac_ext=c
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 if test -n "$ac_tool_prefix"; then
2946   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2949 $as_echo_n "checking for $ac_word... " >&6; }
2950 if test "${ac_cv_prog_CC+set}" = set; then :
2951   $as_echo_n "(cached) " >&6
2952 else
2953   if test -n "$CC"; then
2954   ac_cv_prog_CC="$CC" # Let the user override the test.
2955 else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 for as_dir in $PATH
2958 do
2959   IFS=$as_save_IFS
2960   test -z "$as_dir" && as_dir=.
2961     for ac_exec_ext in '' $ac_executable_extensions; do
2962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2963     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965     break 2
2966   fi
2967 done
2968   done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$ac_cv_prog_CC"; then
2985   ac_ct_CC=$CC
2986   # Extract the first word of "gcc", so it can be a program name with args.
2987 set dummy gcc; ac_word=$2
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2989 $as_echo_n "checking for $ac_word... " >&6; }
2990 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2991   $as_echo_n "(cached) " >&6
2992 else
2993   if test -n "$ac_ct_CC"; then
2994   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2995 else
2996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 for as_dir in $PATH
2998 do
2999   IFS=$as_save_IFS
3000   test -z "$as_dir" && as_dir=.
3001     for ac_exec_ext in '' $ac_executable_extensions; do
3002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3003     ac_cv_prog_ac_ct_CC="gcc"
3004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005     break 2
3006   fi
3007 done
3008   done
3009 IFS=$as_save_IFS
3010
3011 fi
3012 fi
3013 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3014 if test -n "$ac_ct_CC"; then
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3016 $as_echo "$ac_ct_CC" >&6; }
3017 else
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 $as_echo "no" >&6; }
3020 fi
3021
3022   if test "x$ac_ct_CC" = x; then
3023     CC=""
3024   else
3025     case $cross_compiling:$ac_tool_warned in
3026 yes:)
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3029 ac_tool_warned=yes ;;
3030 esac
3031     CC=$ac_ct_CC
3032   fi
3033 else
3034   CC="$ac_cv_prog_CC"
3035 fi
3036
3037 if test -z "$CC"; then
3038           if test -n "$ac_tool_prefix"; then
3039     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3040 set dummy ${ac_tool_prefix}cc; ac_word=$2
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3042 $as_echo_n "checking for $ac_word... " >&6; }
3043 if test "${ac_cv_prog_CC+set}" = set; then :
3044   $as_echo_n "(cached) " >&6
3045 else
3046   if test -n "$CC"; then
3047   ac_cv_prog_CC="$CC" # Let the user override the test.
3048 else
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3050 for as_dir in $PATH
3051 do
3052   IFS=$as_save_IFS
3053   test -z "$as_dir" && as_dir=.
3054     for ac_exec_ext in '' $ac_executable_extensions; do
3055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056     ac_cv_prog_CC="${ac_tool_prefix}cc"
3057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3058     break 2
3059   fi
3060 done
3061   done
3062 IFS=$as_save_IFS
3063
3064 fi
3065 fi
3066 CC=$ac_cv_prog_CC
3067 if test -n "$CC"; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3069 $as_echo "$CC" >&6; }
3070 else
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 fi
3074
3075
3076   fi
3077 fi
3078 if test -z "$CC"; then
3079   # Extract the first word of "cc", so it can be a program name with args.
3080 set dummy cc; ac_word=$2
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then :
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$CC"; then
3087   ac_cv_prog_CC="$CC" # Let the user override the test.
3088 else
3089   ac_prog_rejected=no
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095     for ac_exec_ext in '' $ac_executable_extensions; do
3096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3098        ac_prog_rejected=yes
3099        continue
3100      fi
3101     ac_cv_prog_CC="cc"
3102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103     break 2
3104   fi
3105 done
3106   done
3107 IFS=$as_save_IFS
3108
3109 if test $ac_prog_rejected = yes; then
3110   # We found a bogon in the path, so make sure we never use it.
3111   set dummy $ac_cv_prog_CC
3112   shift
3113   if test $# != 0; then
3114     # We chose a different compiler from the bogus one.
3115     # However, it has the same basename, so the bogon will be chosen
3116     # first if we set CC to just the basename; use the full file name.
3117     shift
3118     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3119   fi
3120 fi
3121 fi
3122 fi
3123 CC=$ac_cv_prog_CC
3124 if test -n "$CC"; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3126 $as_echo "$CC" >&6; }
3127 else
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3129 $as_echo "no" >&6; }
3130 fi
3131
3132
3133 fi
3134 if test -z "$CC"; then
3135   if test -n "$ac_tool_prefix"; then
3136   for ac_prog in cl.exe
3137   do
3138     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if test "${ac_cv_prog_CC+set}" = set; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   if test -n "$CC"; then
3146   ac_cv_prog_CC="$CC" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153     for ac_exec_ext in '' $ac_executable_extensions; do
3154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157     break 2
3158   fi
3159 done
3160   done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 CC=$ac_cv_prog_CC
3166 if test -n "$CC"; then
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3168 $as_echo "$CC" >&6; }
3169 else
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174
3175     test -n "$CC" && break
3176   done
3177 fi
3178 if test -z "$CC"; then
3179   ac_ct_CC=$CC
3180   for ac_prog in cl.exe
3181 do
3182   # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   if test -n "$ac_ct_CC"; then
3190   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195   IFS=$as_save_IFS
3196   test -z "$as_dir" && as_dir=.
3197     for ac_exec_ext in '' $ac_executable_extensions; do
3198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199     ac_cv_prog_ac_ct_CC="$ac_prog"
3200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201     break 2
3202   fi
3203 done
3204   done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3210 if test -n "$ac_ct_CC"; then
3211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3212 $as_echo "$ac_ct_CC" >&6; }
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219   test -n "$ac_ct_CC" && break
3220 done
3221
3222   if test "x$ac_ct_CC" = x; then
3223     CC=""
3224   else
3225     case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231     CC=$ac_ct_CC
3232   fi
3233 fi
3234
3235 fi
3236
3237
3238 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error "no acceptable C compiler found in \$PATH
3241 See \`config.log' for more details." "$LINENO" 5; }
3242
3243 # Provide some information about the compiler.
3244 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3245 set X $ac_compile
3246 ac_compiler=$2
3247 for ac_option in --version -v -V -qversion; do
3248   { { ac_try="$ac_compiler $ac_option >&5"
3249 case "(($ac_try" in
3250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251   *) ac_try_echo=$ac_try;;
3252 esac
3253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3256   ac_status=$?
3257   if test -s conftest.err; then
3258     sed '10a\
3259 ... rest of stderr output deleted ...
3260          10q' conftest.err >conftest.er1
3261     cat conftest.er1 >&5
3262     rm -f conftest.er1 conftest.err
3263   fi
3264   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265   test $ac_status = 0; }
3266 done
3267
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h.  */
3270
3271 int
3272 main ()
3273 {
3274
3275   ;
3276   return 0;
3277 }
3278 _ACEOF
3279 ac_clean_files_save=$ac_clean_files
3280 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3281 # Try to create an executable without -o first, disregard a.out.
3282 # It will help us diagnose broken compilers, and finding out an intuition
3283 # of exeext.
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3287
3288 # The possible output files:
3289 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3290
3291 ac_rmfiles=
3292 for ac_file in $ac_files
3293 do
3294   case $ac_file in
3295     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3296     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3297   esac
3298 done
3299 rm -f $ac_rmfiles
3300
3301 if { { ac_try="$ac_link_default"
3302 case "(($ac_try" in
3303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304   *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307 $as_echo "$ac_try_echo"; } >&5
3308   (eval "$ac_link_default") 2>&5
3309   ac_status=$?
3310   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311   test $ac_status = 0; }; then :
3312   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3313 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3314 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3315 # so that the user can short-circuit this test for compilers unknown to
3316 # Autoconf.
3317 for ac_file in $ac_files ''
3318 do
3319   test -f "$ac_file" || continue
3320   case $ac_file in
3321     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3322         ;;
3323     [ab].out )
3324         # We found the default executable, but exeext='' is most
3325         # certainly right.
3326         break;;
3327     *.* )
3328         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3329         then :; else
3330            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331         fi
3332         # We set ac_cv_exeext here because the later test for it is not
3333         # safe: cross compilers may not add the suffix if given an `-o'
3334         # argument, so we may need to know it at that point already.
3335         # Even if this section looks crufty: it has the advantage of
3336         # actually working.
3337         break;;
3338     * )
3339         break;;
3340   esac
3341 done
3342 test "$ac_cv_exeext" = no && ac_cv_exeext=
3343
3344 else
3345   ac_file=''
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3348 $as_echo "$ac_file" >&6; }
3349 if test -z "$ac_file"; then :
3350   $as_echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.$ac_ext >&5
3352
3353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3355 { as_fn_set_status 77
3356 as_fn_error "C compiler cannot create executables
3357 See \`config.log' for more details." "$LINENO" 5; }; }
3358 fi
3359 ac_exeext=$ac_cv_exeext
3360
3361 # Check that the compiler produces executables we can run.  If not, either
3362 # the compiler is broken, or we cross compile.
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3364 $as_echo_n "checking whether the C compiler works... " >&6; }
3365 # If not cross compiling, check that we can run a simple program.
3366 if test "$cross_compiling" != yes; then
3367   if { ac_try='./$ac_file'
3368   { { case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3373 $as_echo "$ac_try_echo"; } >&5
3374   (eval "$ac_try") 2>&5
3375   ac_status=$?
3376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3377   test $ac_status = 0; }; }; then
3378     cross_compiling=no
3379   else
3380     if test "$cross_compiling" = maybe; then
3381         cross_compiling=yes
3382     else
3383         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error "cannot run C compiled programs.
3386 If you meant to cross compile, use \`--host'.
3387 See \`config.log' for more details." "$LINENO" 5; }
3388     fi
3389   fi
3390 fi
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3393
3394 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3395 ac_clean_files=$ac_clean_files_save
3396 # Check that the compiler produces executables we can run.  If not, either
3397 # the compiler is broken, or we cross compile.
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399 $as_echo_n "checking whether we are cross compiling... " >&6; }
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3401 $as_echo "$cross_compiling" >&6; }
3402
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3404 $as_echo_n "checking for suffix of executables... " >&6; }
3405 if { { ac_try="$ac_link"
3406 case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412   (eval "$ac_link") 2>&5
3413   ac_status=$?
3414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415   test $ac_status = 0; }; then :
3416   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3417 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3418 # work properly (i.e., refer to `conftest.exe'), while it won't with
3419 # `rm'.
3420 for ac_file in conftest.exe conftest conftest.*; do
3421   test -f "$ac_file" || continue
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425           break;;
3426     * ) break;;
3427   esac
3428 done
3429 else
3430   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error "cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." "$LINENO" 5; }
3434 fi
3435 rm -f conftest$ac_cv_exeext
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3437 $as_echo "$ac_cv_exeext" >&6; }
3438
3439 rm -f conftest.$ac_ext
3440 EXEEXT=$ac_cv_exeext
3441 ac_exeext=$EXEEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3443 $as_echo_n "checking for suffix of object files... " >&6; }
3444 if test "${ac_cv_objext+set}" = set; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h.  */
3449
3450 int
3451 main ()
3452 {
3453
3454   ;
3455   return 0;
3456 }
3457 _ACEOF
3458 rm -f conftest.o conftest.obj
3459 if { { ac_try="$ac_compile"
3460 case "(($ac_try" in
3461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462   *) ac_try_echo=$ac_try;;
3463 esac
3464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3465 $as_echo "$ac_try_echo"; } >&5
3466   (eval "$ac_compile") 2>&5
3467   ac_status=$?
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }; then :
3470   for ac_file in conftest.o conftest.obj conftest.*; do
3471   test -f "$ac_file" || continue;
3472   case $ac_file in
3473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3474     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475        break;;
3476   esac
3477 done
3478 else
3479   $as_echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details." "$LINENO" 5; }
3486 fi
3487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3490 $as_echo "$ac_cv_objext" >&6; }
3491 OBJEXT=$ac_cv_objext
3492 ac_objext=$OBJEXT
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3494 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3495 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h.  */
3500
3501 int
3502 main ()
3503 {
3504 #ifndef __GNUC__
3505        choke me
3506 #endif
3507
3508   ;
3509   return 0;
3510 }
3511 _ACEOF
3512 if ac_fn_c_try_compile "$LINENO"; then :
3513   ac_compiler_gnu=yes
3514 else
3515   ac_compiler_gnu=no
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3519
3520 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3522 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3523 if test $ac_compiler_gnu = yes; then
3524   GCC=yes
3525 else
3526   GCC=
3527 fi
3528 ac_test_CFLAGS=${CFLAGS+set}
3529 ac_save_CFLAGS=$CFLAGS
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3531 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3532 if test "${ac_cv_prog_cc_g+set}" = set; then :
3533   $as_echo_n "(cached) " >&6
3534 else
3535   ac_save_c_werror_flag=$ac_c_werror_flag
3536    ac_c_werror_flag=yes
3537    ac_cv_prog_cc_g=no
3538    CFLAGS="-g"
3539    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551   ac_cv_prog_cc_g=yes
3552 else
3553   CFLAGS=""
3554       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3555 /* end confdefs.h.  */
3556
3557 int
3558 main ()
3559 {
3560
3561   ;
3562   return 0;
3563 }
3564 _ACEOF
3565 if ac_fn_c_try_compile "$LINENO"; then :
3566
3567 else
3568   ac_c_werror_flag=$ac_save_c_werror_flag
3569          CFLAGS="-g"
3570          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h.  */
3572
3573 int
3574 main ()
3575 {
3576
3577   ;
3578   return 0;
3579 }
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3582   ac_cv_prog_cc_g=yes
3583 fi
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 fi
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3589    ac_c_werror_flag=$ac_save_c_werror_flag
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3592 $as_echo "$ac_cv_prog_cc_g" >&6; }
3593 if test "$ac_test_CFLAGS" = set; then
3594   CFLAGS=$ac_save_CFLAGS
3595 elif test $ac_cv_prog_cc_g = yes; then
3596   if test "$GCC" = yes; then
3597     CFLAGS="-g -O2"
3598   else
3599     CFLAGS="-g"
3600   fi
3601 else
3602   if test "$GCC" = yes; then
3603     CFLAGS="-O2"
3604   else
3605     CFLAGS=
3606   fi
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3610 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3611   $as_echo_n "(cached) " >&6
3612 else
3613   ac_cv_prog_cc_c89=no
3614 ac_save_CC=$CC
3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3616 /* end confdefs.h.  */
3617 #include <stdarg.h>
3618 #include <stdio.h>
3619 #include <sys/types.h>
3620 #include <sys/stat.h>
3621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3622 struct buf { int x; };
3623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3624 static char *e (p, i)
3625      char **p;
3626      int i;
3627 {
3628   return p[i];
3629 }
3630 static char *f (char * (*g) (char **, int), char **p, ...)
3631 {
3632   char *s;
3633   va_list v;
3634   va_start (v,p);
3635   s = g (p, va_arg (v,int));
3636   va_end (v);
3637   return s;
3638 }
3639
3640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3641    function prototypes and stuff, but not '\xHH' hex character constants.
3642    These don't provoke an error unfortunately, instead are silently treated
3643    as 'x'.  The following induces an error, until -std is added to get
3644    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3645    array size at least.  It's necessary to write '\x00'==0 to get something
3646    that's true only with -std.  */
3647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
3649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3650    inside strings and character constants.  */
3651 #define FOO(x) 'x'
3652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
3654 int test (int i, double x);
3655 struct s1 {int (*f) (int a);};
3656 struct s2 {int (*f) (double a);};
3657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3658 int argc;
3659 char **argv;
3660 int
3661 main ()
3662 {
3663 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3664   ;
3665   return 0;
3666 }
3667 _ACEOF
3668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3669         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670 do
3671   CC="$ac_save_CC $ac_arg"
3672   if ac_fn_c_try_compile "$LINENO"; then :
3673   ac_cv_prog_cc_c89=$ac_arg
3674 fi
3675 rm -f core conftest.err conftest.$ac_objext
3676   test "x$ac_cv_prog_cc_c89" != "xno" && break
3677 done
3678 rm -f conftest.$ac_ext
3679 CC=$ac_save_CC
3680
3681 fi
3682 # AC_CACHE_VAL
3683 case "x$ac_cv_prog_cc_c89" in
3684   x)
3685     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 $as_echo "none needed" >&6; } ;;
3687   xno)
3688     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3689 $as_echo "unsupported" >&6; } ;;
3690   *)
3691     CC="$CC $ac_cv_prog_cc_c89"
3692     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694 esac
3695 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696
3697 fi
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 DEPDIR="${am__leading_dot}deps"
3705
3706 ac_config_commands="$ac_config_commands depfiles"
3707
3708
3709 am_make=${MAKE-make}
3710 cat > confinc << 'END'
3711 am__doit:
3712         @echo this is the am__doit target
3713 .PHONY: am__doit
3714 END
3715 # If we don't find an include directive, just comment out the code.
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3717 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3718 am__include="#"
3719 am__quote=
3720 _am_result=none
3721 # First try GNU make style include.
3722 echo "include confinc" > confmf
3723 # Ignore all kinds of additional output from `make'.
3724 case `$am_make -s -f confmf 2> /dev/null` in #(
3725 *the\ am__doit\ target*)
3726   am__include=include
3727   am__quote=
3728   _am_result=GNU
3729   ;;
3730 esac
3731 # Now try BSD make style include.
3732 if test "$am__include" = "#"; then
3733    echo '.include "confinc"' > confmf
3734    case `$am_make -s -f confmf 2> /dev/null` in #(
3735    *the\ am__doit\ target*)
3736      am__include=.include
3737      am__quote="\""
3738      _am_result=BSD
3739      ;;
3740    esac
3741 fi
3742
3743
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3745 $as_echo "$_am_result" >&6; }
3746 rm -f confinc confmf
3747
3748 # Check whether --enable-dependency-tracking was given.
3749 if test "${enable_dependency_tracking+set}" = set; then :
3750   enableval=$enable_dependency_tracking;
3751 fi
3752
3753 if test "x$enable_dependency_tracking" != xno; then
3754   am_depcomp="$ac_aux_dir/depcomp"
3755   AMDEPBACKSLASH='\'
3756 fi
3757  if test "x$enable_dependency_tracking" != xno; then
3758   AMDEP_TRUE=
3759   AMDEP_FALSE='#'
3760 else
3761   AMDEP_TRUE='#'
3762   AMDEP_FALSE=
3763 fi
3764
3765
3766
3767 depcc="$CC"   am_compiler_list=
3768
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3770 $as_echo_n "checking dependency style of $depcc... " >&6; }
3771 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3772   $as_echo_n "(cached) " >&6
3773 else
3774   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3775   # We make a subdir and do the tests there.  Otherwise we can end up
3776   # making bogus files that we don't know about and never remove.  For
3777   # instance it was reported that on HP-UX the gcc test will end up
3778   # making a dummy file named `D' -- because `-MD' means `put the output
3779   # in D'.
3780   mkdir conftest.dir
3781   # Copy depcomp to subdir because otherwise we won't find it if we're
3782   # using a relative directory.
3783   cp "$am_depcomp" conftest.dir
3784   cd conftest.dir
3785   # We will build objects and dependencies in a subdirectory because
3786   # it helps to detect inapplicable dependency modes.  For instance
3787   # both Tru64's cc and ICC support -MD to output dependencies as a
3788   # side effect of compilation, but ICC will put the dependencies in
3789   # the current directory while Tru64 will put them in the object
3790   # directory.
3791   mkdir sub
3792
3793   am_cv_CC_dependencies_compiler_type=none
3794   if test "$am_compiler_list" = ""; then
3795      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3796   fi
3797   am__universal=false
3798   case " $depcc " in #(
3799      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3800      esac
3801
3802   for depmode in $am_compiler_list; do
3803     # Setup a source with many dependencies, because some compilers
3804     # like to wrap large dependency lists on column 80 (with \), and
3805     # we should not choose a depcomp mode which is confused by this.
3806     #
3807     # We need to recreate these files for each test, as the compiler may
3808     # overwrite some of them when testing with obscure command lines.
3809     # This happens at least with the AIX C compiler.
3810     : > sub/conftest.c
3811     for i in 1 2 3 4 5 6; do
3812       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3813       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3814       # Solaris 8's {/usr,}/bin/sh.
3815       touch sub/conftst$i.h
3816     done
3817     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3818
3819     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3820     # mode.  It turns out that the SunPro C++ compiler does not properly
3821     # handle `-M -o', and we need to detect this.  Also, some Intel
3822     # versions had trouble with output in subdirs
3823     am__obj=sub/conftest.${OBJEXT-o}
3824     am__minus_obj="-o $am__obj"
3825     case $depmode in
3826     gcc)
3827       # This depmode causes a compiler race in universal mode.
3828       test "$am__universal" = false || continue
3829       ;;
3830     nosideeffect)
3831       # after this tag, mechanisms are not by side-effect, so they'll
3832       # only be used when explicitly requested
3833       if test "x$enable_dependency_tracking" = xyes; then
3834         continue
3835       else
3836         break
3837       fi
3838       ;;
3839     msvisualcpp | msvcmsys)
3840       # This compiler won't grok `-c -o', but also, the minuso test has
3841       # not run yet.  These depmodes are late enough in the game, and
3842       # so weak that their functioning should not be impacted.
3843       am__obj=conftest.${OBJEXT-o}
3844       am__minus_obj=
3845       ;;
3846     none) break ;;
3847     esac
3848     if depmode=$depmode \
3849        source=sub/conftest.c object=$am__obj \
3850        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3851        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3852          >/dev/null 2>conftest.err &&
3853        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3854        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3855        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3856        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3857       # icc doesn't choke on unknown options, it will just issue warnings
3858       # or remarks (even with -Werror).  So we grep stderr for any message
3859       # that says an option was ignored or not supported.
3860       # When given -MP, icc 7.0 and 7.1 complain thusly:
3861       #   icc: Command line warning: ignoring option '-M'; no argument required
3862       # The diagnosis changed in icc 8.0:
3863       #   icc: Command line remark: option '-MP' not supported
3864       if (grep 'ignoring option' conftest.err ||
3865           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3866         am_cv_CC_dependencies_compiler_type=$depmode
3867         break
3868       fi
3869     fi
3870   done
3871
3872   cd ..
3873   rm -rf conftest.dir
3874 else
3875   am_cv_CC_dependencies_compiler_type=none
3876 fi
3877
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3882
3883  if
3884   test "x$enable_dependency_tracking" != xno \
3885   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3886   am__fastdepCC_TRUE=
3887   am__fastdepCC_FALSE='#'
3888 else
3889   am__fastdepCC_TRUE='#'
3890   am__fastdepCC_FALSE=
3891 fi
3892
3893
3894 ac_ext=go
3895 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
3896 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compile_gnu=yes
3898 if test -n "$ac_tool_prefix"; then
3899   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3902 $as_echo_n "checking for $ac_word... " >&6; }
3903 if test "${ac_cv_prog_GOC+set}" = set; then :
3904   $as_echo_n "(cached) " >&6
3905 else
3906   if test -n "$GOC"; then
3907   ac_cv_prog_GOC="$GOC" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914     for ac_exec_ext in '' $ac_executable_extensions; do
3915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
3917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3918     break 2
3919   fi
3920 done
3921   done
3922 IFS=$as_save_IFS
3923
3924 fi
3925 fi
3926 GOC=$ac_cv_prog_GOC
3927 if test -n "$GOC"; then
3928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
3929 $as_echo "$GOC" >&6; }
3930 else
3931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3932 $as_echo "no" >&6; }
3933 fi
3934
3935
3936 fi
3937 if test -z "$ac_cv_prog_GOC"; then
3938   ac_ct_GOC=$GOC
3939   # Extract the first word of "gccgo", so it can be a program name with args.
3940 set dummy gccgo; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   if test -n "$ac_ct_GOC"; then
3947   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
3948 else
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 for as_dir in $PATH
3951 do
3952   IFS=$as_save_IFS
3953   test -z "$as_dir" && as_dir=.
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956     ac_cv_prog_ac_ct_GOC="gccgo"
3957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
3967 if test -n "$ac_ct_GOC"; then
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
3969 $as_echo "$ac_ct_GOC" >&6; }
3970 else
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3973 fi
3974
3975   if test "x$ac_ct_GOC" = x; then
3976     GOC=""
3977   else
3978     case $cross_compiling:$ac_tool_warned in
3979 yes:)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3982 ac_tool_warned=yes ;;
3983 esac
3984     GOC=$ac_ct_GOC
3985   fi
3986 else
3987   GOC="$ac_cv_prog_GOC"
3988 fi
3989
3990 if test -z "$GOC"; then
3991   if test -n "$ac_tool_prefix"; then
3992     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995 $as_echo_n "checking for $ac_word... " >&6; }
3996 if test "${ac_cv_prog_GOC+set}" = set; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   if test -n "$GOC"; then
4000   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007     for ac_exec_ext in '' $ac_executable_extensions; do
4008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4009     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014   done
4015 IFS=$as_save_IFS
4016
4017 fi
4018 fi
4019 GOC=$ac_cv_prog_GOC
4020 if test -n "$GOC"; then
4021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4022 $as_echo "$GOC" >&6; }
4023 else
4024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025 $as_echo "no" >&6; }
4026 fi
4027
4028
4029   fi
4030 fi
4031 if test -z "$GOC"; then
4032   # Extract the first word of "gccgo", so it can be a program name with args.
4033 set dummy gccgo; ac_word=$2
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035 $as_echo_n "checking for $ac_word... " >&6; }
4036 if test "${ac_cv_prog_GOC+set}" = set; then :
4037   $as_echo_n "(cached) " >&6
4038 else
4039   if test -n "$GOC"; then
4040   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4041 else
4042   ac_prog_rejected=no
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4045 do
4046   IFS=$as_save_IFS
4047   test -z "$as_dir" && as_dir=.
4048     for ac_exec_ext in '' $ac_executable_extensions; do
4049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4051        ac_prog_rejected=yes
4052        continue
4053      fi
4054     ac_cv_prog_GOC="gccgo"
4055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056     break 2
4057   fi
4058 done
4059   done
4060 IFS=$as_save_IFS
4061
4062 if test $ac_prog_rejected = yes; then
4063   # We found a bogon in the path, so make sure we never use it.
4064   set dummy $ac_cv_prog_GOC
4065   shift
4066   if test $# != 0; then
4067     # We chose a different compiler from the bogus one.
4068     # However, it has the same basename, so the bogon will be chosen
4069     # first if we set GOC to just the basename; use the full file name.
4070     shift
4071     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4072   fi
4073 fi
4074 fi
4075 fi
4076 GOC=$ac_cv_prog_GOC
4077 if test -n "$GOC"; then
4078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4079 $as_echo "$GOC" >&6; }
4080 else
4081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4082 $as_echo "no" >&6; }
4083 fi
4084
4085
4086 fi
4087
4088
4089 # Provide some information about the compiler.
4090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4091 set X $ac_compile
4092 ac_compiler=$2
4093 { { ac_try="$ac_compiler --version >&5"
4094 case "(($ac_try" in
4095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096   *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100   (eval "$ac_compiler --version >&5") 2>conftest.err
4101   ac_status=$?
4102   if test -s conftest.err; then
4103     sed '10a\
4104 ... rest of stderr output deleted ...
4105          10q' conftest.err >conftest.er1
4106     cat conftest.er1 >&5
4107     rm -f conftest.er1 conftest.err
4108   fi
4109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4110   test $ac_status = 0; }
4111 GOCFLAGS="-g -O2"
4112 ac_ext=c
4113 ac_cpp='$CPP $CPPFLAGS'
4114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4117
4118
4119
4120
4121
4122
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4124 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4125     # Check whether --enable-maintainer-mode was given.
4126 if test "${enable_maintainer_mode+set}" = set; then :
4127   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4128 else
4129   USE_MAINTAINER_MODE=no
4130 fi
4131
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4133 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4134    if test $USE_MAINTAINER_MODE = yes; then
4135   MAINTAINER_MODE_TRUE=
4136   MAINTAINER_MODE_FALSE='#'
4137 else
4138   MAINTAINER_MODE_TRUE='#'
4139   MAINTAINER_MODE_FALSE=
4140 fi
4141
4142   MAINT=$MAINTAINER_MODE_TRUE
4143
4144
4145
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4147 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4148 if test "${ac_cv_path_SED+set}" = set; then :
4149   $as_echo_n "(cached) " >&6
4150 else
4151             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4152      for ac_i in 1 2 3 4 5 6 7; do
4153        ac_script="$ac_script$as_nl$ac_script"
4154      done
4155      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4156      { ac_script=; unset ac_script;}
4157      if test -z "$SED"; then
4158   ac_path_SED_found=false
4159   # Loop through the user's path and test for each of PROGNAME-LIST
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165     for ac_prog in sed gsed; do
4166     for ac_exec_ext in '' $ac_executable_extensions; do
4167       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4168       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4169 # Check for GNU ac_path_SED and select it if it is found.
4170   # Check for GNU $ac_path_SED
4171 case `"$ac_path_SED" --version 2>&1` in
4172 *GNU*)
4173   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4174 *)
4175   ac_count=0
4176   $as_echo_n 0123456789 >"conftest.in"
4177   while :
4178   do
4179     cat "conftest.in" "conftest.in" >"conftest.tmp"
4180     mv "conftest.tmp" "conftest.in"
4181     cp "conftest.in" "conftest.nl"
4182     $as_echo '' >> "conftest.nl"
4183     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4184     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4185     as_fn_arith $ac_count + 1 && ac_count=$as_val
4186     if test $ac_count -gt ${ac_path_SED_max-0}; then
4187       # Best one so far, save it but keep looking for a better one
4188       ac_cv_path_SED="$ac_path_SED"
4189       ac_path_SED_max=$ac_count
4190     fi
4191     # 10*(2^10) chars as input seems more than enough
4192     test $ac_count -gt 10 && break
4193   done
4194   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4195 esac
4196
4197       $ac_path_SED_found && break 3
4198     done
4199   done
4200   done
4201 IFS=$as_save_IFS
4202   if test -z "$ac_cv_path_SED"; then
4203     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4204   fi
4205 else
4206   ac_cv_path_SED=$SED
4207 fi
4208
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4211 $as_echo "$ac_cv_path_SED" >&6; }
4212  SED="$ac_cv_path_SED"
4213   rm -f conftest.sed
4214
4215 test -z "$SED" && SED=sed
4216 Xsed="$SED -e 1s/^X//"
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4229 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4230 if test "${ac_cv_path_GREP+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -z "$GREP"; then
4234   ac_path_GREP_found=false
4235   # Loop through the user's path and test for each of PROGNAME-LIST
4236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_prog in grep ggrep; do
4242     for ac_exec_ext in '' $ac_executable_extensions; do
4243       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4244       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4245 # Check for GNU ac_path_GREP and select it if it is found.
4246   # Check for GNU $ac_path_GREP
4247 case `"$ac_path_GREP" --version 2>&1` in
4248 *GNU*)
4249   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4250 *)
4251   ac_count=0
4252   $as_echo_n 0123456789 >"conftest.in"
4253   while :
4254   do
4255     cat "conftest.in" "conftest.in" >"conftest.tmp"
4256     mv "conftest.tmp" "conftest.in"
4257     cp "conftest.in" "conftest.nl"
4258     $as_echo 'GREP' >> "conftest.nl"
4259     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4260     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4261     as_fn_arith $ac_count + 1 && ac_count=$as_val
4262     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4263       # Best one so far, save it but keep looking for a better one
4264       ac_cv_path_GREP="$ac_path_GREP"
4265       ac_path_GREP_max=$ac_count
4266     fi
4267     # 10*(2^10) chars as input seems more than enough
4268     test $ac_count -gt 10 && break
4269   done
4270   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4271 esac
4272
4273       $ac_path_GREP_found && break 3
4274     done
4275   done
4276   done
4277 IFS=$as_save_IFS
4278   if test -z "$ac_cv_path_GREP"; then
4279     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4280   fi
4281 else
4282   ac_cv_path_GREP=$GREP
4283 fi
4284
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4287 $as_echo "$ac_cv_path_GREP" >&6; }
4288  GREP="$ac_cv_path_GREP"
4289
4290
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4292 $as_echo_n "checking for egrep... " >&6; }
4293 if test "${ac_cv_path_EGREP+set}" = set; then :
4294   $as_echo_n "(cached) " >&6
4295 else
4296   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4297    then ac_cv_path_EGREP="$GREP -E"
4298    else
4299      if test -z "$EGREP"; then
4300   ac_path_EGREP_found=false
4301   # Loop through the user's path and test for each of PROGNAME-LIST
4302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4304 do
4305   IFS=$as_save_IFS
4306   test -z "$as_dir" && as_dir=.
4307     for ac_prog in egrep; do
4308     for ac_exec_ext in '' $ac_executable_extensions; do
4309       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4310       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4311 # Check for GNU ac_path_EGREP and select it if it is found.
4312   # Check for GNU $ac_path_EGREP
4313 case `"$ac_path_EGREP" --version 2>&1` in
4314 *GNU*)
4315   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4316 *)
4317   ac_count=0
4318   $as_echo_n 0123456789 >"conftest.in"
4319   while :
4320   do
4321     cat "conftest.in" "conftest.in" >"conftest.tmp"
4322     mv "conftest.tmp" "conftest.in"
4323     cp "conftest.in" "conftest.nl"
4324     $as_echo 'EGREP' >> "conftest.nl"
4325     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4326     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4327     as_fn_arith $ac_count + 1 && ac_count=$as_val
4328     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4329       # Best one so far, save it but keep looking for a better one
4330       ac_cv_path_EGREP="$ac_path_EGREP"
4331       ac_path_EGREP_max=$ac_count
4332     fi
4333     # 10*(2^10) chars as input seems more than enough
4334     test $ac_count -gt 10 && break
4335   done
4336   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4337 esac
4338
4339       $ac_path_EGREP_found && break 3
4340     done
4341   done
4342   done
4343 IFS=$as_save_IFS
4344   if test -z "$ac_cv_path_EGREP"; then
4345     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4346   fi
4347 else
4348   ac_cv_path_EGREP=$EGREP
4349 fi
4350
4351    fi
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4354 $as_echo "$ac_cv_path_EGREP" >&6; }
4355  EGREP="$ac_cv_path_EGREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4359 $as_echo_n "checking for fgrep... " >&6; }
4360 if test "${ac_cv_path_FGREP+set}" = set; then :
4361   $as_echo_n "(cached) " >&6
4362 else
4363   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4364    then ac_cv_path_FGREP="$GREP -F"
4365    else
4366      if test -z "$FGREP"; then
4367   ac_path_FGREP_found=false
4368   # Loop through the user's path and test for each of PROGNAME-LIST
4369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374     for ac_prog in fgrep; do
4375     for ac_exec_ext in '' $ac_executable_extensions; do
4376       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4377       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4378 # Check for GNU ac_path_FGREP and select it if it is found.
4379   # Check for GNU $ac_path_FGREP
4380 case `"$ac_path_FGREP" --version 2>&1` in
4381 *GNU*)
4382   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4383 *)
4384   ac_count=0
4385   $as_echo_n 0123456789 >"conftest.in"
4386   while :
4387   do
4388     cat "conftest.in" "conftest.in" >"conftest.tmp"
4389     mv "conftest.tmp" "conftest.in"
4390     cp "conftest.in" "conftest.nl"
4391     $as_echo 'FGREP' >> "conftest.nl"
4392     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394     as_fn_arith $ac_count + 1 && ac_count=$as_val
4395     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4396       # Best one so far, save it but keep looking for a better one
4397       ac_cv_path_FGREP="$ac_path_FGREP"
4398       ac_path_FGREP_max=$ac_count
4399     fi
4400     # 10*(2^10) chars as input seems more than enough
4401     test $ac_count -gt 10 && break
4402   done
4403   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406       $ac_path_FGREP_found && break 3
4407     done
4408   done
4409   done
4410 IFS=$as_save_IFS
4411   if test -z "$ac_cv_path_FGREP"; then
4412     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413   fi
4414 else
4415   ac_cv_path_FGREP=$FGREP
4416 fi
4417
4418    fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4421 $as_echo "$ac_cv_path_FGREP" >&6; }
4422  FGREP="$ac_cv_path_FGREP"
4423
4424
4425 test -z "$GREP" && GREP=grep
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4444 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4445 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4448 $as_echo_n "checking how to print strings... " >&6; }
4449 # Test print first, because it will be a builtin if present.
4450 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4451    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4452   ECHO='print -r --'
4453 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4454   ECHO='printf %s\n'
4455 else
4456   # Use this function as a fallback that always works.
4457   func_fallback_echo ()
4458   {
4459     eval 'cat <<_LTECHO_EOF
4460 $1
4461 _LTECHO_EOF'
4462   }
4463   ECHO='func_fallback_echo'
4464 fi
4465
4466 # func_echo_all arg...
4467 # Invoke $ECHO with all args, space-separated.
4468 func_echo_all ()
4469 {
4470     $ECHO ""
4471 }
4472
4473 case "$ECHO" in
4474   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4475 $as_echo "printf" >&6; } ;;
4476   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4477 $as_echo "print -r" >&6; } ;;
4478   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4479 $as_echo "cat" >&6; } ;;
4480 esac
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497 # Check whether --with-gnu-ld was given.
4498 if test "${with_gnu_ld+set}" = set; then :
4499   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4500 else
4501   with_gnu_ld=no
4502 fi
4503
4504 ac_prog=ld
4505 if test "$GCC" = yes; then
4506   # Check if gcc -print-prog-name=ld gives a path.
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4508 $as_echo_n "checking for ld used by $CC... " >&6; }
4509   case $host in
4510   *-*-mingw*)
4511     # gcc leaves a trailing carriage return which upsets mingw
4512     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4513   *)
4514     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4515   esac
4516   case $ac_prog in
4517     # Accept absolute paths.
4518     [\\/]* | ?:[\\/]*)
4519       re_direlt='/[^/][^/]*/\.\./'
4520       # Canonicalize the pathname of ld
4521       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4522       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4523         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4524       done
4525       test -z "$LD" && LD="$ac_prog"
4526       ;;
4527   "")
4528     # If it fails, then pretend we aren't using GCC.
4529     ac_prog=ld
4530     ;;
4531   *)
4532     # If it is relative, then search for the first ld in PATH.
4533     with_gnu_ld=unknown
4534     ;;
4535   esac
4536 elif test "$with_gnu_ld" = yes; then
4537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4538 $as_echo_n "checking for GNU ld... " >&6; }
4539 else
4540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4541 $as_echo_n "checking for non-GNU ld... " >&6; }
4542 fi
4543 if test "${lt_cv_path_LD+set}" = set; then :
4544   $as_echo_n "(cached) " >&6
4545 else
4546   if test -z "$LD"; then
4547   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4548   for ac_dir in $PATH; do
4549     IFS="$lt_save_ifs"
4550     test -z "$ac_dir" && ac_dir=.
4551     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4552       lt_cv_path_LD="$ac_dir/$ac_prog"
4553       # Check to see if the program is GNU ld.  I'd rather use --version,
4554       # but apparently some variants of GNU ld only accept -v.
4555       # Break only if it was the GNU/non-GNU ld that we prefer.
4556       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4557       *GNU* | *'with BFD'*)
4558         test "$with_gnu_ld" != no && break
4559         ;;
4560       *)
4561         test "$with_gnu_ld" != yes && break
4562         ;;
4563       esac
4564     fi
4565   done
4566   IFS="$lt_save_ifs"
4567 else
4568   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4569 fi
4570 fi
4571
4572 LD="$lt_cv_path_LD"
4573 if test -n "$LD"; then
4574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4575 $as_echo "$LD" >&6; }
4576 else
4577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4578 $as_echo "no" >&6; }
4579 fi
4580 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4582 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4583 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4587 case `$LD -v 2>&1 </dev/null` in
4588 *GNU* | *'with BFD'*)
4589   lt_cv_prog_gnu_ld=yes
4590   ;;
4591 *)
4592   lt_cv_prog_gnu_ld=no
4593   ;;
4594 esac
4595 fi
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4597 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4598 with_gnu_ld=$lt_cv_prog_gnu_ld
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608 if test -n "$ac_tool_prefix"; then
4609   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4610 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4614   $as_echo_n "(cached) " >&6
4615 else
4616   if test -n "$RANLIB"; then
4617   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4618 else
4619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622   IFS=$as_save_IFS
4623   test -z "$as_dir" && as_dir=.
4624     for ac_exec_ext in '' $ac_executable_extensions; do
4625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4626     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628     break 2
4629   fi
4630 done
4631   done
4632 IFS=$as_save_IFS
4633
4634 fi
4635 fi
4636 RANLIB=$ac_cv_prog_RANLIB
4637 if test -n "$RANLIB"; then
4638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4639 $as_echo "$RANLIB" >&6; }
4640 else
4641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 $as_echo "no" >&6; }
4643 fi
4644
4645
4646 fi
4647 if test -z "$ac_cv_prog_RANLIB"; then
4648   ac_ct_RANLIB=$RANLIB
4649   # Extract the first word of "ranlib", so it can be a program name with args.
4650 set dummy ranlib; ac_word=$2
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 $as_echo_n "checking for $ac_word... " >&6; }
4653 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if test -n "$ac_ct_RANLIB"; then
4657   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662   IFS=$as_save_IFS
4663   test -z "$as_dir" && as_dir=.
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666     ac_cv_prog_ac_ct_RANLIB="ranlib"
4667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4668     break 2
4669   fi
4670 done
4671   done
4672 IFS=$as_save_IFS
4673
4674 fi
4675 fi
4676 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4677 if test -n "$ac_ct_RANLIB"; then
4678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4679 $as_echo "$ac_ct_RANLIB" >&6; }
4680 else
4681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682 $as_echo "no" >&6; }
4683 fi
4684
4685   if test "x$ac_ct_RANLIB" = x; then
4686     RANLIB=":"
4687   else
4688     case $cross_compiling:$ac_tool_warned in
4689 yes:)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692 ac_tool_warned=yes ;;
4693 esac
4694     RANLIB=$ac_ct_RANLIB
4695   fi
4696 else
4697   RANLIB="$ac_cv_prog_RANLIB"
4698 fi
4699
4700 if test -n "$ac_tool_prefix"; then
4701   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
4702 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
4706   $as_echo_n "(cached) " >&6
4707 else
4708   if test -n "$OBJCOPY"; then
4709   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714   IFS=$as_save_IFS
4715   test -z "$as_dir" && as_dir=.
4716     for ac_exec_ext in '' $ac_executable_extensions; do
4717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4718     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
4719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720     break 2
4721   fi
4722 done
4723   done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 OBJCOPY=$ac_cv_prog_OBJCOPY
4729 if test -n "$OBJCOPY"; then
4730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
4731 $as_echo "$OBJCOPY" >&6; }
4732 else
4733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 fi
4739 if test -z "$ac_cv_prog_OBJCOPY"; then
4740   ac_ct_OBJCOPY=$OBJCOPY
4741   # Extract the first word of "objcopy", so it can be a program name with args.
4742 set dummy objcopy; ac_word=$2
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4744 $as_echo_n "checking for $ac_word... " >&6; }
4745 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if test -n "$ac_ct_OBJCOPY"; then
4749   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
4750 else
4751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_exec_ext in '' $ac_executable_extensions; do
4757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4758     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
4759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760     break 2
4761   fi
4762 done
4763   done
4764 IFS=$as_save_IFS
4765
4766 fi
4767 fi
4768 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
4769 if test -n "$ac_ct_OBJCOPY"; then
4770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
4771 $as_echo "$ac_ct_OBJCOPY" >&6; }
4772 else
4773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4774 $as_echo "no" >&6; }
4775 fi
4776
4777   if test "x$ac_ct_OBJCOPY" = x; then
4778     OBJCOPY="missing-objcopy"
4779   else
4780     case $cross_compiling:$ac_tool_warned in
4781 yes:)
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4784 ac_tool_warned=yes ;;
4785 esac
4786     OBJCOPY=$ac_ct_OBJCOPY
4787   fi
4788 else
4789   OBJCOPY="$ac_cv_prog_OBJCOPY"
4790 fi
4791
4792
4793 enable_dlopen=yes
4794
4795
4796
4797 case `pwd` in
4798   *\ * | *\     *)
4799     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4800 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4801 esac
4802
4803
4804
4805 macro_version='2.2.7a'
4806 macro_revision='1.3134'
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820 ltmain="$ac_aux_dir/ltmain.sh"
4821
4822 # Backslashify metacharacters that are still active within
4823 # double-quoted strings.
4824 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4825
4826 # Same as above, but do not quote variable references.
4827 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4828
4829 # Sed substitution to delay expansion of an escaped shell variable in a
4830 # double_quote_subst'ed string.
4831 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4832
4833 # Sed substitution to delay expansion of an escaped single quote.
4834 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4835
4836 # Sed substitution to avoid accidental globbing in evaled expressions
4837 no_glob_subst='s/\*/\\\*/g'
4838
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4840 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4841 if test "${lt_cv_path_NM+set}" = set; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   if test -n "$NM"; then
4845   # Let the user override the test.
4846   lt_cv_path_NM="$NM"
4847 else
4848   lt_nm_to_check="${ac_tool_prefix}nm"
4849   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4850     lt_nm_to_check="$lt_nm_to_check nm"
4851   fi
4852   for lt_tmp_nm in $lt_nm_to_check; do
4853     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4854     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4855       IFS="$lt_save_ifs"
4856       test -z "$ac_dir" && ac_dir=.
4857       tmp_nm="$ac_dir/$lt_tmp_nm"
4858       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4859         # Check to see if the nm accepts a BSD-compat flag.
4860         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4861         #   nm: unknown option "B" ignored
4862         # Tru64's nm complains that /dev/null is an invalid object file
4863         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4864         */dev/null* | *'Invalid file or object type'*)
4865           lt_cv_path_NM="$tmp_nm -B"
4866           break
4867           ;;
4868         *)
4869           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4870           */dev/null*)
4871             lt_cv_path_NM="$tmp_nm -p"
4872             break
4873             ;;
4874           *)
4875             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4876             continue # so that we can try to find one that supports BSD flags
4877             ;;
4878           esac
4879           ;;
4880         esac
4881       fi
4882     done
4883     IFS="$lt_save_ifs"
4884   done
4885   : ${lt_cv_path_NM=no}
4886 fi
4887 fi
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4889 $as_echo "$lt_cv_path_NM" >&6; }
4890 if test "$lt_cv_path_NM" != "no"; then
4891   NM="$lt_cv_path_NM"
4892 else
4893   # Didn't find any BSD compatible name lister, look for dumpbin.
4894   if test -n "$DUMPBIN"; then :
4895     # Let the user override the test.
4896   else
4897     if test -n "$ac_tool_prefix"; then
4898   for ac_prog in dumpbin "link -dump"
4899   do
4900     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4901 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 $as_echo_n "checking for $ac_word... " >&6; }
4904 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4905   $as_echo_n "(cached) " >&6
4906 else
4907   if test -n "$DUMPBIN"; then
4908   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4909 else
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925 fi
4926 fi
4927 DUMPBIN=$ac_cv_prog_DUMPBIN
4928 if test -n "$DUMPBIN"; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4930 $as_echo "$DUMPBIN" >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4933 $as_echo "no" >&6; }
4934 fi
4935
4936
4937     test -n "$DUMPBIN" && break
4938   done
4939 fi
4940 if test -z "$DUMPBIN"; then
4941   ac_ct_DUMPBIN=$DUMPBIN
4942   for ac_prog in dumpbin "link -dump"
4943 do
4944   # Extract the first word of "$ac_prog", so it can be a program name with args.
4945 set dummy $ac_prog; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4949   $as_echo_n "(cached) " >&6
4950 else
4951   if test -n "$ac_ct_DUMPBIN"; then
4952   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959     for ac_exec_ext in '' $ac_executable_extensions; do
4960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966   done
4967 IFS=$as_save_IFS
4968
4969 fi
4970 fi
4971 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4972 if test -n "$ac_ct_DUMPBIN"; then
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4974 $as_echo "$ac_ct_DUMPBIN" >&6; }
4975 else
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4978 fi
4979
4980
4981   test -n "$ac_ct_DUMPBIN" && break
4982 done
4983
4984   if test "x$ac_ct_DUMPBIN" = x; then
4985     DUMPBIN=":"
4986   else
4987     case $cross_compiling:$ac_tool_warned in
4988 yes:)
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4991 ac_tool_warned=yes ;;
4992 esac
4993     DUMPBIN=$ac_ct_DUMPBIN
4994   fi
4995 fi
4996
4997     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4998     *COFF*)
4999       DUMPBIN="$DUMPBIN -symbols"
5000       ;;
5001     *)
5002       DUMPBIN=:
5003       ;;
5004     esac
5005   fi
5006
5007   if test "$DUMPBIN" != ":"; then
5008     NM="$DUMPBIN"
5009   fi
5010 fi
5011 test -z "$NM" && NM=nm
5012
5013
5014
5015
5016
5017
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5019 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5020 if test "${lt_cv_nm_interface+set}" = set; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   lt_cv_nm_interface="BSD nm"
5024   echo "int some_variable = 0;" > conftest.$ac_ext
5025   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5026   (eval "$ac_compile" 2>conftest.err)
5027   cat conftest.err >&5
5028   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5029   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5030   cat conftest.err >&5
5031   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5032   cat conftest.out >&5
5033   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5034     lt_cv_nm_interface="MS dumpbin"
5035   fi
5036   rm -f conftest*
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5039 $as_echo "$lt_cv_nm_interface" >&6; }
5040
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5042 $as_echo_n "checking whether ln -s works... " >&6; }
5043 LN_S=$as_ln_s
5044 if test "$LN_S" = "ln -s"; then
5045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046 $as_echo "yes" >&6; }
5047 else
5048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5049 $as_echo "no, using $LN_S" >&6; }
5050 fi
5051
5052 # find the maximum length of command line arguments
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5054 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5055 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5056   $as_echo_n "(cached) " >&6
5057 else
5058     i=0
5059   teststring="ABCD"
5060
5061   case $build_os in
5062   msdosdjgpp*)
5063     # On DJGPP, this test can blow up pretty badly due to problems in libc
5064     # (any single argument exceeding 2000 bytes causes a buffer overrun
5065     # during glob expansion).  Even if it were fixed, the result of this
5066     # check would be larger than it should be.
5067     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5068     ;;
5069
5070   gnu*)
5071     # Under GNU Hurd, this test is not required because there is
5072     # no limit to the length of command line arguments.
5073     # Libtool will interpret -1 as no limit whatsoever
5074     lt_cv_sys_max_cmd_len=-1;
5075     ;;
5076
5077   cygwin* | mingw* | cegcc*)
5078     # On Win9x/ME, this test blows up -- it succeeds, but takes
5079     # about 5 minutes as the teststring grows exponentially.
5080     # Worse, since 9x/ME are not pre-emptively multitasking,
5081     # you end up with a "frozen" computer, even though with patience
5082     # the test eventually succeeds (with a max line length of 256k).
5083     # Instead, let's just punt: use the minimum linelength reported by
5084     # all of the supported platforms: 8192 (on NT/2K/XP).
5085     lt_cv_sys_max_cmd_len=8192;
5086     ;;
5087
5088   mint*)
5089     # On MiNT this can take a long time and run out of memory.
5090     lt_cv_sys_max_cmd_len=8192;
5091     ;;
5092
5093   amigaos*)
5094     # On AmigaOS with pdksh, this test takes hours, literally.
5095     # So we just punt and use a minimum line length of 8192.
5096     lt_cv_sys_max_cmd_len=8192;
5097     ;;
5098
5099   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5100     # This has been around since 386BSD, at least.  Likely further.
5101     if test -x /sbin/sysctl; then
5102       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5103     elif test -x /usr/sbin/sysctl; then
5104       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5105     else
5106       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5107     fi
5108     # And add a safety zone
5109     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5110     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5111     ;;
5112
5113   interix*)
5114     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5115     lt_cv_sys_max_cmd_len=196608
5116     ;;
5117
5118   osf*)
5119     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5120     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5121     # nice to cause kernel panics so lets avoid the loop below.
5122     # First set a reasonable default.
5123     lt_cv_sys_max_cmd_len=16384
5124     #
5125     if test -x /sbin/sysconfig; then
5126       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5127         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5128       esac
5129     fi
5130     ;;
5131   sco3.2v5*)
5132     lt_cv_sys_max_cmd_len=102400
5133     ;;
5134   sysv5* | sco5v6* | sysv4.2uw2*)
5135     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5136     if test -n "$kargmax"; then
5137       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5138     else
5139       lt_cv_sys_max_cmd_len=32768
5140     fi
5141     ;;
5142   *)
5143     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5144     if test -n "$lt_cv_sys_max_cmd_len"; then
5145       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5146       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5147     else
5148       # Make teststring a little bigger before we do anything with it.
5149       # a 1K string should be a reasonable start.
5150       for i in 1 2 3 4 5 6 7 8 ; do
5151         teststring=$teststring$teststring
5152       done
5153       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5154       # If test is not a shell built-in, we'll probably end up computing a
5155       # maximum length that is only half of the actual maximum length, but
5156       # we can't tell.
5157       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5158                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5159               test $i != 17 # 1/2 MB should be enough
5160       do
5161         i=`expr $i + 1`
5162         teststring=$teststring$teststring
5163       done
5164       # Only check the string length outside the loop.
5165       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5166       teststring=
5167       # Add a significant safety factor because C++ compilers can tack on
5168       # massive amounts of additional arguments before passing them to the
5169       # linker.  It appears as though 1/2 is a usable value.
5170       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5171     fi
5172     ;;
5173   esac
5174
5175 fi
5176
5177 if test -n $lt_cv_sys_max_cmd_len ; then
5178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5179 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5180 else
5181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5182 $as_echo "none" >&6; }
5183 fi
5184 max_cmd_len=$lt_cv_sys_max_cmd_len
5185
5186
5187
5188
5189
5190
5191 : ${CP="cp -f"}
5192 : ${MV="mv -f"}
5193 : ${RM="rm -f"}
5194
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5196 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5197 # Try some XSI features
5198 xsi_shell=no
5199 ( _lt_dummy="a/b/c"
5200   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5201       = c,a/b,, \
5202     && eval 'test $(( 1 + 1 )) -eq 2 \
5203     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5204   && xsi_shell=yes
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5206 $as_echo "$xsi_shell" >&6; }
5207
5208
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5210 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5211 lt_shell_append=no
5212 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5213     >/dev/null 2>&1 \
5214   && lt_shell_append=yes
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5216 $as_echo "$lt_shell_append" >&6; }
5217
5218
5219 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220   lt_unset=unset
5221 else
5222   lt_unset=false
5223 fi
5224
5225
5226
5227
5228
5229 # test EBCDIC or ASCII
5230 case `echo X|tr X '\101'` in
5231  A) # ASCII based system
5232     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5233   lt_SP2NL='tr \040 \012'
5234   lt_NL2SP='tr \015\012 \040\040'
5235   ;;
5236  *) # EBCDIC based system
5237   lt_SP2NL='tr \100 \n'
5238   lt_NL2SP='tr \r\n \100\100'
5239   ;;
5240 esac
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5251 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5252 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5253   $as_echo_n "(cached) " >&6
5254 else
5255   lt_cv_ld_reload_flag='-r'
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5258 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5259 reload_flag=$lt_cv_ld_reload_flag
5260 case $reload_flag in
5261 "" | " "*) ;;
5262 *) reload_flag=" $reload_flag" ;;
5263 esac
5264 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5265 case $host_os in
5266   darwin*)
5267     if test "$GCC" = yes; then
5268       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5269     else
5270       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5271     fi
5272     ;;
5273 esac
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283 if test -n "$ac_tool_prefix"; then
5284   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5285 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5289   $as_echo_n "(cached) " >&6
5290 else
5291   if test -n "$OBJDUMP"; then
5292   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5296 do
5297   IFS=$as_save_IFS
5298   test -z "$as_dir" && as_dir=.
5299     for ac_exec_ext in '' $ac_executable_extensions; do
5300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5302     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303     break 2
5304   fi
5305 done
5306   done
5307 IFS=$as_save_IFS
5308
5309 fi
5310 fi
5311 OBJDUMP=$ac_cv_prog_OBJDUMP
5312 if test -n "$OBJDUMP"; then
5313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5314 $as_echo "$OBJDUMP" >&6; }
5315 else
5316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5318 fi
5319
5320
5321 fi
5322 if test -z "$ac_cv_prog_OBJDUMP"; then
5323   ac_ct_OBJDUMP=$OBJDUMP
5324   # Extract the first word of "objdump", so it can be a program name with args.
5325 set dummy objdump; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   if test -n "$ac_ct_OBJDUMP"; then
5332   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5333 else
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in $PATH
5336 do
5337   IFS=$as_save_IFS
5338   test -z "$as_dir" && as_dir=.
5339     for ac_exec_ext in '' $ac_executable_extensions; do
5340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5341     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5343     break 2
5344   fi
5345 done
5346   done
5347 IFS=$as_save_IFS
5348
5349 fi
5350 fi
5351 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5352 if test -n "$ac_ct_OBJDUMP"; then
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5354 $as_echo "$ac_ct_OBJDUMP" >&6; }
5355 else
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5357 $as_echo "no" >&6; }
5358 fi
5359
5360   if test "x$ac_ct_OBJDUMP" = x; then
5361     OBJDUMP="false"
5362   else
5363     case $cross_compiling:$ac_tool_warned in
5364 yes:)
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5367 ac_tool_warned=yes ;;
5368 esac
5369     OBJDUMP=$ac_ct_OBJDUMP
5370   fi
5371 else
5372   OBJDUMP="$ac_cv_prog_OBJDUMP"
5373 fi
5374
5375 test -z "$OBJDUMP" && OBJDUMP=objdump
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5386 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5387 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   lt_cv_file_magic_cmd='$MAGIC_CMD'
5391 lt_cv_file_magic_test_file=
5392 lt_cv_deplibs_check_method='unknown'
5393 # Need to set the preceding variable on all platforms that support
5394 # interlibrary dependencies.
5395 # 'none' -- dependencies not supported.
5396 # `unknown' -- same as none, but documents that we really don't know.
5397 # 'pass_all' -- all dependencies passed with no checks.
5398 # 'test_compile' -- check by making test program.
5399 # 'file_magic [[regex]]' -- check by looking for files in library path
5400 # which responds to the $file_magic_cmd with a given extended regex.
5401 # If you have `file' or equivalent on your system and you're not sure
5402 # whether `pass_all' will *always* work, you probably want this one.
5403
5404 case $host_os in
5405 aix[4-9]*)
5406   lt_cv_deplibs_check_method=pass_all
5407   ;;
5408
5409 beos*)
5410   lt_cv_deplibs_check_method=pass_all
5411   ;;
5412
5413 bsdi[45]*)
5414   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5415   lt_cv_file_magic_cmd='/usr/bin/file -L'
5416   lt_cv_file_magic_test_file=/shlib/libc.so
5417   ;;
5418
5419 cygwin*)
5420   # func_win32_libid is a shell function defined in ltmain.sh
5421   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5422   lt_cv_file_magic_cmd='func_win32_libid'
5423   ;;
5424
5425 mingw* | pw32*)
5426   # Base MSYS/MinGW do not provide the 'file' command needed by
5427   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5428   # unless we find 'file', for example because we are cross-compiling.
5429   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5430   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5431     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5432     lt_cv_file_magic_cmd='func_win32_libid'
5433   else
5434     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5435     lt_cv_file_magic_cmd='$OBJDUMP -f'
5436   fi
5437   ;;
5438
5439 cegcc*)
5440   # use the weaker test based on 'objdump'. See mingw*.
5441   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5442   lt_cv_file_magic_cmd='$OBJDUMP -f'
5443   ;;
5444
5445 darwin* | rhapsody*)
5446   lt_cv_deplibs_check_method=pass_all
5447   ;;
5448
5449 freebsd* | dragonfly*)
5450   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5451     case $host_cpu in
5452     i*86 )
5453       # Not sure whether the presence of OpenBSD here was a mistake.
5454       # Let's accept both of them until this is cleared up.
5455       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5456       lt_cv_file_magic_cmd=/usr/bin/file
5457       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5458       ;;
5459     esac
5460   else
5461     lt_cv_deplibs_check_method=pass_all
5462   fi
5463   ;;
5464
5465 gnu*)
5466   lt_cv_deplibs_check_method=pass_all
5467   ;;
5468
5469 haiku*)
5470   lt_cv_deplibs_check_method=pass_all
5471   ;;
5472
5473 hpux10.20* | hpux11*)
5474   lt_cv_file_magic_cmd=/usr/bin/file
5475   case $host_cpu in
5476   ia64*)
5477     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5478     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5479     ;;
5480   hppa*64*)
5481     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]'
5482     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5483     ;;
5484   *)
5485     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5486     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5487     ;;
5488   esac
5489   ;;
5490
5491 interix[3-9]*)
5492   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5493   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5494   ;;
5495
5496 irix5* | irix6* | nonstopux*)
5497   case $LD in
5498   *-32|*"-32 ") libmagic=32-bit;;
5499   *-n32|*"-n32 ") libmagic=N32;;
5500   *-64|*"-64 ") libmagic=64-bit;;
5501   *) libmagic=never-match;;
5502   esac
5503   lt_cv_deplibs_check_method=pass_all
5504   ;;
5505
5506 # This must be Linux ELF.
5507 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510
5511 netbsd*)
5512   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5513     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5514   else
5515     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5516   fi
5517   ;;
5518
5519 newos6*)
5520   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5521   lt_cv_file_magic_cmd=/usr/bin/file
5522   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5523   ;;
5524
5525 *nto* | *qnx*)
5526   lt_cv_deplibs_check_method=pass_all
5527   ;;
5528
5529 openbsd*)
5530   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5531     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5532   else
5533     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5534   fi
5535   ;;
5536
5537 osf3* | osf4* | osf5*)
5538   lt_cv_deplibs_check_method=pass_all
5539   ;;
5540
5541 rdos*)
5542   lt_cv_deplibs_check_method=pass_all
5543   ;;
5544
5545 solaris*)
5546   lt_cv_deplibs_check_method=pass_all
5547   ;;
5548
5549 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5550   lt_cv_deplibs_check_method=pass_all
5551   ;;
5552
5553 sysv4 | sysv4.3*)
5554   case $host_vendor in
5555   motorola)
5556     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]'
5557     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5558     ;;
5559   ncr)
5560     lt_cv_deplibs_check_method=pass_all
5561     ;;
5562   sequent)
5563     lt_cv_file_magic_cmd='/bin/file'
5564     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5565     ;;
5566   sni)
5567     lt_cv_file_magic_cmd='/bin/file'
5568     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5569     lt_cv_file_magic_test_file=/lib/libc.so
5570     ;;
5571   siemens)
5572     lt_cv_deplibs_check_method=pass_all
5573     ;;
5574   pc)
5575     lt_cv_deplibs_check_method=pass_all
5576     ;;
5577   esac
5578   ;;
5579
5580 tpf*)
5581   lt_cv_deplibs_check_method=pass_all
5582   ;;
5583 esac
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5587 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5588 file_magic_cmd=$lt_cv_file_magic_cmd
5589 deplibs_check_method=$lt_cv_deplibs_check_method
5590 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603 if test -n "$ac_tool_prefix"; then
5604   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}ar; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if test "${ac_cv_prog_AR+set}" = set; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$AR"; then
5612   ac_cv_prog_AR="$AR" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_prog_AR="${ac_tool_prefix}ar"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 AR=$ac_cv_prog_AR
5632 if test -n "$AR"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5634 $as_echo "$AR" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 fi
5642 if test -z "$ac_cv_prog_AR"; then
5643   ac_ct_AR=$AR
5644   # Extract the first word of "ar", so it can be a program name with args.
5645 set dummy ar; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$ac_ct_AR"; then
5652   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5661     ac_cv_prog_ac_ct_AR="ar"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5672 if test -n "$ac_ct_AR"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5674 $as_echo "$ac_ct_AR" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680   if test "x$ac_ct_AR" = x; then
5681     AR="false"
5682   else
5683     case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689     AR=$ac_ct_AR
5690   fi
5691 else
5692   AR="$ac_cv_prog_AR"
5693 fi
5694
5695 test -z "$AR" && AR=ar
5696 test -z "$AR_FLAGS" && AR_FLAGS=cru
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708 if test -n "$ac_tool_prefix"; then
5709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5710 set dummy ${ac_tool_prefix}strip; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_prog_STRIP+set}" = set; then :
5714   $as_echo_n "(cached) " >&6
5715 else
5716   if test -n "$STRIP"; then
5717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5718 else
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 for as_dir in $PATH
5721 do
5722   IFS=$as_save_IFS
5723   test -z "$as_dir" && as_dir=.
5724     for ac_exec_ext in '' $ac_executable_extensions; do
5725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728     break 2
5729   fi
5730 done
5731   done
5732 IFS=$as_save_IFS
5733
5734 fi
5735 fi
5736 STRIP=$ac_cv_prog_STRIP
5737 if test -n "$STRIP"; then
5738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5739 $as_echo "$STRIP" >&6; }
5740 else
5741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5743 fi
5744
5745
5746 fi
5747 if test -z "$ac_cv_prog_STRIP"; then
5748   ac_ct_STRIP=$STRIP
5749   # Extract the first word of "strip", so it can be a program name with args.
5750 set dummy strip; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5754   $as_echo_n "(cached) " >&6
5755 else
5756   if test -n "$ac_ct_STRIP"; then
5757   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5758 else
5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5760 for as_dir in $PATH
5761 do
5762   IFS=$as_save_IFS
5763   test -z "$as_dir" && as_dir=.
5764     for ac_exec_ext in '' $ac_executable_extensions; do
5765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5766     ac_cv_prog_ac_ct_STRIP="strip"
5767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5768     break 2
5769   fi
5770 done
5771   done
5772 IFS=$as_save_IFS
5773
5774 fi
5775 fi
5776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5777 if test -n "$ac_ct_STRIP"; then
5778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5779 $as_echo "$ac_ct_STRIP" >&6; }
5780 else
5781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5783 fi
5784
5785   if test "x$ac_ct_STRIP" = x; then
5786     STRIP=":"
5787   else
5788     case $cross_compiling:$ac_tool_warned in
5789 yes:)
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5792 ac_tool_warned=yes ;;
5793 esac
5794     STRIP=$ac_ct_STRIP
5795   fi
5796 else
5797   STRIP="$ac_cv_prog_STRIP"
5798 fi
5799
5800 test -z "$STRIP" && STRIP=:
5801
5802
5803
5804
5805
5806
5807 if test -n "$ac_tool_prefix"; then
5808   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5809 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -n "$RANLIB"; then
5816   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 RANLIB=$ac_cv_prog_RANLIB
5836 if test -n "$RANLIB"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5838 $as_echo "$RANLIB" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844
5845 fi
5846 if test -z "$ac_cv_prog_RANLIB"; then
5847   ac_ct_RANLIB=$RANLIB
5848   # Extract the first word of "ranlib", so it can be a program name with args.
5849 set dummy ranlib; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5853   $as_echo_n "(cached) " >&6
5854 else
5855   if test -n "$ac_ct_RANLIB"; then
5856   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863     for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_prog_ac_ct_RANLIB="ranlib"
5866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870   done
5871 IFS=$as_save_IFS
5872
5873 fi
5874 fi
5875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876 if test -n "$ac_ct_RANLIB"; then
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5878 $as_echo "$ac_ct_RANLIB" >&6; }
5879 else
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883
5884   if test "x$ac_ct_RANLIB" = x; then
5885     RANLIB=":"
5886   else
5887     case $cross_compiling:$ac_tool_warned in
5888 yes:)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5891 ac_tool_warned=yes ;;
5892 esac
5893     RANLIB=$ac_ct_RANLIB
5894   fi
5895 else
5896   RANLIB="$ac_cv_prog_RANLIB"
5897 fi
5898
5899 test -z "$RANLIB" && RANLIB=:
5900
5901
5902
5903
5904
5905
5906 # Determine commands to create old-style static archives.
5907 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5908 old_postinstall_cmds='chmod 644 $oldlib'
5909 old_postuninstall_cmds=
5910
5911 if test -n "$RANLIB"; then
5912   case $host_os in
5913   openbsd*)
5914     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5915     ;;
5916   *)
5917     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5918     ;;
5919   esac
5920   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5921 fi
5922
5923 case $host_os in
5924   darwin*)
5925     lock_old_archive_extraction=yes ;;
5926   *)
5927     lock_old_archive_extraction=no ;;
5928 esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968 # If no C compiler was specified, use CC.
5969 LTCC=${LTCC-"$CC"}
5970
5971 # If no C compiler flags were specified, use CFLAGS.
5972 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5973
5974 # Allow CC to be a program name with arguments.
5975 compiler=$CC
5976
5977
5978 # Check for command to grab the raw symbol name followed by C symbol from nm.
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5980 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5981 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5982   $as_echo_n "(cached) " >&6
5983 else
5984
5985 # These are sane defaults that work on at least a few old systems.
5986 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5987
5988 # Character class describing NM global symbol codes.
5989 symcode='[BCDEGRST]'
5990
5991 # Regexp to match symbols that can be accessed directly from C.
5992 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5993
5994 # Define system-specific variables.
5995 case $host_os in
5996 aix*)
5997   symcode='[BCDT]'
5998   ;;
5999 cygwin* | mingw* | pw32* | cegcc*)
6000   symcode='[ABCDGISTW]'
6001   ;;
6002 hpux*)
6003   if test "$host_cpu" = ia64; then
6004     symcode='[ABCDEGRST]'
6005   fi
6006   ;;
6007 irix* | nonstopux*)
6008   symcode='[BCDEGRST]'
6009   ;;
6010 osf*)
6011   symcode='[BCDEGQRST]'
6012   ;;
6013 solaris*)
6014   symcode='[BDRT]'
6015   ;;
6016 sco3.2v5*)
6017   symcode='[DT]'
6018   ;;
6019 sysv4.2uw2*)
6020   symcode='[DT]'
6021   ;;
6022 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6023   symcode='[ABDT]'
6024   ;;
6025 sysv4)
6026   symcode='[DFNSTU]'
6027   ;;
6028 esac
6029
6030 # If we're using GNU nm, then use its standard symbol codes.
6031 case `$NM -V 2>&1` in
6032 *GNU* | *'with BFD'*)
6033   symcode='[ABCDGIRSTW]' ;;
6034 esac
6035
6036 # Transform an extracted symbol line into a proper C declaration.
6037 # Some systems (esp. on ia64) link data and code symbols differently,
6038 # so use this general approach.
6039 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6040
6041 # Transform an extracted symbol line into symbol name and symbol address
6042 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6043 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'"
6044
6045 # Handle CRLF in mingw tool chain
6046 opt_cr=
6047 case $build_os in
6048 mingw*)
6049   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6050   ;;
6051 esac
6052
6053 # Try without a prefix underscore, then with it.
6054 for ac_symprfx in "" "_"; do
6055
6056   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6057   symxfrm="\\1 $ac_symprfx\\2 \\2"
6058
6059   # Write the raw and C identifiers.
6060   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061     # Fake it for dumpbin and say T for any non-static function
6062     # and D for any global variable.
6063     # Also find C++ and __fastcall symbols from MSVC++,
6064     # which start with @ or ?.
6065     lt_cv_sys_global_symbol_pipe="$AWK '"\
6066 "     {last_section=section; section=\$ 3};"\
6067 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6068 "     \$ 0!~/External *\|/{next};"\
6069 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6070 "     {if(hide[section]) next};"\
6071 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6072 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6073 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6074 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6075 "     ' prfx=^$ac_symprfx"
6076   else
6077     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6078   fi
6079
6080   # Check to see that the pipe works correctly.
6081   pipe_works=no
6082
6083   rm -f conftest*
6084   cat > conftest.$ac_ext <<_LT_EOF
6085 #ifdef __cplusplus
6086 extern "C" {
6087 #endif
6088 char nm_test_var;
6089 void nm_test_func(void);
6090 void nm_test_func(void){}
6091 #ifdef __cplusplus
6092 }
6093 #endif
6094 int main(){nm_test_var='a';nm_test_func();return(0);}
6095 _LT_EOF
6096
6097   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6098   (eval $ac_compile) 2>&5
6099   ac_status=$?
6100   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101   test $ac_status = 0; }; then
6102     # Now try to grab the symbols.
6103     nlist=conftest.nm
6104     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6105   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6106   ac_status=$?
6107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108   test $ac_status = 0; } && test -s "$nlist"; then
6109       # Try sorting and uniquifying the output.
6110       if sort "$nlist" | uniq > "$nlist"T; then
6111         mv -f "$nlist"T "$nlist"
6112       else
6113         rm -f "$nlist"T
6114       fi
6115
6116       # Make sure that we snagged all the symbols we need.
6117       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6118         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6119           cat <<_LT_EOF > conftest.$ac_ext
6120 #ifdef __cplusplus
6121 extern "C" {
6122 #endif
6123
6124 _LT_EOF
6125           # Now generate the symbol file.
6126           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6127
6128           cat <<_LT_EOF >> conftest.$ac_ext
6129
6130 /* The mapping between symbol names and symbols.  */
6131 const struct {
6132   const char *name;
6133   void       *address;
6134 }
6135 lt__PROGRAM__LTX_preloaded_symbols[] =
6136 {
6137   { "@PROGRAM@", (void *) 0 },
6138 _LT_EOF
6139           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6140           cat <<\_LT_EOF >> conftest.$ac_ext
6141   {0, (void *) 0}
6142 };
6143
6144 /* This works around a problem in FreeBSD linker */
6145 #ifdef FREEBSD_WORKAROUND
6146 static const void *lt_preloaded_setup() {
6147   return lt__PROGRAM__LTX_preloaded_symbols;
6148 }
6149 #endif
6150
6151 #ifdef __cplusplus
6152 }
6153 #endif
6154 _LT_EOF
6155           # Now try linking the two files.
6156           mv conftest.$ac_objext conftstm.$ac_objext
6157           lt_save_LIBS="$LIBS"
6158           lt_save_CFLAGS="$CFLAGS"
6159           LIBS="conftstm.$ac_objext"
6160           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6161           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6162   (eval $ac_link) 2>&5
6163   ac_status=$?
6164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6166             pipe_works=yes
6167           fi
6168           LIBS="$lt_save_LIBS"
6169           CFLAGS="$lt_save_CFLAGS"
6170         else
6171           echo "cannot find nm_test_func in $nlist" >&5
6172         fi
6173       else
6174         echo "cannot find nm_test_var in $nlist" >&5
6175       fi
6176     else
6177       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6178     fi
6179   else
6180     echo "$progname: failed program was:" >&5
6181     cat conftest.$ac_ext >&5
6182   fi
6183   rm -rf conftest* conftst*
6184
6185   # Do not use the global_symbol_pipe unless it works.
6186   if test "$pipe_works" = yes; then
6187     break
6188   else
6189     lt_cv_sys_global_symbol_pipe=
6190   fi
6191 done
6192
6193 fi
6194
6195 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6196   lt_cv_sys_global_symbol_to_cdecl=
6197 fi
6198 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6200 $as_echo "failed" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6203 $as_echo "ok" >&6; }
6204 fi
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 # Check whether --enable-libtool-lock was given.
6229 if test "${enable_libtool_lock+set}" = set; then :
6230   enableval=$enable_libtool_lock;
6231 fi
6232
6233 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6234
6235 # Some flags need to be propagated to the compiler or linker for good
6236 # libtool support.
6237 case $host in
6238 ia64-*-hpux*)
6239   # Find out which ABI we are using.
6240   echo 'int i;' > conftest.$ac_ext
6241   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6242   (eval $ac_compile) 2>&5
6243   ac_status=$?
6244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245   test $ac_status = 0; }; then
6246     case `/usr/bin/file conftest.$ac_objext` in
6247       *ELF-32*)
6248         HPUX_IA64_MODE="32"
6249         ;;
6250       *ELF-64*)
6251         HPUX_IA64_MODE="64"
6252         ;;
6253     esac
6254   fi
6255   rm -rf conftest*
6256   ;;
6257 *-*-irix6*)
6258   # Find out which ABI we are using.
6259   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6260   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6261   (eval $ac_compile) 2>&5
6262   ac_status=$?
6263   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6264   test $ac_status = 0; }; then
6265     if test "$lt_cv_prog_gnu_ld" = yes; then
6266       case `/usr/bin/file conftest.$ac_objext` in
6267         *32-bit*)
6268           LD="${LD-ld} -melf32bsmip"
6269           ;;
6270         *N32*)
6271           LD="${LD-ld} -melf32bmipn32"
6272           ;;
6273         *64-bit*)
6274           LD="${LD-ld} -melf64bmip"
6275         ;;
6276       esac
6277     else
6278       case `/usr/bin/file conftest.$ac_objext` in
6279         *32-bit*)
6280           LD="${LD-ld} -32"
6281           ;;
6282         *N32*)
6283           LD="${LD-ld} -n32"
6284           ;;
6285         *64-bit*)
6286           LD="${LD-ld} -64"
6287           ;;
6288       esac
6289     fi
6290   fi
6291   rm -rf conftest*
6292   ;;
6293
6294 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6295 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6296   # Find out which ABI we are using.
6297   echo 'int i;' > conftest.$ac_ext
6298   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6299   (eval $ac_compile) 2>&5
6300   ac_status=$?
6301   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6302   test $ac_status = 0; }; then
6303     case `/usr/bin/file conftest.o` in
6304       *32-bit*)
6305         case $host in
6306           x86_64-*kfreebsd*-gnu)
6307             LD="${LD-ld} -m elf_i386_fbsd"
6308             ;;
6309           x86_64-*linux*)
6310             LD="${LD-ld} -m elf_i386"
6311             ;;
6312           ppc64-*linux*|powerpc64-*linux*)
6313             LD="${LD-ld} -m elf32ppclinux"
6314             ;;
6315           s390x-*linux*)
6316             LD="${LD-ld} -m elf_s390"
6317             ;;
6318           sparc64-*linux*)
6319             LD="${LD-ld} -m elf32_sparc"
6320             ;;
6321         esac
6322         ;;
6323       *64-bit*)
6324         case $host in
6325           x86_64-*kfreebsd*-gnu)
6326             LD="${LD-ld} -m elf_x86_64_fbsd"
6327             ;;
6328           x86_64-*linux*)
6329             LD="${LD-ld} -m elf_x86_64"
6330             ;;
6331           ppc*-*linux*|powerpc*-*linux*)
6332             LD="${LD-ld} -m elf64ppc"
6333             ;;
6334           s390*-*linux*|s390*-*tpf*)
6335             LD="${LD-ld} -m elf64_s390"
6336             ;;
6337           sparc*-*linux*)
6338             LD="${LD-ld} -m elf64_sparc"
6339             ;;
6340         esac
6341         ;;
6342     esac
6343   fi
6344   rm -rf conftest*
6345   ;;
6346
6347 *-*-sco3.2v5*)
6348   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6349   SAVE_CFLAGS="$CFLAGS"
6350   CFLAGS="$CFLAGS -belf"
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6352 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6353 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   ac_ext=c
6357 ac_cpp='$CPP $CPPFLAGS'
6358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361
6362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h.  */
6364
6365 int
6366 main ()
6367 {
6368
6369   ;
6370   return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"; then :
6374   lt_cv_cc_needs_belf=yes
6375 else
6376   lt_cv_cc_needs_belf=no
6377 fi
6378 rm -f core conftest.err conftest.$ac_objext \
6379     conftest$ac_exeext conftest.$ac_ext
6380      ac_ext=c
6381 ac_cpp='$CPP $CPPFLAGS'
6382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6385
6386 fi
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6388 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6389   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6390     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6391     CFLAGS="$SAVE_CFLAGS"
6392   fi
6393   ;;
6394 sparc*-*solaris*)
6395   # Find out which ABI we are using.
6396   echo 'int i;' > conftest.$ac_ext
6397   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6398   (eval $ac_compile) 2>&5
6399   ac_status=$?
6400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6401   test $ac_status = 0; }; then
6402     case `/usr/bin/file conftest.o` in
6403     *64-bit*)
6404       case $lt_cv_prog_gnu_ld in
6405       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6406       *)
6407         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6408           LD="${LD-ld} -64"
6409         fi
6410         ;;
6411       esac
6412       ;;
6413     esac
6414   fi
6415   rm -rf conftest*
6416   ;;
6417 esac
6418
6419 need_locks="$enable_libtool_lock"
6420
6421
6422   case $host_os in
6423     rhapsody* | darwin*)
6424     if test -n "$ac_tool_prefix"; then
6425   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6426 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6428 $as_echo_n "checking for $ac_word... " >&6; }
6429 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6430   $as_echo_n "(cached) " >&6
6431 else
6432   if test -n "$DSYMUTIL"; then
6433   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6434 else
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6436 for as_dir in $PATH
6437 do
6438   IFS=$as_save_IFS
6439   test -z "$as_dir" && as_dir=.
6440     for ac_exec_ext in '' $ac_executable_extensions; do
6441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6442     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6444     break 2
6445   fi
6446 done
6447   done
6448 IFS=$as_save_IFS
6449
6450 fi
6451 fi
6452 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6453 if test -n "$DSYMUTIL"; then
6454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6455 $as_echo "$DSYMUTIL" >&6; }
6456 else
6457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6458 $as_echo "no" >&6; }
6459 fi
6460
6461
6462 fi
6463 if test -z "$ac_cv_prog_DSYMUTIL"; then
6464   ac_ct_DSYMUTIL=$DSYMUTIL
6465   # Extract the first word of "dsymutil", so it can be a program name with args.
6466 set dummy dsymutil; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6470   $as_echo_n "(cached) " >&6
6471 else
6472   if test -n "$ac_ct_DSYMUTIL"; then
6473   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478   IFS=$as_save_IFS
6479   test -z "$as_dir" && as_dir=.
6480     for ac_exec_ext in '' $ac_executable_extensions; do
6481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6482     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484     break 2
6485   fi
6486 done
6487   done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6493 if test -n "$ac_ct_DSYMUTIL"; then
6494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6495 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6496 else
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501   if test "x$ac_ct_DSYMUTIL" = x; then
6502     DSYMUTIL=":"
6503   else
6504     case $cross_compiling:$ac_tool_warned in
6505 yes:)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6508 ac_tool_warned=yes ;;
6509 esac
6510     DSYMUTIL=$ac_ct_DSYMUTIL
6511   fi
6512 else
6513   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6514 fi
6515
6516     if test -n "$ac_tool_prefix"; then
6517   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6522   $as_echo_n "(cached) " >&6
6523 else
6524   if test -n "$NMEDIT"; then
6525   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530   IFS=$as_save_IFS
6531   test -z "$as_dir" && as_dir=.
6532     for ac_exec_ext in '' $ac_executable_extensions; do
6533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6536     break 2
6537   fi
6538 done
6539   done
6540 IFS=$as_save_IFS
6541
6542 fi
6543 fi
6544 NMEDIT=$ac_cv_prog_NMEDIT
6545 if test -n "$NMEDIT"; then
6546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6547 $as_echo "$NMEDIT" >&6; }
6548 else
6549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550 $as_echo "no" >&6; }
6551 fi
6552
6553
6554 fi
6555 if test -z "$ac_cv_prog_NMEDIT"; then
6556   ac_ct_NMEDIT=$NMEDIT
6557   # Extract the first word of "nmedit", so it can be a program name with args.
6558 set dummy nmedit; ac_word=$2
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560 $as_echo_n "checking for $ac_word... " >&6; }
6561 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6562   $as_echo_n "(cached) " >&6
6563 else
6564   if test -n "$ac_ct_NMEDIT"; then
6565   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6566 else
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568 for as_dir in $PATH
6569 do
6570   IFS=$as_save_IFS
6571   test -z "$as_dir" && as_dir=.
6572     for ac_exec_ext in '' $ac_executable_extensions; do
6573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6576     break 2
6577   fi
6578 done
6579   done
6580 IFS=$as_save_IFS
6581
6582 fi
6583 fi
6584 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6585 if test -n "$ac_ct_NMEDIT"; then
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6587 $as_echo "$ac_ct_NMEDIT" >&6; }
6588 else
6589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6591 fi
6592
6593   if test "x$ac_ct_NMEDIT" = x; then
6594     NMEDIT=":"
6595   else
6596     case $cross_compiling:$ac_tool_warned in
6597 yes:)
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600 ac_tool_warned=yes ;;
6601 esac
6602     NMEDIT=$ac_ct_NMEDIT
6603   fi
6604 else
6605   NMEDIT="$ac_cv_prog_NMEDIT"
6606 fi
6607
6608     if test -n "$ac_tool_prefix"; then
6609   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if test "${ac_cv_prog_LIPO+set}" = set; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   if test -n "$LIPO"; then
6617   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622   IFS=$as_save_IFS
6623   test -z "$as_dir" && as_dir=.
6624     for ac_exec_ext in '' $ac_executable_extensions; do
6625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628     break 2
6629   fi
6630 done
6631   done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 LIPO=$ac_cv_prog_LIPO
6637 if test -n "$LIPO"; then
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6639 $as_echo "$LIPO" >&6; }
6640 else
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_LIPO"; then
6648   ac_ct_LIPO=$LIPO
6649   # Extract the first word of "lipo", so it can be a program name with args.
6650 set dummy lipo; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6654   $as_echo_n "(cached) " >&6
6655 else
6656   if test -n "$ac_ct_LIPO"; then
6657   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662   IFS=$as_save_IFS
6663   test -z "$as_dir" && as_dir=.
6664     for ac_exec_ext in '' $ac_executable_extensions; do
6665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666     ac_cv_prog_ac_ct_LIPO="lipo"
6667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668     break 2
6669   fi
6670 done
6671   done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6677 if test -n "$ac_ct_LIPO"; then
6678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6679 $as_echo "$ac_ct_LIPO" >&6; }
6680 else
6681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685   if test "x$ac_ct_LIPO" = x; then
6686     LIPO=":"
6687   else
6688     case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694     LIPO=$ac_ct_LIPO
6695   fi
6696 else
6697   LIPO="$ac_cv_prog_LIPO"
6698 fi
6699
6700     if test -n "$ac_tool_prefix"; then
6701   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6702 set dummy ${ac_tool_prefix}otool; ac_word=$2
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6704 $as_echo_n "checking for $ac_word... " >&6; }
6705 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6706   $as_echo_n "(cached) " >&6
6707 else
6708   if test -n "$OTOOL"; then
6709   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716     for ac_exec_ext in '' $ac_executable_extensions; do
6717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723   done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 OTOOL=$ac_cv_prog_OTOOL
6729 if test -n "$OTOOL"; then
6730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6731 $as_echo "$OTOOL" >&6; }
6732 else
6733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6734 $as_echo "no" >&6; }
6735 fi
6736
6737
6738 fi
6739 if test -z "$ac_cv_prog_OTOOL"; then
6740   ac_ct_OTOOL=$OTOOL
6741   # Extract the first word of "otool", so it can be a program name with args.
6742 set dummy otool; ac_word=$2
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6746   $as_echo_n "(cached) " >&6
6747 else
6748   if test -n "$ac_ct_OTOOL"; then
6749   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754   IFS=$as_save_IFS
6755   test -z "$as_dir" && as_dir=.
6756     for ac_exec_ext in '' $ac_executable_extensions; do
6757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758     ac_cv_prog_ac_ct_OTOOL="otool"
6759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760     break 2
6761   fi
6762 done
6763   done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6769 if test -n "$ac_ct_OTOOL"; then
6770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6771 $as_echo "$ac_ct_OTOOL" >&6; }
6772 else
6773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777   if test "x$ac_ct_OTOOL" = x; then
6778     OTOOL=":"
6779   else
6780     case $cross_compiling:$ac_tool_warned in
6781 yes:)
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned=yes ;;
6785 esac
6786     OTOOL=$ac_ct_OTOOL
6787   fi
6788 else
6789   OTOOL="$ac_cv_prog_OTOOL"
6790 fi
6791
6792     if test -n "$ac_tool_prefix"; then
6793   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6794 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6796 $as_echo_n "checking for $ac_word... " >&6; }
6797 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6798   $as_echo_n "(cached) " >&6
6799 else
6800   if test -n "$OTOOL64"; then
6801   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6802 else
6803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6804 for as_dir in $PATH
6805 do
6806   IFS=$as_save_IFS
6807   test -z "$as_dir" && as_dir=.
6808     for ac_exec_ext in '' $ac_executable_extensions; do
6809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6810     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812     break 2
6813   fi
6814 done
6815   done
6816 IFS=$as_save_IFS
6817
6818 fi
6819 fi
6820 OTOOL64=$ac_cv_prog_OTOOL64
6821 if test -n "$OTOOL64"; then
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6823 $as_echo "$OTOOL64" >&6; }
6824 else
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6826 $as_echo "no" >&6; }
6827 fi
6828
6829
6830 fi
6831 if test -z "$ac_cv_prog_OTOOL64"; then
6832   ac_ct_OTOOL64=$OTOOL64
6833   # Extract the first word of "otool64", so it can be a program name with args.
6834 set dummy otool64; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   if test -n "$ac_ct_OTOOL64"; then
6841   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846   IFS=$as_save_IFS
6847   test -z "$as_dir" && as_dir=.
6848     for ac_exec_ext in '' $ac_executable_extensions; do
6849   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850     ac_cv_prog_ac_ct_OTOOL64="otool64"
6851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852     break 2
6853   fi
6854 done
6855   done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6861 if test -n "$ac_ct_OTOOL64"; then
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6863 $as_echo "$ac_ct_OTOOL64" >&6; }
6864 else
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869   if test "x$ac_ct_OTOOL64" = x; then
6870     OTOOL64=":"
6871   else
6872     case $cross_compiling:$ac_tool_warned in
6873 yes:)
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6875 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6876 ac_tool_warned=yes ;;
6877 esac
6878     OTOOL64=$ac_ct_OTOOL64
6879   fi
6880 else
6881   OTOOL64="$ac_cv_prog_OTOOL64"
6882 fi
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6911 $as_echo_n "checking for -single_module linker flag... " >&6; }
6912 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6913   $as_echo_n "(cached) " >&6
6914 else
6915   lt_cv_apple_cc_single_mod=no
6916       if test -z "${LT_MULTI_MODULE}"; then
6917         # By default we will add the -single_module flag. You can override
6918         # by either setting the environment variable LT_MULTI_MODULE
6919         # non-empty at configure time, or by adding -multi_module to the
6920         # link flags.
6921         rm -rf libconftest.dylib*
6922         echo "int foo(void){return 1;}" > conftest.c
6923         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6924 -dynamiclib -Wl,-single_module conftest.c" >&5
6925         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6926           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6927         _lt_result=$?
6928         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6929           lt_cv_apple_cc_single_mod=yes
6930         else
6931           cat conftest.err >&5
6932         fi
6933         rm -rf libconftest.dylib*
6934         rm -f conftest.*
6935       fi
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6938 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6940 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6941 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6942   $as_echo_n "(cached) " >&6
6943 else
6944   lt_cv_ld_exported_symbols_list=no
6945       save_LDFLAGS=$LDFLAGS
6946       echo "_main" > conftest.sym
6947       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h.  */
6950
6951 int
6952 main ()
6953 {
6954
6955   ;
6956   return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_link "$LINENO"; then :
6960   lt_cv_ld_exported_symbols_list=yes
6961 else
6962   lt_cv_ld_exported_symbols_list=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext \
6965     conftest$ac_exeext conftest.$ac_ext
6966         LDFLAGS="$save_LDFLAGS"
6967
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6970 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6972 $as_echo_n "checking for -force_load linker flag... " >&6; }
6973 if test "${lt_cv_ld_force_load+set}" = set; then :
6974   $as_echo_n "(cached) " >&6
6975 else
6976   lt_cv_ld_force_load=no
6977       cat > conftest.c << _LT_EOF
6978 int forced_loaded() { return 2;}
6979 _LT_EOF
6980       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6981       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6982       echo "$AR cru libconftest.a conftest.o" >&5
6983       $AR cru libconftest.a conftest.o 2>&5
6984       cat > conftest.c << _LT_EOF
6985 int main() { return 0;}
6986 _LT_EOF
6987       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6988       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6989       _lt_result=$?
6990       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6991         lt_cv_ld_force_load=yes
6992       else
6993         cat conftest.err >&5
6994       fi
6995         rm -f conftest.err libconftest.a conftest conftest.c
6996         rm -rf conftest.dSYM
6997
6998 fi
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7000 $as_echo "$lt_cv_ld_force_load" >&6; }
7001     case $host_os in
7002     rhapsody* | darwin1.[012])
7003       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7004     darwin1.*)
7005       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7006     darwin*) # darwin 5.x on
7007       # if running on 10.5 or later, the deployment target defaults
7008       # to the OS version, if on x86, and 10.4, the deployment
7009       # target defaults to 10.4. Don't you love it?
7010       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7011         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7012           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7013         10.[012]*)
7014           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7015         10.*)
7016           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7017       esac
7018     ;;
7019   esac
7020     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7021       _lt_dar_single_mod='$single_module'
7022     fi
7023     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7024       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7025     else
7026       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7027     fi
7028     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7029       _lt_dsymutil='~$DSYMUTIL $lib || :'
7030     else
7031       _lt_dsymutil=
7032     fi
7033     ;;
7034   esac
7035
7036 ac_ext=c
7037 ac_cpp='$CPP $CPPFLAGS'
7038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7042 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7043 # On Suns, sometimes $CPP names a directory.
7044 if test -n "$CPP" && test -d "$CPP"; then
7045   CPP=
7046 fi
7047 if test -z "$CPP"; then
7048   if test "${ac_cv_prog_CPP+set}" = set; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051       # Double quotes because CPP needs to be expanded
7052     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7053     do
7054       ac_preproc_ok=false
7055 for ac_c_preproc_warn_flag in '' yes
7056 do
7057   # Use a header file that comes with gcc, so configuring glibc
7058   # with a fresh cross-compiler works.
7059   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060   # <limits.h> exists even on freestanding compilers.
7061   # On the NeXT, cc -E runs the code through the compiler's parser,
7062   # not just through cpp. "Syntax error" is here to catch this case.
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 #ifdef __STDC__
7066 # include <limits.h>
7067 #else
7068 # include <assert.h>
7069 #endif
7070                      Syntax error
7071 _ACEOF
7072 if ac_fn_c_try_cpp "$LINENO"; then :
7073
7074 else
7075   # Broken: fails on valid input.
7076 continue
7077 fi
7078 rm -f conftest.err conftest.$ac_ext
7079
7080   # OK, works on sane cases.  Now check whether nonexistent headers
7081   # can be detected and how.
7082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h.  */
7084 #include <ac_nonexistent.h>
7085 _ACEOF
7086 if ac_fn_c_try_cpp "$LINENO"; then :
7087   # Broken: success on invalid input.
7088 continue
7089 else
7090   # Passes both tests.
7091 ac_preproc_ok=:
7092 break
7093 fi
7094 rm -f conftest.err conftest.$ac_ext
7095
7096 done
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then :
7100   break
7101 fi
7102
7103     done
7104     ac_cv_prog_CPP=$CPP
7105
7106 fi
7107   CPP=$ac_cv_prog_CPP
7108 else
7109   ac_cv_prog_CPP=$CPP
7110 fi
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7112 $as_echo "$CPP" >&6; }
7113 ac_preproc_ok=false
7114 for ac_c_preproc_warn_flag in '' yes
7115 do
7116   # Use a header file that comes with gcc, so configuring glibc
7117   # with a fresh cross-compiler works.
7118   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119   # <limits.h> exists even on freestanding compilers.
7120   # On the NeXT, cc -E runs the code through the compiler's parser,
7121   # not just through cpp. "Syntax error" is here to catch this case.
7122   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7123 /* end confdefs.h.  */
7124 #ifdef __STDC__
7125 # include <limits.h>
7126 #else
7127 # include <assert.h>
7128 #endif
7129                      Syntax error
7130 _ACEOF
7131 if ac_fn_c_try_cpp "$LINENO"; then :
7132
7133 else
7134   # Broken: fails on valid input.
7135 continue
7136 fi
7137 rm -f conftest.err conftest.$ac_ext
7138
7139   # OK, works on sane cases.  Now check whether nonexistent headers
7140   # can be detected and how.
7141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143 #include <ac_nonexistent.h>
7144 _ACEOF
7145 if ac_fn_c_try_cpp "$LINENO"; then :
7146   # Broken: success on invalid input.
7147 continue
7148 else
7149   # Passes both tests.
7150 ac_preproc_ok=:
7151 break
7152 fi
7153 rm -f conftest.err conftest.$ac_ext
7154
7155 done
7156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7157 rm -f conftest.err conftest.$ac_ext
7158 if $ac_preproc_ok; then :
7159
7160 else
7161   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7163 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7164 See \`config.log' for more details." "$LINENO" 5; }
7165 fi
7166
7167 ac_ext=c
7168 ac_cpp='$CPP $CPPFLAGS'
7169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7172
7173
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7175 $as_echo_n "checking for ANSI C header files... " >&6; }
7176 if test "${ac_cv_header_stdc+set}" = set; then :
7177   $as_echo_n "(cached) " >&6
7178 else
7179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h.  */
7181 #include <stdlib.h>
7182 #include <stdarg.h>
7183 #include <string.h>
7184 #include <float.h>
7185
7186 int
7187 main ()
7188 {
7189
7190   ;
7191   return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195   ac_cv_header_stdc=yes
7196 else
7197   ac_cv_header_stdc=no
7198 fi
7199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7200
7201 if test $ac_cv_header_stdc = yes; then
7202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 /* end confdefs.h.  */
7205 #include <string.h>
7206
7207 _ACEOF
7208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7209   $EGREP "memchr" >/dev/null 2>&1; then :
7210
7211 else
7212   ac_cv_header_stdc=no
7213 fi
7214 rm -f conftest*
7215
7216 fi
7217
7218 if test $ac_cv_header_stdc = yes; then
7219   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h.  */
7222 #include <stdlib.h>
7223
7224 _ACEOF
7225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7226   $EGREP "free" >/dev/null 2>&1; then :
7227
7228 else
7229   ac_cv_header_stdc=no
7230 fi
7231 rm -f conftest*
7232
7233 fi
7234
7235 if test $ac_cv_header_stdc = yes; then
7236   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7237   if test "$cross_compiling" = yes; then :
7238   :
7239 else
7240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h.  */
7242 #include <ctype.h>
7243 #include <stdlib.h>
7244 #if ((' ' & 0x0FF) == 0x020)
7245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7247 #else
7248 # define ISLOWER(c) \
7249                    (('a' <= (c) && (c) <= 'i') \
7250                      || ('j' <= (c) && (c) <= 'r') \
7251                      || ('s' <= (c) && (c) <= 'z'))
7252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7253 #endif
7254
7255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7256 int
7257 main ()
7258 {
7259   int i;
7260   for (i = 0; i < 256; i++)
7261     if (XOR (islower (i), ISLOWER (i))
7262         || toupper (i) != TOUPPER (i))
7263       return 2;
7264   return 0;
7265 }
7266 _ACEOF
7267 if ac_fn_c_try_run "$LINENO"; then :
7268
7269 else
7270   ac_cv_header_stdc=no
7271 fi
7272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7273   conftest.$ac_objext conftest.beam conftest.$ac_ext
7274 fi
7275
7276 fi
7277 fi
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7279 $as_echo "$ac_cv_header_stdc" >&6; }
7280 if test $ac_cv_header_stdc = yes; then
7281
7282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7283
7284 fi
7285
7286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7288                   inttypes.h stdint.h unistd.h
7289 do :
7290   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7292 "
7293 eval as_val=\$$as_ac_Header
7294    if test "x$as_val" = x""yes; then :
7295   cat >>confdefs.h <<_ACEOF
7296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 _ACEOF
7298
7299 fi
7300
7301 done
7302
7303
7304 for ac_header in dlfcn.h
7305 do :
7306   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7307 "
7308 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7309   cat >>confdefs.h <<_ACEOF
7310 #define HAVE_DLFCN_H 1
7311 _ACEOF
7312
7313 fi
7314
7315 done
7316
7317 if test -n "$ac_tool_prefix"; then
7318   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7319 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_GOC+set}" = set; then :
7323   $as_echo_n "(cached) " >&6
7324 else
7325   if test -n "$GOC"; then
7326   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7330 do
7331   IFS=$as_save_IFS
7332   test -z "$as_dir" && as_dir=.
7333     for ac_exec_ext in '' $ac_executable_extensions; do
7334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337     break 2
7338   fi
7339 done
7340   done
7341 IFS=$as_save_IFS
7342
7343 fi
7344 fi
7345 GOC=$ac_cv_prog_GOC
7346 if test -n "$GOC"; then
7347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7348 $as_echo "$GOC" >&6; }
7349 else
7350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7352 fi
7353
7354
7355 fi
7356 if test -z "$ac_cv_prog_GOC"; then
7357   ac_ct_GOC=$GOC
7358   # Extract the first word of "gccgo", so it can be a program name with args.
7359 set dummy gccgo; ac_word=$2
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7361 $as_echo_n "checking for $ac_word... " >&6; }
7362 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7363   $as_echo_n "(cached) " >&6
7364 else
7365   if test -n "$ac_ct_GOC"; then
7366   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7367 else
7368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7369 for as_dir in $PATH
7370 do
7371   IFS=$as_save_IFS
7372   test -z "$as_dir" && as_dir=.
7373     for ac_exec_ext in '' $ac_executable_extensions; do
7374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7375     ac_cv_prog_ac_ct_GOC="gccgo"
7376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7377     break 2
7378   fi
7379 done
7380   done
7381 IFS=$as_save_IFS
7382
7383 fi
7384 fi
7385 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7386 if test -n "$ac_ct_GOC"; then
7387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7388 $as_echo "$ac_ct_GOC" >&6; }
7389 else
7390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7391 $as_echo "no" >&6; }
7392 fi
7393
7394   if test "x$ac_ct_GOC" = x; then
7395     GOC=""
7396   else
7397     case $cross_compiling:$ac_tool_warned in
7398 yes:)
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7401 ac_tool_warned=yes ;;
7402 esac
7403     GOC=$ac_ct_GOC
7404   fi
7405 else
7406   GOC="$ac_cv_prog_GOC"
7407 fi
7408
7409
7410
7411
7412
7413
7414 # Set options
7415
7416
7417
7418
7419   enable_win32_dll=no
7420
7421
7422             # Check whether --enable-shared was given.
7423 if test "${enable_shared+set}" = set; then :
7424   enableval=$enable_shared; p=${PACKAGE-default}
7425     case $enableval in
7426     yes) enable_shared=yes ;;
7427     no) enable_shared=no ;;
7428     *)
7429       enable_shared=no
7430       # Look at the argument we got.  We use all the common list separators.
7431       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7432       for pkg in $enableval; do
7433         IFS="$lt_save_ifs"
7434         if test "X$pkg" = "X$p"; then
7435           enable_shared=yes
7436         fi
7437       done
7438       IFS="$lt_save_ifs"
7439       ;;
7440     esac
7441 else
7442   enable_shared=yes
7443 fi
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453   # Check whether --enable-static was given.
7454 if test "${enable_static+set}" = set; then :
7455   enableval=$enable_static; p=${PACKAGE-default}
7456     case $enableval in
7457     yes) enable_static=yes ;;
7458     no) enable_static=no ;;
7459     *)
7460      enable_static=no
7461       # Look at the argument we got.  We use all the common list separators.
7462       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7463       for pkg in $enableval; do
7464         IFS="$lt_save_ifs"
7465         if test "X$pkg" = "X$p"; then
7466           enable_static=yes
7467         fi
7468       done
7469       IFS="$lt_save_ifs"
7470       ;;
7471     esac
7472 else
7473   enable_static=yes
7474 fi
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485 # Check whether --with-pic was given.
7486 if test "${with_pic+set}" = set; then :
7487   withval=$with_pic; pic_mode="$withval"
7488 else
7489   pic_mode=default
7490 fi
7491
7492
7493 test -z "$pic_mode" && pic_mode=default
7494
7495
7496
7497
7498
7499
7500
7501   # Check whether --enable-fast-install was given.
7502 if test "${enable_fast_install+set}" = set; then :
7503   enableval=$enable_fast_install; p=${PACKAGE-default}
7504     case $enableval in
7505     yes) enable_fast_install=yes ;;
7506     no) enable_fast_install=no ;;
7507     *)
7508       enable_fast_install=no
7509       # Look at the argument we got.  We use all the common list separators.
7510       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7511       for pkg in $enableval; do
7512         IFS="$lt_save_ifs"
7513         if test "X$pkg" = "X$p"; then
7514           enable_fast_install=yes
7515         fi
7516       done
7517       IFS="$lt_save_ifs"
7518       ;;
7519     esac
7520 else
7521   enable_fast_install=yes
7522 fi
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534 # This can be used to rebuild libtool when needed
7535 LIBTOOL_DEPS="$ltmain"
7536
7537 # Always use our own libtool.
7538 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 test -z "$LN_S" && LN_S="ln -s"
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580 if test -n "${ZSH_VERSION+set}" ; then
7581    setopt NO_GLOB_SUBST
7582 fi
7583
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7585 $as_echo_n "checking for objdir... " >&6; }
7586 if test "${lt_cv_objdir+set}" = set; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   rm -f .libs 2>/dev/null
7590 mkdir .libs 2>/dev/null
7591 if test -d .libs; then
7592   lt_cv_objdir=.libs
7593 else
7594   # MS-DOS does not allow filenames that begin with a dot.
7595   lt_cv_objdir=_libs
7596 fi
7597 rmdir .libs 2>/dev/null
7598 fi
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7600 $as_echo "$lt_cv_objdir" >&6; }
7601 objdir=$lt_cv_objdir
7602
7603
7604
7605
7606
7607 cat >>confdefs.h <<_ACEOF
7608 #define LT_OBJDIR "$lt_cv_objdir/"
7609 _ACEOF
7610
7611
7612
7613
7614 case $host_os in
7615 aix3*)
7616   # AIX sometimes has problems with the GCC collect2 program.  For some
7617   # reason, if we set the COLLECT_NAMES environment variable, the problems
7618   # vanish in a puff of smoke.
7619   if test "X${COLLECT_NAMES+set}" != Xset; then
7620     COLLECT_NAMES=
7621     export COLLECT_NAMES
7622   fi
7623   ;;
7624 esac
7625
7626 # Global variables:
7627 ofile=libtool
7628 can_build_shared=yes
7629
7630 # All known linkers require a `.a' archive for static linking (except MSVC,
7631 # which needs '.lib').
7632 libext=a
7633
7634 with_gnu_ld="$lt_cv_prog_gnu_ld"
7635
7636 old_CC="$CC"
7637 old_CFLAGS="$CFLAGS"
7638
7639 # Set sane defaults for various variables
7640 test -z "$CC" && CC=cc
7641 test -z "$LTCC" && LTCC=$CC
7642 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7643 test -z "$LD" && LD=ld
7644 test -z "$ac_objext" && ac_objext=o
7645
7646 for cc_temp in $compiler""; do
7647   case $cc_temp in
7648     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7649     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7650     \-*) ;;
7651     *) break;;
7652   esac
7653 done
7654 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7655
7656
7657 # Only perform the check for file, if the check method requires it
7658 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7659 case $deplibs_check_method in
7660 file_magic*)
7661   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7662     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7663 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7664 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7665   $as_echo_n "(cached) " >&6
7666 else
7667   case $MAGIC_CMD in
7668 [\\/*] |  ?:[\\/]*)
7669   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7670   ;;
7671 *)
7672   lt_save_MAGIC_CMD="$MAGIC_CMD"
7673   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7674   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7675   for ac_dir in $ac_dummy; do
7676     IFS="$lt_save_ifs"
7677     test -z "$ac_dir" && ac_dir=.
7678     if test -f $ac_dir/${ac_tool_prefix}file; then
7679       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7680       if test -n "$file_magic_test_file"; then
7681         case $deplibs_check_method in
7682         "file_magic "*)
7683           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7684           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7685           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7686             $EGREP "$file_magic_regex" > /dev/null; then
7687             :
7688           else
7689             cat <<_LT_EOF 1>&2
7690
7691 *** Warning: the command libtool uses to detect shared libraries,
7692 *** $file_magic_cmd, produces output that libtool cannot recognize.
7693 *** The result is that libtool may fail to recognize shared libraries
7694 *** as such.  This will affect the creation of libtool libraries that
7695 *** depend on shared libraries, but programs linked with such libtool
7696 *** libraries will work regardless of this problem.  Nevertheless, you
7697 *** may want to report the problem to your system manager and/or to
7698 *** bug-libtool@gnu.org
7699
7700 _LT_EOF
7701           fi ;;
7702         esac
7703       fi
7704       break
7705     fi
7706   done
7707   IFS="$lt_save_ifs"
7708   MAGIC_CMD="$lt_save_MAGIC_CMD"
7709   ;;
7710 esac
7711 fi
7712
7713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7714 if test -n "$MAGIC_CMD"; then
7715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7716 $as_echo "$MAGIC_CMD" >&6; }
7717 else
7718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7719 $as_echo "no" >&6; }
7720 fi
7721
7722
7723
7724
7725
7726 if test -z "$lt_cv_path_MAGIC_CMD"; then
7727   if test -n "$ac_tool_prefix"; then
7728     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7729 $as_echo_n "checking for file... " >&6; }
7730 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7731   $as_echo_n "(cached) " >&6
7732 else
7733   case $MAGIC_CMD in
7734 [\\/*] |  ?:[\\/]*)
7735   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7736   ;;
7737 *)
7738   lt_save_MAGIC_CMD="$MAGIC_CMD"
7739   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7740   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7741   for ac_dir in $ac_dummy; do
7742     IFS="$lt_save_ifs"
7743     test -z "$ac_dir" && ac_dir=.
7744     if test -f $ac_dir/file; then
7745       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7746       if test -n "$file_magic_test_file"; then
7747         case $deplibs_check_method in
7748         "file_magic "*)
7749           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7750           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7751           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7752             $EGREP "$file_magic_regex" > /dev/null; then
7753             :
7754           else
7755             cat <<_LT_EOF 1>&2
7756
7757 *** Warning: the command libtool uses to detect shared libraries,
7758 *** $file_magic_cmd, produces output that libtool cannot recognize.
7759 *** The result is that libtool may fail to recognize shared libraries
7760 *** as such.  This will affect the creation of libtool libraries that
7761 *** depend on shared libraries, but programs linked with such libtool
7762 *** libraries will work regardless of this problem.  Nevertheless, you
7763 *** may want to report the problem to your system manager and/or to
7764 *** bug-libtool@gnu.org
7765
7766 _LT_EOF
7767           fi ;;
7768         esac
7769       fi
7770       break
7771     fi
7772   done
7773   IFS="$lt_save_ifs"
7774   MAGIC_CMD="$lt_save_MAGIC_CMD"
7775   ;;
7776 esac
7777 fi
7778
7779 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7780 if test -n "$MAGIC_CMD"; then
7781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7782 $as_echo "$MAGIC_CMD" >&6; }
7783 else
7784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7786 fi
7787
7788
7789   else
7790     MAGIC_CMD=:
7791   fi
7792 fi
7793
7794   fi
7795   ;;
7796 esac
7797
7798 # Use C for the default configuration in the libtool script
7799
7800 lt_save_CC="$CC"
7801 ac_ext=c
7802 ac_cpp='$CPP $CPPFLAGS'
7803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7806
7807
7808 # Source file extension for C test sources.
7809 ac_ext=c
7810
7811 # Object file extension for compiled C test sources.
7812 objext=o
7813 objext=$objext
7814
7815 # Code to be used in simple compile tests
7816 lt_simple_compile_test_code="int some_variable = 0;"
7817
7818 # Code to be used in simple link tests
7819 lt_simple_link_test_code='int main(){return(0);}'
7820
7821
7822
7823
7824
7825
7826
7827 # If no C compiler was specified, use CC.
7828 LTCC=${LTCC-"$CC"}
7829
7830 # If no C compiler flags were specified, use CFLAGS.
7831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7832
7833 # Allow CC to be a program name with arguments.
7834 compiler=$CC
7835
7836 # Save the default compiler, since it gets overwritten when the other
7837 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7838 compiler_DEFAULT=$CC
7839
7840 # save warnings/boilerplate of simple test code
7841 ac_outfile=conftest.$ac_objext
7842 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7843 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7844 _lt_compiler_boilerplate=`cat conftest.err`
7845 $RM conftest*
7846
7847 ac_outfile=conftest.$ac_objext
7848 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7849 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7850 _lt_linker_boilerplate=`cat conftest.err`
7851 $RM -r conftest*
7852
7853
7854 ## CAVEAT EMPTOR:
7855 ## There is no encapsulation within the following macros, do not change
7856 ## the running order or otherwise move them around unless you know exactly
7857 ## what you are doing...
7858 if test -n "$compiler"; then
7859
7860 lt_prog_compiler_no_builtin_flag=
7861
7862 if test "$GCC" = yes; then
7863   case $cc_basename in
7864   nvcc*)
7865     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7866   *)
7867     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7868   esac
7869
7870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7871 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7872 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7873   $as_echo_n "(cached) " >&6
7874 else
7875   lt_cv_prog_compiler_rtti_exceptions=no
7876    ac_outfile=conftest.$ac_objext
7877    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7878    lt_compiler_flag="-fno-rtti -fno-exceptions"
7879    # Insert the option either (1) after the last *FLAGS variable, or
7880    # (2) before a word containing "conftest.", or (3) at the end.
7881    # Note that $ac_compile itself does not contain backslashes and begins
7882    # with a dollar sign (not a hyphen), so the echo should work correctly.
7883    # The option is referenced via a variable to avoid confusing sed.
7884    lt_compile=`echo "$ac_compile" | $SED \
7885    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7886    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7887    -e 's:$: $lt_compiler_flag:'`
7888    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7889    (eval "$lt_compile" 2>conftest.err)
7890    ac_status=$?
7891    cat conftest.err >&5
7892    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893    if (exit $ac_status) && test -s "$ac_outfile"; then
7894      # The compiler can only warn and ignore the option if not recognized
7895      # So say no if there are warnings other than the usual output.
7896      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7897      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7898      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7899        lt_cv_prog_compiler_rtti_exceptions=yes
7900      fi
7901    fi
7902    $RM conftest*
7903
7904 fi
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7906 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7907
7908 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7909     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7910 else
7911     :
7912 fi
7913
7914 fi
7915
7916
7917
7918
7919
7920
7921   lt_prog_compiler_wl=
7922 lt_prog_compiler_pic=
7923 lt_prog_compiler_static=
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7926 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7927
7928   if test "$GCC" = yes; then
7929     lt_prog_compiler_wl='-Wl,'
7930     lt_prog_compiler_static='-static'
7931
7932     case $host_os in
7933       aix*)
7934       # All AIX code is PIC.
7935       if test "$host_cpu" = ia64; then
7936         # AIX 5 now supports IA64 processor
7937         lt_prog_compiler_static='-Bstatic'
7938       fi
7939       ;;
7940
7941     amigaos*)
7942       case $host_cpu in
7943       powerpc)
7944             # see comment about AmigaOS4 .so support
7945             lt_prog_compiler_pic='-fPIC'
7946         ;;
7947       m68k)
7948             # FIXME: we need at least 68020 code to build shared libraries, but
7949             # adding the `-m68020' flag to GCC prevents building anything better,
7950             # like `-m68040'.
7951             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7952         ;;
7953       esac
7954       ;;
7955
7956     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7957       # PIC is the default for these OSes.
7958       ;;
7959
7960     mingw* | cygwin* | pw32* | os2* | cegcc*)
7961       # This hack is so that the source file can tell whether it is being
7962       # built for inclusion in a dll (and should export symbols for example).
7963       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7964       # (--disable-auto-import) libraries
7965       lt_prog_compiler_pic='-DDLL_EXPORT'
7966       ;;
7967
7968     darwin* | rhapsody*)
7969       # PIC is the default on this platform
7970       # Common symbols not allowed in MH_DYLIB files
7971       lt_prog_compiler_pic='-fno-common'
7972       ;;
7973
7974     haiku*)
7975       # PIC is the default for Haiku.
7976       # The "-static" flag exists, but is broken.
7977       lt_prog_compiler_static=
7978       ;;
7979
7980     hpux*)
7981       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7982       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7983       # sets the default TLS model and affects inlining.
7984       case $host_cpu in
7985       hppa*64*)
7986         # +Z the default
7987         ;;
7988       *)
7989         lt_prog_compiler_pic='-fPIC'
7990         ;;
7991       esac
7992       ;;
7993
7994     interix[3-9]*)
7995       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7996       # Instead, we relocate shared libraries at runtime.
7997       ;;
7998
7999     msdosdjgpp*)
8000       # Just because we use GCC doesn't mean we suddenly get shared libraries
8001       # on systems that don't support them.
8002       lt_prog_compiler_can_build_shared=no
8003       enable_shared=no
8004       ;;
8005
8006     *nto* | *qnx*)
8007       # QNX uses GNU C++, but need to define -shared option too, otherwise
8008       # it will coredump.
8009       lt_prog_compiler_pic='-fPIC -shared'
8010       ;;
8011
8012     sysv4*MP*)
8013       if test -d /usr/nec; then
8014         lt_prog_compiler_pic=-Kconform_pic
8015       fi
8016       ;;
8017
8018     *)
8019       lt_prog_compiler_pic='-fPIC'
8020       ;;
8021     esac
8022
8023     case $cc_basename in
8024     nvcc*) # Cuda Compiler Driver 2.2
8025       lt_prog_compiler_wl='-Xlinker '
8026       lt_prog_compiler_pic='-Xcompiler -fPIC'
8027       ;;
8028     esac
8029   else
8030     # PORTME Check for flag to pass linker flags through the system compiler.
8031     case $host_os in
8032     aix*)
8033       lt_prog_compiler_wl='-Wl,'
8034       if test "$host_cpu" = ia64; then
8035         # AIX 5 now supports IA64 processor
8036         lt_prog_compiler_static='-Bstatic'
8037       else
8038         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8039       fi
8040       ;;
8041
8042     mingw* | cygwin* | pw32* | os2* | cegcc*)
8043       # This hack is so that the source file can tell whether it is being
8044       # built for inclusion in a dll (and should export symbols for example).
8045       lt_prog_compiler_pic='-DDLL_EXPORT'
8046       ;;
8047
8048     hpux9* | hpux10* | hpux11*)
8049       lt_prog_compiler_wl='-Wl,'
8050       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8051       # not for PA HP-UX.
8052       case $host_cpu in
8053       hppa*64*|ia64*)
8054         # +Z the default
8055         ;;
8056       *)
8057         lt_prog_compiler_pic='+Z'
8058         ;;
8059       esac
8060       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8061       lt_prog_compiler_static='${wl}-a ${wl}archive'
8062       ;;
8063
8064     irix5* | irix6* | nonstopux*)
8065       lt_prog_compiler_wl='-Wl,'
8066       # PIC (with -KPIC) is the default.
8067       lt_prog_compiler_static='-non_shared'
8068       ;;
8069
8070     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8071       case $cc_basename in
8072       # old Intel for x86_64 which still supported -KPIC.
8073       ecc*)
8074         lt_prog_compiler_wl='-Wl,'
8075         lt_prog_compiler_pic='-KPIC'
8076         lt_prog_compiler_static='-static'
8077         ;;
8078       # icc used to be incompatible with GCC.
8079       # ICC 10 doesn't accept -KPIC any more.
8080       icc* | ifort*)
8081         lt_prog_compiler_wl='-Wl,'
8082         lt_prog_compiler_pic='-fPIC'
8083         lt_prog_compiler_static='-static'
8084         ;;
8085       # Lahey Fortran 8.1.
8086       lf95*)
8087         lt_prog_compiler_wl='-Wl,'
8088         lt_prog_compiler_pic='--shared'
8089         lt_prog_compiler_static='--static'
8090         ;;
8091       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8092         # Portland Group compilers (*not* the Pentium gcc compiler,
8093         # which looks to be a dead project)
8094         lt_prog_compiler_wl='-Wl,'
8095         lt_prog_compiler_pic='-fpic'
8096         lt_prog_compiler_static='-Bstatic'
8097         ;;
8098       ccc*)
8099         lt_prog_compiler_wl='-Wl,'
8100         # All Alpha code is PIC.
8101         lt_prog_compiler_static='-non_shared'
8102         ;;
8103       xl* | bgxl* | bgf* | mpixl*)
8104         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8105         lt_prog_compiler_wl='-Wl,'
8106         lt_prog_compiler_pic='-qpic'
8107         lt_prog_compiler_static='-qstaticlink'
8108         ;;
8109       *)
8110         case `$CC -V 2>&1 | sed 5q` in
8111         *Sun\ F* | *Sun*Fortran*)
8112           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8113           lt_prog_compiler_pic='-KPIC'
8114           lt_prog_compiler_static='-Bstatic'
8115           lt_prog_compiler_wl=''
8116           ;;
8117         *Sun\ C*)
8118           # Sun C 5.9
8119           lt_prog_compiler_pic='-KPIC'
8120           lt_prog_compiler_static='-Bstatic'
8121           lt_prog_compiler_wl='-Wl,'
8122           ;;
8123         esac
8124         ;;
8125       esac
8126       ;;
8127
8128     newsos6)
8129       lt_prog_compiler_pic='-KPIC'
8130       lt_prog_compiler_static='-Bstatic'
8131       ;;
8132
8133     *nto* | *qnx*)
8134       # QNX uses GNU C++, but need to define -shared option too, otherwise
8135       # it will coredump.
8136       lt_prog_compiler_pic='-fPIC -shared'
8137       ;;
8138
8139     osf3* | osf4* | osf5*)
8140       lt_prog_compiler_wl='-Wl,'
8141       # All OSF/1 code is PIC.
8142       lt_prog_compiler_static='-non_shared'
8143       ;;
8144
8145     rdos*)
8146       lt_prog_compiler_static='-non_shared'
8147       ;;
8148
8149     solaris*)
8150       lt_prog_compiler_pic='-KPIC'
8151       lt_prog_compiler_static='-Bstatic'
8152       case $cc_basename in
8153       f77* | f90* | f95*)
8154         lt_prog_compiler_wl='-Qoption ld ';;
8155       *)
8156         lt_prog_compiler_wl='-Wl,';;
8157       esac
8158       ;;
8159
8160     sunos4*)
8161       lt_prog_compiler_wl='-Qoption ld '
8162       lt_prog_compiler_pic='-PIC'
8163       lt_prog_compiler_static='-Bstatic'
8164       ;;
8165
8166     sysv4 | sysv4.2uw2* | sysv4.3*)
8167       lt_prog_compiler_wl='-Wl,'
8168       lt_prog_compiler_pic='-KPIC'
8169       lt_prog_compiler_static='-Bstatic'
8170       ;;
8171
8172     sysv4*MP*)
8173       if test -d /usr/nec ;then
8174         lt_prog_compiler_pic='-Kconform_pic'
8175         lt_prog_compiler_static='-Bstatic'
8176       fi
8177       ;;
8178
8179     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8180       lt_prog_compiler_wl='-Wl,'
8181       lt_prog_compiler_pic='-KPIC'
8182       lt_prog_compiler_static='-Bstatic'
8183       ;;
8184
8185     unicos*)
8186       lt_prog_compiler_wl='-Wl,'
8187       lt_prog_compiler_can_build_shared=no
8188       ;;
8189
8190     uts4*)
8191       lt_prog_compiler_pic='-pic'
8192       lt_prog_compiler_static='-Bstatic'
8193       ;;
8194
8195     *)
8196       lt_prog_compiler_can_build_shared=no
8197       ;;
8198     esac
8199   fi
8200
8201 case $host_os in
8202   # For platforms which do not support PIC, -DPIC is meaningless:
8203   *djgpp*)
8204     lt_prog_compiler_pic=
8205     ;;
8206   *)
8207     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8208     ;;
8209 esac
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8211 $as_echo "$lt_prog_compiler_pic" >&6; }
8212
8213
8214
8215
8216
8217
8218 #
8219 # Check to make sure the PIC flag actually works.
8220 #
8221 if test -n "$lt_prog_compiler_pic"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8223 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8224 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   lt_cv_prog_compiler_pic_works=no
8228    ac_outfile=conftest.$ac_objext
8229    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8230    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8231    # Insert the option either (1) after the last *FLAGS variable, or
8232    # (2) before a word containing "conftest.", or (3) at the end.
8233    # Note that $ac_compile itself does not contain backslashes and begins
8234    # with a dollar sign (not a hyphen), so the echo should work correctly.
8235    # The option is referenced via a variable to avoid confusing sed.
8236    lt_compile=`echo "$ac_compile" | $SED \
8237    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8238    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8239    -e 's:$: $lt_compiler_flag:'`
8240    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8241    (eval "$lt_compile" 2>conftest.err)
8242    ac_status=$?
8243    cat conftest.err >&5
8244    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245    if (exit $ac_status) && test -s "$ac_outfile"; then
8246      # The compiler can only warn and ignore the option if not recognized
8247      # So say no if there are warnings other than the usual output.
8248      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8249      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8250      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8251        lt_cv_prog_compiler_pic_works=yes
8252      fi
8253    fi
8254    $RM conftest*
8255
8256 fi
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8258 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8259
8260 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8261     case $lt_prog_compiler_pic in
8262      "" | " "*) ;;
8263      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8264      esac
8265 else
8266     lt_prog_compiler_pic=
8267      lt_prog_compiler_can_build_shared=no
8268 fi
8269
8270 fi
8271
8272
8273
8274
8275
8276
8277 #
8278 # Check to make sure the static flag actually works.
8279 #
8280 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8282 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8283 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8284   $as_echo_n "(cached) " >&6
8285 else
8286   lt_cv_prog_compiler_static_works=no
8287    save_LDFLAGS="$LDFLAGS"
8288    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8289    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8290    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8291      # The linker can only warn and ignore the option if not recognized
8292      # So say no if there are warnings
8293      if test -s conftest.err; then
8294        # Append any errors to the config.log.
8295        cat conftest.err 1>&5
8296        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8297        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8298        if diff conftest.exp conftest.er2 >/dev/null; then
8299          lt_cv_prog_compiler_static_works=yes
8300        fi
8301      else
8302        lt_cv_prog_compiler_static_works=yes
8303      fi
8304    fi
8305    $RM -r conftest*
8306    LDFLAGS="$save_LDFLAGS"
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8310 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8311
8312 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8313     :
8314 else
8315     lt_prog_compiler_static=
8316 fi
8317
8318
8319
8320
8321
8322
8323
8324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8325 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8326 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8327   $as_echo_n "(cached) " >&6
8328 else
8329   lt_cv_prog_compiler_c_o=no
8330    $RM -r conftest 2>/dev/null
8331    mkdir conftest
8332    cd conftest
8333    mkdir out
8334    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8335
8336    lt_compiler_flag="-o out/conftest2.$ac_objext"
8337    # Insert the option either (1) after the last *FLAGS variable, or
8338    # (2) before a word containing "conftest.", or (3) at the end.
8339    # Note that $ac_compile itself does not contain backslashes and begins
8340    # with a dollar sign (not a hyphen), so the echo should work correctly.
8341    lt_compile=`echo "$ac_compile" | $SED \
8342    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8343    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8344    -e 's:$: $lt_compiler_flag:'`
8345    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8346    (eval "$lt_compile" 2>out/conftest.err)
8347    ac_status=$?
8348    cat out/conftest.err >&5
8349    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8351    then
8352      # The compiler can only warn and ignore the option if not recognized
8353      # So say no if there are warnings
8354      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8355      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8356      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8357        lt_cv_prog_compiler_c_o=yes
8358      fi
8359    fi
8360    chmod u+w . 2>&5
8361    $RM conftest*
8362    # SGI C++ compiler will create directory out/ii_files/ for
8363    # template instantiation
8364    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8365    $RM out/* && rmdir out
8366    cd ..
8367    $RM -r conftest
8368    $RM conftest*
8369
8370 fi
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8372 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8373
8374
8375
8376
8377
8378
8379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8380 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8381 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   lt_cv_prog_compiler_c_o=no
8385    $RM -r conftest 2>/dev/null
8386    mkdir conftest
8387    cd conftest
8388    mkdir out
8389    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8390
8391    lt_compiler_flag="-o out/conftest2.$ac_objext"
8392    # Insert the option either (1) after the last *FLAGS variable, or
8393    # (2) before a word containing "conftest.", or (3) at the end.
8394    # Note that $ac_compile itself does not contain backslashes and begins
8395    # with a dollar sign (not a hyphen), so the echo should work correctly.
8396    lt_compile=`echo "$ac_compile" | $SED \
8397    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8398    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8399    -e 's:$: $lt_compiler_flag:'`
8400    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8401    (eval "$lt_compile" 2>out/conftest.err)
8402    ac_status=$?
8403    cat out/conftest.err >&5
8404    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8406    then
8407      # The compiler can only warn and ignore the option if not recognized
8408      # So say no if there are warnings
8409      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8410      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8411      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8412        lt_cv_prog_compiler_c_o=yes
8413      fi
8414    fi
8415    chmod u+w . 2>&5
8416    $RM conftest*
8417    # SGI C++ compiler will create directory out/ii_files/ for
8418    # template instantiation
8419    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8420    $RM out/* && rmdir out
8421    cd ..
8422    $RM -r conftest
8423    $RM conftest*
8424
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8427 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8428
8429
8430
8431
8432 hard_links="nottested"
8433 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8434   # do not overwrite the value of need_locks provided by the user
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8436 $as_echo_n "checking if we can lock with hard links... " >&6; }
8437   hard_links=yes
8438   $RM conftest*
8439   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440   touch conftest.a
8441   ln conftest.a conftest.b 2>&5 || hard_links=no
8442   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8444 $as_echo "$hard_links" >&6; }
8445   if test "$hard_links" = no; then
8446     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8447 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8448     need_locks=warn
8449   fi
8450 else
8451   need_locks=no
8452 fi
8453
8454
8455
8456
8457
8458
8459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8460 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8461
8462   runpath_var=
8463   allow_undefined_flag=
8464   always_export_symbols=no
8465   archive_cmds=
8466   archive_expsym_cmds=
8467   compiler_needs_object=no
8468   enable_shared_with_static_runtimes=no
8469   export_dynamic_flag_spec=
8470   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8471   hardcode_automatic=no
8472   hardcode_direct=no
8473   hardcode_direct_absolute=no
8474   hardcode_libdir_flag_spec=
8475   hardcode_libdir_flag_spec_ld=
8476   hardcode_libdir_separator=
8477   hardcode_minus_L=no
8478   hardcode_shlibpath_var=unsupported
8479   inherit_rpath=no
8480   link_all_deplibs=unknown
8481   module_cmds=
8482   module_expsym_cmds=
8483   old_archive_from_new_cmds=
8484   old_archive_from_expsyms_cmds=
8485   thread_safe_flag_spec=
8486   whole_archive_flag_spec=
8487   # include_expsyms should be a list of space-separated symbols to be *always*
8488   # included in the symbol list
8489   include_expsyms=
8490   # exclude_expsyms can be an extended regexp of symbols to exclude
8491   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8492   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8493   # as well as any symbol that contains `d'.
8494   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8495   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8496   # platforms (ab)use it in PIC code, but their linkers get confused if
8497   # the symbol is explicitly referenced.  Since portable code cannot
8498   # rely on this symbol name, it's probably fine to never include it in
8499   # preloaded symbol tables.
8500   # Exclude shared library initialization/finalization symbols.
8501   extract_expsyms_cmds=
8502
8503   case $host_os in
8504   cygwin* | mingw* | pw32* | cegcc*)
8505     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8506     # When not using gcc, we currently assume that we are using
8507     # Microsoft Visual C++.
8508     if test "$GCC" != yes; then
8509       with_gnu_ld=no
8510     fi
8511     ;;
8512   interix*)
8513     # we just hope/assume this is gcc and not c89 (= MSVC++)
8514     with_gnu_ld=yes
8515     ;;
8516   openbsd*)
8517     with_gnu_ld=no
8518     ;;
8519   esac
8520
8521   ld_shlibs=yes
8522
8523   # On some targets, GNU ld is compatible enough with the native linker
8524   # that we're better off using the native interface for both.
8525   lt_use_gnu_ld_interface=no
8526   if test "$with_gnu_ld" = yes; then
8527     case $host_os in
8528       aix*)
8529         # The AIX port of GNU ld has always aspired to compatibility
8530         # with the native linker.  However, as the warning in the GNU ld
8531         # block says, versions before 2.19.5* couldn't really create working
8532         # shared libraries, regardless of the interface used.
8533         case `$LD -v 2>&1` in
8534           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8535           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8536           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8537           *)
8538             lt_use_gnu_ld_interface=yes
8539             ;;
8540         esac
8541         ;;
8542       *)
8543         lt_use_gnu_ld_interface=yes
8544         ;;
8545     esac
8546   fi
8547
8548   if test "$lt_use_gnu_ld_interface" = yes; then
8549     # If archive_cmds runs LD, not CC, wlarc should be empty
8550     wlarc='${wl}'
8551
8552     # Set some defaults for GNU ld with shared library support. These
8553     # are reset later if shared libraries are not supported. Putting them
8554     # here allows them to be overridden if necessary.
8555     runpath_var=LD_RUN_PATH
8556     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557     export_dynamic_flag_spec='${wl}--export-dynamic'
8558     # ancient GNU ld didn't support --whole-archive et. al.
8559     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8560       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8561     else
8562       whole_archive_flag_spec=
8563     fi
8564     supports_anon_versioning=no
8565     case `$LD -v 2>&1` in
8566       *GNU\ gold*) supports_anon_versioning=yes ;;
8567       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8568       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8569       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8570       *\ 2.11.*) ;; # other 2.11 versions
8571       *) supports_anon_versioning=yes ;;
8572     esac
8573
8574     # See if GNU ld supports shared libraries.
8575     case $host_os in
8576     aix[3-9]*)
8577       # On AIX/PPC, the GNU linker is very broken
8578       if test "$host_cpu" != ia64; then
8579         ld_shlibs=no
8580         cat <<_LT_EOF 1>&2
8581
8582 *** Warning: the GNU linker, at least up to release 2.19, is reported
8583 *** to be unable to reliably create shared libraries on AIX.
8584 *** Therefore, libtool is disabling shared libraries support.  If you
8585 *** really care for shared libraries, you may want to install binutils
8586 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8587 *** You will then need to restart the configuration process.
8588
8589 _LT_EOF
8590       fi
8591       ;;
8592
8593     amigaos*)
8594       case $host_cpu in
8595       powerpc)
8596             # see comment about AmigaOS4 .so support
8597             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598             archive_expsym_cmds=''
8599         ;;
8600       m68k)
8601             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)'
8602             hardcode_libdir_flag_spec='-L$libdir'
8603             hardcode_minus_L=yes
8604         ;;
8605       esac
8606       ;;
8607
8608     beos*)
8609       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610         allow_undefined_flag=unsupported
8611         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8612         # support --undefined.  This deserves some investigation.  FIXME
8613         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614       else
8615         ld_shlibs=no
8616       fi
8617       ;;
8618
8619     cygwin* | mingw* | pw32* | cegcc*)
8620       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8621       # as there is no search path for DLLs.
8622       hardcode_libdir_flag_spec='-L$libdir'
8623       export_dynamic_flag_spec='${wl}--export-all-symbols'
8624       allow_undefined_flag=unsupported
8625       always_export_symbols=no
8626       enable_shared_with_static_runtimes=yes
8627       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8628
8629       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8630         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631         # If the export-symbols file already is a .def file (1st line
8632         # is EXPORTS), use it as is; otherwise, prepend...
8633         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8634           cp $export_symbols $output_objdir/$soname.def;
8635         else
8636           echo EXPORTS > $output_objdir/$soname.def;
8637           cat $export_symbols >> $output_objdir/$soname.def;
8638         fi~
8639         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8640       else
8641         ld_shlibs=no
8642       fi
8643       ;;
8644
8645     haiku*)
8646       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8647       link_all_deplibs=yes
8648       ;;
8649
8650     interix[3-9]*)
8651       hardcode_direct=no
8652       hardcode_shlibpath_var=no
8653       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8654       export_dynamic_flag_spec='${wl}-E'
8655       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8656       # Instead, shared libraries are loaded at an image base (0x10000000 by
8657       # default) and relocated if they conflict, which is a slow very memory
8658       # consuming and fragmenting process.  To avoid this, we pick a random,
8659       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8660       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8661       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8662       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'
8663       ;;
8664
8665     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8666       tmp_diet=no
8667       if test "$host_os" = linux-dietlibc; then
8668         case $cc_basename in
8669           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8670         esac
8671       fi
8672       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8673          && test "$tmp_diet" = no
8674       then
8675         tmp_addflag=
8676         tmp_sharedflag='-shared'
8677         case $cc_basename,$host_cpu in
8678         pgcc*)                          # Portland Group C compiler
8679           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'
8680           tmp_addflag=' $pic_flag'
8681           ;;
8682         pgf77* | pgf90* | pgf95* | pgfortran*)
8683                                         # Portland Group f77 and f90 compilers
8684           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'
8685           tmp_addflag=' $pic_flag -Mnomain' ;;
8686         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8687           tmp_addflag=' -i_dynamic' ;;
8688         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8689           tmp_addflag=' -i_dynamic -nofor_main' ;;
8690         ifc* | ifort*)                  # Intel Fortran compiler
8691           tmp_addflag=' -nofor_main' ;;
8692         lf95*)                          # Lahey Fortran 8.1
8693           whole_archive_flag_spec=
8694           tmp_sharedflag='--shared' ;;
8695         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8696           tmp_sharedflag='-qmkshrobj'
8697           tmp_addflag= ;;
8698         nvcc*)  # Cuda Compiler Driver 2.2
8699           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'
8700           compiler_needs_object=yes
8701           ;;
8702         esac
8703         case `$CC -V 2>&1 | sed 5q` in
8704         *Sun\ C*)                       # Sun C 5.9
8705           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'
8706           compiler_needs_object=yes
8707           tmp_sharedflag='-G' ;;
8708         *Sun\ F*)                       # Sun Fortran 8.3
8709           tmp_sharedflag='-G' ;;
8710         esac
8711         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712
8713         if test "x$supports_anon_versioning" = xyes; then
8714           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8715             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8716             echo "local: *; };" >> $output_objdir/$libname.ver~
8717             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8718         fi
8719
8720         case $cc_basename in
8721         xlf* | bgf* | bgxlf* | mpixlf*)
8722           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8723           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8724           hardcode_libdir_flag_spec=
8725           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8726           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8727           if test "x$supports_anon_versioning" = xyes; then
8728             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8729               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8730               echo "local: *; };" >> $output_objdir/$libname.ver~
8731               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8732           fi
8733           ;;
8734         esac
8735       else
8736         ld_shlibs=no
8737       fi
8738       ;;
8739
8740     netbsd*)
8741       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8742         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8743         wlarc=
8744       else
8745         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747       fi
8748       ;;
8749
8750     solaris*)
8751       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8752         ld_shlibs=no
8753         cat <<_LT_EOF 1>&2
8754
8755 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8756 *** create shared libraries on Solaris systems.  Therefore, libtool
8757 *** is disabling shared libraries support.  We urge you to upgrade GNU
8758 *** binutils to release 2.9.1 or newer.  Another option is to modify
8759 *** your PATH or compiler configuration so that the native linker is
8760 *** used, and then restart.
8761
8762 _LT_EOF
8763       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8764         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8765         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8766       else
8767         ld_shlibs=no
8768       fi
8769       ;;
8770
8771     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8772       case `$LD -v 2>&1` in
8773         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8774         ld_shlibs=no
8775         cat <<_LT_EOF 1>&2
8776
8777 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8778 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8779 *** is disabling shared libraries support.  We urge you to upgrade GNU
8780 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8781 *** your PATH or compiler configuration so that the native linker is
8782 *** used, and then restart.
8783
8784 _LT_EOF
8785         ;;
8786         *)
8787           # For security reasons, it is highly recommended that you always
8788           # use absolute paths for naming shared libraries, and exclude the
8789           # DT_RUNPATH tag from executables and libraries.  But doing so
8790           # requires that you compile everything twice, which is a pain.
8791           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8792             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8794             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8795           else
8796             ld_shlibs=no
8797           fi
8798         ;;
8799       esac
8800       ;;
8801
8802     sunos4*)
8803       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8804       wlarc=
8805       hardcode_direct=yes
8806       hardcode_shlibpath_var=no
8807       ;;
8808
8809     *)
8810       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8811         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8812         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8813       else
8814         ld_shlibs=no
8815       fi
8816       ;;
8817     esac
8818
8819     if test "$ld_shlibs" = no; then
8820       runpath_var=
8821       hardcode_libdir_flag_spec=
8822       export_dynamic_flag_spec=
8823       whole_archive_flag_spec=
8824     fi
8825   else
8826     # PORTME fill in a description of your system's linker (not GNU ld)
8827     case $host_os in
8828     aix3*)
8829       allow_undefined_flag=unsupported
8830       always_export_symbols=yes
8831       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'
8832       # Note: this linker hardcodes the directories in LIBPATH if there
8833       # are no directories specified by -L.
8834       hardcode_minus_L=yes
8835       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8836         # Neither direct hardcoding nor static linking is supported with a
8837         # broken collect2.
8838         hardcode_direct=unsupported
8839       fi
8840       ;;
8841
8842     aix[4-9]*)
8843       if test "$host_cpu" = ia64; then
8844         # On IA64, the linker does run time linking by default, so we don't
8845         # have to do anything special.
8846         aix_use_runtimelinking=no
8847         exp_sym_flag='-Bexport'
8848         no_entry_flag=""
8849       else
8850         # If we're using GNU nm, then we don't want the "-C" option.
8851         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8852         # Also, AIX nm treats weak defined symbols like other global
8853         # defined symbols, whereas GNU nm marks them as "W".
8854         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8855           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'
8856         else
8857           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'
8858         fi
8859         aix_use_runtimelinking=no
8860
8861         # Test if we are trying to use run time linking or normal
8862         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8863         # need to do runtime linking.
8864         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8865           for ld_flag in $LDFLAGS; do
8866           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8867             aix_use_runtimelinking=yes
8868             break
8869           fi
8870           done
8871           ;;
8872         esac
8873
8874         exp_sym_flag='-bexport'
8875         no_entry_flag='-bnoentry'
8876       fi
8877
8878       # When large executables or shared objects are built, AIX ld can
8879       # have problems creating the table of contents.  If linking a library
8880       # or program results in "error TOC overflow" add -mminimal-toc to
8881       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8882       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8883
8884       archive_cmds=''
8885       hardcode_direct=yes
8886       hardcode_direct_absolute=yes
8887       hardcode_libdir_separator=':'
8888       link_all_deplibs=yes
8889       file_list_spec='${wl}-f,'
8890
8891       if test "$GCC" = yes; then
8892         case $host_os in aix4.[012]|aix4.[012].*)
8893         # We only want to do this on AIX 4.2 and lower, the check
8894         # below for broken collect2 doesn't work under 4.3+
8895           collect2name=`${CC} -print-prog-name=collect2`
8896           if test -f "$collect2name" &&
8897            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8898           then
8899           # We have reworked collect2
8900           :
8901           else
8902           # We have old collect2
8903           hardcode_direct=unsupported
8904           # It fails to find uninstalled libraries when the uninstalled
8905           # path is not listed in the libpath.  Setting hardcode_minus_L
8906           # to unsupported forces relinking
8907           hardcode_minus_L=yes
8908           hardcode_libdir_flag_spec='-L$libdir'
8909           hardcode_libdir_separator=
8910           fi
8911           ;;
8912         esac
8913         shared_flag='-shared'
8914         if test "$aix_use_runtimelinking" = yes; then
8915           shared_flag="$shared_flag "'${wl}-G'
8916         fi
8917       else
8918         # not using gcc
8919         if test "$host_cpu" = ia64; then
8920         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8921         # chokes on -Wl,-G. The following line is correct:
8922           shared_flag='-G'
8923         else
8924           if test "$aix_use_runtimelinking" = yes; then
8925             shared_flag='${wl}-G'
8926           else
8927             shared_flag='${wl}-bM:SRE'
8928           fi
8929         fi
8930       fi
8931
8932       export_dynamic_flag_spec='${wl}-bexpall'
8933       # It seems that -bexpall does not export symbols beginning with
8934       # underscore (_), so it is better to generate a list of symbols to export.
8935       always_export_symbols=yes
8936       if test "$aix_use_runtimelinking" = yes; then
8937         # Warning - without using the other runtime loading flags (-brtl),
8938         # -berok will link without error, but may produce a broken library.
8939         allow_undefined_flag='-berok'
8940         # Determine the default libpath from the value encoded in an
8941         # empty executable.
8942         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8943 /* end confdefs.h.  */
8944
8945 int
8946 main ()
8947 {
8948
8949   ;
8950   return 0;
8951 }
8952 _ACEOF
8953 if ac_fn_c_try_link "$LINENO"; then :
8954
8955 lt_aix_libpath_sed='
8956     /Import File Strings/,/^$/ {
8957         /^0/ {
8958             s/^0  *\(.*\)$/\1/
8959             p
8960         }
8961     }'
8962 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8963 # Check for a 64-bit object if we didn't find anything.
8964 if test -z "$aix_libpath"; then
8965   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8966 fi
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext \
8969     conftest$ac_exeext conftest.$ac_ext
8970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8971
8972         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8973         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"
8974       else
8975         if test "$host_cpu" = ia64; then
8976           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8977           allow_undefined_flag="-z nodefs"
8978           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"
8979         else
8980          # Determine the default libpath from the value encoded in an
8981          # empty executable.
8982          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h.  */
8984
8985 int
8986 main ()
8987 {
8988
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 if ac_fn_c_try_link "$LINENO"; then :
8994
8995 lt_aix_libpath_sed='
8996     /Import File Strings/,/^$/ {
8997         /^0/ {
8998             s/^0  *\(.*\)$/\1/
8999             p
9000         }
9001     }'
9002 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9003 # Check for a 64-bit object if we didn't find anything.
9004 if test -z "$aix_libpath"; then
9005   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9006 fi
9007 fi
9008 rm -f core conftest.err conftest.$ac_objext \
9009     conftest$ac_exeext conftest.$ac_ext
9010 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9011
9012          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9013           # Warning - without using the other run time loading flags,
9014           # -berok will link without error, but may produce a broken library.
9015           no_undefined_flag=' ${wl}-bernotok'
9016           allow_undefined_flag=' ${wl}-berok'
9017           if test "$with_gnu_ld" = yes; then
9018             # We only use this code for GNU lds that support --whole-archive.
9019             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9020           else
9021             # Exported symbols can be pulled into shared objects from archives
9022             whole_archive_flag_spec='$convenience'
9023           fi
9024           archive_cmds_need_lc=yes
9025           # This is similar to how AIX traditionally builds its shared libraries.
9026           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'
9027         fi
9028       fi
9029       ;;
9030
9031     amigaos*)
9032       case $host_cpu in
9033       powerpc)
9034             # see comment about AmigaOS4 .so support
9035             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036             archive_expsym_cmds=''
9037         ;;
9038       m68k)
9039             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)'
9040             hardcode_libdir_flag_spec='-L$libdir'
9041             hardcode_minus_L=yes
9042         ;;
9043       esac
9044       ;;
9045
9046     bsdi[45]*)
9047       export_dynamic_flag_spec=-rdynamic
9048       ;;
9049
9050     cygwin* | mingw* | pw32* | cegcc*)
9051       # When not using gcc, we currently assume that we are using
9052       # Microsoft Visual C++.
9053       # hardcode_libdir_flag_spec is actually meaningless, as there is
9054       # no search path for DLLs.
9055       hardcode_libdir_flag_spec=' '
9056       allow_undefined_flag=unsupported
9057       # Tell ltmain to make .lib files, not .a files.
9058       libext=lib
9059       # Tell ltmain to make .dll files, not .so files.
9060       shrext_cmds=".dll"
9061       # FIXME: Setting linknames here is a bad hack.
9062       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9063       # The linker will automatically build a .lib file if we build a DLL.
9064       old_archive_from_new_cmds='true'
9065       # FIXME: Should let the user specify the lib program.
9066       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9067       fix_srcfile_path='`cygpath -w "$srcfile"`'
9068       enable_shared_with_static_runtimes=yes
9069       ;;
9070
9071     darwin* | rhapsody*)
9072
9073
9074   archive_cmds_need_lc=no
9075   hardcode_direct=no
9076   hardcode_automatic=yes
9077   hardcode_shlibpath_var=unsupported
9078   if test "$lt_cv_ld_force_load" = "yes"; then
9079     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\"`'
9080   else
9081     whole_archive_flag_spec=''
9082   fi
9083   link_all_deplibs=yes
9084   allow_undefined_flag="$_lt_dar_allow_undefined"
9085   case $cc_basename in
9086      ifort*) _lt_dar_can_shared=yes ;;
9087      *) _lt_dar_can_shared=$GCC ;;
9088   esac
9089   if test "$_lt_dar_can_shared" = "yes"; then
9090     output_verbose_link_cmd=func_echo_all
9091     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9092     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9093     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}"
9094     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}"
9095
9096   else
9097   ld_shlibs=no
9098   fi
9099
9100       ;;
9101
9102     dgux*)
9103       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104       hardcode_libdir_flag_spec='-L$libdir'
9105       hardcode_shlibpath_var=no
9106       ;;
9107
9108     freebsd1*)
9109       ld_shlibs=no
9110       ;;
9111
9112     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113     # support.  Future versions do this automatically, but an explicit c++rt0.o
9114     # does not break anything, and helps significantly (at the cost of a little
9115     # extra space).
9116     freebsd2.2*)
9117       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118       hardcode_libdir_flag_spec='-R$libdir'
9119       hardcode_direct=yes
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9124     freebsd2*)
9125       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9126       hardcode_direct=yes
9127       hardcode_minus_L=yes
9128       hardcode_shlibpath_var=no
9129       ;;
9130
9131     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132     freebsd* | dragonfly*)
9133       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134       hardcode_libdir_flag_spec='-R$libdir'
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     hpux9*)
9140       if test "$GCC" = yes; then
9141         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'
9142       else
9143         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'
9144       fi
9145       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146       hardcode_libdir_separator=:
9147       hardcode_direct=yes
9148
9149       # hardcode_minus_L: Not really in the search PATH,
9150       # but as the default location of the library.
9151       hardcode_minus_L=yes
9152       export_dynamic_flag_spec='${wl}-E'
9153       ;;
9154
9155     hpux10*)
9156       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9157         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9158       else
9159         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9160       fi
9161       if test "$with_gnu_ld" = no; then
9162         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9163         hardcode_libdir_flag_spec_ld='+b $libdir'
9164         hardcode_libdir_separator=:
9165         hardcode_direct=yes
9166         hardcode_direct_absolute=yes
9167         export_dynamic_flag_spec='${wl}-E'
9168         # hardcode_minus_L: Not really in the search PATH,
9169         # but as the default location of the library.
9170         hardcode_minus_L=yes
9171       fi
9172       ;;
9173
9174     hpux11*)
9175       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9176         case $host_cpu in
9177         hppa*64*)
9178           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9179           ;;
9180         ia64*)
9181           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9182           ;;
9183         *)
9184           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9185           ;;
9186         esac
9187       else
9188         case $host_cpu in
9189         hppa*64*)
9190           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9191           ;;
9192         ia64*)
9193           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9194           ;;
9195         *)
9196
9197           # Older versions of the 11.00 compiler do not understand -b yet
9198           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9199           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9200 $as_echo_n "checking if $CC understands -b... " >&6; }
9201 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   lt_cv_prog_compiler__b=no
9205    save_LDFLAGS="$LDFLAGS"
9206    LDFLAGS="$LDFLAGS -b"
9207    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9208    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9209      # The linker can only warn and ignore the option if not recognized
9210      # So say no if there are warnings
9211      if test -s conftest.err; then
9212        # Append any errors to the config.log.
9213        cat conftest.err 1>&5
9214        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9215        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9216        if diff conftest.exp conftest.er2 >/dev/null; then
9217          lt_cv_prog_compiler__b=yes
9218        fi
9219      else
9220        lt_cv_prog_compiler__b=yes
9221      fi
9222    fi
9223    $RM -r conftest*
9224    LDFLAGS="$save_LDFLAGS"
9225
9226 fi
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9228 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9229
9230 if test x"$lt_cv_prog_compiler__b" = xyes; then
9231     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9232 else
9233     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9234 fi
9235
9236           ;;
9237         esac
9238       fi
9239       if test "$with_gnu_ld" = no; then
9240         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9241         hardcode_libdir_separator=:
9242
9243         case $host_cpu in
9244         hppa*64*|ia64*)
9245           hardcode_direct=no
9246           hardcode_shlibpath_var=no
9247           ;;
9248         *)
9249           hardcode_direct=yes
9250           hardcode_direct_absolute=yes
9251           export_dynamic_flag_spec='${wl}-E'
9252
9253           # hardcode_minus_L: Not really in the search PATH,
9254           # but as the default location of the library.
9255           hardcode_minus_L=yes
9256           ;;
9257         esac
9258       fi
9259       ;;
9260
9261     irix5* | irix6* | nonstopux*)
9262       if test "$GCC" = yes; then
9263         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'
9264         # Try to use the -exported_symbol ld option, if it does not
9265         # work, assume that -exports_file does not work either and
9266         # implicitly export all symbols.
9267         save_LDFLAGS="$LDFLAGS"
9268         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9269         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270 /* end confdefs.h.  */
9271 int foo(void) {}
9272 _ACEOF
9273 if ac_fn_c_try_link "$LINENO"; then :
9274   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'
9275
9276 fi
9277 rm -f core conftest.err conftest.$ac_objext \
9278     conftest$ac_exeext conftest.$ac_ext
9279         LDFLAGS="$save_LDFLAGS"
9280       else
9281         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'
9282         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'
9283       fi
9284       archive_cmds_need_lc='no'
9285       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9286       hardcode_libdir_separator=:
9287       inherit_rpath=yes
9288       link_all_deplibs=yes
9289       ;;
9290
9291     netbsd*)
9292       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9293         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9294       else
9295         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9296       fi
9297       hardcode_libdir_flag_spec='-R$libdir'
9298       hardcode_direct=yes
9299       hardcode_shlibpath_var=no
9300       ;;
9301
9302     newsos6)
9303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9304       hardcode_direct=yes
9305       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306       hardcode_libdir_separator=:
9307       hardcode_shlibpath_var=no
9308       ;;
9309
9310     *nto* | *qnx*)
9311       ;;
9312
9313     openbsd*)
9314       if test -f /usr/libexec/ld.so; then
9315         hardcode_direct=yes
9316         hardcode_shlibpath_var=no
9317         hardcode_direct_absolute=yes
9318         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9319           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9321           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9322           export_dynamic_flag_spec='${wl}-E'
9323         else
9324           case $host_os in
9325            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9326              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9327              hardcode_libdir_flag_spec='-R$libdir'
9328              ;;
9329            *)
9330              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9331              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9332              ;;
9333           esac
9334         fi
9335       else
9336         ld_shlibs=no
9337       fi
9338       ;;
9339
9340     os2*)
9341       hardcode_libdir_flag_spec='-L$libdir'
9342       hardcode_minus_L=yes
9343       allow_undefined_flag=unsupported
9344       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'
9345       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9346       ;;
9347
9348     osf3*)
9349       if test "$GCC" = yes; then
9350         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9351         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'
9352       else
9353         allow_undefined_flag=' -expect_unresolved \*'
9354         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'
9355       fi
9356       archive_cmds_need_lc='no'
9357       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9358       hardcode_libdir_separator=:
9359       ;;
9360
9361     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9362       if test "$GCC" = yes; then
9363         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9364         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'
9365         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9366       else
9367         allow_undefined_flag=' -expect_unresolved \*'
9368         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'
9369         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~
9370         $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'
9371
9372         # Both c and cxx compiler support -rpath directly
9373         hardcode_libdir_flag_spec='-rpath $libdir'
9374       fi
9375       archive_cmds_need_lc='no'
9376       hardcode_libdir_separator=:
9377       ;;
9378
9379     solaris*)
9380       no_undefined_flag=' -z defs'
9381       if test "$GCC" = yes; then
9382         wlarc='${wl}'
9383         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9384         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9385           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9386       else
9387         case `$CC -V 2>&1` in
9388         *"Compilers 5.0"*)
9389           wlarc=''
9390           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9392           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9393           ;;
9394         *)
9395           wlarc='${wl}'
9396           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9397           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9398           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9399           ;;
9400         esac
9401       fi
9402       hardcode_libdir_flag_spec='-R$libdir'
9403       hardcode_shlibpath_var=no
9404       case $host_os in
9405       solaris2.[0-5] | solaris2.[0-5].*) ;;
9406       *)
9407         # The compiler driver will combine and reorder linker options,
9408         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9409         # but is careful enough not to reorder.
9410         # Supported since Solaris 2.6 (maybe 2.5.1?)
9411         if test "$GCC" = yes; then
9412           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9413         else
9414           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9415         fi
9416         ;;
9417       esac
9418       link_all_deplibs=yes
9419       ;;
9420
9421     sunos4*)
9422       if test "x$host_vendor" = xsequent; then
9423         # Use $CC to link under sequent, because it throws in some extra .o
9424         # files that make .init and .fini sections work.
9425         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9426       else
9427         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9428       fi
9429       hardcode_libdir_flag_spec='-L$libdir'
9430       hardcode_direct=yes
9431       hardcode_minus_L=yes
9432       hardcode_shlibpath_var=no
9433       ;;
9434
9435     sysv4)
9436       case $host_vendor in
9437         sni)
9438           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439           hardcode_direct=yes # is this really true???
9440         ;;
9441         siemens)
9442           ## LD is ld it makes a PLAMLIB
9443           ## CC just makes a GrossModule.
9444           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9445           reload_cmds='$CC -r -o $output$reload_objs'
9446           hardcode_direct=no
9447         ;;
9448         motorola)
9449           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9450           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9451         ;;
9452       esac
9453       runpath_var='LD_RUN_PATH'
9454       hardcode_shlibpath_var=no
9455       ;;
9456
9457     sysv4.3*)
9458       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9459       hardcode_shlibpath_var=no
9460       export_dynamic_flag_spec='-Bexport'
9461       ;;
9462
9463     sysv4*MP*)
9464       if test -d /usr/nec; then
9465         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9466         hardcode_shlibpath_var=no
9467         runpath_var=LD_RUN_PATH
9468         hardcode_runpath_var=yes
9469         ld_shlibs=yes
9470       fi
9471       ;;
9472
9473     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9474       no_undefined_flag='${wl}-z,text'
9475       archive_cmds_need_lc=no
9476       hardcode_shlibpath_var=no
9477       runpath_var='LD_RUN_PATH'
9478
9479       if test "$GCC" = yes; then
9480         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9481         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9482       else
9483         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9484         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9485       fi
9486       ;;
9487
9488     sysv5* | sco3.2v5* | sco5v6*)
9489       # Note: We can NOT use -z defs as we might desire, because we do not
9490       # link with -lc, and that would cause any symbols used from libc to
9491       # always be unresolved, which means just about no library would
9492       # ever link correctly.  If we're not using GNU ld we use -z text
9493       # though, which does catch some bad symbols but isn't as heavy-handed
9494       # as -z defs.
9495       no_undefined_flag='${wl}-z,text'
9496       allow_undefined_flag='${wl}-z,nodefs'
9497       archive_cmds_need_lc=no
9498       hardcode_shlibpath_var=no
9499       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9500       hardcode_libdir_separator=':'
9501       link_all_deplibs=yes
9502       export_dynamic_flag_spec='${wl}-Bexport'
9503       runpath_var='LD_RUN_PATH'
9504
9505       if test "$GCC" = yes; then
9506         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9507         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9508       else
9509         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9511       fi
9512       ;;
9513
9514     uts4*)
9515       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9516       hardcode_libdir_flag_spec='-L$libdir'
9517       hardcode_shlibpath_var=no
9518       ;;
9519
9520     *)
9521       ld_shlibs=no
9522       ;;
9523     esac
9524
9525     if test x$host_vendor = xsni; then
9526       case $host in
9527       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9528         export_dynamic_flag_spec='${wl}-Blargedynsym'
9529         ;;
9530       esac
9531     fi
9532   fi
9533
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9535 $as_echo "$ld_shlibs" >&6; }
9536 test "$ld_shlibs" = no && can_build_shared=no
9537
9538 with_gnu_ld=$with_gnu_ld
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554 #
9555 # Do we need to explicitly link libc?
9556 #
9557 case "x$archive_cmds_need_lc" in
9558 x|xyes)
9559   # Assume -lc should be added
9560   archive_cmds_need_lc=yes
9561
9562   if test "$enable_shared" = yes && test "$GCC" = yes; then
9563     case $archive_cmds in
9564     *'~'*)
9565       # FIXME: we may have to deal with multi-command sequences.
9566       ;;
9567     '$CC '*)
9568       # Test whether the compiler implicitly links with -lc since on some
9569       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9570       # to ld, don't add -lc before -lgcc.
9571       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9572 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9573 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9574   $as_echo_n "(cached) " >&6
9575 else
9576   $RM conftest*
9577         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9578
9579         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9580   (eval $ac_compile) 2>&5
9581   ac_status=$?
9582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9583   test $ac_status = 0; } 2>conftest.err; then
9584           soname=conftest
9585           lib=conftest
9586           libobjs=conftest.$ac_objext
9587           deplibs=
9588           wl=$lt_prog_compiler_wl
9589           pic_flag=$lt_prog_compiler_pic
9590           compiler_flags=-v
9591           linker_flags=-v
9592           verstring=
9593           output_objdir=.
9594           libname=conftest
9595           lt_save_allow_undefined_flag=$allow_undefined_flag
9596           allow_undefined_flag=
9597           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9598   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9599   ac_status=$?
9600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9601   test $ac_status = 0; }
9602           then
9603             lt_cv_archive_cmds_need_lc=no
9604           else
9605             lt_cv_archive_cmds_need_lc=yes
9606           fi
9607           allow_undefined_flag=$lt_save_allow_undefined_flag
9608         else
9609           cat conftest.err 1>&5
9610         fi
9611         $RM conftest*
9612
9613 fi
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9615 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9616       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9617       ;;
9618     esac
9619   fi
9620   ;;
9621 esac
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9780 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9781
9782 if test "$GCC" = yes; then
9783   case $host_os in
9784     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9785     *) lt_awk_arg="/^libraries:/" ;;
9786   esac
9787   case $host_os in
9788     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9789     *) lt_sed_strip_eq="s,=/,/,g" ;;
9790   esac
9791   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9792   case $lt_search_path_spec in
9793   *\;*)
9794     # if the path contains ";" then we assume it to be the separator
9795     # otherwise default to the standard path separator (i.e. ":") - it is
9796     # assumed that no part of a normal pathname contains ";" but that should
9797     # okay in the real world where ";" in dirpaths is itself problematic.
9798     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9799     ;;
9800   *)
9801     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9802     ;;
9803   esac
9804   # Ok, now we have the path, separated by spaces, we can step through it
9805   # and add multilib dir if necessary.
9806   lt_tmp_lt_search_path_spec=
9807   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9808   for lt_sys_path in $lt_search_path_spec; do
9809     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9810       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9811     else
9812       test -d "$lt_sys_path" && \
9813         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9814     fi
9815   done
9816   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9817 BEGIN {RS=" "; FS="/|\n";} {
9818   lt_foo="";
9819   lt_count=0;
9820   for (lt_i = NF; lt_i > 0; lt_i--) {
9821     if ($lt_i != "" && $lt_i != ".") {
9822       if ($lt_i == "..") {
9823         lt_count++;
9824       } else {
9825         if (lt_count == 0) {
9826           lt_foo="/" $lt_i lt_foo;
9827         } else {
9828           lt_count--;
9829         }
9830       }
9831     }
9832   }
9833   if (lt_foo != "") { lt_freq[lt_foo]++; }
9834   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9835 }'`
9836   # AWK program above erroneously prepends '/' to C:/dos/paths
9837   # for these hosts.
9838   case $host_os in
9839     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9840       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9841   esac
9842   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9843 else
9844   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9845 fi
9846 library_names_spec=
9847 libname_spec='lib$name'
9848 soname_spec=
9849 shrext_cmds=".so"
9850 postinstall_cmds=
9851 postuninstall_cmds=
9852 finish_cmds=
9853 finish_eval=
9854 shlibpath_var=
9855 shlibpath_overrides_runpath=unknown
9856 version_type=none
9857 dynamic_linker="$host_os ld.so"
9858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9859 need_lib_prefix=unknown
9860 hardcode_into_libs=no
9861
9862 # when you set need_version to no, make sure it does not cause -set_version
9863 # flags to be left without arguments
9864 need_version=unknown
9865
9866 case $host_os in
9867 aix3*)
9868   version_type=linux
9869   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9870   shlibpath_var=LIBPATH
9871
9872   # AIX 3 has no versioning support, so we append a major version to the name.
9873   soname_spec='${libname}${release}${shared_ext}$major'
9874   ;;
9875
9876 aix[4-9]*)
9877   version_type=linux
9878   need_lib_prefix=no
9879   need_version=no
9880   hardcode_into_libs=yes
9881   if test "$host_cpu" = ia64; then
9882     # AIX 5 supports IA64
9883     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9884     shlibpath_var=LD_LIBRARY_PATH
9885   else
9886     # With GCC up to 2.95.x, collect2 would create an import file
9887     # for dependence libraries.  The import file would start with
9888     # the line `#! .'.  This would cause the generated library to
9889     # depend on `.', always an invalid library.  This was fixed in
9890     # development snapshots of GCC prior to 3.0.
9891     case $host_os in
9892       aix4 | aix4.[01] | aix4.[01].*)
9893       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9894            echo ' yes '
9895            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9896         :
9897       else
9898         can_build_shared=no
9899       fi
9900       ;;
9901     esac
9902     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9903     # soname into executable. Probably we can add versioning support to
9904     # collect2, so additional links can be useful in future.
9905     if test "$aix_use_runtimelinking" = yes; then
9906       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9907       # instead of lib<name>.a to let people know that these are not
9908       # typical AIX shared libraries.
9909       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910     else
9911       # We preserve .a as extension for shared libraries through AIX4.2
9912       # and later when we are not doing run time linking.
9913       library_names_spec='${libname}${release}.a $libname.a'
9914       soname_spec='${libname}${release}${shared_ext}$major'
9915     fi
9916     shlibpath_var=LIBPATH
9917   fi
9918   ;;
9919
9920 amigaos*)
9921   case $host_cpu in
9922   powerpc)
9923     # Since July 2007 AmigaOS4 officially supports .so libraries.
9924     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9925     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9926     ;;
9927   m68k)
9928     library_names_spec='$libname.ixlibrary $libname.a'
9929     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9930     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'
9931     ;;
9932   esac
9933   ;;
9934
9935 beos*)
9936   library_names_spec='${libname}${shared_ext}'
9937   dynamic_linker="$host_os ld.so"
9938   shlibpath_var=LIBRARY_PATH
9939   ;;
9940
9941 bsdi[45]*)
9942   version_type=linux
9943   need_version=no
9944   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9945   soname_spec='${libname}${release}${shared_ext}$major'
9946   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9947   shlibpath_var=LD_LIBRARY_PATH
9948   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9949   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9950   # the default ld.so.conf also contains /usr/contrib/lib and
9951   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9952   # libtool to hard-code these into programs
9953   ;;
9954
9955 cygwin* | mingw* | pw32* | cegcc*)
9956   version_type=windows
9957   shrext_cmds=".dll"
9958   need_version=no
9959   need_lib_prefix=no
9960
9961   case $GCC,$host_os in
9962   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9963     library_names_spec='$libname.dll.a'
9964     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9965     postinstall_cmds='base_file=`basename \${file}`~
9966       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9967       dldir=$destdir/`dirname \$dlpath`~
9968       test -d \$dldir || mkdir -p \$dldir~
9969       $install_prog $dir/$dlname \$dldir/$dlname~
9970       chmod a+x \$dldir/$dlname~
9971       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9972         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9973       fi'
9974     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9975       dlpath=$dir/\$dldll~
9976        $RM \$dlpath'
9977     shlibpath_overrides_runpath=yes
9978
9979     case $host_os in
9980     cygwin*)
9981       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9982       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9983
9984       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9985       ;;
9986     mingw* | cegcc*)
9987       # MinGW DLLs use traditional 'lib' prefix
9988       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9989       ;;
9990     pw32*)
9991       # pw32 DLLs use 'pw' prefix rather than 'lib'
9992       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9993       ;;
9994     esac
9995     ;;
9996
9997   *)
9998     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9999     ;;
10000   esac
10001   dynamic_linker='Win32 ld.exe'
10002   # FIXME: first we should search . and the directory the executable is in
10003   shlibpath_var=PATH
10004   ;;
10005
10006 darwin* | rhapsody*)
10007   dynamic_linker="$host_os dyld"
10008   version_type=darwin
10009   need_lib_prefix=no
10010   need_version=no
10011   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10012   soname_spec='${libname}${release}${major}$shared_ext'
10013   shlibpath_overrides_runpath=yes
10014   shlibpath_var=DYLD_LIBRARY_PATH
10015   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10016
10017   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10018   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10019   ;;
10020
10021 dgux*)
10022   version_type=linux
10023   need_lib_prefix=no
10024   need_version=no
10025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026   soname_spec='${libname}${release}${shared_ext}$major'
10027   shlibpath_var=LD_LIBRARY_PATH
10028   ;;
10029
10030 freebsd1*)
10031   dynamic_linker=no
10032   ;;
10033
10034 freebsd* | dragonfly*)
10035   # DragonFly does not have aout.  When/if they implement a new
10036   # versioning mechanism, adjust this.
10037   if test -x /usr/bin/objformat; then
10038     objformat=`/usr/bin/objformat`
10039   else
10040     case $host_os in
10041     freebsd[123]*) objformat=aout ;;
10042     *) objformat=elf ;;
10043     esac
10044   fi
10045   version_type=freebsd-$objformat
10046   case $version_type in
10047     freebsd-elf*)
10048       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10049       need_version=no
10050       need_lib_prefix=no
10051       ;;
10052     freebsd-*)
10053       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10054       need_version=yes
10055       ;;
10056   esac
10057   shlibpath_var=LD_LIBRARY_PATH
10058   case $host_os in
10059   freebsd2*)
10060     shlibpath_overrides_runpath=yes
10061     ;;
10062   freebsd3.[01]* | freebsdelf3.[01]*)
10063     shlibpath_overrides_runpath=yes
10064     hardcode_into_libs=yes
10065     ;;
10066   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10067   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10068     shlibpath_overrides_runpath=no
10069     hardcode_into_libs=yes
10070     ;;
10071   *) # from 4.6 on, and DragonFly
10072     shlibpath_overrides_runpath=yes
10073     hardcode_into_libs=yes
10074     ;;
10075   esac
10076   ;;
10077
10078 gnu*)
10079   version_type=linux
10080   need_lib_prefix=no
10081   need_version=no
10082   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083   soname_spec='${libname}${release}${shared_ext}$major'
10084   shlibpath_var=LD_LIBRARY_PATH
10085   hardcode_into_libs=yes
10086   ;;
10087
10088 haiku*)
10089   version_type=linux
10090   need_lib_prefix=no
10091   need_version=no
10092   dynamic_linker="$host_os runtime_loader"
10093   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10094   soname_spec='${libname}${release}${shared_ext}$major'
10095   shlibpath_var=LIBRARY_PATH
10096   shlibpath_overrides_runpath=yes
10097   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10098   hardcode_into_libs=yes
10099   ;;
10100
10101 hpux9* | hpux10* | hpux11*)
10102   # Give a soname corresponding to the major version so that dld.sl refuses to
10103   # link against other versions.
10104   version_type=sunos
10105   need_lib_prefix=no
10106   need_version=no
10107   case $host_cpu in
10108   ia64*)
10109     shrext_cmds='.so'
10110     hardcode_into_libs=yes
10111     dynamic_linker="$host_os dld.so"
10112     shlibpath_var=LD_LIBRARY_PATH
10113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10115     soname_spec='${libname}${release}${shared_ext}$major'
10116     if test "X$HPUX_IA64_MODE" = X32; then
10117       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10118     else
10119       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10120     fi
10121     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10122     ;;
10123   hppa*64*)
10124     shrext_cmds='.sl'
10125     hardcode_into_libs=yes
10126     dynamic_linker="$host_os dld.sl"
10127     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10128     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10129     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130     soname_spec='${libname}${release}${shared_ext}$major'
10131     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10132     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10133     ;;
10134   *)
10135     shrext_cmds='.sl'
10136     dynamic_linker="$host_os dld.sl"
10137     shlibpath_var=SHLIB_PATH
10138     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10139     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140     soname_spec='${libname}${release}${shared_ext}$major'
10141     ;;
10142   esac
10143   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10144   postinstall_cmds='chmod 555 $lib'
10145   # or fails outright, so override atomically:
10146   install_override_mode=555
10147   ;;
10148
10149 interix[3-9]*)
10150   version_type=linux
10151   need_lib_prefix=no
10152   need_version=no
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10156   shlibpath_var=LD_LIBRARY_PATH
10157   shlibpath_overrides_runpath=no
10158   hardcode_into_libs=yes
10159   ;;
10160
10161 irix5* | irix6* | nonstopux*)
10162   case $host_os in
10163     nonstopux*) version_type=nonstopux ;;
10164     *)
10165         if test "$lt_cv_prog_gnu_ld" = yes; then
10166                 version_type=linux
10167         else
10168                 version_type=irix
10169         fi ;;
10170   esac
10171   need_lib_prefix=no
10172   need_version=no
10173   soname_spec='${libname}${release}${shared_ext}$major'
10174   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10175   case $host_os in
10176   irix5* | nonstopux*)
10177     libsuff= shlibsuff=
10178     ;;
10179   *)
10180     case $LD in # libtool.m4 will add one of these switches to LD
10181     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10182       libsuff= shlibsuff= libmagic=32-bit;;
10183     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10184       libsuff=32 shlibsuff=N32 libmagic=N32;;
10185     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10186       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10187     *) libsuff= shlibsuff= libmagic=never-match;;
10188     esac
10189     ;;
10190   esac
10191   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10192   shlibpath_overrides_runpath=no
10193   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10194   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10195   hardcode_into_libs=yes
10196   ;;
10197
10198 # No shared lib support for Linux oldld, aout, or coff.
10199 linux*oldld* | linux*aout* | linux*coff*)
10200   dynamic_linker=no
10201   ;;
10202
10203 # This must be Linux ELF.
10204 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10205   version_type=linux
10206   need_lib_prefix=no
10207   need_version=no
10208   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10209   soname_spec='${libname}${release}${shared_ext}$major'
10210   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10211   shlibpath_var=LD_LIBRARY_PATH
10212   shlibpath_overrides_runpath=no
10213
10214   # Some binutils ld are patched to set DT_RUNPATH
10215   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10216   $as_echo_n "(cached) " >&6
10217 else
10218   lt_cv_shlibpath_overrides_runpath=no
10219     save_LDFLAGS=$LDFLAGS
10220     save_libdir=$libdir
10221     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10222          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10223     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h.  */
10225
10226 int
10227 main ()
10228 {
10229
10230   ;
10231   return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"; then :
10235   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10236   lt_cv_shlibpath_overrides_runpath=yes
10237 fi
10238 fi
10239 rm -f core conftest.err conftest.$ac_objext \
10240     conftest$ac_exeext conftest.$ac_ext
10241     LDFLAGS=$save_LDFLAGS
10242     libdir=$save_libdir
10243
10244 fi
10245
10246   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10247
10248   # This implies no fast_install, which is unacceptable.
10249   # Some rework will be needed to allow for fast_install
10250   # before this can be enabled.
10251   hardcode_into_libs=yes
10252
10253   # Append ld.so.conf contents to the search path
10254   if test -f /etc/ld.so.conf; then
10255     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' ' '`
10256     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10257   fi
10258
10259   # We used to test for /lib/ld.so.1 and disable shared libraries on
10260   # powerpc, because MkLinux only supported shared libraries with the
10261   # GNU dynamic linker.  Since this was broken with cross compilers,
10262   # most powerpc-linux boxes support dynamic linking these days and
10263   # people can always --disable-shared, the test was removed, and we
10264   # assume the GNU/Linux dynamic linker is in use.
10265   dynamic_linker='GNU/Linux ld.so'
10266   ;;
10267
10268 netbsd*)
10269   version_type=sunos
10270   need_lib_prefix=no
10271   need_version=no
10272   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10274     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10275     dynamic_linker='NetBSD (a.out) ld.so'
10276   else
10277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10278     soname_spec='${libname}${release}${shared_ext}$major'
10279     dynamic_linker='NetBSD ld.elf_so'
10280   fi
10281   shlibpath_var=LD_LIBRARY_PATH
10282   shlibpath_overrides_runpath=yes
10283   hardcode_into_libs=yes
10284   ;;
10285
10286 newsos6)
10287   version_type=linux
10288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10289   shlibpath_var=LD_LIBRARY_PATH
10290   shlibpath_overrides_runpath=yes
10291   ;;
10292
10293 *nto* | *qnx*)
10294   version_type=qnx
10295   need_lib_prefix=no
10296   need_version=no
10297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298   soname_spec='${libname}${release}${shared_ext}$major'
10299   shlibpath_var=LD_LIBRARY_PATH
10300   shlibpath_overrides_runpath=no
10301   hardcode_into_libs=yes
10302   dynamic_linker='ldqnx.so'
10303   ;;
10304
10305 openbsd*)
10306   version_type=sunos
10307   sys_lib_dlsearch_path_spec="/usr/lib"
10308   need_lib_prefix=no
10309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310   case $host_os in
10311     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10312     *)                          need_version=no  ;;
10313   esac
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316   shlibpath_var=LD_LIBRARY_PATH
10317   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318     case $host_os in
10319       openbsd2.[89] | openbsd2.[89].*)
10320         shlibpath_overrides_runpath=no
10321         ;;
10322       *)
10323         shlibpath_overrides_runpath=yes
10324         ;;
10325       esac
10326   else
10327     shlibpath_overrides_runpath=yes
10328   fi
10329   ;;
10330
10331 os2*)
10332   libname_spec='$name'
10333   shrext_cmds=".dll"
10334   need_lib_prefix=no
10335   library_names_spec='$libname${shared_ext} $libname.a'
10336   dynamic_linker='OS/2 ld.exe'
10337   shlibpath_var=LIBPATH
10338   ;;
10339
10340 osf3* | osf4* | osf5*)
10341   version_type=osf
10342   need_lib_prefix=no
10343   need_version=no
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349   ;;
10350
10351 rdos*)
10352   dynamic_linker=no
10353   ;;
10354
10355 solaris*)
10356   version_type=linux
10357   need_lib_prefix=no
10358   need_version=no
10359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10360   soname_spec='${libname}${release}${shared_ext}$major'
10361   shlibpath_var=LD_LIBRARY_PATH
10362   shlibpath_overrides_runpath=yes
10363   hardcode_into_libs=yes
10364   # ldd complains unless libraries are executable
10365   postinstall_cmds='chmod +x $lib'
10366   ;;
10367
10368 sunos4*)
10369   version_type=sunos
10370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10371   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10372   shlibpath_var=LD_LIBRARY_PATH
10373   shlibpath_overrides_runpath=yes
10374   if test "$with_gnu_ld" = yes; then
10375     need_lib_prefix=no
10376   fi
10377   need_version=yes
10378   ;;
10379
10380 sysv4 | sysv4.3*)
10381   version_type=linux
10382   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10383   soname_spec='${libname}${release}${shared_ext}$major'
10384   shlibpath_var=LD_LIBRARY_PATH
10385   case $host_vendor in
10386     sni)
10387       shlibpath_overrides_runpath=no
10388       need_lib_prefix=no
10389       runpath_var=LD_RUN_PATH
10390       ;;
10391     siemens)
10392       need_lib_prefix=no
10393       ;;
10394     motorola)
10395       need_lib_prefix=no
10396       need_version=no
10397       shlibpath_overrides_runpath=no
10398       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10399       ;;
10400   esac
10401   ;;
10402
10403 sysv4*MP*)
10404   if test -d /usr/nec ;then
10405     version_type=linux
10406     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10407     soname_spec='$libname${shared_ext}.$major'
10408     shlibpath_var=LD_LIBRARY_PATH
10409   fi
10410   ;;
10411
10412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10413   version_type=freebsd-elf
10414   need_lib_prefix=no
10415   need_version=no
10416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10417   soname_spec='${libname}${release}${shared_ext}$major'
10418   shlibpath_var=LD_LIBRARY_PATH
10419   shlibpath_overrides_runpath=yes
10420   hardcode_into_libs=yes
10421   if test "$with_gnu_ld" = yes; then
10422     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10423   else
10424     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425     case $host_os in
10426       sco3.2v5*)
10427         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10428         ;;
10429     esac
10430   fi
10431   sys_lib_dlsearch_path_spec='/usr/lib'
10432   ;;
10433
10434 tpf*)
10435   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10436   version_type=linux
10437   need_lib_prefix=no
10438   need_version=no
10439   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10440   shlibpath_var=LD_LIBRARY_PATH
10441   shlibpath_overrides_runpath=no
10442   hardcode_into_libs=yes
10443   ;;
10444
10445 uts4*)
10446   version_type=linux
10447   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10448   soname_spec='${libname}${release}${shared_ext}$major'
10449   shlibpath_var=LD_LIBRARY_PATH
10450   ;;
10451
10452 *)
10453   dynamic_linker=no
10454   ;;
10455 esac
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10457 $as_echo "$dynamic_linker" >&6; }
10458 test "$dynamic_linker" = no && can_build_shared=no
10459
10460 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10461 if test "$GCC" = yes; then
10462   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10463 fi
10464
10465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10466   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10467 fi
10468 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10469   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10470 fi
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10564 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10565 hardcode_action=
10566 if test -n "$hardcode_libdir_flag_spec" ||
10567    test -n "$runpath_var" ||
10568    test "X$hardcode_automatic" = "Xyes" ; then
10569
10570   # We can hardcode non-existent directories.
10571   if test "$hardcode_direct" != no &&
10572      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10573      # have to relink, otherwise we might link with an installed library
10574      # when we should be linking with a yet-to-be-installed one
10575      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10576      test "$hardcode_minus_L" != no; then
10577     # Linking always hardcodes the temporary library directory.
10578     hardcode_action=relink
10579   else
10580     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10581     hardcode_action=immediate
10582   fi
10583 else
10584   # We cannot hardcode anything, or else we can only hardcode existing
10585   # directories.
10586   hardcode_action=unsupported
10587 fi
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10589 $as_echo "$hardcode_action" >&6; }
10590
10591 if test "$hardcode_action" = relink ||
10592    test "$inherit_rpath" = yes; then
10593   # Fast installation is not supported
10594   enable_fast_install=no
10595 elif test "$shlibpath_overrides_runpath" = yes ||
10596      test "$enable_shared" = no; then
10597   # Fast installation is not necessary
10598   enable_fast_install=needless
10599 fi
10600
10601
10602
10603
10604
10605
10606   if test "x$enable_dlopen" != xyes; then
10607   enable_dlopen=unknown
10608   enable_dlopen_self=unknown
10609   enable_dlopen_self_static=unknown
10610 else
10611   lt_cv_dlopen=no
10612   lt_cv_dlopen_libs=
10613
10614   case $host_os in
10615   beos*)
10616     lt_cv_dlopen="load_add_on"
10617     lt_cv_dlopen_libs=
10618     lt_cv_dlopen_self=yes
10619     ;;
10620
10621   mingw* | pw32* | cegcc*)
10622     lt_cv_dlopen="LoadLibrary"
10623     lt_cv_dlopen_libs=
10624     ;;
10625
10626   cygwin*)
10627     lt_cv_dlopen="dlopen"
10628     lt_cv_dlopen_libs=
10629     ;;
10630
10631   darwin*)
10632   # if libdl is installed we need to link against it
10633     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10634 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10635 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   ac_check_lib_save_LIBS=$LIBS
10639 LIBS="-ldl  $LIBS"
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10641 /* end confdefs.h.  */
10642
10643 /* Override any GCC internal prototype to avoid an error.
10644    Use char because int might match the return type of a GCC
10645    builtin and then its argument prototype would still apply.  */
10646 #ifdef __cplusplus
10647 extern "C"
10648 #endif
10649 char dlopen ();
10650 int
10651 main ()
10652 {
10653 return dlopen ();
10654   ;
10655   return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"; then :
10659   ac_cv_lib_dl_dlopen=yes
10660 else
10661   ac_cv_lib_dl_dlopen=no
10662 fi
10663 rm -f core conftest.err conftest.$ac_objext \
10664     conftest$ac_exeext conftest.$ac_ext
10665 LIBS=$ac_check_lib_save_LIBS
10666 fi
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10668 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10669 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10670   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10671 else
10672
10673     lt_cv_dlopen="dyld"
10674     lt_cv_dlopen_libs=
10675     lt_cv_dlopen_self=yes
10676
10677 fi
10678
10679     ;;
10680
10681   *)
10682     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10683 if test "x$ac_cv_func_shl_load" = x""yes; then :
10684   lt_cv_dlopen="shl_load"
10685 else
10686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10687 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10688 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10689   $as_echo_n "(cached) " >&6
10690 else
10691   ac_check_lib_save_LIBS=$LIBS
10692 LIBS="-ldld  $LIBS"
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   ac_cv_lib_dld_shl_load=yes
10713 else
10714   ac_cv_lib_dld_shl_load=no
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718 LIBS=$ac_check_lib_save_LIBS
10719 fi
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10721 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10722 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10723   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10724 else
10725   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10726 if test "x$ac_cv_func_dlopen" = x""yes; then :
10727   lt_cv_dlopen="dlopen"
10728 else
10729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10730 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10731 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10732   $as_echo_n "(cached) " >&6
10733 else
10734   ac_check_lib_save_LIBS=$LIBS
10735 LIBS="-ldl  $LIBS"
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h.  */
10738
10739 /* Override any GCC internal prototype to avoid an error.
10740    Use char because int might match the return type of a GCC
10741    builtin and then its argument prototype would still apply.  */
10742 #ifdef __cplusplus
10743 extern "C"
10744 #endif
10745 char dlopen ();
10746 int
10747 main ()
10748 {
10749 return dlopen ();
10750   ;
10751   return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"; then :
10755   ac_cv_lib_dl_dlopen=yes
10756 else
10757   ac_cv_lib_dl_dlopen=no
10758 fi
10759 rm -f core conftest.err conftest.$ac_objext \
10760     conftest$ac_exeext conftest.$ac_ext
10761 LIBS=$ac_check_lib_save_LIBS
10762 fi
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10764 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10765 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10766   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10767 else
10768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10769 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10770 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10771   $as_echo_n "(cached) " >&6
10772 else
10773   ac_check_lib_save_LIBS=$LIBS
10774 LIBS="-lsvld  $LIBS"
10775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10776 /* end confdefs.h.  */
10777
10778 /* Override any GCC internal prototype to avoid an error.
10779    Use char because int might match the return type of a GCC
10780    builtin and then its argument prototype would still apply.  */
10781 #ifdef __cplusplus
10782 extern "C"
10783 #endif
10784 char dlopen ();
10785 int
10786 main ()
10787 {
10788 return dlopen ();
10789   ;
10790   return 0;
10791 }
10792 _ACEOF
10793 if ac_fn_c_try_link "$LINENO"; then :
10794   ac_cv_lib_svld_dlopen=yes
10795 else
10796   ac_cv_lib_svld_dlopen=no
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799     conftest$ac_exeext conftest.$ac_ext
10800 LIBS=$ac_check_lib_save_LIBS
10801 fi
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10803 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10804 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10805   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10806 else
10807   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10808 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10809 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10810   $as_echo_n "(cached) " >&6
10811 else
10812   ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-ldld  $LIBS"
10814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h.  */
10816
10817 /* Override any GCC internal prototype to avoid an error.
10818    Use char because int might match the return type of a GCC
10819    builtin and then its argument prototype would still apply.  */
10820 #ifdef __cplusplus
10821 extern "C"
10822 #endif
10823 char dld_link ();
10824 int
10825 main ()
10826 {
10827 return dld_link ();
10828   ;
10829   return 0;
10830 }
10831 _ACEOF
10832 if ac_fn_c_try_link "$LINENO"; then :
10833   ac_cv_lib_dld_dld_link=yes
10834 else
10835   ac_cv_lib_dld_dld_link=no
10836 fi
10837 rm -f core conftest.err conftest.$ac_objext \
10838     conftest$ac_exeext conftest.$ac_ext
10839 LIBS=$ac_check_lib_save_LIBS
10840 fi
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10842 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10843 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10844   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10845 fi
10846
10847
10848 fi
10849
10850
10851 fi
10852
10853
10854 fi
10855
10856
10857 fi
10858
10859
10860 fi
10861
10862     ;;
10863   esac
10864
10865   if test "x$lt_cv_dlopen" != xno; then
10866     enable_dlopen=yes
10867   else
10868     enable_dlopen=no
10869   fi
10870
10871   case $lt_cv_dlopen in
10872   dlopen)
10873     save_CPPFLAGS="$CPPFLAGS"
10874     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10875
10876     save_LDFLAGS="$LDFLAGS"
10877     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10878
10879     save_LIBS="$LIBS"
10880     LIBS="$lt_cv_dlopen_libs $LIBS"
10881
10882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10883 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10884 if test "${lt_cv_dlopen_self+set}" = set; then :
10885   $as_echo_n "(cached) " >&6
10886 else
10887           if test "$cross_compiling" = yes; then :
10888   lt_cv_dlopen_self=cross
10889 else
10890   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10891   lt_status=$lt_dlunknown
10892   cat > conftest.$ac_ext <<_LT_EOF
10893 #line 10893 "configure"
10894 #include "confdefs.h"
10895
10896 #if HAVE_DLFCN_H
10897 #include <dlfcn.h>
10898 #endif
10899
10900 #include <stdio.h>
10901
10902 #ifdef RTLD_GLOBAL
10903 #  define LT_DLGLOBAL           RTLD_GLOBAL
10904 #else
10905 #  ifdef DL_GLOBAL
10906 #    define LT_DLGLOBAL         DL_GLOBAL
10907 #  else
10908 #    define LT_DLGLOBAL         0
10909 #  endif
10910 #endif
10911
10912 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10913    find out it does not work in some platform. */
10914 #ifndef LT_DLLAZY_OR_NOW
10915 #  ifdef RTLD_LAZY
10916 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10917 #  else
10918 #    ifdef DL_LAZY
10919 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10920 #    else
10921 #      ifdef RTLD_NOW
10922 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10923 #      else
10924 #        ifdef DL_NOW
10925 #          define LT_DLLAZY_OR_NOW      DL_NOW
10926 #        else
10927 #          define LT_DLLAZY_OR_NOW      0
10928 #        endif
10929 #      endif
10930 #    endif
10931 #  endif
10932 #endif
10933
10934 /* When -fvisbility=hidden is used, assume the code has been annotated
10935    correspondingly for the symbols needed.  */
10936 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10937 void fnord () __attribute__((visibility("default")));
10938 #endif
10939
10940 void fnord () { int i=42; }
10941 int main ()
10942 {
10943   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10944   int status = $lt_dlunknown;
10945
10946   if (self)
10947     {
10948       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10949       else
10950         {
10951           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10952           else puts (dlerror ());
10953         }
10954       /* dlclose (self); */
10955     }
10956   else
10957     puts (dlerror ());
10958
10959   return status;
10960 }
10961 _LT_EOF
10962   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10963   (eval $ac_link) 2>&5
10964   ac_status=$?
10965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10966   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10967     (./conftest; exit; ) >&5 2>/dev/null
10968     lt_status=$?
10969     case x$lt_status in
10970       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10971       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10972       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10973     esac
10974   else :
10975     # compilation failed
10976     lt_cv_dlopen_self=no
10977   fi
10978 fi
10979 rm -fr conftest*
10980
10981
10982 fi
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10984 $as_echo "$lt_cv_dlopen_self" >&6; }
10985
10986     if test "x$lt_cv_dlopen_self" = xyes; then
10987       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10988       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10989 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10990 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10991   $as_echo_n "(cached) " >&6
10992 else
10993           if test "$cross_compiling" = yes; then :
10994   lt_cv_dlopen_self_static=cross
10995 else
10996   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10997   lt_status=$lt_dlunknown
10998   cat > conftest.$ac_ext <<_LT_EOF
10999 #line 10999 "configure"
11000 #include "confdefs.h"
11001
11002 #if HAVE_DLFCN_H
11003 #include <dlfcn.h>
11004 #endif
11005
11006 #include <stdio.h>
11007
11008 #ifdef RTLD_GLOBAL
11009 #  define LT_DLGLOBAL           RTLD_GLOBAL
11010 #else
11011 #  ifdef DL_GLOBAL
11012 #    define LT_DLGLOBAL         DL_GLOBAL
11013 #  else
11014 #    define LT_DLGLOBAL         0
11015 #  endif
11016 #endif
11017
11018 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11019    find out it does not work in some platform. */
11020 #ifndef LT_DLLAZY_OR_NOW
11021 #  ifdef RTLD_LAZY
11022 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11023 #  else
11024 #    ifdef DL_LAZY
11025 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11026 #    else
11027 #      ifdef RTLD_NOW
11028 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11029 #      else
11030 #        ifdef DL_NOW
11031 #          define LT_DLLAZY_OR_NOW      DL_NOW
11032 #        else
11033 #          define LT_DLLAZY_OR_NOW      0
11034 #        endif
11035 #      endif
11036 #    endif
11037 #  endif
11038 #endif
11039
11040 /* When -fvisbility=hidden is used, assume the code has been annotated
11041    correspondingly for the symbols needed.  */
11042 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11043 void fnord () __attribute__((visibility("default")));
11044 #endif
11045
11046 void fnord () { int i=42; }
11047 int main ()
11048 {
11049   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11050   int status = $lt_dlunknown;
11051
11052   if (self)
11053     {
11054       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11055       else
11056         {
11057           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11058           else puts (dlerror ());
11059         }
11060       /* dlclose (self); */
11061     }
11062   else
11063     puts (dlerror ());
11064
11065   return status;
11066 }
11067 _LT_EOF
11068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11069   (eval $ac_link) 2>&5
11070   ac_status=$?
11071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11072   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11073     (./conftest; exit; ) >&5 2>/dev/null
11074     lt_status=$?
11075     case x$lt_status in
11076       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11077       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11078       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11079     esac
11080   else :
11081     # compilation failed
11082     lt_cv_dlopen_self_static=no
11083   fi
11084 fi
11085 rm -fr conftest*
11086
11087
11088 fi
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11090 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11091     fi
11092
11093     CPPFLAGS="$save_CPPFLAGS"
11094     LDFLAGS="$save_LDFLAGS"
11095     LIBS="$save_LIBS"
11096     ;;
11097   esac
11098
11099   case $lt_cv_dlopen_self in
11100   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11101   *) enable_dlopen_self=unknown ;;
11102   esac
11103
11104   case $lt_cv_dlopen_self_static in
11105   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11106   *) enable_dlopen_self_static=unknown ;;
11107   esac
11108 fi
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126 striplib=
11127 old_striplib=
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11129 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11130 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11131   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11132   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11134 $as_echo "yes" >&6; }
11135 else
11136 # FIXME - insert some real tests, host_os isn't really good enough
11137   case $host_os in
11138   darwin*)
11139     if test -n "$STRIP" ; then
11140       striplib="$STRIP -x"
11141       old_striplib="$STRIP -S"
11142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11143 $as_echo "yes" >&6; }
11144     else
11145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11147     fi
11148     ;;
11149   *)
11150     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151 $as_echo "no" >&6; }
11152     ;;
11153   esac
11154 fi
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167   # Report which library types will actually be built
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11169 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11171 $as_echo "$can_build_shared" >&6; }
11172
11173   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11174 $as_echo_n "checking whether to build shared libraries... " >&6; }
11175   test "$can_build_shared" = "no" && enable_shared=no
11176
11177   # On AIX, shared libraries and static libraries use the same namespace, and
11178   # are all built from PIC.
11179   case $host_os in
11180   aix3*)
11181     test "$enable_shared" = yes && enable_static=no
11182     if test -n "$RANLIB"; then
11183       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11184       postinstall_cmds='$RANLIB $lib'
11185     fi
11186     ;;
11187
11188   aix[4-9]*)
11189     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11190       test "$enable_shared" = yes && enable_static=no
11191     fi
11192     ;;
11193   esac
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11195 $as_echo "$enable_shared" >&6; }
11196
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11198 $as_echo_n "checking whether to build static libraries... " >&6; }
11199   # Make sure either enable_shared or enable_static is yes.
11200   test "$enable_shared" = yes || enable_static=yes
11201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11202 $as_echo "$enable_static" >&6; }
11203
11204
11205
11206
11207 fi
11208 ac_ext=c
11209 ac_cpp='$CPP $CPPFLAGS'
11210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11213
11214 CC="$lt_save_CC"
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228 # Source file extension for Go test sources.
11229 ac_ext=go
11230
11231 # Object file extension for compiled Go test sources.
11232 objext=o
11233 objext_GO=$objext
11234
11235 # Code to be used in simple compile tests
11236 lt_simple_compile_test_code="package main; func main() { }"
11237
11238 # Code to be used in simple link tests
11239 lt_simple_link_test_code='package main; func main() { }'
11240
11241 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11242
11243
11244
11245
11246
11247
11248 # If no C compiler was specified, use CC.
11249 LTCC=${LTCC-"$CC"}
11250
11251 # If no C compiler flags were specified, use CFLAGS.
11252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11253
11254 # Allow CC to be a program name with arguments.
11255 compiler=$CC
11256
11257
11258 # save warnings/boilerplate of simple test code
11259 ac_outfile=conftest.$ac_objext
11260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11262 _lt_compiler_boilerplate=`cat conftest.err`
11263 $RM conftest*
11264
11265 ac_outfile=conftest.$ac_objext
11266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11268 _lt_linker_boilerplate=`cat conftest.err`
11269 $RM -r conftest*
11270
11271
11272 # Allow CC to be a program name with arguments.
11273 lt_save_CC="$CC"
11274 lt_save_GCC="$GCC"
11275 GCC=yes
11276 CC=${GOC-"gccgo"}
11277 compiler=$CC
11278 compiler_GO=$CC
11279 LD_GO="$LD"
11280 for cc_temp in $compiler""; do
11281   case $cc_temp in
11282     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11283     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11284     \-*) ;;
11285     *) break;;
11286   esac
11287 done
11288 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11289
11290
11291 # Go did not exist at the time GCC didn't implicitly link libc in.
11292 archive_cmds_need_lc_GO=no
11293
11294 old_archive_cmds_GO=$old_archive_cmds
11295
11296 ## CAVEAT EMPTOR:
11297 ## There is no encapsulation within the following macros, do not change
11298 ## the running order or otherwise move them around unless you know exactly
11299 ## what you are doing...
11300 if test -n "$compiler"; then
11301
11302 lt_prog_compiler_no_builtin_flag_GO=
11303
11304 if test "$GCC" = yes; then
11305   case $cc_basename in
11306   nvcc*)
11307     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11308   *)
11309     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11310   esac
11311
11312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11313 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11314 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11315   $as_echo_n "(cached) " >&6
11316 else
11317   lt_cv_prog_compiler_rtti_exceptions=no
11318    ac_outfile=conftest.$ac_objext
11319    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11320    lt_compiler_flag="-fno-rtti -fno-exceptions"
11321    # Insert the option either (1) after the last *FLAGS variable, or
11322    # (2) before a word containing "conftest.", or (3) at the end.
11323    # Note that $ac_compile itself does not contain backslashes and begins
11324    # with a dollar sign (not a hyphen), so the echo should work correctly.
11325    # The option is referenced via a variable to avoid confusing sed.
11326    lt_compile=`echo "$ac_compile" | $SED \
11327    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11328    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11329    -e 's:$: $lt_compiler_flag:'`
11330    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11331    (eval "$lt_compile" 2>conftest.err)
11332    ac_status=$?
11333    cat conftest.err >&5
11334    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335    if (exit $ac_status) && test -s "$ac_outfile"; then
11336      # The compiler can only warn and ignore the option if not recognized
11337      # So say no if there are warnings other than the usual output.
11338      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11339      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11340      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11341        lt_cv_prog_compiler_rtti_exceptions=yes
11342      fi
11343    fi
11344    $RM conftest*
11345
11346 fi
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11348 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11349
11350 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11351     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11352 else
11353     :
11354 fi
11355
11356 fi
11357
11358
11359
11360   lt_prog_compiler_wl_GO=
11361 lt_prog_compiler_pic_GO=
11362 lt_prog_compiler_static_GO=
11363
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11365 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11366
11367   if test "$GCC" = yes; then
11368     lt_prog_compiler_wl_GO='-Wl,'
11369     lt_prog_compiler_static_GO='-static'
11370
11371     case $host_os in
11372       aix*)
11373       # All AIX code is PIC.
11374       if test "$host_cpu" = ia64; then
11375         # AIX 5 now supports IA64 processor
11376         lt_prog_compiler_static_GO='-Bstatic'
11377       fi
11378       ;;
11379
11380     amigaos*)
11381       case $host_cpu in
11382       powerpc)
11383             # see comment about AmigaOS4 .so support
11384             lt_prog_compiler_pic_GO='-fPIC'
11385         ;;
11386       m68k)
11387             # FIXME: we need at least 68020 code to build shared libraries, but
11388             # adding the `-m68020' flag to GCC prevents building anything better,
11389             # like `-m68040'.
11390             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11391         ;;
11392       esac
11393       ;;
11394
11395     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11396       # PIC is the default for these OSes.
11397       ;;
11398
11399     mingw* | cygwin* | pw32* | os2* | cegcc*)
11400       # This hack is so that the source file can tell whether it is being
11401       # built for inclusion in a dll (and should export symbols for example).
11402       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11403       # (--disable-auto-import) libraries
11404       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11405       ;;
11406
11407     darwin* | rhapsody*)
11408       # PIC is the default on this platform
11409       # Common symbols not allowed in MH_DYLIB files
11410       lt_prog_compiler_pic_GO='-fno-common'
11411       ;;
11412
11413     haiku*)
11414       # PIC is the default for Haiku.
11415       # The "-static" flag exists, but is broken.
11416       lt_prog_compiler_static_GO=
11417       ;;
11418
11419     hpux*)
11420       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11421       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11422       # sets the default TLS model and affects inlining.
11423       case $host_cpu in
11424       hppa*64*)
11425         # +Z the default
11426         ;;
11427       *)
11428         lt_prog_compiler_pic_GO='-fPIC'
11429         ;;
11430       esac
11431       ;;
11432
11433     interix[3-9]*)
11434       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11435       # Instead, we relocate shared libraries at runtime.
11436       ;;
11437
11438     msdosdjgpp*)
11439       # Just because we use GCC doesn't mean we suddenly get shared libraries
11440       # on systems that don't support them.
11441       lt_prog_compiler_can_build_shared_GO=no
11442       enable_shared=no
11443       ;;
11444
11445     *nto* | *qnx*)
11446       # QNX uses GNU C++, but need to define -shared option too, otherwise
11447       # it will coredump.
11448       lt_prog_compiler_pic_GO='-fPIC -shared'
11449       ;;
11450
11451     sysv4*MP*)
11452       if test -d /usr/nec; then
11453         lt_prog_compiler_pic_GO=-Kconform_pic
11454       fi
11455       ;;
11456
11457     *)
11458       lt_prog_compiler_pic_GO='-fPIC'
11459       ;;
11460     esac
11461
11462     case $cc_basename in
11463     nvcc*) # Cuda Compiler Driver 2.2
11464       lt_prog_compiler_wl_GO='-Xlinker '
11465       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11466       ;;
11467     esac
11468   else
11469     # PORTME Check for flag to pass linker flags through the system compiler.
11470     case $host_os in
11471     aix*)
11472       lt_prog_compiler_wl_GO='-Wl,'
11473       if test "$host_cpu" = ia64; then
11474         # AIX 5 now supports IA64 processor
11475         lt_prog_compiler_static_GO='-Bstatic'
11476       else
11477         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11478       fi
11479       ;;
11480
11481     mingw* | cygwin* | pw32* | os2* | cegcc*)
11482       # This hack is so that the source file can tell whether it is being
11483       # built for inclusion in a dll (and should export symbols for example).
11484       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11485       ;;
11486
11487     hpux9* | hpux10* | hpux11*)
11488       lt_prog_compiler_wl_GO='-Wl,'
11489       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11490       # not for PA HP-UX.
11491       case $host_cpu in
11492       hppa*64*|ia64*)
11493         # +Z the default
11494         ;;
11495       *)
11496         lt_prog_compiler_pic_GO='+Z'
11497         ;;
11498       esac
11499       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11500       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11501       ;;
11502
11503     irix5* | irix6* | nonstopux*)
11504       lt_prog_compiler_wl_GO='-Wl,'
11505       # PIC (with -KPIC) is the default.
11506       lt_prog_compiler_static_GO='-non_shared'
11507       ;;
11508
11509     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11510       case $cc_basename in
11511       # old Intel for x86_64 which still supported -KPIC.
11512       ecc*)
11513         lt_prog_compiler_wl_GO='-Wl,'
11514         lt_prog_compiler_pic_GO='-KPIC'
11515         lt_prog_compiler_static_GO='-static'
11516         ;;
11517       # icc used to be incompatible with GCC.
11518       # ICC 10 doesn't accept -KPIC any more.
11519       icc* | ifort*)
11520         lt_prog_compiler_wl_GO='-Wl,'
11521         lt_prog_compiler_pic_GO='-fPIC'
11522         lt_prog_compiler_static_GO='-static'
11523         ;;
11524       # Lahey Fortran 8.1.
11525       lf95*)
11526         lt_prog_compiler_wl_GO='-Wl,'
11527         lt_prog_compiler_pic_GO='--shared'
11528         lt_prog_compiler_static_GO='--static'
11529         ;;
11530       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11531         # Portland Group compilers (*not* the Pentium gcc compiler,
11532         # which looks to be a dead project)
11533         lt_prog_compiler_wl_GO='-Wl,'
11534         lt_prog_compiler_pic_GO='-fpic'
11535         lt_prog_compiler_static_GO='-Bstatic'
11536         ;;
11537       ccc*)
11538         lt_prog_compiler_wl_GO='-Wl,'
11539         # All Alpha code is PIC.
11540         lt_prog_compiler_static_GO='-non_shared'
11541         ;;
11542       xl* | bgxl* | bgf* | mpixl*)
11543         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11544         lt_prog_compiler_wl_GO='-Wl,'
11545         lt_prog_compiler_pic_GO='-qpic'
11546         lt_prog_compiler_static_GO='-qstaticlink'
11547         ;;
11548       *)
11549         case `$CC -V 2>&1 | sed 5q` in
11550         *Sun\ F* | *Sun*Fortran*)
11551           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11552           lt_prog_compiler_pic_GO='-KPIC'
11553           lt_prog_compiler_static_GO='-Bstatic'
11554           lt_prog_compiler_wl_GO=''
11555           ;;
11556         *Sun\ C*)
11557           # Sun C 5.9
11558           lt_prog_compiler_pic_GO='-KPIC'
11559           lt_prog_compiler_static_GO='-Bstatic'
11560           lt_prog_compiler_wl_GO='-Wl,'
11561           ;;
11562         esac
11563         ;;
11564       esac
11565       ;;
11566
11567     newsos6)
11568       lt_prog_compiler_pic_GO='-KPIC'
11569       lt_prog_compiler_static_GO='-Bstatic'
11570       ;;
11571
11572     *nto* | *qnx*)
11573       # QNX uses GNU C++, but need to define -shared option too, otherwise
11574       # it will coredump.
11575       lt_prog_compiler_pic_GO='-fPIC -shared'
11576       ;;
11577
11578     osf3* | osf4* | osf5*)
11579       lt_prog_compiler_wl_GO='-Wl,'
11580       # All OSF/1 code is PIC.
11581       lt_prog_compiler_static_GO='-non_shared'
11582       ;;
11583
11584     rdos*)
11585       lt_prog_compiler_static_GO='-non_shared'
11586       ;;
11587
11588     solaris*)
11589       lt_prog_compiler_pic_GO='-KPIC'
11590       lt_prog_compiler_static_GO='-Bstatic'
11591       case $cc_basename in
11592       f77* | f90* | f95*)
11593         lt_prog_compiler_wl_GO='-Qoption ld ';;
11594       *)
11595         lt_prog_compiler_wl_GO='-Wl,';;
11596       esac
11597       ;;
11598
11599     sunos4*)
11600       lt_prog_compiler_wl_GO='-Qoption ld '
11601       lt_prog_compiler_pic_GO='-PIC'
11602       lt_prog_compiler_static_GO='-Bstatic'
11603       ;;
11604
11605     sysv4 | sysv4.2uw2* | sysv4.3*)
11606       lt_prog_compiler_wl_GO='-Wl,'
11607       lt_prog_compiler_pic_GO='-KPIC'
11608       lt_prog_compiler_static_GO='-Bstatic'
11609       ;;
11610
11611     sysv4*MP*)
11612       if test -d /usr/nec ;then
11613         lt_prog_compiler_pic_GO='-Kconform_pic'
11614         lt_prog_compiler_static_GO='-Bstatic'
11615       fi
11616       ;;
11617
11618     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11619       lt_prog_compiler_wl_GO='-Wl,'
11620       lt_prog_compiler_pic_GO='-KPIC'
11621       lt_prog_compiler_static_GO='-Bstatic'
11622       ;;
11623
11624     unicos*)
11625       lt_prog_compiler_wl_GO='-Wl,'
11626       lt_prog_compiler_can_build_shared_GO=no
11627       ;;
11628
11629     uts4*)
11630       lt_prog_compiler_pic_GO='-pic'
11631       lt_prog_compiler_static_GO='-Bstatic'
11632       ;;
11633
11634     *)
11635       lt_prog_compiler_can_build_shared_GO=no
11636       ;;
11637     esac
11638   fi
11639
11640 case $host_os in
11641   # For platforms which do not support PIC, -DPIC is meaningless:
11642   *djgpp*)
11643     lt_prog_compiler_pic_GO=
11644     ;;
11645   *)
11646     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11647     ;;
11648 esac
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11650 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11651
11652
11653
11654 #
11655 # Check to make sure the PIC flag actually works.
11656 #
11657 if test -n "$lt_prog_compiler_pic_GO"; then
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11659 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11660 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11661   $as_echo_n "(cached) " >&6
11662 else
11663   lt_cv_prog_compiler_pic_works_GO=no
11664    ac_outfile=conftest.$ac_objext
11665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11666    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11667    # Insert the option either (1) after the last *FLAGS variable, or
11668    # (2) before a word containing "conftest.", or (3) at the end.
11669    # Note that $ac_compile itself does not contain backslashes and begins
11670    # with a dollar sign (not a hyphen), so the echo should work correctly.
11671    # The option is referenced via a variable to avoid confusing sed.
11672    lt_compile=`echo "$ac_compile" | $SED \
11673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11675    -e 's:$: $lt_compiler_flag:'`
11676    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11677    (eval "$lt_compile" 2>conftest.err)
11678    ac_status=$?
11679    cat conftest.err >&5
11680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681    if (exit $ac_status) && test -s "$ac_outfile"; then
11682      # The compiler can only warn and ignore the option if not recognized
11683      # So say no if there are warnings other than the usual output.
11684      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11685      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11686      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11687        lt_cv_prog_compiler_pic_works_GO=yes
11688      fi
11689    fi
11690    $RM conftest*
11691
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11694 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11695
11696 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11697     case $lt_prog_compiler_pic_GO in
11698      "" | " "*) ;;
11699      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11700      esac
11701 else
11702     lt_prog_compiler_pic_GO=
11703      lt_prog_compiler_can_build_shared_GO=no
11704 fi
11705
11706 fi
11707
11708
11709
11710 #
11711 # Check to make sure the static flag actually works.
11712 #
11713 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11715 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11716 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11717   $as_echo_n "(cached) " >&6
11718 else
11719   lt_cv_prog_compiler_static_works_GO=no
11720    save_LDFLAGS="$LDFLAGS"
11721    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11722    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11723    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11724      # The linker can only warn and ignore the option if not recognized
11725      # So say no if there are warnings
11726      if test -s conftest.err; then
11727        # Append any errors to the config.log.
11728        cat conftest.err 1>&5
11729        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11730        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11731        if diff conftest.exp conftest.er2 >/dev/null; then
11732          lt_cv_prog_compiler_static_works_GO=yes
11733        fi
11734      else
11735        lt_cv_prog_compiler_static_works_GO=yes
11736      fi
11737    fi
11738    $RM -r conftest*
11739    LDFLAGS="$save_LDFLAGS"
11740
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11743 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11744
11745 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11746     :
11747 else
11748     lt_prog_compiler_static_GO=
11749 fi
11750
11751
11752
11753
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11756 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11757   $as_echo_n "(cached) " >&6
11758 else
11759   lt_cv_prog_compiler_c_o_GO=no
11760    $RM -r conftest 2>/dev/null
11761    mkdir conftest
11762    cd conftest
11763    mkdir out
11764    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11765
11766    lt_compiler_flag="-o out/conftest2.$ac_objext"
11767    # Insert the option either (1) after the last *FLAGS variable, or
11768    # (2) before a word containing "conftest.", or (3) at the end.
11769    # Note that $ac_compile itself does not contain backslashes and begins
11770    # with a dollar sign (not a hyphen), so the echo should work correctly.
11771    lt_compile=`echo "$ac_compile" | $SED \
11772    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11773    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11774    -e 's:$: $lt_compiler_flag:'`
11775    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11776    (eval "$lt_compile" 2>out/conftest.err)
11777    ac_status=$?
11778    cat out/conftest.err >&5
11779    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11781    then
11782      # The compiler can only warn and ignore the option if not recognized
11783      # So say no if there are warnings
11784      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11785      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11786      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11787        lt_cv_prog_compiler_c_o_GO=yes
11788      fi
11789    fi
11790    chmod u+w . 2>&5
11791    $RM conftest*
11792    # SGI C++ compiler will create directory out/ii_files/ for
11793    # template instantiation
11794    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11795    $RM out/* && rmdir out
11796    cd ..
11797    $RM -r conftest
11798    $RM conftest*
11799
11800 fi
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11802 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11803
11804
11805
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11808 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11809   $as_echo_n "(cached) " >&6
11810 else
11811   lt_cv_prog_compiler_c_o_GO=no
11812    $RM -r conftest 2>/dev/null
11813    mkdir conftest
11814    cd conftest
11815    mkdir out
11816    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11817
11818    lt_compiler_flag="-o out/conftest2.$ac_objext"
11819    # Insert the option either (1) after the last *FLAGS variable, or
11820    # (2) before a word containing "conftest.", or (3) at the end.
11821    # Note that $ac_compile itself does not contain backslashes and begins
11822    # with a dollar sign (not a hyphen), so the echo should work correctly.
11823    lt_compile=`echo "$ac_compile" | $SED \
11824    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11825    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11826    -e 's:$: $lt_compiler_flag:'`
11827    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11828    (eval "$lt_compile" 2>out/conftest.err)
11829    ac_status=$?
11830    cat out/conftest.err >&5
11831    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11833    then
11834      # The compiler can only warn and ignore the option if not recognized
11835      # So say no if there are warnings
11836      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11837      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11838      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11839        lt_cv_prog_compiler_c_o_GO=yes
11840      fi
11841    fi
11842    chmod u+w . 2>&5
11843    $RM conftest*
11844    # SGI C++ compiler will create directory out/ii_files/ for
11845    # template instantiation
11846    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11847    $RM out/* && rmdir out
11848    cd ..
11849    $RM -r conftest
11850    $RM conftest*
11851
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
11854 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
11855
11856
11857
11858
11859 hard_links="nottested"
11860 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
11861   # do not overwrite the value of need_locks provided by the user
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11863 $as_echo_n "checking if we can lock with hard links... " >&6; }
11864   hard_links=yes
11865   $RM conftest*
11866   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11867   touch conftest.a
11868   ln conftest.a conftest.b 2>&5 || hard_links=no
11869   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11871 $as_echo "$hard_links" >&6; }
11872   if test "$hard_links" = no; then
11873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11874 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11875     need_locks=warn
11876   fi
11877 else
11878   need_locks=no
11879 fi
11880
11881
11882
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11884 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11885
11886   runpath_var=
11887   allow_undefined_flag_GO=
11888   always_export_symbols_GO=no
11889   archive_cmds_GO=
11890   archive_expsym_cmds_GO=
11891   compiler_needs_object_GO=no
11892   enable_shared_with_static_runtimes_GO=no
11893   export_dynamic_flag_spec_GO=
11894   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11895   hardcode_automatic_GO=no
11896   hardcode_direct_GO=no
11897   hardcode_direct_absolute_GO=no
11898   hardcode_libdir_flag_spec_GO=
11899   hardcode_libdir_flag_spec_ld_GO=
11900   hardcode_libdir_separator_GO=
11901   hardcode_minus_L_GO=no
11902   hardcode_shlibpath_var_GO=unsupported
11903   inherit_rpath_GO=no
11904   link_all_deplibs_GO=unknown
11905   module_cmds_GO=
11906   module_expsym_cmds_GO=
11907   old_archive_from_new_cmds_GO=
11908   old_archive_from_expsyms_cmds_GO=
11909   thread_safe_flag_spec_GO=
11910   whole_archive_flag_spec_GO=
11911   # include_expsyms should be a list of space-separated symbols to be *always*
11912   # included in the symbol list
11913   include_expsyms_GO=
11914   # exclude_expsyms can be an extended regexp of symbols to exclude
11915   # it will be wrapped by ` (' and `)$', so one must not match beginning or
11916   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11917   # as well as any symbol that contains `d'.
11918   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11919   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11920   # platforms (ab)use it in PIC code, but their linkers get confused if
11921   # the symbol is explicitly referenced.  Since portable code cannot
11922   # rely on this symbol name, it's probably fine to never include it in
11923   # preloaded symbol tables.
11924   # Exclude shared library initialization/finalization symbols.
11925   extract_expsyms_cmds=
11926
11927   case $host_os in
11928   cygwin* | mingw* | pw32* | cegcc*)
11929     # FIXME: the MSVC++ port hasn't been tested in a loooong time
11930     # When not using gcc, we currently assume that we are using
11931     # Microsoft Visual C++.
11932     if test "$GCC" != yes; then
11933       with_gnu_ld=no
11934     fi
11935     ;;
11936   interix*)
11937     # we just hope/assume this is gcc and not c89 (= MSVC++)
11938     with_gnu_ld=yes
11939     ;;
11940   openbsd*)
11941     with_gnu_ld=no
11942     ;;
11943   esac
11944
11945   ld_shlibs_GO=yes
11946
11947   # On some targets, GNU ld is compatible enough with the native linker
11948   # that we're better off using the native interface for both.
11949   lt_use_gnu_ld_interface=no
11950   if test "$with_gnu_ld" = yes; then
11951     case $host_os in
11952       aix*)
11953         # The AIX port of GNU ld has always aspired to compatibility
11954         # with the native linker.  However, as the warning in the GNU ld
11955         # block says, versions before 2.19.5* couldn't really create working
11956         # shared libraries, regardless of the interface used.
11957         case `$LD -v 2>&1` in
11958           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
11959           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
11960           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
11961           *)
11962             lt_use_gnu_ld_interface=yes
11963             ;;
11964         esac
11965         ;;
11966       *)
11967         lt_use_gnu_ld_interface=yes
11968         ;;
11969     esac
11970   fi
11971
11972   if test "$lt_use_gnu_ld_interface" = yes; then
11973     # If archive_cmds runs LD, not CC, wlarc should be empty
11974     wlarc='${wl}'
11975
11976     # Set some defaults for GNU ld with shared library support. These
11977     # are reset later if shared libraries are not supported. Putting them
11978     # here allows them to be overridden if necessary.
11979     runpath_var=LD_RUN_PATH
11980     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
11981     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
11982     # ancient GNU ld didn't support --whole-archive et. al.
11983     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11984       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11985     else
11986       whole_archive_flag_spec_GO=
11987     fi
11988     supports_anon_versioning=no
11989     case `$LD -v 2>&1` in
11990       *GNU\ gold*) supports_anon_versioning=yes ;;
11991       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11992       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11993       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11994       *\ 2.11.*) ;; # other 2.11 versions
11995       *) supports_anon_versioning=yes ;;
11996     esac
11997
11998     # See if GNU ld supports shared libraries.
11999     case $host_os in
12000     aix[3-9]*)
12001       # On AIX/PPC, the GNU linker is very broken
12002       if test "$host_cpu" != ia64; then
12003         ld_shlibs_GO=no
12004         cat <<_LT_EOF 1>&2
12005
12006 *** Warning: the GNU linker, at least up to release 2.19, is reported
12007 *** to be unable to reliably create shared libraries on AIX.
12008 *** Therefore, libtool is disabling shared libraries support.  If you
12009 *** really care for shared libraries, you may want to install binutils
12010 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12011 *** You will then need to restart the configuration process.
12012
12013 _LT_EOF
12014       fi
12015       ;;
12016
12017     amigaos*)
12018       case $host_cpu in
12019       powerpc)
12020             # see comment about AmigaOS4 .so support
12021             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12022             archive_expsym_cmds_GO=''
12023         ;;
12024       m68k)
12025             archive_cmds_GO='$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)'
12026             hardcode_libdir_flag_spec_GO='-L$libdir'
12027             hardcode_minus_L_GO=yes
12028         ;;
12029       esac
12030       ;;
12031
12032     beos*)
12033       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12034         allow_undefined_flag_GO=unsupported
12035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12036         # support --undefined.  This deserves some investigation.  FIXME
12037         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12038       else
12039         ld_shlibs_GO=no
12040       fi
12041       ;;
12042
12043     cygwin* | mingw* | pw32* | cegcc*)
12044       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12045       # as there is no search path for DLLs.
12046       hardcode_libdir_flag_spec_GO='-L$libdir'
12047       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12048       allow_undefined_flag_GO=unsupported
12049       always_export_symbols_GO=no
12050       enable_shared_with_static_runtimes_GO=yes
12051       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12052
12053       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12054         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12055         # If the export-symbols file already is a .def file (1st line
12056         # is EXPORTS), use it as is; otherwise, prepend...
12057         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12058           cp $export_symbols $output_objdir/$soname.def;
12059         else
12060           echo EXPORTS > $output_objdir/$soname.def;
12061           cat $export_symbols >> $output_objdir/$soname.def;
12062         fi~
12063         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12064       else
12065         ld_shlibs_GO=no
12066       fi
12067       ;;
12068
12069     haiku*)
12070       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12071       link_all_deplibs_GO=yes
12072       ;;
12073
12074     interix[3-9]*)
12075       hardcode_direct_GO=no
12076       hardcode_shlibpath_var_GO=no
12077       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12078       export_dynamic_flag_spec_GO='${wl}-E'
12079       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12080       # Instead, shared libraries are loaded at an image base (0x10000000 by
12081       # default) and relocated if they conflict, which is a slow very memory
12082       # consuming and fragmenting process.  To avoid this, we pick a random,
12083       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12084       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12085       archive_cmds_GO='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12086       archive_expsym_cmds_GO='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'
12087       ;;
12088
12089     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12090       tmp_diet=no
12091       if test "$host_os" = linux-dietlibc; then
12092         case $cc_basename in
12093           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12094         esac
12095       fi
12096       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12097          && test "$tmp_diet" = no
12098       then
12099         tmp_addflag=
12100         tmp_sharedflag='-shared'
12101         case $cc_basename,$host_cpu in
12102         pgcc*)                          # Portland Group C compiler
12103           whole_archive_flag_spec_GO='${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'
12104           tmp_addflag=' $pic_flag'
12105           ;;
12106         pgf77* | pgf90* | pgf95* | pgfortran*)
12107                                         # Portland Group f77 and f90 compilers
12108           whole_archive_flag_spec_GO='${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'
12109           tmp_addflag=' $pic_flag -Mnomain' ;;
12110         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12111           tmp_addflag=' -i_dynamic' ;;
12112         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12113           tmp_addflag=' -i_dynamic -nofor_main' ;;
12114         ifc* | ifort*)                  # Intel Fortran compiler
12115           tmp_addflag=' -nofor_main' ;;
12116         lf95*)                          # Lahey Fortran 8.1
12117           whole_archive_flag_spec_GO=
12118           tmp_sharedflag='--shared' ;;
12119         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12120           tmp_sharedflag='-qmkshrobj'
12121           tmp_addflag= ;;
12122         nvcc*)  # Cuda Compiler Driver 2.2
12123           whole_archive_flag_spec_GO='${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'
12124           compiler_needs_object_GO=yes
12125           ;;
12126         esac
12127         case `$CC -V 2>&1 | sed 5q` in
12128         *Sun\ C*)                       # Sun C 5.9
12129           whole_archive_flag_spec_GO='${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'
12130           compiler_needs_object_GO=yes
12131           tmp_sharedflag='-G' ;;
12132         *Sun\ F*)                       # Sun Fortran 8.3
12133           tmp_sharedflag='-G' ;;
12134         esac
12135         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12136
12137         if test "x$supports_anon_versioning" = xyes; then
12138           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12139             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12140             echo "local: *; };" >> $output_objdir/$libname.ver~
12141             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12142         fi
12143
12144         case $cc_basename in
12145         xlf* | bgf* | bgxlf* | mpixlf*)
12146           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12147           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12148           hardcode_libdir_flag_spec_GO=
12149           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12150           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12151           if test "x$supports_anon_versioning" = xyes; then
12152             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12153               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12154               echo "local: *; };" >> $output_objdir/$libname.ver~
12155               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12156           fi
12157           ;;
12158         esac
12159       else
12160         ld_shlibs_GO=no
12161       fi
12162       ;;
12163
12164     netbsd*)
12165       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12166         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12167         wlarc=
12168       else
12169         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12170         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12171       fi
12172       ;;
12173
12174     solaris*)
12175       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12176         ld_shlibs_GO=no
12177         cat <<_LT_EOF 1>&2
12178
12179 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12180 *** create shared libraries on Solaris systems.  Therefore, libtool
12181 *** is disabling shared libraries support.  We urge you to upgrade GNU
12182 *** binutils to release 2.9.1 or newer.  Another option is to modify
12183 *** your PATH or compiler configuration so that the native linker is
12184 *** used, and then restart.
12185
12186 _LT_EOF
12187       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12188         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12189         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12190       else
12191         ld_shlibs_GO=no
12192       fi
12193       ;;
12194
12195     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12196       case `$LD -v 2>&1` in
12197         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12198         ld_shlibs_GO=no
12199         cat <<_LT_EOF 1>&2
12200
12201 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12202 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12203 *** is disabling shared libraries support.  We urge you to upgrade GNU
12204 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12205 *** your PATH or compiler configuration so that the native linker is
12206 *** used, and then restart.
12207
12208 _LT_EOF
12209         ;;
12210         *)
12211           # For security reasons, it is highly recommended that you always
12212           # use absolute paths for naming shared libraries, and exclude the
12213           # DT_RUNPATH tag from executables and libraries.  But doing so
12214           # requires that you compile everything twice, which is a pain.
12215           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12216             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12217             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12218             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12219           else
12220             ld_shlibs_GO=no
12221           fi
12222         ;;
12223       esac
12224       ;;
12225
12226     sunos4*)
12227       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12228       wlarc=
12229       hardcode_direct_GO=yes
12230       hardcode_shlibpath_var_GO=no
12231       ;;
12232
12233     *)
12234       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12235         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12236         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12237       else
12238         ld_shlibs_GO=no
12239       fi
12240       ;;
12241     esac
12242
12243     if test "$ld_shlibs_GO" = no; then
12244       runpath_var=
12245       hardcode_libdir_flag_spec_GO=
12246       export_dynamic_flag_spec_GO=
12247       whole_archive_flag_spec_GO=
12248     fi
12249   else
12250     # PORTME fill in a description of your system's linker (not GNU ld)
12251     case $host_os in
12252     aix3*)
12253       allow_undefined_flag_GO=unsupported
12254       always_export_symbols_GO=yes
12255       archive_expsym_cmds_GO='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
12256       # Note: this linker hardcodes the directories in LIBPATH if there
12257       # are no directories specified by -L.
12258       hardcode_minus_L_GO=yes
12259       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12260         # Neither direct hardcoding nor static linking is supported with a
12261         # broken collect2.
12262         hardcode_direct_GO=unsupported
12263       fi
12264       ;;
12265
12266     aix[4-9]*)
12267       if test "$host_cpu" = ia64; then
12268         # On IA64, the linker does run time linking by default, so we don't
12269         # have to do anything special.
12270         aix_use_runtimelinking=no
12271         exp_sym_flag='-Bexport'
12272         no_entry_flag=""
12273       else
12274         # If we're using GNU nm, then we don't want the "-C" option.
12275         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12276         # Also, AIX nm treats weak defined symbols like other global
12277         # defined symbols, whereas GNU nm marks them as "W".
12278         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12279           export_symbols_cmds_GO='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12280         else
12281           export_symbols_cmds_GO='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12282         fi
12283         aix_use_runtimelinking=no
12284
12285         # Test if we are trying to use run time linking or normal
12286         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12287         # need to do runtime linking.
12288         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12289           for ld_flag in $LDFLAGS; do
12290           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12291             aix_use_runtimelinking=yes
12292             break
12293           fi
12294           done
12295           ;;
12296         esac
12297
12298         exp_sym_flag='-bexport'
12299         no_entry_flag='-bnoentry'
12300       fi
12301
12302       # When large executables or shared objects are built, AIX ld can
12303       # have problems creating the table of contents.  If linking a library
12304       # or program results in "error TOC overflow" add -mminimal-toc to
12305       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12306       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12307
12308       archive_cmds_GO=''
12309       hardcode_direct_GO=yes
12310       hardcode_direct_absolute_GO=yes
12311       hardcode_libdir_separator_GO=':'
12312       link_all_deplibs_GO=yes
12313       file_list_spec_GO='${wl}-f,'
12314
12315       if test "$GCC" = yes; then
12316         case $host_os in aix4.[012]|aix4.[012].*)
12317         # We only want to do this on AIX 4.2 and lower, the check
12318         # below for broken collect2 doesn't work under 4.3+
12319           collect2name=`${CC} -print-prog-name=collect2`
12320           if test -f "$collect2name" &&
12321            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12322           then
12323           # We have reworked collect2
12324           :
12325           else
12326           # We have old collect2
12327           hardcode_direct_GO=unsupported
12328           # It fails to find uninstalled libraries when the uninstalled
12329           # path is not listed in the libpath.  Setting hardcode_minus_L
12330           # to unsupported forces relinking
12331           hardcode_minus_L_GO=yes
12332           hardcode_libdir_flag_spec_GO='-L$libdir'
12333           hardcode_libdir_separator_GO=
12334           fi
12335           ;;
12336         esac
12337         shared_flag='-shared'
12338         if test "$aix_use_runtimelinking" = yes; then
12339           shared_flag="$shared_flag "'${wl}-G'
12340         fi
12341       else
12342         # not using gcc
12343         if test "$host_cpu" = ia64; then
12344         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12345         # chokes on -Wl,-G. The following line is correct:
12346           shared_flag='-G'
12347         else
12348           if test "$aix_use_runtimelinking" = yes; then
12349             shared_flag='${wl}-G'
12350           else
12351             shared_flag='${wl}-bM:SRE'
12352           fi
12353         fi
12354       fi
12355
12356       export_dynamic_flag_spec_GO='${wl}-bexpall'
12357       # It seems that -bexpall does not export symbols beginning with
12358       # underscore (_), so it is better to generate a list of symbols to export.
12359       always_export_symbols_GO=yes
12360       if test "$aix_use_runtimelinking" = yes; then
12361         # Warning - without using the other runtime loading flags (-brtl),
12362         # -berok will link without error, but may produce a broken library.
12363         allow_undefined_flag_GO='-berok'
12364         # Determine the default libpath from the value encoded in an
12365         # empty executable.
12366         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h.  */
12368
12369 int
12370 main ()
12371 {
12372
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 if ac_fn_c_try_link "$LINENO"; then :
12378
12379 lt_aix_libpath_sed='
12380     /Import File Strings/,/^$/ {
12381         /^0/ {
12382             s/^0  *\(.*\)$/\1/
12383             p
12384         }
12385     }'
12386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12387 # Check for a 64-bit object if we didn't find anything.
12388 if test -z "$aix_libpath"; then
12389   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12390 fi
12391 fi
12392 rm -f core conftest.err conftest.$ac_objext \
12393     conftest$ac_exeext conftest.$ac_ext
12394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12395
12396         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12397         archive_expsym_cmds_GO='$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"
12398       else
12399         if test "$host_cpu" = ia64; then
12400           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12401           allow_undefined_flag_GO="-z nodefs"
12402           archive_expsym_cmds_GO="\$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"
12403         else
12404          # Determine the default libpath from the value encoded in an
12405          # empty executable.
12406          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h.  */
12408
12409 int
12410 main ()
12411 {
12412
12413   ;
12414   return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418
12419 lt_aix_libpath_sed='
12420     /Import File Strings/,/^$/ {
12421         /^0/ {
12422             s/^0  *\(.*\)$/\1/
12423             p
12424         }
12425     }'
12426 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12427 # Check for a 64-bit object if we didn't find anything.
12428 if test -z "$aix_libpath"; then
12429   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12430 fi
12431 fi
12432 rm -f core conftest.err conftest.$ac_objext \
12433     conftest$ac_exeext conftest.$ac_ext
12434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12435
12436          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12437           # Warning - without using the other run time loading flags,
12438           # -berok will link without error, but may produce a broken library.
12439           no_undefined_flag_GO=' ${wl}-bernotok'
12440           allow_undefined_flag_GO=' ${wl}-berok'
12441           if test "$with_gnu_ld" = yes; then
12442             # We only use this code for GNU lds that support --whole-archive.
12443             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12444           else
12445             # Exported symbols can be pulled into shared objects from archives
12446             whole_archive_flag_spec_GO='$convenience'
12447           fi
12448           archive_cmds_need_lc_GO=yes
12449           # This is similar to how AIX traditionally builds its shared libraries.
12450           archive_expsym_cmds_GO="\$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'
12451         fi
12452       fi
12453       ;;
12454
12455     amigaos*)
12456       case $host_cpu in
12457       powerpc)
12458             # see comment about AmigaOS4 .so support
12459             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12460             archive_expsym_cmds_GO=''
12461         ;;
12462       m68k)
12463             archive_cmds_GO='$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)'
12464             hardcode_libdir_flag_spec_GO='-L$libdir'
12465             hardcode_minus_L_GO=yes
12466         ;;
12467       esac
12468       ;;
12469
12470     bsdi[45]*)
12471       export_dynamic_flag_spec_GO=-rdynamic
12472       ;;
12473
12474     cygwin* | mingw* | pw32* | cegcc*)
12475       # When not using gcc, we currently assume that we are using
12476       # Microsoft Visual C++.
12477       # hardcode_libdir_flag_spec is actually meaningless, as there is
12478       # no search path for DLLs.
12479       hardcode_libdir_flag_spec_GO=' '
12480       allow_undefined_flag_GO=unsupported
12481       # Tell ltmain to make .lib files, not .a files.
12482       libext=lib
12483       # Tell ltmain to make .dll files, not .so files.
12484       shrext_cmds=".dll"
12485       # FIXME: Setting linknames here is a bad hack.
12486       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12487       # The linker will automatically build a .lib file if we build a DLL.
12488       old_archive_from_new_cmds_GO='true'
12489       # FIXME: Should let the user specify the lib program.
12490       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12491       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12492       enable_shared_with_static_runtimes_GO=yes
12493       ;;
12494
12495     darwin* | rhapsody*)
12496
12497
12498   archive_cmds_need_lc_GO=no
12499   hardcode_direct_GO=no
12500   hardcode_automatic_GO=yes
12501   hardcode_shlibpath_var_GO=unsupported
12502   if test "$lt_cv_ld_force_load" = "yes"; then
12503     whole_archive_flag_spec_GO='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12504   else
12505     whole_archive_flag_spec_GO=''
12506   fi
12507   link_all_deplibs_GO=yes
12508   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12509   case $cc_basename in
12510      ifort*) _lt_dar_can_shared=yes ;;
12511      *) _lt_dar_can_shared=$GCC ;;
12512   esac
12513   if test "$_lt_dar_can_shared" = "yes"; then
12514     output_verbose_link_cmd=func_echo_all
12515     archive_cmds_GO="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12516     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12517     archive_expsym_cmds_GO="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}"
12518     module_expsym_cmds_GO="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}"
12519
12520   else
12521   ld_shlibs_GO=no
12522   fi
12523
12524       ;;
12525
12526     dgux*)
12527       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12528       hardcode_libdir_flag_spec_GO='-L$libdir'
12529       hardcode_shlibpath_var_GO=no
12530       ;;
12531
12532     freebsd1*)
12533       ld_shlibs_GO=no
12534       ;;
12535
12536     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12537     # support.  Future versions do this automatically, but an explicit c++rt0.o
12538     # does not break anything, and helps significantly (at the cost of a little
12539     # extra space).
12540     freebsd2.2*)
12541       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12542       hardcode_libdir_flag_spec_GO='-R$libdir'
12543       hardcode_direct_GO=yes
12544       hardcode_shlibpath_var_GO=no
12545       ;;
12546
12547     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12548     freebsd2*)
12549       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12550       hardcode_direct_GO=yes
12551       hardcode_minus_L_GO=yes
12552       hardcode_shlibpath_var_GO=no
12553       ;;
12554
12555     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12556     freebsd* | dragonfly*)
12557       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12558       hardcode_libdir_flag_spec_GO='-R$libdir'
12559       hardcode_direct_GO=yes
12560       hardcode_shlibpath_var_GO=no
12561       ;;
12562
12563     hpux9*)
12564       if test "$GCC" = yes; then
12565         archive_cmds_GO='$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'
12566       else
12567         archive_cmds_GO='$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'
12568       fi
12569       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12570       hardcode_libdir_separator_GO=:
12571       hardcode_direct_GO=yes
12572
12573       # hardcode_minus_L: Not really in the search PATH,
12574       # but as the default location of the library.
12575       hardcode_minus_L_GO=yes
12576       export_dynamic_flag_spec_GO='${wl}-E'
12577       ;;
12578
12579     hpux10*)
12580       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12581         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12582       else
12583         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12584       fi
12585       if test "$with_gnu_ld" = no; then
12586         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12587         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12588         hardcode_libdir_separator_GO=:
12589         hardcode_direct_GO=yes
12590         hardcode_direct_absolute_GO=yes
12591         export_dynamic_flag_spec_GO='${wl}-E'
12592         # hardcode_minus_L: Not really in the search PATH,
12593         # but as the default location of the library.
12594         hardcode_minus_L_GO=yes
12595       fi
12596       ;;
12597
12598     hpux11*)
12599       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12600         case $host_cpu in
12601         hppa*64*)
12602           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12603           ;;
12604         ia64*)
12605           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12606           ;;
12607         *)
12608           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12609           ;;
12610         esac
12611       else
12612         case $host_cpu in
12613         hppa*64*)
12614           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12615           ;;
12616         ia64*)
12617           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12618           ;;
12619         *)
12620         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12621           ;;
12622         esac
12623       fi
12624       if test "$with_gnu_ld" = no; then
12625         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12626         hardcode_libdir_separator_GO=:
12627
12628         case $host_cpu in
12629         hppa*64*|ia64*)
12630           hardcode_direct_GO=no
12631           hardcode_shlibpath_var_GO=no
12632           ;;
12633         *)
12634           hardcode_direct_GO=yes
12635           hardcode_direct_absolute_GO=yes
12636           export_dynamic_flag_spec_GO='${wl}-E'
12637
12638           # hardcode_minus_L: Not really in the search PATH,
12639           # but as the default location of the library.
12640           hardcode_minus_L_GO=yes
12641           ;;
12642         esac
12643       fi
12644       ;;
12645
12646     irix5* | irix6* | nonstopux*)
12647       if test "$GCC" = yes; then
12648         archive_cmds_GO='$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'
12649         # Try to use the -exported_symbol ld option, if it does not
12650         # work, assume that -exports_file does not work either and
12651         # implicitly export all symbols.
12652         save_LDFLAGS="$LDFLAGS"
12653         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12654         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655 /* end confdefs.h.  */
12656 int foo(void) {}
12657 _ACEOF
12658 if ac_fn_c_try_link "$LINENO"; then :
12659   archive_expsym_cmds_GO='$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'
12660
12661 fi
12662 rm -f core conftest.err conftest.$ac_objext \
12663     conftest$ac_exeext conftest.$ac_ext
12664         LDFLAGS="$save_LDFLAGS"
12665       else
12666         archive_cmds_GO='$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'
12667         archive_expsym_cmds_GO='$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'
12668       fi
12669       archive_cmds_need_lc_GO='no'
12670       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12671       hardcode_libdir_separator_GO=:
12672       inherit_rpath_GO=yes
12673       link_all_deplibs_GO=yes
12674       ;;
12675
12676     netbsd*)
12677       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12678         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12679       else
12680         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12681       fi
12682       hardcode_libdir_flag_spec_GO='-R$libdir'
12683       hardcode_direct_GO=yes
12684       hardcode_shlibpath_var_GO=no
12685       ;;
12686
12687     newsos6)
12688       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12689       hardcode_direct_GO=yes
12690       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12691       hardcode_libdir_separator_GO=:
12692       hardcode_shlibpath_var_GO=no
12693       ;;
12694
12695     *nto* | *qnx*)
12696       ;;
12697
12698     openbsd*)
12699       if test -f /usr/libexec/ld.so; then
12700         hardcode_direct_GO=yes
12701         hardcode_shlibpath_var_GO=no
12702         hardcode_direct_absolute_GO=yes
12703         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12704           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12705           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12706           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12707           export_dynamic_flag_spec_GO='${wl}-E'
12708         else
12709           case $host_os in
12710            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12711              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12712              hardcode_libdir_flag_spec_GO='-R$libdir'
12713              ;;
12714            *)
12715              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12716              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12717              ;;
12718           esac
12719         fi
12720       else
12721         ld_shlibs_GO=no
12722       fi
12723       ;;
12724
12725     os2*)
12726       hardcode_libdir_flag_spec_GO='-L$libdir'
12727       hardcode_minus_L_GO=yes
12728       allow_undefined_flag_GO=unsupported
12729       archive_cmds_GO='$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'
12730       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12731       ;;
12732
12733     osf3*)
12734       if test "$GCC" = yes; then
12735         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12736         archive_cmds_GO='$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'
12737       else
12738         allow_undefined_flag_GO=' -expect_unresolved \*'
12739         archive_cmds_GO='$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'
12740       fi
12741       archive_cmds_need_lc_GO='no'
12742       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12743       hardcode_libdir_separator_GO=:
12744       ;;
12745
12746     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12747       if test "$GCC" = yes; then
12748         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12749         archive_cmds_GO='$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'
12750         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12751       else
12752         allow_undefined_flag_GO=' -expect_unresolved \*'
12753         archive_cmds_GO='$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'
12754         archive_expsym_cmds_GO='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12755         $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'
12756
12757         # Both c and cxx compiler support -rpath directly
12758         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12759       fi
12760       archive_cmds_need_lc_GO='no'
12761       hardcode_libdir_separator_GO=:
12762       ;;
12763
12764     solaris*)
12765       no_undefined_flag_GO=' -z defs'
12766       if test "$GCC" = yes; then
12767         wlarc='${wl}'
12768         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12769         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12770           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12771       else
12772         case `$CC -V 2>&1` in
12773         *"Compilers 5.0"*)
12774           wlarc=''
12775           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12776           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12777           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12778           ;;
12779         *)
12780           wlarc='${wl}'
12781           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12782           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12783           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12784           ;;
12785         esac
12786       fi
12787       hardcode_libdir_flag_spec_GO='-R$libdir'
12788       hardcode_shlibpath_var_GO=no
12789       case $host_os in
12790       solaris2.[0-5] | solaris2.[0-5].*) ;;
12791       *)
12792         # The compiler driver will combine and reorder linker options,
12793         # but understands `-z linker_flag'.  GCC discards it without `$wl',
12794         # but is careful enough not to reorder.
12795         # Supported since Solaris 2.6 (maybe 2.5.1?)
12796         if test "$GCC" = yes; then
12797           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12798         else
12799           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
12800         fi
12801         ;;
12802       esac
12803       link_all_deplibs_GO=yes
12804       ;;
12805
12806     sunos4*)
12807       if test "x$host_vendor" = xsequent; then
12808         # Use $CC to link under sequent, because it throws in some extra .o
12809         # files that make .init and .fini sections work.
12810         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12811       else
12812         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12813       fi
12814       hardcode_libdir_flag_spec_GO='-L$libdir'
12815       hardcode_direct_GO=yes
12816       hardcode_minus_L_GO=yes
12817       hardcode_shlibpath_var_GO=no
12818       ;;
12819
12820     sysv4)
12821       case $host_vendor in
12822         sni)
12823           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12824           hardcode_direct_GO=yes # is this really true???
12825         ;;
12826         siemens)
12827           ## LD is ld it makes a PLAMLIB
12828           ## CC just makes a GrossModule.
12829           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12830           reload_cmds_GO='$CC -r -o $output$reload_objs'
12831           hardcode_direct_GO=no
12832         ;;
12833         motorola)
12834           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12835           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
12836         ;;
12837       esac
12838       runpath_var='LD_RUN_PATH'
12839       hardcode_shlibpath_var_GO=no
12840       ;;
12841
12842     sysv4.3*)
12843       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12844       hardcode_shlibpath_var_GO=no
12845       export_dynamic_flag_spec_GO='-Bexport'
12846       ;;
12847
12848     sysv4*MP*)
12849       if test -d /usr/nec; then
12850         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851         hardcode_shlibpath_var_GO=no
12852         runpath_var=LD_RUN_PATH
12853         hardcode_runpath_var=yes
12854         ld_shlibs_GO=yes
12855       fi
12856       ;;
12857
12858     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12859       no_undefined_flag_GO='${wl}-z,text'
12860       archive_cmds_need_lc_GO=no
12861       hardcode_shlibpath_var_GO=no
12862       runpath_var='LD_RUN_PATH'
12863
12864       if test "$GCC" = yes; then
12865         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12866         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12867       else
12868         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12869         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12870       fi
12871       ;;
12872
12873     sysv5* | sco3.2v5* | sco5v6*)
12874       # Note: We can NOT use -z defs as we might desire, because we do not
12875       # link with -lc, and that would cause any symbols used from libc to
12876       # always be unresolved, which means just about no library would
12877       # ever link correctly.  If we're not using GNU ld we use -z text
12878       # though, which does catch some bad symbols but isn't as heavy-handed
12879       # as -z defs.
12880       no_undefined_flag_GO='${wl}-z,text'
12881       allow_undefined_flag_GO='${wl}-z,nodefs'
12882       archive_cmds_need_lc_GO=no
12883       hardcode_shlibpath_var_GO=no
12884       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
12885       hardcode_libdir_separator_GO=':'
12886       link_all_deplibs_GO=yes
12887       export_dynamic_flag_spec_GO='${wl}-Bexport'
12888       runpath_var='LD_RUN_PATH'
12889
12890       if test "$GCC" = yes; then
12891         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12892         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12893       else
12894         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12895         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12896       fi
12897       ;;
12898
12899     uts4*)
12900       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12901       hardcode_libdir_flag_spec_GO='-L$libdir'
12902       hardcode_shlibpath_var_GO=no
12903       ;;
12904
12905     *)
12906       ld_shlibs_GO=no
12907       ;;
12908     esac
12909
12910     if test x$host_vendor = xsni; then
12911       case $host in
12912       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12913         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
12914         ;;
12915       esac
12916     fi
12917   fi
12918
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
12920 $as_echo "$ld_shlibs_GO" >&6; }
12921 test "$ld_shlibs_GO" = no && can_build_shared=no
12922
12923 with_gnu_ld_GO=$with_gnu_ld
12924
12925
12926
12927
12928
12929
12930 #
12931 # Do we need to explicitly link libc?
12932 #
12933 case "x$archive_cmds_need_lc_GO" in
12934 x|xyes)
12935   # Assume -lc should be added
12936   archive_cmds_need_lc_GO=yes
12937
12938   if test "$enable_shared" = yes && test "$GCC" = yes; then
12939     case $archive_cmds_GO in
12940     *'~'*)
12941       # FIXME: we may have to deal with multi-command sequences.
12942       ;;
12943     '$CC '*)
12944       # Test whether the compiler implicitly links with -lc since on some
12945       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12946       # to ld, don't add -lc before -lgcc.
12947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12948 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12949 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   $RM conftest*
12953         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12954
12955         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12956   (eval $ac_compile) 2>&5
12957   ac_status=$?
12958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959   test $ac_status = 0; } 2>conftest.err; then
12960           soname=conftest
12961           lib=conftest
12962           libobjs=conftest.$ac_objext
12963           deplibs=
12964           wl=$lt_prog_compiler_wl_GO
12965           pic_flag=$lt_prog_compiler_pic_GO
12966           compiler_flags=-v
12967           linker_flags=-v
12968           verstring=
12969           output_objdir=.
12970           libname=conftest
12971           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
12972           allow_undefined_flag_GO=
12973           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12974   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12975   ac_status=$?
12976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12977   test $ac_status = 0; }
12978           then
12979             lt_cv_archive_cmds_need_lc_GO=no
12980           else
12981             lt_cv_archive_cmds_need_lc_GO=yes
12982           fi
12983           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
12984         else
12985           cat conftest.err 1>&5
12986         fi
12987         $RM conftest*
12988
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
12991 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
12992       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
12993       ;;
12994     esac
12995   fi
12996   ;;
12997 esac
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13063 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13064 hardcode_action_GO=
13065 if test -n "$hardcode_libdir_flag_spec_GO" ||
13066    test -n "$runpath_var_GO" ||
13067    test "X$hardcode_automatic_GO" = "Xyes" ; then
13068
13069   # We can hardcode non-existent directories.
13070   if test "$hardcode_direct_GO" != no &&
13071      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13072      # have to relink, otherwise we might link with an installed library
13073      # when we should be linking with a yet-to-be-installed one
13074      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13075      test "$hardcode_minus_L_GO" != no; then
13076     # Linking always hardcodes the temporary library directory.
13077     hardcode_action_GO=relink
13078   else
13079     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13080     hardcode_action_GO=immediate
13081   fi
13082 else
13083   # We cannot hardcode anything, or else we can only hardcode existing
13084   # directories.
13085   hardcode_action_GO=unsupported
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13088 $as_echo "$hardcode_action_GO" >&6; }
13089
13090 if test "$hardcode_action_GO" = relink ||
13091    test "$inherit_rpath_GO" = yes; then
13092   # Fast installation is not supported
13093   enable_fast_install=no
13094 elif test "$shlibpath_overrides_runpath" = yes ||
13095      test "$enable_shared" = no; then
13096   # Fast installation is not necessary
13097   enable_fast_install=needless
13098 fi
13099
13100
13101
13102
13103
13104
13105
13106 fi
13107
13108 ac_ext=c
13109 ac_cpp='$CPP $CPPFLAGS'
13110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13113
13114
13115 GCC=$lt_save_GCC
13116 CC="$lt_save_CC"
13117
13118
13119
13120
13121         ac_config_commands="$ac_config_commands libtool"
13122
13123
13124
13125
13126 # Only expand once:
13127
13128
13129
13130
13131
13132 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13133
13134
13135 WERROR="-Werror"
13136
13137
13138 glibgo_toolexecdir=no
13139 glibgo_toolexeclibdir=no
13140 glibgo_prefixdir=$prefix
13141
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13143 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13144 # Check whether --enable-version-specific-runtime-libs was given.
13145 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13146   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13147     yes) version_specific_libs=yes ;;
13148     no)  version_specific_libs=no ;;
13149     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13150    esac
13151 else
13152   version_specific_libs=no
13153 fi
13154
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13156 $as_echo "$version_specific_libs" >&6; }
13157
13158 # Version-specific runtime libs processing.
13159 if test $version_specific_libs = yes; then
13160   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13161   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13162 fi
13163
13164 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13165 # Install a library built with a cross compiler in tooldir, not libdir.
13166 if test x"$glibgo_toolexecdir" = x"no"; then
13167   if test -n "$with_cross_host" &&
13168      test x"$with_cross_host" != x"no"; then
13169     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13170     glibgo_toolexeclibdir='${toolexecdir}/lib'
13171   else
13172     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13173     glibgo_toolexeclibdir='${libdir}'
13174   fi
13175   multi_os_directory=`$CC -print-multi-os-directory`
13176   case $multi_os_directory in
13177     .) ;; # Avoid trailing /.
13178     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13179   esac
13180 fi
13181
13182
13183
13184
13185
13186 # See if the user wants to configure without libffi.  Some
13187 # architectures don't support it.  FIXME: We should set a default
13188 # based on the host.
13189
13190 # Check whether --with-libffi was given.
13191 if test "${with_libffi+set}" = set; then :
13192   withval=$with_libffi; :
13193 else
13194   with_libffi=${with_libffi_default-yes}
13195 fi
13196
13197
13198 LIBFFI=
13199 LIBFFIINCS=
13200 if test "$with_libffi" != no; then
13201
13202 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13203
13204    LIBFFI=../libffi/libffi_convenience.la
13205    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13206 fi
13207
13208
13209
13210 is_darwin=no
13211 is_freebsd=no
13212 is_linux=no
13213 is_rtems=no
13214 is_solaris=no
13215 GOOS=unknown
13216 case ${host} in
13217   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13218   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13219   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13220   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13221   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13222 esac
13223  if test $is_darwin = yes; then
13224   LIBGO_IS_DARWIN_TRUE=
13225   LIBGO_IS_DARWIN_FALSE='#'
13226 else
13227   LIBGO_IS_DARWIN_TRUE='#'
13228   LIBGO_IS_DARWIN_FALSE=
13229 fi
13230
13231  if test $is_freebsd = yes; then
13232   LIBGO_IS_FREEBSD_TRUE=
13233   LIBGO_IS_FREEBSD_FALSE='#'
13234 else
13235   LIBGO_IS_FREEBSD_TRUE='#'
13236   LIBGO_IS_FREEBSD_FALSE=
13237 fi
13238
13239  if test $is_linux = yes; then
13240   LIBGO_IS_LINUX_TRUE=
13241   LIBGO_IS_LINUX_FALSE='#'
13242 else
13243   LIBGO_IS_LINUX_TRUE='#'
13244   LIBGO_IS_LINUX_FALSE=
13245 fi
13246
13247  if test $is_rtems = yes; then
13248   LIBGO_IS_RTEMS_TRUE=
13249   LIBGO_IS_RTEMS_FALSE='#'
13250 else
13251   LIBGO_IS_RTEMS_TRUE='#'
13252   LIBGO_IS_RTEMS_FALSE=
13253 fi
13254
13255  if test $is_solaris = yes; then
13256   LIBGO_IS_SOLARIS_TRUE=
13257   LIBGO_IS_SOLARIS_FALSE='#'
13258 else
13259   LIBGO_IS_SOLARIS_TRUE='#'
13260   LIBGO_IS_SOLARIS_FALSE=
13261 fi
13262
13263
13264
13265 is_386=no
13266 is_arm=no
13267 is_m68k=no
13268 is_mips=no
13269 is_mips64=no
13270 is_ppc=no
13271 is_ppc64=no
13272 is_sparc=no
13273 is_sparc64=no
13274 is_x86_64=no
13275 GOARCH=unknown
13276 case ${host} in
13277   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13278     is_arm=yes
13279     GOARCH=arm
13280     ;;
13281   i[34567]86-*-* | x86_64-*-*)
13282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h.  */
13284
13285 #ifdef __x86_64__
13286 #error 64-bit
13287 #endif
13288 _ACEOF
13289 if ac_fn_c_try_cpp "$LINENO"; then :
13290   is_386=yes
13291 else
13292   is_x86_64=yes
13293 fi
13294 rm -f conftest.err conftest.$ac_ext
13295     if test "$is_386" = "yes"; then
13296       GOARCH=386
13297     else
13298       GOARCH=amd64
13299     fi
13300     ;;
13301   m68k*-*-*)
13302     is_m68k=yes
13303     GOARCH=m68k
13304     ;;
13305   mips*-*-*)
13306     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h.  */
13308
13309 #ifdef __mips64
13310 #error 64-bit
13311 #endif
13312 _ACEOF
13313 if ac_fn_c_try_cpp "$LINENO"; then :
13314   is_mips=yes
13315 else
13316   is_mips64=yes
13317 fi
13318 rm -f conftest.err conftest.$ac_ext
13319     if test "$is_mips" = "yes"; then
13320       GOARCH=mips
13321     else
13322       GOARCH=mips64
13323     fi
13324     ;;
13325   rs6000*-*-* | powerpc*-*-*)
13326     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327 /* end confdefs.h.  */
13328
13329 #ifdef _ARCH_PPC64
13330 #error 64-bit
13331 #endif
13332 _ACEOF
13333 if ac_fn_c_try_cpp "$LINENO"; then :
13334   is_ppc=yes
13335 else
13336   is_ppc64=yes
13337 fi
13338 rm -f conftest.err conftest.$ac_ext
13339     if test "$is_ppc" = "yes"; then
13340       GOARCH=ppc
13341     else
13342       GOARCH=ppc64
13343     fi
13344     ;;
13345   sparc*-*-*)
13346     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347 /* end confdefs.h.  */
13348
13349 #if defined(__sparcv9) || defined(__arch64__)
13350 #error 64-bit
13351 #endif
13352 _ACEOF
13353 if ac_fn_c_try_cpp "$LINENO"; then :
13354   is_sparc=yes
13355 else
13356   is_sparc64=yes
13357 fi
13358 rm -f conftest.err conftest.$ac_ext
13359     if test "$is_sparc" = "yes"; then
13360       GOARCH=sparc
13361     else
13362       GOARCH=sparc64
13363     fi
13364     ;;
13365 esac
13366  if test $is_386 = yes; then
13367   LIBGO_IS_386_TRUE=
13368   LIBGO_IS_386_FALSE='#'
13369 else
13370   LIBGO_IS_386_TRUE='#'
13371   LIBGO_IS_386_FALSE=
13372 fi
13373
13374  if test $is_arm = yes; then
13375   LIBGO_IS_ARM_TRUE=
13376   LIBGO_IS_ARM_FALSE='#'
13377 else
13378   LIBGO_IS_ARM_TRUE='#'
13379   LIBGO_IS_ARM_FALSE=
13380 fi
13381
13382  if test $is_m68k = yes; then
13383   LIBGO_IS_M68K_TRUE=
13384   LIBGO_IS_M68K_FALSE='#'
13385 else
13386   LIBGO_IS_M68K_TRUE='#'
13387   LIBGO_IS_M68K_FALSE=
13388 fi
13389
13390  if test $is_mips = yes; then
13391   LIBGO_IS_MIPS_TRUE=
13392   LIBGO_IS_MIPS_FALSE='#'
13393 else
13394   LIBGO_IS_MIPS_TRUE='#'
13395   LIBGO_IS_MIPS_FALSE=
13396 fi
13397
13398  if test $is_mips64 = yes; then
13399   LIBGO_IS_MIPS64_TRUE=
13400   LIBGO_IS_MIPS64_FALSE='#'
13401 else
13402   LIBGO_IS_MIPS64_TRUE='#'
13403   LIBGO_IS_MIPS64_FALSE=
13404 fi
13405
13406  if test $is_ppc = yes; then
13407   LIBGO_IS_PPC_TRUE=
13408   LIBGO_IS_PPC_FALSE='#'
13409 else
13410   LIBGO_IS_PPC_TRUE='#'
13411   LIBGO_IS_PPC_FALSE=
13412 fi
13413
13414  if test $is_ppc64 = yes; then
13415   LIBGO_IS_PPC64_TRUE=
13416   LIBGO_IS_PPC64_FALSE='#'
13417 else
13418   LIBGO_IS_PPC64_TRUE='#'
13419   LIBGO_IS_PPC64_FALSE=
13420 fi
13421
13422  if test $is_sparc = yes; then
13423   LIBGO_IS_SPARC_TRUE=
13424   LIBGO_IS_SPARC_FALSE='#'
13425 else
13426   LIBGO_IS_SPARC_TRUE='#'
13427   LIBGO_IS_SPARC_FALSE=
13428 fi
13429
13430  if test $is_sparc64 = yes; then
13431   LIBGO_IS_SPARC64_TRUE=
13432   LIBGO_IS_SPARC64_FALSE='#'
13433 else
13434   LIBGO_IS_SPARC64_TRUE='#'
13435   LIBGO_IS_SPARC64_FALSE=
13436 fi
13437
13438  if test $is_x86_64 = yes; then
13439   LIBGO_IS_X86_64_TRUE=
13440   LIBGO_IS_X86_64_FALSE='#'
13441 else
13442   LIBGO_IS_X86_64_TRUE='#'
13443   LIBGO_IS_X86_64_FALSE=
13444 fi
13445
13446
13447
13448 GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=
13449 if test -f ${srcdir}/syscalls/syscall_${GOOS}_${GOARCH}.go; then
13450   GO_SYSCALLS_SYSCALL_OS_ARCH_FILE=syscalls/syscall_${GOOS}_${GOARCH}.go
13451 fi
13452
13453
13454 GO_DEBUG_PROC_REGS_OS_ARCH_FILE=
13455 if test -f ${srcdir}/go/debug/proc/regs_${GOOS}_${GOARCH}.go; then
13456   GO_DEBUG_PROC_REGS_OS_ARCH_FILE=go/debug/proc/regs_${GOOS}_${GOARCH}.go
13457 fi
13458
13459
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13461 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13462 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13463   $as_echo_n "(cached) " >&6
13464 else
13465   CFLAGS_hold=$CFLAGS
13466 CFLAGS="$CFLAGS -fsplit-stack"
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h.  */
13469 int i;
13470 _ACEOF
13471 if ac_fn_c_try_compile "$LINENO"; then :
13472   libgo_cv_c_split_stack_supported=yes
13473 else
13474   libgo_cv_c_split_stack_supported=no
13475 fi
13476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13477 CFLAGS=$CFLAGS_hold
13478 fi
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13480 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13481 if test "$libgo_cv_c_split_stack_supported" = yes; then
13482   SPLIT_STACK=-fsplit-stack
13483
13484 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13485
13486 else
13487   SPLIT_STACK=
13488 fi
13489
13490  if test "$libgo_cv_c_split_stack_supported" = yes; then
13491   USING_SPLIT_STACK_TRUE=
13492   USING_SPLIT_STACK_FALSE='#'
13493 else
13494   USING_SPLIT_STACK_TRUE='#'
13495   USING_SPLIT_STACK_FALSE=
13496 fi
13497
13498
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13500 $as_echo_n "checking whether linker supports split stack... " >&6; }
13501 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13502   $as_echo_n "(cached) " >&6
13503 else
13504   libgo_cv_c_linker_supports_split_stack=no
13505 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13506   libgo_cv_c_linker_supports_split_stack=yes
13507 fi
13508 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13510 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13511 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13512
13513 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13514
13515 fi
13516
13517 MATH_LIBS=
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13519 $as_echo_n "checking for sqrt in -lm... " >&6; }
13520 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13521   $as_echo_n "(cached) " >&6
13522 else
13523   ac_check_lib_save_LIBS=$LIBS
13524 LIBS="-lm  $LIBS"
13525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13526 /* end confdefs.h.  */
13527
13528 /* Override any GCC internal prototype to avoid an error.
13529    Use char because int might match the return type of a GCC
13530    builtin and then its argument prototype would still apply.  */
13531 #ifdef __cplusplus
13532 extern "C"
13533 #endif
13534 char sqrt ();
13535 int
13536 main ()
13537 {
13538 return sqrt ();
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_link "$LINENO"; then :
13544   ac_cv_lib_m_sqrt=yes
13545 else
13546   ac_cv_lib_m_sqrt=no
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext \
13549     conftest$ac_exeext conftest.$ac_ext
13550 LIBS=$ac_check_lib_save_LIBS
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13553 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13554 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13555   MATH_LIBS=-lm
13556 fi
13557
13558
13559
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13561 $as_echo_n "checking for socket libraries... " >&6; }
13562 if test "${libgo_cv_lib_sockets+set}" = set; then :
13563   $as_echo_n "(cached) " >&6
13564 else
13565   libgo_cv_lib_sockets=
13566    libgo_check_both=no
13567    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13568 if test "x$ac_cv_func_connect" = x""yes; then :
13569   libgo_check_socket=no
13570 else
13571   libgo_check_socket=yes
13572 fi
13573
13574    if test "$libgo_check_socket" = "yes"; then
13575      unset ac_cv_func_connect
13576      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13577 $as_echo_n "checking for main in -lsocket... " >&6; }
13578 if test "${ac_cv_lib_socket_main+set}" = set; then :
13579   $as_echo_n "(cached) " >&6
13580 else
13581   ac_check_lib_save_LIBS=$LIBS
13582 LIBS="-lsocket  $LIBS"
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h.  */
13585
13586
13587 int
13588 main ()
13589 {
13590 return main ();
13591   ;
13592   return 0;
13593 }
13594 _ACEOF
13595 if ac_fn_c_try_link "$LINENO"; then :
13596   ac_cv_lib_socket_main=yes
13597 else
13598   ac_cv_lib_socket_main=no
13599 fi
13600 rm -f core conftest.err conftest.$ac_objext \
13601     conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13605 $as_echo "$ac_cv_lib_socket_main" >&6; }
13606 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13607   libgo_cv_lib_sockets="-lsocket"
13608 else
13609   libgo_check_both=yes
13610 fi
13611
13612    fi
13613    if test "$libgo_check_both" = "yes"; then
13614      libgo_old_libs=$LIBS
13615      LIBS="$LIBS -lsocket -lnsl"
13616      unset ac_cv_func_accept
13617      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
13618 if test "x$ac_cv_func_accept" = x""yes; then :
13619   libgo_check_nsl=no
13620                     libgo_cv_lib_sockets="-lsocket -lnsl"
13621 fi
13622
13623      unset ac_cv_func_accept
13624      LIBS=$libgo_old_libs
13625    fi
13626    unset ac_cv_func_gethostbyname
13627    libgo_old_libs="$LIBS"
13628    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13629 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
13630
13631 else
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
13633 $as_echo_n "checking for main in -lnsl... " >&6; }
13634 if test "${ac_cv_lib_nsl_main+set}" = set; then :
13635   $as_echo_n "(cached) " >&6
13636 else
13637   ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lnsl  $LIBS"
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h.  */
13641
13642
13643 int
13644 main ()
13645 {
13646 return main ();
13647   ;
13648   return 0;
13649 }
13650 _ACEOF
13651 if ac_fn_c_try_link "$LINENO"; then :
13652   ac_cv_lib_nsl_main=yes
13653 else
13654   ac_cv_lib_nsl_main=no
13655 fi
13656 rm -f core conftest.err conftest.$ac_objext \
13657     conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
13661 $as_echo "$ac_cv_lib_nsl_main" >&6; }
13662 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
13663   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
13664 fi
13665
13666 fi
13667
13668    unset ac_cv_func_gethostbyname
13669    LIBS=$libgo_old_libs
13670
13671 fi
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
13673 $as_echo "$libgo_cv_lib_sockets" >&6; }
13674 NET_LIBS="$libgo_cv_lib_sockets"
13675
13676
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
13678 $as_echo_n "checking whether -pthread is supported... " >&6; }
13679 if test "${libgo_cv_lib_pthread+set}" = set; then :
13680   $as_echo_n "(cached) " >&6
13681 else
13682   CFLAGS_hold=$CFLAGS
13683 CFLAGS="$CFLAGS -pthread"
13684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13685 /* end confdefs.h.  */
13686 int i;
13687 _ACEOF
13688 if ac_fn_c_try_compile "$LINENO"; then :
13689   libgo_cv_lib_pthread=yes
13690 else
13691   libgo_cv_lib_pthread=no
13692 fi
13693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13694 CFLAGS=$CFLAGS_hold
13695 fi
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
13697 $as_echo "$libgo_cv_lib_pthread" >&6; }
13698 PTHREAD_CFLAGS=
13699 if test "$libgo_cv_lib_pthread" = yes; then
13700   PTHREAD_CFLAGS=-pthread
13701 fi
13702
13703
13704 PTHREAD_LIBS=
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
13706 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
13707 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
13708   $as_echo_n "(cached) " >&6
13709 else
13710   ac_check_lib_save_LIBS=$LIBS
13711 LIBS="-lpthread  $LIBS"
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h.  */
13714
13715 /* Override any GCC internal prototype to avoid an error.
13716    Use char because int might match the return type of a GCC
13717    builtin and then its argument prototype would still apply.  */
13718 #ifdef __cplusplus
13719 extern "C"
13720 #endif
13721 char pthread_create ();
13722 int
13723 main ()
13724 {
13725 return pthread_create ();
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_link "$LINENO"; then :
13731   ac_cv_lib_pthread_pthread_create=yes
13732 else
13733   ac_cv_lib_pthread_pthread_create=no
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext \
13736     conftest$ac_exeext conftest.$ac_ext
13737 LIBS=$ac_check_lib_save_LIBS
13738 fi
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
13740 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
13741 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
13742   PTHREAD_LIBS=-lpthread
13743 fi
13744
13745
13746
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
13748 $as_echo_n "checking for library containing sched_yield... " >&6; }
13749 if test "${ac_cv_search_sched_yield+set}" = set; then :
13750   $as_echo_n "(cached) " >&6
13751 else
13752   ac_func_search_save_LIBS=$LIBS
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h.  */
13755
13756 /* Override any GCC internal prototype to avoid an error.
13757    Use char because int might match the return type of a GCC
13758    builtin and then its argument prototype would still apply.  */
13759 #ifdef __cplusplus
13760 extern "C"
13761 #endif
13762 char sched_yield ();
13763 int
13764 main ()
13765 {
13766 return sched_yield ();
13767   ;
13768   return 0;
13769 }
13770 _ACEOF
13771 for ac_lib in '' rt; do
13772   if test -z "$ac_lib"; then
13773     ac_res="none required"
13774   else
13775     ac_res=-l$ac_lib
13776     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13777   fi
13778   if ac_fn_c_try_link "$LINENO"; then :
13779   ac_cv_search_sched_yield=$ac_res
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782     conftest$ac_exeext
13783   if test "${ac_cv_search_sched_yield+set}" = set; then :
13784   break
13785 fi
13786 done
13787 if test "${ac_cv_search_sched_yield+set}" = set; then :
13788
13789 else
13790   ac_cv_search_sched_yield=no
13791 fi
13792 rm conftest.$ac_ext
13793 LIBS=$ac_func_search_save_LIBS
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
13796 $as_echo "$ac_cv_search_sched_yield" >&6; }
13797 ac_res=$ac_cv_search_sched_yield
13798 if test "$ac_res" != no; then :
13799   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13800
13801 fi
13802
13803
13804  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13805 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13806 if test "${ac_cv_c_bigendian+set}" = set; then :
13807   $as_echo_n "(cached) " >&6
13808 else
13809   ac_cv_c_bigendian=unknown
13810     # See if we're dealing with a universal compiler.
13811     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h.  */
13813 #ifndef __APPLE_CC__
13814                not a universal capable compiler
13815              #endif
13816              typedef int dummy;
13817
13818 _ACEOF
13819 if ac_fn_c_try_compile "$LINENO"; then :
13820
13821         # Check for potential -arch flags.  It is not universal unless
13822         # there are at least two -arch flags with different values.
13823         ac_arch=
13824         ac_prev=
13825         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13826          if test -n "$ac_prev"; then
13827            case $ac_word in
13828              i?86 | x86_64 | ppc | ppc64)
13829                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13830                  ac_arch=$ac_word
13831                else
13832                  ac_cv_c_bigendian=universal
13833                  break
13834                fi
13835                ;;
13836            esac
13837            ac_prev=
13838          elif test "x$ac_word" = "x-arch"; then
13839            ac_prev=arch
13840          fi
13841        done
13842 fi
13843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844     if test $ac_cv_c_bigendian = unknown; then
13845       # See if sys/param.h defines the BYTE_ORDER macro.
13846       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13847 /* end confdefs.h.  */
13848 #include <sys/types.h>
13849              #include <sys/param.h>
13850
13851 int
13852 main ()
13853 {
13854 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13855                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13856                      && LITTLE_ENDIAN)
13857               bogus endian macros
13858              #endif
13859
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 if ac_fn_c_try_compile "$LINENO"; then :
13865   # It does; now see whether it defined to BIG_ENDIAN or not.
13866          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13867 /* end confdefs.h.  */
13868 #include <sys/types.h>
13869                 #include <sys/param.h>
13870
13871 int
13872 main ()
13873 {
13874 #if BYTE_ORDER != BIG_ENDIAN
13875                  not big endian
13876                 #endif
13877
13878   ;
13879   return 0;
13880 }
13881 _ACEOF
13882 if ac_fn_c_try_compile "$LINENO"; then :
13883   ac_cv_c_bigendian=yes
13884 else
13885   ac_cv_c_bigendian=no
13886 fi
13887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13888 fi
13889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13890     fi
13891     if test $ac_cv_c_bigendian = unknown; then
13892       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13893       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895 #include <limits.h>
13896
13897 int
13898 main ()
13899 {
13900 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13901               bogus endian macros
13902              #endif
13903
13904   ;
13905   return 0;
13906 }
13907 _ACEOF
13908 if ac_fn_c_try_compile "$LINENO"; then :
13909   # It does; now see whether it defined to _BIG_ENDIAN or not.
13910          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13911 /* end confdefs.h.  */
13912 #include <limits.h>
13913
13914 int
13915 main ()
13916 {
13917 #ifndef _BIG_ENDIAN
13918                  not big endian
13919                 #endif
13920
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 if ac_fn_c_try_compile "$LINENO"; then :
13926   ac_cv_c_bigendian=yes
13927 else
13928   ac_cv_c_bigendian=no
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13931 fi
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933     fi
13934     if test $ac_cv_c_bigendian = unknown; then
13935       # Compile a test program.
13936       if test "$cross_compiling" = yes; then :
13937   # Try to guess by grepping values from an object file.
13938          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13939 /* end confdefs.h.  */
13940 short int ascii_mm[] =
13941                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13942                 short int ascii_ii[] =
13943                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13944                 int use_ascii (int i) {
13945                   return ascii_mm[i] + ascii_ii[i];
13946                 }
13947                 short int ebcdic_ii[] =
13948                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13949                 short int ebcdic_mm[] =
13950                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13951                 int use_ebcdic (int i) {
13952                   return ebcdic_mm[i] + ebcdic_ii[i];
13953                 }
13954                 extern int foo;
13955
13956 int
13957 main ()
13958 {
13959 return use_ascii (foo) == use_ebcdic (foo);
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 if ac_fn_c_try_compile "$LINENO"; then :
13965   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13966               ac_cv_c_bigendian=yes
13967             fi
13968             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13969               if test "$ac_cv_c_bigendian" = unknown; then
13970                 ac_cv_c_bigendian=no
13971               else
13972                 # finding both strings is unlikely to happen, but who knows?
13973                 ac_cv_c_bigendian=unknown
13974               fi
13975             fi
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 else
13979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13980 /* end confdefs.h.  */
13981 $ac_includes_default
13982 int
13983 main ()
13984 {
13985
13986              /* Are we little or big endian?  From Harbison&Steele.  */
13987              union
13988              {
13989                long int l;
13990                char c[sizeof (long int)];
13991              } u;
13992              u.l = 1;
13993              return u.c[sizeof (long int) - 1] == 1;
13994
13995   ;
13996   return 0;
13997 }
13998 _ACEOF
13999 if ac_fn_c_try_run "$LINENO"; then :
14000   ac_cv_c_bigendian=no
14001 else
14002   ac_cv_c_bigendian=yes
14003 fi
14004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14005   conftest.$ac_objext conftest.beam conftest.$ac_ext
14006 fi
14007
14008     fi
14009 fi
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14011 $as_echo "$ac_cv_c_bigendian" >&6; }
14012  case $ac_cv_c_bigendian in #(
14013    yes)
14014      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14015 ;; #(
14016    no)
14017       ;; #(
14018    universal)
14019
14020 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14021
14022      ;; #(
14023    *)
14024      as_fn_error "unknown endianness
14025  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14026  esac
14027
14028
14029
14030
14031 # Check whether --with-system-libunwind was given.
14032 if test "${with_system_libunwind+set}" = set; then :
14033   withval=$with_system_libunwind;
14034 fi
14035
14036   # If system-libunwind was not specifically set, pick a default setting.
14037   if test x$with_system_libunwind = x; then
14038     case ${target} in
14039       ia64-*-hpux*) with_system_libunwind=yes ;;
14040       *) with_system_libunwind=no ;;
14041     esac
14042   fi
14043   # Based on system-libunwind and target, do we have ipinfo?
14044   if  test x$with_system_libunwind = xyes; then
14045     case ${target} in
14046       ia64-*-*) have_unwind_getipinfo=no ;;
14047       *) have_unwind_getipinfo=yes ;;
14048     esac
14049   else
14050     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14051
14052     case ${target} in
14053       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14054       *) have_unwind_getipinfo=yes ;;
14055     esac
14056
14057   fi
14058
14059   if test x$have_unwind_getipinfo = xyes; then
14060
14061 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14062
14063   fi
14064
14065
14066 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/user.h sys/utsname.h
14067 do :
14068   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14069 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14070 eval as_val=\$$as_ac_Header
14071    if test "x$as_val" = x""yes; then :
14072   cat >>confdefs.h <<_ACEOF
14073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14074 _ACEOF
14075
14076 fi
14077
14078 done
14079
14080  if test "$ac_cv_header_sys_mman_h" = yes; then
14081   HAVE_SYS_MMAN_H_TRUE=
14082   HAVE_SYS_MMAN_H_FALSE='#'
14083 else
14084   HAVE_SYS_MMAN_H_TRUE='#'
14085   HAVE_SYS_MMAN_H_FALSE=
14086 fi
14087
14088 for ac_func in srandom random strsignal
14089 do :
14090   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14092 eval as_val=\$$as_ac_var
14093    if test "x$as_val" = x""yes; then :
14094   cat >>confdefs.h <<_ACEOF
14095 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14096 _ACEOF
14097
14098 fi
14099 done
14100
14101
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14103 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14104 if test "${libgo_cv_c_stringops+set}" = set; then :
14105   $as_echo_n "(cached) " >&6
14106 else
14107   CFLAGS_hold=$CFLAGS
14108 CFLAGS="$CFLAGS -minline-all-stringops"
14109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14110 /* end confdefs.h.  */
14111 int i;
14112 _ACEOF
14113 if ac_fn_c_try_compile "$LINENO"; then :
14114   libgo_cv_c_stringops=yes
14115 else
14116   libgo_cv_c_stringops=no
14117 fi
14118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119 CFLAGS=$CFLAGS_hold
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14122 $as_echo "$libgo_cv_c_stringops" >&6; }
14123 STRINGOPS_FLAG=
14124 if test "$libgo_cv_c_stringops" = yes; then
14125   STRINGOPS_FLAG=-minline-all-stringops
14126 fi
14127
14128
14129 CFLAGS_hold=$CFLAGS
14130 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14131 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14132 if test "x$ac_cv_type_off64_t" = x""yes; then :
14133
14134 cat >>confdefs.h <<_ACEOF
14135 #define HAVE_OFF64_T 1
14136 _ACEOF
14137
14138
14139 fi
14140
14141 CFLAGS=$CFLAGS_hold
14142
14143 cat >confcache <<\_ACEOF
14144 # This file is a shell script that caches the results of configure
14145 # tests run on this system so they can be shared between configure
14146 # scripts and configure runs, see configure's option --config-cache.
14147 # It is not useful on other systems.  If it contains results you don't
14148 # want to keep, you may remove or edit it.
14149 #
14150 # config.status only pays attention to the cache file if you give it
14151 # the --recheck option to rerun configure.
14152 #
14153 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14154 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14155 # following values.
14156
14157 _ACEOF
14158
14159 # The following way of writing the cache mishandles newlines in values,
14160 # but we know of no workaround that is simple, portable, and efficient.
14161 # So, we kill variables containing newlines.
14162 # Ultrix sh set writes to stderr and can't be redirected directly,
14163 # and sets the high bit in the cache file unless we assign to the vars.
14164 (
14165   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14166     eval ac_val=\$$ac_var
14167     case $ac_val in #(
14168     *${as_nl}*)
14169       case $ac_var in #(
14170       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14172       esac
14173       case $ac_var in #(
14174       _ | IFS | as_nl) ;; #(
14175       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14176       *) { eval $ac_var=; unset $ac_var;} ;;
14177       esac ;;
14178     esac
14179   done
14180
14181   (set) 2>&1 |
14182     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14183     *${as_nl}ac_space=\ *)
14184       # `set' does not quote correctly, so add quotes: double-quote
14185       # substitution turns \\\\ into \\, and sed turns \\ into \.
14186       sed -n \
14187         "s/'/'\\\\''/g;
14188           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14189       ;; #(
14190     *)
14191       # `set' quotes correctly as required by POSIX, so do not add quotes.
14192       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14193       ;;
14194     esac |
14195     sort
14196 ) |
14197   sed '
14198      /^ac_cv_env_/b end
14199      t clear
14200      :clear
14201      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14202      t end
14203      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14204      :end' >>confcache
14205 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14206   if test -w "$cache_file"; then
14207     test "x$cache_file" != "x/dev/null" &&
14208       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14209 $as_echo "$as_me: updating cache $cache_file" >&6;}
14210     cat confcache >$cache_file
14211   else
14212     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14213 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14214   fi
14215 fi
14216 rm -f confcache
14217
14218 if test ${multilib} = yes; then
14219   multilib_arg="--enable-multilib"
14220 else
14221   multilib_arg=
14222 fi
14223
14224 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14225
14226
14227 ac_config_commands="$ac_config_commands default"
14228
14229
14230 cat >confcache <<\_ACEOF
14231 # This file is a shell script that caches the results of configure
14232 # tests run on this system so they can be shared between configure
14233 # scripts and configure runs, see configure's option --config-cache.
14234 # It is not useful on other systems.  If it contains results you don't
14235 # want to keep, you may remove or edit it.
14236 #
14237 # config.status only pays attention to the cache file if you give it
14238 # the --recheck option to rerun configure.
14239 #
14240 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14241 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14242 # following values.
14243
14244 _ACEOF
14245
14246 # The following way of writing the cache mishandles newlines in values,
14247 # but we know of no workaround that is simple, portable, and efficient.
14248 # So, we kill variables containing newlines.
14249 # Ultrix sh set writes to stderr and can't be redirected directly,
14250 # and sets the high bit in the cache file unless we assign to the vars.
14251 (
14252   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14253     eval ac_val=\$$ac_var
14254     case $ac_val in #(
14255     *${as_nl}*)
14256       case $ac_var in #(
14257       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14258 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14259       esac
14260       case $ac_var in #(
14261       _ | IFS | as_nl) ;; #(
14262       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14263       *) { eval $ac_var=; unset $ac_var;} ;;
14264       esac ;;
14265     esac
14266   done
14267
14268   (set) 2>&1 |
14269     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14270     *${as_nl}ac_space=\ *)
14271       # `set' does not quote correctly, so add quotes: double-quote
14272       # substitution turns \\\\ into \\, and sed turns \\ into \.
14273       sed -n \
14274         "s/'/'\\\\''/g;
14275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14276       ;; #(
14277     *)
14278       # `set' quotes correctly as required by POSIX, so do not add quotes.
14279       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14280       ;;
14281     esac |
14282     sort
14283 ) |
14284   sed '
14285      /^ac_cv_env_/b end
14286      t clear
14287      :clear
14288      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14289      t end
14290      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14291      :end' >>confcache
14292 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14293   if test -w "$cache_file"; then
14294     test "x$cache_file" != "x/dev/null" &&
14295       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14296 $as_echo "$as_me: updating cache $cache_file" >&6;}
14297     cat confcache >$cache_file
14298   else
14299     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14300 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14301   fi
14302 fi
14303 rm -f confcache
14304
14305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14306 # Let make expand exec_prefix.
14307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14308
14309 DEFS=-DHAVE_CONFIG_H
14310
14311 ac_libobjs=
14312 ac_ltlibobjs=
14313 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14314   # 1. Remove the extension, and $U if already installed.
14315   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14316   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14317   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14318   #    will be set to the directory where LIBOBJS objects are built.
14319   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14320   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14321 done
14322 LIBOBJS=$ac_libobjs
14323
14324 LTLIBOBJS=$ac_ltlibobjs
14325
14326
14327  if test -n "$EXEEXT"; then
14328   am__EXEEXT_TRUE=
14329   am__EXEEXT_FALSE='#'
14330 else
14331   am__EXEEXT_TRUE='#'
14332   am__EXEEXT_FALSE=
14333 fi
14334
14335 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14336   as_fn_error "conditional \"AMDEP\" was never defined.
14337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14338 fi
14339 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14340   as_fn_error "conditional \"am__fastdepCC\" was never defined.
14341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14342 fi
14343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14344   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14346 fi
14347 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
14348   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
14349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14350 fi
14351 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
14352   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
14353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14354 fi
14355 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
14356   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
14357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14358 fi
14359 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
14360   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
14361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14362 fi
14363 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
14364   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
14365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14366 fi
14367 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
14368   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
14369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14370 fi
14371 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
14372   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
14373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14374 fi
14375 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
14376   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
14377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14378 fi
14379 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
14380   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
14381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14382 fi
14383 if test -z "${LIBGO_IS_MIPS64_TRUE}" && test -z "${LIBGO_IS_MIPS64_FALSE}"; then
14384   as_fn_error "conditional \"LIBGO_IS_MIPS64\" was never defined.
14385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14386 fi
14387 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
14388   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
14389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14390 fi
14391 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
14392   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
14393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14394 fi
14395 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
14396   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
14397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14398 fi
14399 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
14400   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
14401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14402 fi
14403 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
14404   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
14405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14406 fi
14407 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
14408   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
14409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14410 fi
14411
14412 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
14413   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
14414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14415 fi
14416
14417 : ${CONFIG_STATUS=./config.status}
14418 ac_write_fail=0
14419 ac_clean_files_save=$ac_clean_files
14420 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14422 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14423 as_write_fail=0
14424 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14425 #! $SHELL
14426 # Generated by $as_me.
14427 # Run this file to recreate the current configuration.
14428 # Compiler output produced by configure, useful for debugging
14429 # configure, is in config.log if it exists.
14430
14431 debug=false
14432 ac_cs_recheck=false
14433 ac_cs_silent=false
14434
14435 SHELL=\${CONFIG_SHELL-$SHELL}
14436 export SHELL
14437 _ASEOF
14438 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14439 ## -------------------- ##
14440 ## M4sh Initialization. ##
14441 ## -------------------- ##
14442
14443 # Be more Bourne compatible
14444 DUALCASE=1; export DUALCASE # for MKS sh
14445 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14446   emulate sh
14447   NULLCMD=:
14448   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14449   # is contrary to our usage.  Disable this feature.
14450   alias -g '${1+"$@"}'='"$@"'
14451   setopt NO_GLOB_SUBST
14452 else
14453   case `(set -o) 2>/dev/null` in #(
14454   *posix*) :
14455     set -o posix ;; #(
14456   *) :
14457      ;;
14458 esac
14459 fi
14460
14461
14462 as_nl='
14463 '
14464 export as_nl
14465 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14466 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14467 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14469 # Prefer a ksh shell builtin over an external printf program on Solaris,
14470 # but without wasting forks for bash or zsh.
14471 if test -z "$BASH_VERSION$ZSH_VERSION" \
14472     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14473   as_echo='print -r --'
14474   as_echo_n='print -rn --'
14475 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14476   as_echo='printf %s\n'
14477   as_echo_n='printf %s'
14478 else
14479   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14480     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14481     as_echo_n='/usr/ucb/echo -n'
14482   else
14483     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14484     as_echo_n_body='eval
14485       arg=$1;
14486       case $arg in #(
14487       *"$as_nl"*)
14488         expr "X$arg" : "X\\(.*\\)$as_nl";
14489         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14490       esac;
14491       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14492     '
14493     export as_echo_n_body
14494     as_echo_n='sh -c $as_echo_n_body as_echo'
14495   fi
14496   export as_echo_body
14497   as_echo='sh -c $as_echo_body as_echo'
14498 fi
14499
14500 # The user is always right.
14501 if test "${PATH_SEPARATOR+set}" != set; then
14502   PATH_SEPARATOR=:
14503   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14504     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14505       PATH_SEPARATOR=';'
14506   }
14507 fi
14508
14509
14510 # IFS
14511 # We need space, tab and new line, in precisely that order.  Quoting is
14512 # there to prevent editors from complaining about space-tab.
14513 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14514 # splitting by setting IFS to empty value.)
14515 IFS=" ""        $as_nl"
14516
14517 # Find who we are.  Look in the path if we contain no directory separator.
14518 case $0 in #((
14519   *[\\/]* ) as_myself=$0 ;;
14520   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14521 for as_dir in $PATH
14522 do
14523   IFS=$as_save_IFS
14524   test -z "$as_dir" && as_dir=.
14525     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14526   done
14527 IFS=$as_save_IFS
14528
14529      ;;
14530 esac
14531 # We did not find ourselves, most probably we were run as `sh COMMAND'
14532 # in which case we are not to be found in the path.
14533 if test "x$as_myself" = x; then
14534   as_myself=$0
14535 fi
14536 if test ! -f "$as_myself"; then
14537   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14538   exit 1
14539 fi
14540
14541 # Unset variables that we do not need and which cause bugs (e.g. in
14542 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14543 # suppresses any "Segmentation fault" message there.  '((' could
14544 # trigger a bug in pdksh 5.2.14.
14545 for as_var in BASH_ENV ENV MAIL MAILPATH
14546 do eval test x\${$as_var+set} = xset \
14547   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14548 done
14549 PS1='$ '
14550 PS2='> '
14551 PS4='+ '
14552
14553 # NLS nuisances.
14554 LC_ALL=C
14555 export LC_ALL
14556 LANGUAGE=C
14557 export LANGUAGE
14558
14559 # CDPATH.
14560 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14561
14562
14563 # as_fn_error ERROR [LINENO LOG_FD]
14564 # ---------------------------------
14565 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14566 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14567 # script with status $?, using 1 if that was 0.
14568 as_fn_error ()
14569 {
14570   as_status=$?; test $as_status -eq 0 && as_status=1
14571   if test "$3"; then
14572     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14573     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14574   fi
14575   $as_echo "$as_me: error: $1" >&2
14576   as_fn_exit $as_status
14577 } # as_fn_error
14578
14579
14580 # as_fn_set_status STATUS
14581 # -----------------------
14582 # Set $? to STATUS, without forking.
14583 as_fn_set_status ()
14584 {
14585   return $1
14586 } # as_fn_set_status
14587
14588 # as_fn_exit STATUS
14589 # -----------------
14590 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14591 as_fn_exit ()
14592 {
14593   set +e
14594   as_fn_set_status $1
14595   exit $1
14596 } # as_fn_exit
14597
14598 # as_fn_unset VAR
14599 # ---------------
14600 # Portably unset VAR.
14601 as_fn_unset ()
14602 {
14603   { eval $1=; unset $1;}
14604 }
14605 as_unset=as_fn_unset
14606 # as_fn_append VAR VALUE
14607 # ----------------------
14608 # Append the text in VALUE to the end of the definition contained in VAR. Take
14609 # advantage of any shell optimizations that allow amortized linear growth over
14610 # repeated appends, instead of the typical quadratic growth present in naive
14611 # implementations.
14612 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14613   eval 'as_fn_append ()
14614   {
14615     eval $1+=\$2
14616   }'
14617 else
14618   as_fn_append ()
14619   {
14620     eval $1=\$$1\$2
14621   }
14622 fi # as_fn_append
14623
14624 # as_fn_arith ARG...
14625 # ------------------
14626 # Perform arithmetic evaluation on the ARGs, and store the result in the
14627 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14628 # must be portable across $(()) and expr.
14629 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14630   eval 'as_fn_arith ()
14631   {
14632     as_val=$(( $* ))
14633   }'
14634 else
14635   as_fn_arith ()
14636   {
14637     as_val=`expr "$@" || test $? -eq 1`
14638   }
14639 fi # as_fn_arith
14640
14641
14642 if expr a : '\(a\)' >/dev/null 2>&1 &&
14643    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14644   as_expr=expr
14645 else
14646   as_expr=false
14647 fi
14648
14649 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14650   as_basename=basename
14651 else
14652   as_basename=false
14653 fi
14654
14655 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14656   as_dirname=dirname
14657 else
14658   as_dirname=false
14659 fi
14660
14661 as_me=`$as_basename -- "$0" ||
14662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14663          X"$0" : 'X\(//\)$' \| \
14664          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14665 $as_echo X/"$0" |
14666     sed '/^.*\/\([^/][^/]*\)\/*$/{
14667             s//\1/
14668             q
14669           }
14670           /^X\/\(\/\/\)$/{
14671             s//\1/
14672             q
14673           }
14674           /^X\/\(\/\).*/{
14675             s//\1/
14676             q
14677           }
14678           s/.*/./; q'`
14679
14680 # Avoid depending upon Character Ranges.
14681 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14682 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14683 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14684 as_cr_digits='0123456789'
14685 as_cr_alnum=$as_cr_Letters$as_cr_digits
14686
14687 ECHO_C= ECHO_N= ECHO_T=
14688 case `echo -n x` in #(((((
14689 -n*)
14690   case `echo 'xy\c'` in
14691   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14692   xy)  ECHO_C='\c';;
14693   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14694        ECHO_T=' ';;
14695   esac;;
14696 *)
14697   ECHO_N='-n';;
14698 esac
14699
14700 rm -f conf$$ conf$$.exe conf$$.file
14701 if test -d conf$$.dir; then
14702   rm -f conf$$.dir/conf$$.file
14703 else
14704   rm -f conf$$.dir
14705   mkdir conf$$.dir 2>/dev/null
14706 fi
14707 if (echo >conf$$.file) 2>/dev/null; then
14708   if ln -s conf$$.file conf$$ 2>/dev/null; then
14709     as_ln_s='ln -s'
14710     # ... but there are two gotchas:
14711     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14712     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14713     # In both cases, we have to default to `cp -p'.
14714     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14715       as_ln_s='cp -p'
14716   elif ln conf$$.file conf$$ 2>/dev/null; then
14717     as_ln_s=ln
14718   else
14719     as_ln_s='cp -p'
14720   fi
14721 else
14722   as_ln_s='cp -p'
14723 fi
14724 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14725 rmdir conf$$.dir 2>/dev/null
14726
14727
14728 # as_fn_mkdir_p
14729 # -------------
14730 # Create "$as_dir" as a directory, including parents if necessary.
14731 as_fn_mkdir_p ()
14732 {
14733
14734   case $as_dir in #(
14735   -*) as_dir=./$as_dir;;
14736   esac
14737   test -d "$as_dir" || eval $as_mkdir_p || {
14738     as_dirs=
14739     while :; do
14740       case $as_dir in #(
14741       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14742       *) as_qdir=$as_dir;;
14743       esac
14744       as_dirs="'$as_qdir' $as_dirs"
14745       as_dir=`$as_dirname -- "$as_dir" ||
14746 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14747          X"$as_dir" : 'X\(//\)[^/]' \| \
14748          X"$as_dir" : 'X\(//\)$' \| \
14749          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14750 $as_echo X"$as_dir" |
14751     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14752             s//\1/
14753             q
14754           }
14755           /^X\(\/\/\)[^/].*/{
14756             s//\1/
14757             q
14758           }
14759           /^X\(\/\/\)$/{
14760             s//\1/
14761             q
14762           }
14763           /^X\(\/\).*/{
14764             s//\1/
14765             q
14766           }
14767           s/.*/./; q'`
14768       test -d "$as_dir" && break
14769     done
14770     test -z "$as_dirs" || eval "mkdir $as_dirs"
14771   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14772
14773
14774 } # as_fn_mkdir_p
14775 if mkdir -p . 2>/dev/null; then
14776   as_mkdir_p='mkdir -p "$as_dir"'
14777 else
14778   test -d ./-p && rmdir ./-p
14779   as_mkdir_p=false
14780 fi
14781
14782 if test -x / >/dev/null 2>&1; then
14783   as_test_x='test -x'
14784 else
14785   if ls -dL / >/dev/null 2>&1; then
14786     as_ls_L_option=L
14787   else
14788     as_ls_L_option=
14789   fi
14790   as_test_x='
14791     eval sh -c '\''
14792       if test -d "$1"; then
14793         test -d "$1/.";
14794       else
14795         case $1 in #(
14796         -*)set "./$1";;
14797         esac;
14798         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14799         ???[sx]*):;;*)false;;esac;fi
14800     '\'' sh
14801   '
14802 fi
14803 as_executable_p=$as_test_x
14804
14805 # Sed expression to map a string onto a valid CPP name.
14806 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14807
14808 # Sed expression to map a string onto a valid variable name.
14809 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14810
14811
14812 exec 6>&1
14813 ## ----------------------------------- ##
14814 ## Main body of $CONFIG_STATUS script. ##
14815 ## ----------------------------------- ##
14816 _ASEOF
14817 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14818
14819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14820 # Save the log message, to keep $0 and so on meaningful, and to
14821 # report actual input values of CONFIG_FILES etc. instead of their
14822 # values after options handling.
14823 ac_log="
14824 This file was extended by package-unused $as_me version-unused, which was
14825 generated by GNU Autoconf 2.64.  Invocation command line was
14826
14827   CONFIG_FILES    = $CONFIG_FILES
14828   CONFIG_HEADERS  = $CONFIG_HEADERS
14829   CONFIG_LINKS    = $CONFIG_LINKS
14830   CONFIG_COMMANDS = $CONFIG_COMMANDS
14831   $ $0 $@
14832
14833 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14834 "
14835
14836 _ACEOF
14837
14838 case $ac_config_files in *"
14839 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14840 esac
14841
14842 case $ac_config_headers in *"
14843 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14844 esac
14845
14846
14847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848 # Files that config.status was made for.
14849 config_files="$ac_config_files"
14850 config_headers="$ac_config_headers"
14851 config_commands="$ac_config_commands"
14852
14853 _ACEOF
14854
14855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14856 ac_cs_usage="\
14857 \`$as_me' instantiates files and other configuration actions
14858 from templates according to the current configuration.  Unless the files
14859 and actions are specified as TAGs, all are instantiated by default.
14860
14861 Usage: $0 [OPTION]... [TAG]...
14862
14863   -h, --help       print this help, then exit
14864   -V, --version    print version number and configuration settings, then exit
14865   -q, --quiet, --silent
14866                    do not print progress messages
14867   -d, --debug      don't remove temporary files
14868       --recheck    update $as_me by reconfiguring in the same conditions
14869       --file=FILE[:TEMPLATE]
14870                    instantiate the configuration file FILE
14871       --header=FILE[:TEMPLATE]
14872                    instantiate the configuration header FILE
14873
14874 Configuration files:
14875 $config_files
14876
14877 Configuration headers:
14878 $config_headers
14879
14880 Configuration commands:
14881 $config_commands
14882
14883 Report bugs to the package provider."
14884
14885 _ACEOF
14886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14887 ac_cs_version="\\
14888 package-unused config.status version-unused
14889 configured by $0, generated by GNU Autoconf 2.64,
14890   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14891
14892 Copyright (C) 2009 Free Software Foundation, Inc.
14893 This config.status script is free software; the Free Software Foundation
14894 gives unlimited permission to copy, distribute and modify it."
14895
14896 ac_pwd='$ac_pwd'
14897 srcdir='$srcdir'
14898 INSTALL='$INSTALL'
14899 MKDIR_P='$MKDIR_P'
14900 AWK='$AWK'
14901 test -n "\$AWK" || AWK=awk
14902 _ACEOF
14903
14904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14905 # The default lists apply if the user does not specify any file.
14906 ac_need_defaults=:
14907 while test $# != 0
14908 do
14909   case $1 in
14910   --*=*)
14911     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14912     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14913     ac_shift=:
14914     ;;
14915   *)
14916     ac_option=$1
14917     ac_optarg=$2
14918     ac_shift=shift
14919     ;;
14920   esac
14921
14922   case $ac_option in
14923   # Handling of the options.
14924   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14925     ac_cs_recheck=: ;;
14926   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14927     $as_echo "$ac_cs_version"; exit ;;
14928   --debug | --debu | --deb | --de | --d | -d )
14929     debug=: ;;
14930   --file | --fil | --fi | --f )
14931     $ac_shift
14932     case $ac_optarg in
14933     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14934     esac
14935     as_fn_append CONFIG_FILES " '$ac_optarg'"
14936     ac_need_defaults=false;;
14937   --header | --heade | --head | --hea )
14938     $ac_shift
14939     case $ac_optarg in
14940     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14941     esac
14942     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14943     ac_need_defaults=false;;
14944   --he | --h)
14945     # Conflict between --help and --header
14946     as_fn_error "ambiguous option: \`$1'
14947 Try \`$0 --help' for more information.";;
14948   --help | --hel | -h )
14949     $as_echo "$ac_cs_usage"; exit ;;
14950   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14951   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14952     ac_cs_silent=: ;;
14953
14954   # This is an error.
14955   -*) as_fn_error "unrecognized option: \`$1'
14956 Try \`$0 --help' for more information." ;;
14957
14958   *) as_fn_append ac_config_targets " $1"
14959      ac_need_defaults=false ;;
14960
14961   esac
14962   shift
14963 done
14964
14965 ac_configure_extra_args=
14966
14967 if $ac_cs_silent; then
14968   exec 6>/dev/null
14969   ac_configure_extra_args="$ac_configure_extra_args --silent"
14970 fi
14971
14972 _ACEOF
14973 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14974 if \$ac_cs_recheck; then
14975   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14976   shift
14977   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14978   CONFIG_SHELL='$SHELL'
14979   export CONFIG_SHELL
14980   exec "\$@"
14981 fi
14982
14983 _ACEOF
14984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14985 exec 5>>config.log
14986 {
14987   echo
14988   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14989 ## Running $as_me. ##
14990 _ASBOX
14991   $as_echo "$ac_log"
14992 } >&5
14993
14994 _ACEOF
14995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14996 #
14997 # INIT-COMMANDS
14998 #
14999
15000 srcdir="$srcdir"
15001 host="$host"
15002 target="$target"
15003 with_multisubdir="$with_multisubdir"
15004 with_multisrctop="$with_multisrctop"
15005 with_target_subdir="$with_target_subdir"
15006 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15007 multi_basedir="$multi_basedir"
15008 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15009 CC="$CC"
15010 CXX="$CXX"
15011 GFORTRAN="$GFORTRAN"
15012 GCJ="$GCJ"
15013 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15014
15015
15016 # The HP-UX ksh and POSIX shell print the target directory to stdout
15017 # if CDPATH is set.
15018 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15019
15020 sed_quote_subst='$sed_quote_subst'
15021 double_quote_subst='$double_quote_subst'
15022 delay_variable_subst='$delay_variable_subst'
15023 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15024 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15025 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15026 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15027 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15028 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15029 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15030 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15031 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15032 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15033 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15034 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15035 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15036 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15037 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15038 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15039 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15040 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15041 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15042 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15043 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15044 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15045 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15046 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15047 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15048 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15049 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15050 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15051 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15052 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15053 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15054 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15055 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15056 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15057 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15058 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15059 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15060 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15061 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15062 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15063 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15064 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15065 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15066 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15067 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15068 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15069 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15070 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15071 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"`'
15072 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15073 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15074 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15075 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15076 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15077 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15078 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15079 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15080 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15081 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15082 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15083 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15084 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15085 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15086 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15087 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15088 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15089 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15090 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15091 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15092 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15093 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15094 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15095 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15096 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15097 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15098 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15099 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15100 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15101 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15102 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15103 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15104 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15105 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15106 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15107 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15108 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15109 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15110 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15111 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15112 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15113 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15114 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15115 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15116 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15117 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15118 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15119 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15120 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15121 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15122 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15123 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15124 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15125 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15126 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15127 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15128 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15129 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15130 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15131 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15132 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15133 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15134 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15135 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15136 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15137 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15138 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15139 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15140 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15141 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15142 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15143 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15144 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15145 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15146 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15147 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15148 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15149 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15150 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15151 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15152 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15153 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15154 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15155 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15156 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15157 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15158 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15159 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15160 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15161 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15162 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15163 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15164 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15165 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15166 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15167 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15168 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15169 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15170 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15171 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15172 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15173 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15174 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15175 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15176 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15177 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15178 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15179 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15180 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15181 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15182 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15183 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15184 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15185 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15186
15187 LTCC='$LTCC'
15188 LTCFLAGS='$LTCFLAGS'
15189 compiler='$compiler_DEFAULT'
15190
15191 # A function that is used when there is no print builtin or printf.
15192 func_fallback_echo ()
15193 {
15194   eval 'cat <<_LTECHO_EOF
15195 \$1
15196 _LTECHO_EOF'
15197 }
15198
15199 # Quote evaled strings.
15200 for var in SED \
15201 GREP \
15202 EGREP \
15203 FGREP \
15204 SHELL \
15205 ECHO \
15206 LD \
15207 NM \
15208 LN_S \
15209 lt_SP2NL \
15210 lt_NL2SP \
15211 reload_flag \
15212 OBJDUMP \
15213 deplibs_check_method \
15214 file_magic_cmd \
15215 AR \
15216 AR_FLAGS \
15217 STRIP \
15218 RANLIB \
15219 CC \
15220 CFLAGS \
15221 compiler \
15222 lt_cv_sys_global_symbol_pipe \
15223 lt_cv_sys_global_symbol_to_cdecl \
15224 lt_cv_sys_global_symbol_to_c_name_address \
15225 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15226 lt_prog_compiler_no_builtin_flag \
15227 lt_prog_compiler_wl \
15228 lt_prog_compiler_pic \
15229 lt_prog_compiler_static \
15230 lt_cv_prog_compiler_c_o \
15231 need_locks \
15232 DSYMUTIL \
15233 NMEDIT \
15234 LIPO \
15235 OTOOL \
15236 OTOOL64 \
15237 shrext_cmds \
15238 export_dynamic_flag_spec \
15239 whole_archive_flag_spec \
15240 compiler_needs_object \
15241 with_gnu_ld \
15242 allow_undefined_flag \
15243 no_undefined_flag \
15244 hardcode_libdir_flag_spec \
15245 hardcode_libdir_flag_spec_ld \
15246 hardcode_libdir_separator \
15247 fix_srcfile_path \
15248 exclude_expsyms \
15249 include_expsyms \
15250 file_list_spec \
15251 variables_saved_for_relink \
15252 libname_spec \
15253 library_names_spec \
15254 soname_spec \
15255 install_override_mode \
15256 finish_eval \
15257 old_striplib \
15258 striplib \
15259 LD_GO \
15260 reload_flag_GO \
15261 compiler_GO \
15262 lt_prog_compiler_no_builtin_flag_GO \
15263 lt_prog_compiler_wl_GO \
15264 lt_prog_compiler_pic_GO \
15265 lt_prog_compiler_static_GO \
15266 lt_cv_prog_compiler_c_o_GO \
15267 export_dynamic_flag_spec_GO \
15268 whole_archive_flag_spec_GO \
15269 compiler_needs_object_GO \
15270 with_gnu_ld_GO \
15271 allow_undefined_flag_GO \
15272 no_undefined_flag_GO \
15273 hardcode_libdir_flag_spec_GO \
15274 hardcode_libdir_flag_spec_ld_GO \
15275 hardcode_libdir_separator_GO \
15276 fix_srcfile_path_GO \
15277 exclude_expsyms_GO \
15278 include_expsyms_GO \
15279 file_list_spec_GO; do
15280     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15281     *[\\\\\\\`\\"\\\$]*)
15282       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15283       ;;
15284     *)
15285       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15286       ;;
15287     esac
15288 done
15289
15290 # Double-quote double-evaled strings.
15291 for var in reload_cmds \
15292 old_postinstall_cmds \
15293 old_postuninstall_cmds \
15294 old_archive_cmds \
15295 extract_expsyms_cmds \
15296 old_archive_from_new_cmds \
15297 old_archive_from_expsyms_cmds \
15298 archive_cmds \
15299 archive_expsym_cmds \
15300 module_cmds \
15301 module_expsym_cmds \
15302 export_symbols_cmds \
15303 prelink_cmds \
15304 postinstall_cmds \
15305 postuninstall_cmds \
15306 finish_cmds \
15307 sys_lib_search_path_spec \
15308 sys_lib_dlsearch_path_spec \
15309 reload_cmds_GO \
15310 old_archive_cmds_GO \
15311 old_archive_from_new_cmds_GO \
15312 old_archive_from_expsyms_cmds_GO \
15313 archive_cmds_GO \
15314 archive_expsym_cmds_GO \
15315 module_cmds_GO \
15316 module_expsym_cmds_GO \
15317 export_symbols_cmds_GO \
15318 prelink_cmds_GO; do
15319     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15320     *[\\\\\\\`\\"\\\$]*)
15321       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15322       ;;
15323     *)
15324       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15325       ;;
15326     esac
15327 done
15328
15329 ac_aux_dir='$ac_aux_dir'
15330 xsi_shell='$xsi_shell'
15331 lt_shell_append='$lt_shell_append'
15332
15333 # See if we are running on zsh, and set the options which allow our
15334 # commands through without removal of \ escapes INIT.
15335 if test -n "\${ZSH_VERSION+set}" ; then
15336    setopt NO_GLOB_SUBST
15337 fi
15338
15339
15340     PACKAGE='$PACKAGE'
15341     VERSION='$VERSION'
15342     TIMESTAMP='$TIMESTAMP'
15343     RM='$RM'
15344     ofile='$ofile'
15345
15346
15347
15348
15349
15350
15351 # Variables needed in config.status (file generation) which aren't already
15352 # passed by autoconf.
15353 SUBDIRS="$SUBDIRS"
15354
15355
15356 _ACEOF
15357
15358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15359
15360 # Handling of arguments.
15361 for ac_config_target in $ac_config_targets
15362 do
15363   case $ac_config_target in
15364     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15365     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15366     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15367     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15368     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15369     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15370     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15371
15372   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15373   esac
15374 done
15375
15376
15377 # If the user did not use the arguments to specify the items to instantiate,
15378 # then the envvar interface is used.  Set only those that are not.
15379 # We use the long form for the default assignment because of an extremely
15380 # bizarre bug on SunOS 4.1.3.
15381 if $ac_need_defaults; then
15382   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15383   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15384   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15385 fi
15386
15387 # Have a temporary directory for convenience.  Make it in the build tree
15388 # simply because there is no reason against having it here, and in addition,
15389 # creating and moving files from /tmp can sometimes cause problems.
15390 # Hook for its removal unless debugging.
15391 # Note that there is a small window in which the directory will not be cleaned:
15392 # after its creation but before its name has been assigned to `$tmp'.
15393 $debug ||
15394 {
15395   tmp=
15396   trap 'exit_status=$?
15397   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15398 ' 0
15399   trap 'as_fn_exit 1' 1 2 13 15
15400 }
15401 # Create a (secure) tmp directory for tmp files.
15402
15403 {
15404   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15405   test -n "$tmp" && test -d "$tmp"
15406 }  ||
15407 {
15408   tmp=./conf$$-$RANDOM
15409   (umask 077 && mkdir "$tmp")
15410 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15411
15412 # Set up the scripts for CONFIG_FILES section.
15413 # No need to generate them if there are no CONFIG_FILES.
15414 # This happens for instance with `./config.status config.h'.
15415 if test -n "$CONFIG_FILES"; then
15416
15417
15418 ac_cr=`echo X | tr X '\015'`
15419 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15420 # But we know of no other shell where ac_cr would be empty at this
15421 # point, so we can use a bashism as a fallback.
15422 if test "x$ac_cr" = x; then
15423   eval ac_cr=\$\'\\r\'
15424 fi
15425 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15426 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15427   ac_cs_awk_cr='\r'
15428 else
15429   ac_cs_awk_cr=$ac_cr
15430 fi
15431
15432 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15433 _ACEOF
15434
15435
15436 {
15437   echo "cat >conf$$subs.awk <<_ACEOF" &&
15438   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15439   echo "_ACEOF"
15440 } >conf$$subs.sh ||
15441   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15443 ac_delim='%!_!# '
15444 for ac_last_try in false false false false false :; do
15445   . ./conf$$subs.sh ||
15446     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15447
15448   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15449   if test $ac_delim_n = $ac_delim_num; then
15450     break
15451   elif $ac_last_try; then
15452     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15453   else
15454     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15455   fi
15456 done
15457 rm -f conf$$subs.sh
15458
15459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15460 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15461 _ACEOF
15462 sed -n '
15463 h
15464 s/^/S["/; s/!.*/"]=/
15465 p
15466 g
15467 s/^[^!]*!//
15468 :repl
15469 t repl
15470 s/'"$ac_delim"'$//
15471 t delim
15472 :nl
15473 h
15474 s/\(.\{148\}\).*/\1/
15475 t more1
15476 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15477 p
15478 n
15479 b repl
15480 :more1
15481 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15482 p
15483 g
15484 s/.\{148\}//
15485 t nl
15486 :delim
15487 h
15488 s/\(.\{148\}\).*/\1/
15489 t more2
15490 s/["\\]/\\&/g; s/^/"/; s/$/"/
15491 p
15492 b
15493 :more2
15494 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15495 p
15496 g
15497 s/.\{148\}//
15498 t delim
15499 ' <conf$$subs.awk | sed '
15500 /^[^""]/{
15501   N
15502   s/\n//
15503 }
15504 ' >>$CONFIG_STATUS || ac_write_fail=1
15505 rm -f conf$$subs.awk
15506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15507 _ACAWK
15508 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15509   for (key in S) S_is_set[key] = 1
15510   FS = "\a"
15511
15512 }
15513 {
15514   line = $ 0
15515   nfields = split(line, field, "@")
15516   substed = 0
15517   len = length(field[1])
15518   for (i = 2; i < nfields; i++) {
15519     key = field[i]
15520     keylen = length(key)
15521     if (S_is_set[key]) {
15522       value = S[key]
15523       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15524       len += length(value) + length(field[++i])
15525       substed = 1
15526     } else
15527       len += 1 + keylen
15528   }
15529
15530   print line
15531 }
15532
15533 _ACAWK
15534 _ACEOF
15535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15537   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15538 else
15539   cat
15540 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15541   || as_fn_error "could not setup config files machinery" "$LINENO" 5
15542 _ACEOF
15543
15544 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15545 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15546 # trailing colons and then remove the whole line if VPATH becomes empty
15547 # (actually we leave an empty line to preserve line numbers).
15548 if test "x$srcdir" = x.; then
15549   ac_vpsub='/^[  ]*VPATH[        ]*=/{
15550 s/:*\$(srcdir):*/:/
15551 s/:*\${srcdir}:*/:/
15552 s/:*@srcdir@:*/:/
15553 s/^\([^=]*=[     ]*\):*/\1/
15554 s/:*$//
15555 s/^[^=]*=[       ]*$//
15556 }'
15557 fi
15558
15559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15560 fi # test -n "$CONFIG_FILES"
15561
15562 # Set up the scripts for CONFIG_HEADERS section.
15563 # No need to generate them if there are no CONFIG_HEADERS.
15564 # This happens for instance with `./config.status Makefile'.
15565 if test -n "$CONFIG_HEADERS"; then
15566 cat >"$tmp/defines.awk" <<\_ACAWK ||
15567 BEGIN {
15568 _ACEOF
15569
15570 # Transform confdefs.h into an awk script `defines.awk', embedded as
15571 # here-document in config.status, that substitutes the proper values into
15572 # config.h.in to produce config.h.
15573
15574 # Create a delimiter string that does not exist in confdefs.h, to ease
15575 # handling of long lines.
15576 ac_delim='%!_!# '
15577 for ac_last_try in false false :; do
15578   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15579   if test -z "$ac_t"; then
15580     break
15581   elif $ac_last_try; then
15582     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15583   else
15584     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15585   fi
15586 done
15587
15588 # For the awk script, D is an array of macro values keyed by name,
15589 # likewise P contains macro parameters if any.  Preserve backslash
15590 # newline sequences.
15591
15592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15593 sed -n '
15594 s/.\{148\}/&'"$ac_delim"'/g
15595 t rset
15596 :rset
15597 s/^[     ]*#[    ]*define[       ][      ]*/ /
15598 t def
15599 d
15600 :def
15601 s/\\$//
15602 t bsnl
15603 s/["\\]/\\&/g
15604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15605 D["\1"]=" \3"/p
15606 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15607 d
15608 :bsnl
15609 s/["\\]/\\&/g
15610 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15611 D["\1"]=" \3\\\\\\n"\\/p
15612 t cont
15613 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15614 t cont
15615 d
15616 :cont
15617 n
15618 s/.\{148\}/&'"$ac_delim"'/g
15619 t clear
15620 :clear
15621 s/\\$//
15622 t bsnlc
15623 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15624 d
15625 :bsnlc
15626 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15627 b cont
15628 ' <confdefs.h | sed '
15629 s/'"$ac_delim"'/"\\\
15630 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15631
15632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633   for (key in D) D_is_set[key] = 1
15634   FS = "\a"
15635 }
15636 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15637   line = \$ 0
15638   split(line, arg, " ")
15639   if (arg[1] == "#") {
15640     defundef = arg[2]
15641     mac1 = arg[3]
15642   } else {
15643     defundef = substr(arg[1], 2)
15644     mac1 = arg[2]
15645   }
15646   split(mac1, mac2, "(") #)
15647   macro = mac2[1]
15648   prefix = substr(line, 1, index(line, defundef) - 1)
15649   if (D_is_set[macro]) {
15650     # Preserve the white space surrounding the "#".
15651     print prefix "define", macro P[macro] D[macro]
15652     next
15653   } else {
15654     # Replace #undef with comments.  This is necessary, for example,
15655     # in the case of _POSIX_SOURCE, which is predefined and required
15656     # on some systems where configure will not decide to define it.
15657     if (defundef == "undef") {
15658       print "/*", prefix defundef, macro, "*/"
15659       next
15660     }
15661   }
15662 }
15663 { print }
15664 _ACAWK
15665 _ACEOF
15666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15667   as_fn_error "could not setup config headers machinery" "$LINENO" 5
15668 fi # test -n "$CONFIG_HEADERS"
15669
15670
15671 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15672 shift
15673 for ac_tag
15674 do
15675   case $ac_tag in
15676   :[FHLC]) ac_mode=$ac_tag; continue;;
15677   esac
15678   case $ac_mode$ac_tag in
15679   :[FHL]*:*);;
15680   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15681   :[FH]-) ac_tag=-:-;;
15682   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15683   esac
15684   ac_save_IFS=$IFS
15685   IFS=:
15686   set x $ac_tag
15687   IFS=$ac_save_IFS
15688   shift
15689   ac_file=$1
15690   shift
15691
15692   case $ac_mode in
15693   :L) ac_source=$1;;
15694   :[FH])
15695     ac_file_inputs=
15696     for ac_f
15697     do
15698       case $ac_f in
15699       -) ac_f="$tmp/stdin";;
15700       *) # Look for the file first in the build tree, then in the source tree
15701          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15702          # because $ac_f cannot contain `:'.
15703          test -f "$ac_f" ||
15704            case $ac_f in
15705            [\\/$]*) false;;
15706            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15707            esac ||
15708            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15709       esac
15710       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15711       as_fn_append ac_file_inputs " '$ac_f'"
15712     done
15713
15714     # Let's still pretend it is `configure' which instantiates (i.e., don't
15715     # use $as_me), people would be surprised to read:
15716     #    /* config.h.  Generated by config.status.  */
15717     configure_input='Generated from '`
15718           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15719         `' by configure.'
15720     if test x"$ac_file" != x-; then
15721       configure_input="$ac_file.  $configure_input"
15722       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15723 $as_echo "$as_me: creating $ac_file" >&6;}
15724     fi
15725     # Neutralize special characters interpreted by sed in replacement strings.
15726     case $configure_input in #(
15727     *\&* | *\|* | *\\* )
15728        ac_sed_conf_input=`$as_echo "$configure_input" |
15729        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15730     *) ac_sed_conf_input=$configure_input;;
15731     esac
15732
15733     case $ac_tag in
15734     *:-:* | *:-) cat >"$tmp/stdin" \
15735       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15736     esac
15737     ;;
15738   esac
15739
15740   ac_dir=`$as_dirname -- "$ac_file" ||
15741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742          X"$ac_file" : 'X\(//\)[^/]' \| \
15743          X"$ac_file" : 'X\(//\)$' \| \
15744          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15745 $as_echo X"$ac_file" |
15746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15747             s//\1/
15748             q
15749           }
15750           /^X\(\/\/\)[^/].*/{
15751             s//\1/
15752             q
15753           }
15754           /^X\(\/\/\)$/{
15755             s//\1/
15756             q
15757           }
15758           /^X\(\/\).*/{
15759             s//\1/
15760             q
15761           }
15762           s/.*/./; q'`
15763   as_dir="$ac_dir"; as_fn_mkdir_p
15764   ac_builddir=.
15765
15766 case "$ac_dir" in
15767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15768 *)
15769   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15770   # A ".." for each directory in $ac_dir_suffix.
15771   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15772   case $ac_top_builddir_sub in
15773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15775   esac ;;
15776 esac
15777 ac_abs_top_builddir=$ac_pwd
15778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15779 # for backward compatibility:
15780 ac_top_builddir=$ac_top_build_prefix
15781
15782 case $srcdir in
15783   .)  # We are building in place.
15784     ac_srcdir=.
15785     ac_top_srcdir=$ac_top_builddir_sub
15786     ac_abs_top_srcdir=$ac_pwd ;;
15787   [\\/]* | ?:[\\/]* )  # Absolute name.
15788     ac_srcdir=$srcdir$ac_dir_suffix;
15789     ac_top_srcdir=$srcdir
15790     ac_abs_top_srcdir=$srcdir ;;
15791   *) # Relative name.
15792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15793     ac_top_srcdir=$ac_top_build_prefix$srcdir
15794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15795 esac
15796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15797
15798
15799   case $ac_mode in
15800   :F)
15801   #
15802   # CONFIG_FILE
15803   #
15804
15805   case $INSTALL in
15806   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15807   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15808   esac
15809   ac_MKDIR_P=$MKDIR_P
15810   case $MKDIR_P in
15811   [\\/$]* | ?:[\\/]* ) ;;
15812   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15813   esac
15814 _ACEOF
15815
15816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15817 # If the template does not know about datarootdir, expand it.
15818 # FIXME: This hack should be removed a few years after 2.60.
15819 ac_datarootdir_hack=; ac_datarootdir_seen=
15820 ac_sed_dataroot='
15821 /datarootdir/ {
15822   p
15823   q
15824 }
15825 /@datadir@/p
15826 /@docdir@/p
15827 /@infodir@/p
15828 /@localedir@/p
15829 /@mandir@/p'
15830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15831 *datarootdir*) ac_datarootdir_seen=yes;;
15832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15833   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15835 _ACEOF
15836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15837   ac_datarootdir_hack='
15838   s&@datadir@&$datadir&g
15839   s&@docdir@&$docdir&g
15840   s&@infodir@&$infodir&g
15841   s&@localedir@&$localedir&g
15842   s&@mandir@&$mandir&g
15843   s&\\\${datarootdir}&$datarootdir&g' ;;
15844 esac
15845 _ACEOF
15846
15847 # Neutralize VPATH when `$srcdir' = `.'.
15848 # Shell code in configure.ac might set extrasub.
15849 # FIXME: do we really want to maintain this feature?
15850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15851 ac_sed_extra="$ac_vpsub
15852 $extrasub
15853 _ACEOF
15854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15855 :t
15856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15857 s|@configure_input@|$ac_sed_conf_input|;t t
15858 s&@top_builddir@&$ac_top_builddir_sub&;t t
15859 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15860 s&@srcdir@&$ac_srcdir&;t t
15861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15862 s&@top_srcdir@&$ac_top_srcdir&;t t
15863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15864 s&@builddir@&$ac_builddir&;t t
15865 s&@abs_builddir@&$ac_abs_builddir&;t t
15866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15867 s&@INSTALL@&$ac_INSTALL&;t t
15868 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15869 $ac_datarootdir_hack
15870 "
15871 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15872   || as_fn_error "could not create $ac_file" "$LINENO" 5
15873
15874 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15875   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15876   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15877   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15878 which seems to be undefined.  Please make sure it is defined." >&5
15879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15880 which seems to be undefined.  Please make sure it is defined." >&2;}
15881
15882   rm -f "$tmp/stdin"
15883   case $ac_file in
15884   -) cat "$tmp/out" && rm -f "$tmp/out";;
15885   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15886   esac \
15887   || as_fn_error "could not create $ac_file" "$LINENO" 5
15888  ;;
15889   :H)
15890   #
15891   # CONFIG_HEADER
15892   #
15893   if test x"$ac_file" != x-; then
15894     {
15895       $as_echo "/* $configure_input  */" \
15896       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15897     } >"$tmp/config.h" \
15898       || as_fn_error "could not create $ac_file" "$LINENO" 5
15899     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15900       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15901 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15902     else
15903       rm -f "$ac_file"
15904       mv "$tmp/config.h" "$ac_file" \
15905         || as_fn_error "could not create $ac_file" "$LINENO" 5
15906     fi
15907   else
15908     $as_echo "/* $configure_input  */" \
15909       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15910       || as_fn_error "could not create -" "$LINENO" 5
15911   fi
15912 # Compute "$ac_file"'s index in $config_headers.
15913 _am_arg="$ac_file"
15914 _am_stamp_count=1
15915 for _am_header in $config_headers :; do
15916   case $_am_header in
15917     $_am_arg | $_am_arg:* )
15918       break ;;
15919     * )
15920       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15921   esac
15922 done
15923 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15924 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15925          X"$_am_arg" : 'X\(//\)[^/]' \| \
15926          X"$_am_arg" : 'X\(//\)$' \| \
15927          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15928 $as_echo X"$_am_arg" |
15929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930             s//\1/
15931             q
15932           }
15933           /^X\(\/\/\)[^/].*/{
15934             s//\1/
15935             q
15936           }
15937           /^X\(\/\/\)$/{
15938             s//\1/
15939             q
15940           }
15941           /^X\(\/\).*/{
15942             s//\1/
15943             q
15944           }
15945           s/.*/./; q'`/stamp-h$_am_stamp_count
15946  ;;
15947
15948   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15949 $as_echo "$as_me: executing $ac_file commands" >&6;}
15950  ;;
15951   esac
15952
15953
15954   case $ac_file$ac_mode in
15955     "default-1":C)
15956 # Only add multilib support code if we just rebuilt the top-level
15957 # Makefile.
15958 case " $CONFIG_FILES " in
15959  *" Makefile "*)
15960    ac_file=Makefile . ${multi_basedir}/config-ml.in
15961    ;;
15962 esac ;;
15963     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15964   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15965   # are listed without --file.  Let's play safe and only enable the eval
15966   # if we detect the quoting.
15967   case $CONFIG_FILES in
15968   *\'*) eval set x "$CONFIG_FILES" ;;
15969   *)   set x $CONFIG_FILES ;;
15970   esac
15971   shift
15972   for mf
15973   do
15974     # Strip MF so we end up with the name of the file.
15975     mf=`echo "$mf" | sed -e 's/:.*$//'`
15976     # Check whether this is an Automake generated Makefile or not.
15977     # We used to match only the files named `Makefile.in', but
15978     # some people rename them; so instead we look at the file content.
15979     # Grep'ing the first line is not enough: some people post-process
15980     # each Makefile.in and add a new line on top of each file to say so.
15981     # Grep'ing the whole file is not good either: AIX grep has a line
15982     # limit of 2048, but all sed's we know have understand at least 4000.
15983     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15984       dirpart=`$as_dirname -- "$mf" ||
15985 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15986          X"$mf" : 'X\(//\)[^/]' \| \
15987          X"$mf" : 'X\(//\)$' \| \
15988          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15989 $as_echo X"$mf" |
15990     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15991             s//\1/
15992             q
15993           }
15994           /^X\(\/\/\)[^/].*/{
15995             s//\1/
15996             q
15997           }
15998           /^X\(\/\/\)$/{
15999             s//\1/
16000             q
16001           }
16002           /^X\(\/\).*/{
16003             s//\1/
16004             q
16005           }
16006           s/.*/./; q'`
16007     else
16008       continue
16009     fi
16010     # Extract the definition of DEPDIR, am__include, and am__quote
16011     # from the Makefile without running `make'.
16012     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16013     test -z "$DEPDIR" && continue
16014     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16015     test -z "am__include" && continue
16016     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16017     # When using ansi2knr, U may be empty or an underscore; expand it
16018     U=`sed -n 's/^U = //p' < "$mf"`
16019     # Find all dependency output files, they are included files with
16020     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16021     # simplest approach to changing $(DEPDIR) to its actual value in the
16022     # expansion.
16023     for file in `sed -n "
16024       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16025          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16026       # Make sure the directory exists.
16027       test -f "$dirpart/$file" && continue
16028       fdir=`$as_dirname -- "$file" ||
16029 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16030          X"$file" : 'X\(//\)[^/]' \| \
16031          X"$file" : 'X\(//\)$' \| \
16032          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16033 $as_echo X"$file" |
16034     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16035             s//\1/
16036             q
16037           }
16038           /^X\(\/\/\)[^/].*/{
16039             s//\1/
16040             q
16041           }
16042           /^X\(\/\/\)$/{
16043             s//\1/
16044             q
16045           }
16046           /^X\(\/\).*/{
16047             s//\1/
16048             q
16049           }
16050           s/.*/./; q'`
16051       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16052       # echo "creating $dirpart/$file"
16053       echo '# dummy' > "$dirpart/$file"
16054     done
16055   done
16056 }
16057  ;;
16058     "libtool":C)
16059
16060     # See if we are running on zsh, and set the options which allow our
16061     # commands through without removal of \ escapes.
16062     if test -n "${ZSH_VERSION+set}" ; then
16063       setopt NO_GLOB_SUBST
16064     fi
16065
16066     cfgfile="${ofile}T"
16067     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16068     $RM "$cfgfile"
16069
16070     cat <<_LT_EOF >> "$cfgfile"
16071 #! $SHELL
16072
16073 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16074 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16075 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16076 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16077 #
16078 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16079 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16080 #   Written by Gordon Matzigkeit, 1996
16081 #
16082 #   This file is part of GNU Libtool.
16083 #
16084 # GNU Libtool is free software; you can redistribute it and/or
16085 # modify it under the terms of the GNU General Public License as
16086 # published by the Free Software Foundation; either version 2 of
16087 # the License, or (at your option) any later version.
16088 #
16089 # As a special exception to the GNU General Public License,
16090 # if you distribute this file as part of a program or library that
16091 # is built using GNU Libtool, you may include this file under the
16092 # same distribution terms that you use for the rest of that program.
16093 #
16094 # GNU Libtool is distributed in the hope that it will be useful,
16095 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16096 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16097 # GNU General Public License for more details.
16098 #
16099 # You should have received a copy of the GNU General Public License
16100 # along with GNU Libtool; see the file COPYING.  If not, a copy
16101 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16102 # obtained by writing to the Free Software Foundation, Inc.,
16103 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16104
16105
16106 # The names of the tagged configurations supported by this script.
16107 available_tags="GO "
16108
16109 # ### BEGIN LIBTOOL CONFIG
16110
16111 # A sed program that does not truncate output.
16112 SED=$lt_SED
16113
16114 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16115 Xsed="\$SED -e 1s/^X//"
16116
16117 # A grep program that handles long lines.
16118 GREP=$lt_GREP
16119
16120 # An ERE matcher.
16121 EGREP=$lt_EGREP
16122
16123 # A literal string matcher.
16124 FGREP=$lt_FGREP
16125
16126 # Shell to use when invoking shell scripts.
16127 SHELL=$lt_SHELL
16128
16129 # An echo program that protects backslashes.
16130 ECHO=$lt_ECHO
16131
16132 # Which release of libtool.m4 was used?
16133 macro_version=$macro_version
16134 macro_revision=$macro_revision
16135
16136 # Whether or not to build shared libraries.
16137 build_libtool_libs=$enable_shared
16138
16139 # Whether or not to build static libraries.
16140 build_old_libs=$enable_static
16141
16142 # What type of objects to build.
16143 pic_mode=$pic_mode
16144
16145 # Whether or not to optimize for fast installation.
16146 fast_install=$enable_fast_install
16147
16148 # The host system.
16149 host_alias=$host_alias
16150 host=$host
16151 host_os=$host_os
16152
16153 # The build system.
16154 build_alias=$build_alias
16155 build=$build
16156 build_os=$build_os
16157
16158 # A BSD- or MS-compatible name lister.
16159 NM=$lt_NM
16160
16161 # Whether we need soft or hard links.
16162 LN_S=$lt_LN_S
16163
16164 # What is the maximum length of a command?
16165 max_cmd_len=$max_cmd_len
16166
16167 # Object file suffix (normally "o").
16168 objext=$ac_objext
16169
16170 # Executable file suffix (normally "").
16171 exeext=$exeext
16172
16173 # whether the shell understands "unset".
16174 lt_unset=$lt_unset
16175
16176 # turn spaces into newlines.
16177 SP2NL=$lt_lt_SP2NL
16178
16179 # turn newlines into spaces.
16180 NL2SP=$lt_lt_NL2SP
16181
16182 # An object symbol dumper.
16183 OBJDUMP=$lt_OBJDUMP
16184
16185 # Method to check whether dependent libraries are shared objects.
16186 deplibs_check_method=$lt_deplibs_check_method
16187
16188 # Command to use when deplibs_check_method == "file_magic".
16189 file_magic_cmd=$lt_file_magic_cmd
16190
16191 # The archiver.
16192 AR=$lt_AR
16193 AR_FLAGS=$lt_AR_FLAGS
16194
16195 # A symbol stripping program.
16196 STRIP=$lt_STRIP
16197
16198 # Commands used to install an old-style archive.
16199 RANLIB=$lt_RANLIB
16200 old_postinstall_cmds=$lt_old_postinstall_cmds
16201 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16202
16203 # Whether to use a lock for old archive extraction.
16204 lock_old_archive_extraction=$lock_old_archive_extraction
16205
16206 # A C compiler.
16207 LTCC=$lt_CC
16208
16209 # LTCC compiler flags.
16210 LTCFLAGS=$lt_CFLAGS
16211
16212 # Take the output of nm and produce a listing of raw symbols and C names.
16213 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16214
16215 # Transform the output of nm in a proper C declaration.
16216 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16217
16218 # Transform the output of nm in a C name address pair.
16219 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16220
16221 # Transform the output of nm in a C name address pair when lib prefix is needed.
16222 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16223
16224 # The name of the directory that contains temporary libtool files.
16225 objdir=$objdir
16226
16227 # Used to examine libraries when file_magic_cmd begins with "file".
16228 MAGIC_CMD=$MAGIC_CMD
16229
16230 # Must we lock files when doing compilation?
16231 need_locks=$lt_need_locks
16232
16233 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16234 DSYMUTIL=$lt_DSYMUTIL
16235
16236 # Tool to change global to local symbols on Mac OS X.
16237 NMEDIT=$lt_NMEDIT
16238
16239 # Tool to manipulate fat objects and archives on Mac OS X.
16240 LIPO=$lt_LIPO
16241
16242 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16243 OTOOL=$lt_OTOOL
16244
16245 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16246 OTOOL64=$lt_OTOOL64
16247
16248 # Old archive suffix (normally "a").
16249 libext=$libext
16250
16251 # Shared library suffix (normally ".so").
16252 shrext_cmds=$lt_shrext_cmds
16253
16254 # The commands to extract the exported symbol list from a shared archive.
16255 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16256
16257 # Variables whose values should be saved in libtool wrapper scripts and
16258 # restored at link time.
16259 variables_saved_for_relink=$lt_variables_saved_for_relink
16260
16261 # Do we need the "lib" prefix for modules?
16262 need_lib_prefix=$need_lib_prefix
16263
16264 # Do we need a version for libraries?
16265 need_version=$need_version
16266
16267 # Library versioning type.
16268 version_type=$version_type
16269
16270 # Shared library runtime path variable.
16271 runpath_var=$runpath_var
16272
16273 # Shared library path variable.
16274 shlibpath_var=$shlibpath_var
16275
16276 # Is shlibpath searched before the hard-coded library search path?
16277 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16278
16279 # Format of library name prefix.
16280 libname_spec=$lt_libname_spec
16281
16282 # List of archive names.  First name is the real one, the rest are links.
16283 # The last name is the one that the linker finds with -lNAME
16284 library_names_spec=$lt_library_names_spec
16285
16286 # The coded name of the library, if different from the real name.
16287 soname_spec=$lt_soname_spec
16288
16289 # Permission mode override for installation of shared libraries.
16290 install_override_mode=$lt_install_override_mode
16291
16292 # Command to use after installation of a shared archive.
16293 postinstall_cmds=$lt_postinstall_cmds
16294
16295 # Command to use after uninstallation of a shared archive.
16296 postuninstall_cmds=$lt_postuninstall_cmds
16297
16298 # Commands used to finish a libtool library installation in a directory.
16299 finish_cmds=$lt_finish_cmds
16300
16301 # As "finish_cmds", except a single script fragment to be evaled but
16302 # not shown.
16303 finish_eval=$lt_finish_eval
16304
16305 # Whether we should hardcode library paths into libraries.
16306 hardcode_into_libs=$hardcode_into_libs
16307
16308 # Compile-time system search path for libraries.
16309 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16310
16311 # Run-time system search path for libraries.
16312 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16313
16314 # Whether dlopen is supported.
16315 dlopen_support=$enable_dlopen
16316
16317 # Whether dlopen of programs is supported.
16318 dlopen_self=$enable_dlopen_self
16319
16320 # Whether dlopen of statically linked programs is supported.
16321 dlopen_self_static=$enable_dlopen_self_static
16322
16323 # Commands to strip libraries.
16324 old_striplib=$lt_old_striplib
16325 striplib=$lt_striplib
16326
16327
16328 # The linker used to build libraries.
16329 LD=$lt_LD
16330
16331 # How to create reloadable object files.
16332 reload_flag=$lt_reload_flag
16333 reload_cmds=$lt_reload_cmds
16334
16335 # Commands used to build an old-style archive.
16336 old_archive_cmds=$lt_old_archive_cmds
16337
16338 # A language specific compiler.
16339 CC=$lt_compiler
16340
16341 # Is the compiler the GNU compiler?
16342 with_gcc=$GCC
16343
16344 # Compiler flag to turn off builtin functions.
16345 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16346
16347 # How to pass a linker flag through the compiler.
16348 wl=$lt_lt_prog_compiler_wl
16349
16350 # Additional compiler flags for building library objects.
16351 pic_flag=$lt_lt_prog_compiler_pic
16352
16353 # Compiler flag to prevent dynamic linking.
16354 link_static_flag=$lt_lt_prog_compiler_static
16355
16356 # Does compiler simultaneously support -c and -o options?
16357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16358
16359 # Whether or not to add -lc for building shared libraries.
16360 build_libtool_need_lc=$archive_cmds_need_lc
16361
16362 # Whether or not to disallow shared libs when runtime libs are static.
16363 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16364
16365 # Compiler flag to allow reflexive dlopens.
16366 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16367
16368 # Compiler flag to generate shared objects directly from archives.
16369 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16370
16371 # Whether the compiler copes with passing no objects directly.
16372 compiler_needs_object=$lt_compiler_needs_object
16373
16374 # Create an old-style archive from a shared archive.
16375 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16376
16377 # Create a temporary old-style archive to link instead of a shared archive.
16378 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16379
16380 # Commands used to build a shared archive.
16381 archive_cmds=$lt_archive_cmds
16382 archive_expsym_cmds=$lt_archive_expsym_cmds
16383
16384 # Commands used to build a loadable module if different from building
16385 # a shared archive.
16386 module_cmds=$lt_module_cmds
16387 module_expsym_cmds=$lt_module_expsym_cmds
16388
16389 # Whether we are building with GNU ld or not.
16390 with_gnu_ld=$lt_with_gnu_ld
16391
16392 # Flag that allows shared libraries with undefined symbols to be built.
16393 allow_undefined_flag=$lt_allow_undefined_flag
16394
16395 # Flag that enforces no undefined symbols.
16396 no_undefined_flag=$lt_no_undefined_flag
16397
16398 # Flag to hardcode \$libdir into a binary during linking.
16399 # This must work even if \$libdir does not exist
16400 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16401
16402 # If ld is used when linking, flag to hardcode \$libdir into a binary
16403 # during linking.  This must work even if \$libdir does not exist.
16404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16405
16406 # Whether we need a single "-rpath" flag with a separated argument.
16407 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16408
16409 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16410 # DIR into the resulting binary.
16411 hardcode_direct=$hardcode_direct
16412
16413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16414 # DIR into the resulting binary and the resulting library dependency is
16415 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16416 # library is relocated.
16417 hardcode_direct_absolute=$hardcode_direct_absolute
16418
16419 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16420 # into the resulting binary.
16421 hardcode_minus_L=$hardcode_minus_L
16422
16423 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16424 # into the resulting binary.
16425 hardcode_shlibpath_var=$hardcode_shlibpath_var
16426
16427 # Set to "yes" if building a shared library automatically hardcodes DIR
16428 # into the library and all subsequent libraries and executables linked
16429 # against it.
16430 hardcode_automatic=$hardcode_automatic
16431
16432 # Set to yes if linker adds runtime paths of dependent libraries
16433 # to runtime path list.
16434 inherit_rpath=$inherit_rpath
16435
16436 # Whether libtool must link a program against all its dependency libraries.
16437 link_all_deplibs=$link_all_deplibs
16438
16439 # Fix the shell variable \$srcfile for the compiler.
16440 fix_srcfile_path=$lt_fix_srcfile_path
16441
16442 # Set to "yes" if exported symbols are required.
16443 always_export_symbols=$always_export_symbols
16444
16445 # The commands to list exported symbols.
16446 export_symbols_cmds=$lt_export_symbols_cmds
16447
16448 # Symbols that should not be listed in the preloaded symbols.
16449 exclude_expsyms=$lt_exclude_expsyms
16450
16451 # Symbols that must always be exported.
16452 include_expsyms=$lt_include_expsyms
16453
16454 # Commands necessary for linking programs (against libraries) with templates.
16455 prelink_cmds=$lt_prelink_cmds
16456
16457 # Specify filename containing input files.
16458 file_list_spec=$lt_file_list_spec
16459
16460 # How to hardcode a shared library path into an executable.
16461 hardcode_action=$hardcode_action
16462
16463 # ### END LIBTOOL CONFIG
16464
16465 _LT_EOF
16466
16467   case $host_os in
16468   aix3*)
16469     cat <<\_LT_EOF >> "$cfgfile"
16470 # AIX sometimes has problems with the GCC collect2 program.  For some
16471 # reason, if we set the COLLECT_NAMES environment variable, the problems
16472 # vanish in a puff of smoke.
16473 if test "X${COLLECT_NAMES+set}" != Xset; then
16474   COLLECT_NAMES=
16475   export COLLECT_NAMES
16476 fi
16477 _LT_EOF
16478     ;;
16479   esac
16480
16481
16482 ltmain="$ac_aux_dir/ltmain.sh"
16483
16484
16485   # We use sed instead of cat because bash on DJGPP gets confused if
16486   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16487   # text mode, it properly converts lines to CR/LF.  This bash problem
16488   # is reportedly fixed, but why not run on old versions too?
16489   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16490     || (rm -f "$cfgfile"; exit 1)
16491
16492   case $xsi_shell in
16493   yes)
16494     cat << \_LT_EOF >> "$cfgfile"
16495
16496 # func_dirname file append nondir_replacement
16497 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16498 # otherwise set result to NONDIR_REPLACEMENT.
16499 func_dirname ()
16500 {
16501   case ${1} in
16502     */*) func_dirname_result="${1%/*}${2}" ;;
16503     *  ) func_dirname_result="${3}" ;;
16504   esac
16505 }
16506
16507 # func_basename file
16508 func_basename ()
16509 {
16510   func_basename_result="${1##*/}"
16511 }
16512
16513 # func_dirname_and_basename file append nondir_replacement
16514 # perform func_basename and func_dirname in a single function
16515 # call:
16516 #   dirname:  Compute the dirname of FILE.  If nonempty,
16517 #             add APPEND to the result, otherwise set result
16518 #             to NONDIR_REPLACEMENT.
16519 #             value returned in "$func_dirname_result"
16520 #   basename: Compute filename of FILE.
16521 #             value retuned in "$func_basename_result"
16522 # Implementation must be kept synchronized with func_dirname
16523 # and func_basename. For efficiency, we do not delegate to
16524 # those functions but instead duplicate the functionality here.
16525 func_dirname_and_basename ()
16526 {
16527   case ${1} in
16528     */*) func_dirname_result="${1%/*}${2}" ;;
16529     *  ) func_dirname_result="${3}" ;;
16530   esac
16531   func_basename_result="${1##*/}"
16532 }
16533
16534 # func_stripname prefix suffix name
16535 # strip PREFIX and SUFFIX off of NAME.
16536 # PREFIX and SUFFIX must not contain globbing or regex special
16537 # characters, hashes, percent signs, but SUFFIX may contain a leading
16538 # dot (in which case that matches only a dot).
16539 func_stripname ()
16540 {
16541   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16542   # positional parameters, so assign one to ordinary parameter first.
16543   func_stripname_result=${3}
16544   func_stripname_result=${func_stripname_result#"${1}"}
16545   func_stripname_result=${func_stripname_result%"${2}"}
16546 }
16547
16548 # func_opt_split
16549 func_opt_split ()
16550 {
16551   func_opt_split_opt=${1%%=*}
16552   func_opt_split_arg=${1#*=}
16553 }
16554
16555 # func_lo2o object
16556 func_lo2o ()
16557 {
16558   case ${1} in
16559     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16560     *)    func_lo2o_result=${1} ;;
16561   esac
16562 }
16563
16564 # func_xform libobj-or-source
16565 func_xform ()
16566 {
16567   func_xform_result=${1%.*}.lo
16568 }
16569
16570 # func_arith arithmetic-term...
16571 func_arith ()
16572 {
16573   func_arith_result=$(( $* ))
16574 }
16575
16576 # func_len string
16577 # STRING may not start with a hyphen.
16578 func_len ()
16579 {
16580   func_len_result=${#1}
16581 }
16582
16583 _LT_EOF
16584     ;;
16585   *) # Bourne compatible functions.
16586     cat << \_LT_EOF >> "$cfgfile"
16587
16588 # func_dirname file append nondir_replacement
16589 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16590 # otherwise set result to NONDIR_REPLACEMENT.
16591 func_dirname ()
16592 {
16593   # Extract subdirectory from the argument.
16594   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16595   if test "X$func_dirname_result" = "X${1}"; then
16596     func_dirname_result="${3}"
16597   else
16598     func_dirname_result="$func_dirname_result${2}"
16599   fi
16600 }
16601
16602 # func_basename file
16603 func_basename ()
16604 {
16605   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16606 }
16607
16608
16609 # func_stripname prefix suffix name
16610 # strip PREFIX and SUFFIX off of NAME.
16611 # PREFIX and SUFFIX must not contain globbing or regex special
16612 # characters, hashes, percent signs, but SUFFIX may contain a leading
16613 # dot (in which case that matches only a dot).
16614 # func_strip_suffix prefix name
16615 func_stripname ()
16616 {
16617   case ${2} in
16618     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16619     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16620   esac
16621 }
16622
16623 # sed scripts:
16624 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16625 my_sed_long_arg='1s/^-[^=]*=//'
16626
16627 # func_opt_split
16628 func_opt_split ()
16629 {
16630   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16631   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16632 }
16633
16634 # func_lo2o object
16635 func_lo2o ()
16636 {
16637   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16638 }
16639
16640 # func_xform libobj-or-source
16641 func_xform ()
16642 {
16643   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16644 }
16645
16646 # func_arith arithmetic-term...
16647 func_arith ()
16648 {
16649   func_arith_result=`expr "$@"`
16650 }
16651
16652 # func_len string
16653 # STRING may not start with a hyphen.
16654 func_len ()
16655 {
16656   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16657 }
16658
16659 _LT_EOF
16660 esac
16661
16662 case $lt_shell_append in
16663   yes)
16664     cat << \_LT_EOF >> "$cfgfile"
16665
16666 # func_append var value
16667 # Append VALUE to the end of shell variable VAR.
16668 func_append ()
16669 {
16670   eval "$1+=\$2"
16671 }
16672 _LT_EOF
16673     ;;
16674   *)
16675     cat << \_LT_EOF >> "$cfgfile"
16676
16677 # func_append var value
16678 # Append VALUE to the end of shell variable VAR.
16679 func_append ()
16680 {
16681   eval "$1=\$$1\$2"
16682 }
16683
16684 _LT_EOF
16685     ;;
16686   esac
16687
16688
16689   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16690     || (rm -f "$cfgfile"; exit 1)
16691
16692   mv -f "$cfgfile" "$ofile" ||
16693     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16694   chmod +x "$ofile"
16695
16696
16697     cat <<_LT_EOF >> "$ofile"
16698
16699 # ### BEGIN LIBTOOL TAG CONFIG: GO
16700
16701 # The linker used to build libraries.
16702 LD=$lt_LD_GO
16703
16704 # How to create reloadable object files.
16705 reload_flag=$lt_reload_flag_GO
16706 reload_cmds=$lt_reload_cmds_GO
16707
16708 # Commands used to build an old-style archive.
16709 old_archive_cmds=$lt_old_archive_cmds_GO
16710
16711 # A language specific compiler.
16712 CC=$lt_compiler_GO
16713
16714 # Is the compiler the GNU compiler?
16715 with_gcc=$GCC_GO
16716
16717 # Compiler flag to turn off builtin functions.
16718 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
16719
16720 # How to pass a linker flag through the compiler.
16721 wl=$lt_lt_prog_compiler_wl_GO
16722
16723 # Additional compiler flags for building library objects.
16724 pic_flag=$lt_lt_prog_compiler_pic_GO
16725
16726 # Compiler flag to prevent dynamic linking.
16727 link_static_flag=$lt_lt_prog_compiler_static_GO
16728
16729 # Does compiler simultaneously support -c and -o options?
16730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
16731
16732 # Whether or not to add -lc for building shared libraries.
16733 build_libtool_need_lc=$archive_cmds_need_lc_GO
16734
16735 # Whether or not to disallow shared libs when runtime libs are static.
16736 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
16737
16738 # Compiler flag to allow reflexive dlopens.
16739 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
16740
16741 # Compiler flag to generate shared objects directly from archives.
16742 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
16743
16744 # Whether the compiler copes with passing no objects directly.
16745 compiler_needs_object=$lt_compiler_needs_object_GO
16746
16747 # Create an old-style archive from a shared archive.
16748 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
16749
16750 # Create a temporary old-style archive to link instead of a shared archive.
16751 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
16752
16753 # Commands used to build a shared archive.
16754 archive_cmds=$lt_archive_cmds_GO
16755 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
16756
16757 # Commands used to build a loadable module if different from building
16758 # a shared archive.
16759 module_cmds=$lt_module_cmds_GO
16760 module_expsym_cmds=$lt_module_expsym_cmds_GO
16761
16762 # Whether we are building with GNU ld or not.
16763 with_gnu_ld=$lt_with_gnu_ld_GO
16764
16765 # Flag that allows shared libraries with undefined symbols to be built.
16766 allow_undefined_flag=$lt_allow_undefined_flag_GO
16767
16768 # Flag that enforces no undefined symbols.
16769 no_undefined_flag=$lt_no_undefined_flag_GO
16770
16771 # Flag to hardcode \$libdir into a binary during linking.
16772 # This must work even if \$libdir does not exist
16773 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
16774
16775 # If ld is used when linking, flag to hardcode \$libdir into a binary
16776 # during linking.  This must work even if \$libdir does not exist.
16777 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
16778
16779 # Whether we need a single "-rpath" flag with a separated argument.
16780 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
16781
16782 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16783 # DIR into the resulting binary.
16784 hardcode_direct=$hardcode_direct_GO
16785
16786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16787 # DIR into the resulting binary and the resulting library dependency is
16788 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16789 # library is relocated.
16790 hardcode_direct_absolute=$hardcode_direct_absolute_GO
16791
16792 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16793 # into the resulting binary.
16794 hardcode_minus_L=$hardcode_minus_L_GO
16795
16796 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16797 # into the resulting binary.
16798 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
16799
16800 # Set to "yes" if building a shared library automatically hardcodes DIR
16801 # into the library and all subsequent libraries and executables linked
16802 # against it.
16803 hardcode_automatic=$hardcode_automatic_GO
16804
16805 # Set to yes if linker adds runtime paths of dependent libraries
16806 # to runtime path list.
16807 inherit_rpath=$inherit_rpath_GO
16808
16809 # Whether libtool must link a program against all its dependency libraries.
16810 link_all_deplibs=$link_all_deplibs_GO
16811
16812 # Fix the shell variable \$srcfile for the compiler.
16813 fix_srcfile_path=$lt_fix_srcfile_path_GO
16814
16815 # Set to "yes" if exported symbols are required.
16816 always_export_symbols=$always_export_symbols_GO
16817
16818 # The commands to list exported symbols.
16819 export_symbols_cmds=$lt_export_symbols_cmds_GO
16820
16821 # Symbols that should not be listed in the preloaded symbols.
16822 exclude_expsyms=$lt_exclude_expsyms_GO
16823
16824 # Symbols that must always be exported.
16825 include_expsyms=$lt_include_expsyms_GO
16826
16827 # Commands necessary for linking programs (against libraries) with templates.
16828 prelink_cmds=$lt_prelink_cmds_GO
16829
16830 # Specify filename containing input files.
16831 file_list_spec=$lt_file_list_spec_GO
16832
16833 # How to hardcode a shared library path into an executable.
16834 hardcode_action=$hardcode_action_GO
16835
16836 # ### END LIBTOOL TAG CONFIG: GO
16837 _LT_EOF
16838
16839  ;;
16840     "default":C) if test -n "$CONFIG_FILES"; then
16841    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
16842    # that multilib installs will end up installed in the correct place.
16843    # The testsuite needs it for multilib-aware ABI baseline files.
16844    # To work around this not being passed down from config-ml.in ->
16845    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
16846    # append it here.  Only modify Makefiles that have just been created.
16847    #
16848    # Also, get rid of this simulated-VPATH thing that automake does.
16849    cat > vpsed << \_EOF
16850 s!`test -f '$<' || echo '$(srcdir)/'`!!
16851 _EOF
16852    for i in $SUBDIRS; do
16853     case $CONFIG_FILES in
16854      *${i}/Makefile*)
16855        #echo "Adding MULTISUBDIR to $i/Makefile"
16856        sed -f vpsed $i/Makefile > tmp
16857        grep '^MULTISUBDIR =' Makefile >> tmp
16858        mv tmp $i/Makefile
16859        ;;
16860     esac
16861    done
16862    rm vpsed
16863  fi
16864  ;;
16865
16866   esac
16867 done # for ac_tag
16868
16869
16870 as_fn_exit 0
16871 _ACEOF
16872 ac_clean_files=$ac_clean_files_save
16873
16874 test $ac_write_fail = 0 ||
16875   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16876
16877
16878 # configure is writing to config.log, and then calls config.status.
16879 # config.status does its own redirection, appending to config.log.
16880 # Unfortunately, on DOS this fails, as config.log is still kept open
16881 # by configure, so config.status won't be able to write to it; its
16882 # output is simply discarded.  So we exec the FD to /dev/null,
16883 # effectively closing config.log, so it can be properly (re)opened and
16884 # appended to by config.status.  When coming back to configure, we
16885 # need to make the FD available again.
16886 if test "$no_create" != yes; then
16887   ac_cs_success=:
16888   ac_config_status_args=
16889   test "$silent" = yes &&
16890     ac_config_status_args="$ac_config_status_args --quiet"
16891   exec 5>/dev/null
16892   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16893   exec 5>>config.log
16894   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16895   # would make configure fail if this is the last instruction.
16896   $ac_cs_success || as_fn_exit $?
16897 fi
16898 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16900 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16901 fi
16902