OSDN Git Service

runtime: System-specific hack fix for x86_64 Solaris 10.
[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 STRUCT_EPOLL_EVENT_FD_OFFSET
606 SIZEOF_STRUCT_EPOLL_EVENT
607 STRINGOPS_FLAG
608 HAVE_WAIT4_FALSE
609 HAVE_WAIT4_TRUE
610 HAVE_STRERROR_R_FALSE
611 HAVE_STRERROR_R_TRUE
612 HAVE_SYS_MMAN_H_FALSE
613 HAVE_SYS_MMAN_H_TRUE
614 PTHREAD_LIBS
615 PTHREAD_CFLAGS
616 NET_LIBS
617 MATH_LIBS
618 USING_SPLIT_STACK_FALSE
619 USING_SPLIT_STACK_TRUE
620 SPLIT_STACK
621 OSCFLAGS
622 GO_SYSCALL_OS_ARCH_FILE
623 GO_SYSCALL_OS_FILE
624 GO_LIBCALL_OS_ARCH_FILE
625 GO_LIBCALL_OS_FILE
626 GOARCH
627 LIBGO_IS_X86_64_FALSE
628 LIBGO_IS_X86_64_TRUE
629 LIBGO_IS_SPARC64_FALSE
630 LIBGO_IS_SPARC64_TRUE
631 LIBGO_IS_SPARC_FALSE
632 LIBGO_IS_SPARC_TRUE
633 LIBGO_IS_PPC64_FALSE
634 LIBGO_IS_PPC64_TRUE
635 LIBGO_IS_PPC_FALSE
636 LIBGO_IS_PPC_TRUE
637 LIBGO_IS_MIPSO64_FALSE
638 LIBGO_IS_MIPSO64_TRUE
639 LIBGO_IS_MIPSN64_FALSE
640 LIBGO_IS_MIPSN64_TRUE
641 LIBGO_IS_MIPSN32_FALSE
642 LIBGO_IS_MIPSN32_TRUE
643 LIBGO_IS_MIPSO32_FALSE
644 LIBGO_IS_MIPSO32_TRUE
645 LIBGO_IS_MIPS_FALSE
646 LIBGO_IS_MIPS_TRUE
647 LIBGO_IS_M68K_FALSE
648 LIBGO_IS_M68K_TRUE
649 LIBGO_IS_ARM_FALSE
650 LIBGO_IS_ARM_TRUE
651 LIBGO_IS_ALPHA_FALSE
652 LIBGO_IS_ALPHA_TRUE
653 LIBGO_IS_386_FALSE
654 LIBGO_IS_386_TRUE
655 GOOS
656 LIBGO_IS_SOLARIS_FALSE
657 LIBGO_IS_SOLARIS_TRUE
658 LIBGO_IS_RTEMS_FALSE
659 LIBGO_IS_RTEMS_TRUE
660 LIBGO_IS_NETBSD_FALSE
661 LIBGO_IS_NETBSD_TRUE
662 LIBGO_IS_LINUX_FALSE
663 LIBGO_IS_LINUX_TRUE
664 LIBGO_IS_IRIX_FALSE
665 LIBGO_IS_IRIX_TRUE
666 LIBGO_IS_FREEBSD_FALSE
667 LIBGO_IS_FREEBSD_TRUE
668 LIBGO_IS_DARWIN_FALSE
669 LIBGO_IS_DARWIN_TRUE
670 go_include
671 LIBFFIINCS
672 LIBFFI
673 glibgo_toolexeclibdir
674 glibgo_toolexecdir
675 glibgo_prefixdir
676 WERROR
677 WARN_FLAGS
678 CC_FOR_BUILD
679 enable_static
680 enable_shared
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 AR
687 OBJDUMP
688 LN_S
689 NM
690 ac_ct_DUMPBIN
691 DUMPBIN
692 LIBTOOL
693 OBJCOPY
694 RANLIB
695 LD
696 FGREP
697 SED
698 EGREP
699 GREP
700 CPP
701 MAINT
702 MAINTAINER_MODE_FALSE
703 MAINTAINER_MODE_TRUE
704 GOCFLAGS
705 GOC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__quote
713 am__include
714 DEPDIR
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 CPPFLAGS
719 LDFLAGS
720 CFLAGS
721 CC
722 am__untar
723 am__tar
724 AMTAR
725 am__leading_dot
726 SET_MAKE
727 AWK
728 mkdir_p
729 MKDIR_P
730 INSTALL_STRIP_PROGRAM
731 STRIP
732 install_sh
733 MAKEINFO
734 AUTOHEADER
735 AUTOMAKE
736 AUTOCONF
737 ACLOCAL
738 VERSION
739 PACKAGE
740 CYGPATH_W
741 am__isrc
742 INSTALL_DATA
743 INSTALL_SCRIPT
744 INSTALL_PROGRAM
745 target_os
746 target_vendor
747 target_cpu
748 target
749 host_os
750 host_vendor
751 host_cpu
752 host
753 build_os
754 build_vendor
755 build_cpu
756 build
757 multi_basedir
758 libtool_VERSION
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_dependency_tracking
802 enable_maintainer_mode
803 with_gnu_ld
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 enable_libtool_lock
809 enable_version_specific_runtime_libs
810 with_libffi
811 with_system_libunwind
812 enable_sjlj_exceptions
813 '
814       ac_precious_vars='build_alias
815 host_alias
816 target_alias
817 CPP
818 CPPFLAGS'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
868
869 ac_prev=
870 ac_dashdash=
871 for ac_option
872 do
873   # If the previous option needs an argument, assign it.
874   if test -n "$ac_prev"; then
875     eval $ac_prev=\$ac_option
876     ac_prev=
877     continue
878   fi
879
880   case $ac_option in
881   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882   *)    ac_optarg=yes ;;
883   esac
884
885   # Accept the important Cygnus configure options, so we can diagnose typos.
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error "invalid feature name: $ac_useropt"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error "invalid feature name: $ac_useropt"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1109     ac_prev=sbindir ;;
1110   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1111   | --sbi=* | --sb=*)
1112     sbindir=$ac_optarg ;;
1113
1114   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1115   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1116   | --sharedst | --shareds | --shared | --share | --shar \
1117   | --sha | --sh)
1118     ac_prev=sharedstatedir ;;
1119   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1120   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1121   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1122   | --sha=* | --sh=*)
1123     sharedstatedir=$ac_optarg ;;
1124
1125   -site | --site | --sit)
1126     ac_prev=site ;;
1127   -site=* | --site=* | --sit=*)
1128     site=$ac_optarg ;;
1129
1130   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1131     ac_prev=srcdir ;;
1132   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1133     srcdir=$ac_optarg ;;
1134
1135   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1136   | --syscon | --sysco | --sysc | --sys | --sy)
1137     ac_prev=sysconfdir ;;
1138   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1139   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1140     sysconfdir=$ac_optarg ;;
1141
1142   -target | --target | --targe | --targ | --tar | --ta | --t)
1143     ac_prev=target_alias ;;
1144   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1145     target_alias=$ac_optarg ;;
1146
1147   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1148     verbose=yes ;;
1149
1150   -version | --version | --versio | --versi | --vers | -V)
1151     ac_init_version=: ;;
1152
1153   -with-* | --with-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error "invalid package name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "with_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval with_$ac_useropt=\$ac_optarg ;;
1168
1169   -without-* | --without-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=no ;;
1184
1185   --x)
1186     # Obsolete; use --with-x.
1187     with_x=yes ;;
1188
1189   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1190   | --x-incl | --x-inc | --x-in | --x-i)
1191     ac_prev=x_includes ;;
1192   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1193   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1194     x_includes=$ac_optarg ;;
1195
1196   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1197   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1198     ac_prev=x_libraries ;;
1199   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1200   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1201     x_libraries=$ac_optarg ;;
1202
1203   -*) as_fn_error "unrecognized option: \`$ac_option'
1204 Try \`$0 --help' for more information."
1205     ;;
1206
1207   *=*)
1208     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1209     # Reject names that are not valid shell variable names.
1210     case $ac_envvar in #(
1211       '' | [0-9]* | *[!_$as_cr_alnum]* )
1212       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1213     esac
1214     eval $ac_envvar=\$ac_optarg
1215     export $ac_envvar ;;
1216
1217   *)
1218     # FIXME: should be removed in autoconf 3.0.
1219     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1220     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1221       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1222     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1223     ;;
1224
1225   esac
1226 done
1227
1228 if test -n "$ac_prev"; then
1229   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1230   as_fn_error "missing argument to $ac_option"
1231 fi
1232
1233 if test -n "$ac_unrecognized_opts"; then
1234   case $enable_option_checking in
1235     no) ;;
1236     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1237     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1238   esac
1239 fi
1240
1241 # Check all directory arguments for consistency.
1242 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1243                 datadir sysconfdir sharedstatedir localstatedir includedir \
1244                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1245                 libdir localedir mandir
1246 do
1247   eval ac_val=\$$ac_var
1248   # Remove trailing slashes.
1249   case $ac_val in
1250     */ )
1251       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1252       eval $ac_var=\$ac_val;;
1253   esac
1254   # Be sure to have absolute directory names.
1255   case $ac_val in
1256     [\\/$]* | ?:[\\/]* )  continue;;
1257     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1258   esac
1259   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1260 done
1261
1262 # There might be people who depend on the old broken behavior: `$host'
1263 # used to hold the argument of --host etc.
1264 # FIXME: To remove some day.
1265 build=$build_alias
1266 host=$host_alias
1267 target=$target_alias
1268
1269 # FIXME: To remove some day.
1270 if test "x$host_alias" != x; then
1271   if test "x$build_alias" = x; then
1272     cross_compiling=maybe
1273     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1274     If a cross compiler is detected then cross compile mode will be used." >&2
1275   elif test "x$build_alias" != "x$host_alias"; then
1276     cross_compiling=yes
1277   fi
1278 fi
1279
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1282
1283 test "$silent" = yes && exec 6>/dev/null
1284
1285
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289   as_fn_error "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291   as_fn_error "pwd does not report name of working directory"
1292
1293
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296   ac_srcdir_defaulted=yes
1297   # Try the directory containing this script, then the parent directory.
1298   ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300          X"$as_myself" : 'X\(//\)[^/]' \| \
1301          X"$as_myself" : 'X\(//\)$' \| \
1302          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\/\)[^/].*/{
1309             s//\1/
1310             q
1311           }
1312           /^X\(\/\/\)$/{
1313             s//\1/
1314             q
1315           }
1316           /^X\(\/\).*/{
1317             s//\1/
1318             q
1319           }
1320           s/.*/./; q'`
1321   srcdir=$ac_confdir
1322   if test ! -r "$srcdir/$ac_unique_file"; then
1323     srcdir=..
1324   fi
1325 else
1326   ac_srcdir_defaulted=no
1327 fi
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1331 fi
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1335         pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338   srcdir=.
1339 fi
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348   eval ac_env_${ac_var}_value=\$${ac_var}
1349   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1352
1353 #
1354 # Report the --help message.
1355 #
1356 if test "$ac_init_help" = "long"; then
1357   # Omit some internal or obsolete options to make the list less imposing.
1358   # This message is too long to be a string in the A/UX 3.1 sh.
1359   cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1361
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE.  See below for descriptions of some of the useful variables.
1366
1367 Defaults for the options are specified in brackets.
1368
1369 Configuration:
1370   -h, --help              display this help and exit
1371       --help=short        display options specific to this package
1372       --help=recursive    display the short help of all the included packages
1373   -V, --version           display version information and exit
1374   -q, --quiet, --silent   do not print \`checking...' messages
1375       --cache-file=FILE   cache test results in FILE [disabled]
1376   -C, --config-cache      alias for \`--cache-file=config.cache'
1377   -n, --no-create         do not create output files
1378       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1379
1380 Installation directories:
1381   --prefix=PREFIX         install architecture-independent files in PREFIX
1382                           [$ac_default_prefix]
1383   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1384                           [PREFIX]
1385
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1390
1391 For better control, use the options below.
1392
1393 Fine tuning of the installation directories:
1394   --bindir=DIR            user executables [EPREFIX/bin]
1395   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1396   --libexecdir=DIR        program executables [EPREFIX/libexec]
1397   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1398   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1399   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1400   --libdir=DIR            object code libraries [EPREFIX/lib]
1401   --includedir=DIR        C header files [PREFIX/include]
1402   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1403   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1404   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1405   --infodir=DIR           info documentation [DATAROOTDIR/info]
1406   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1407   --mandir=DIR            man documentation [DATAROOTDIR/man]
1408   --docdir=DIR            documentation root [DATAROOTDIR/doc/libgo]
1409   --htmldir=DIR           html documentation [DOCDIR]
1410   --dvidir=DIR            dvi documentation [DOCDIR]
1411   --pdfdir=DIR            pdf documentation [DOCDIR]
1412   --psdir=DIR             ps documentation [DOCDIR]
1413 _ACEOF
1414
1415   cat <<\_ACEOF
1416
1417 Program names:
1418   --program-prefix=PREFIX            prepend PREFIX to installed program names
1419   --program-suffix=SUFFIX            append SUFFIX to installed program names
1420   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1421
1422 System types:
1423   --build=BUILD     configure for building on BUILD [guessed]
1424   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1425   --target=TARGET   configure for building compilers for TARGET [HOST]
1426 _ACEOF
1427 fi
1428
1429 if test -n "$ac_init_help"; then
1430   case $ac_init_help in
1431      short | recursive ) echo "Configuration of package-unused version-unused:";;
1432    esac
1433   cat <<\_ACEOF
1434
1435 Optional Features:
1436   --disable-option-checking  ignore unrecognized --enable/--with options
1437   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1438   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1439   --enable-multilib       build many library versions (default)
1440   --disable-dependency-tracking  speeds up one-time build
1441   --enable-dependency-tracking   do not reject slow dependency extractors
1442   --enable-maintainer-mode  enable make rules and dependencies not useful
1443                           (and sometimes confusing) to the casual installer
1444   --enable-shared[=PKGS]  build shared libraries [default=yes]
1445   --enable-static[=PKGS]  build static libraries [default=yes]
1446   --enable-fast-install[=PKGS]
1447                           optimize for fast installation [default=yes]
1448   --disable-libtool-lock  avoid locking (might break parallel builds)
1449   --enable-version-specific-runtime-libs
1450                           Specify that runtime libraries should be installed
1451                           in a compiler-specific directory
1452   --enable-sjlj-exceptions
1453                           force use of builtin_setjmp for exceptions
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1459   --with-pic              try to use only PIC/non-PIC objects [default=use
1460                           both]
1461   --without-libffi        don't use libffi
1462   --with-system-libunwind use installed libunwind
1463
1464 Some influential environment variables:
1465   CC          C compiler command
1466   CFLAGS      C compiler flags
1467   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1468               nonstandard directory <lib dir>
1469   LIBS        libraries to pass to the linker, e.g. -l<library>
1470   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   GOC         Go compiler command
1473   GOCFLAGS    Go compiler flags
1474   CPP         C preprocessor
1475
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to the package provider.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" ||
1488       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489       continue
1490     ac_builddir=.
1491
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *)
1495   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496   # A ".." for each directory in $ac_dir_suffix.
1497   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498   case $ac_top_builddir_sub in
1499   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501   esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1507
1508 case $srcdir in
1509   .)  # We are building in place.
1510     ac_srcdir=.
1511     ac_top_srcdir=$ac_top_builddir_sub
1512     ac_abs_top_srcdir=$ac_pwd ;;
1513   [\\/]* | ?:[\\/]* )  # Absolute name.
1514     ac_srcdir=$srcdir$ac_dir_suffix;
1515     ac_top_srcdir=$srcdir
1516     ac_abs_top_srcdir=$srcdir ;;
1517   *) # Relative name.
1518     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519     ac_top_srcdir=$ac_top_build_prefix$srcdir
1520     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524     cd "$ac_dir" || { ac_status=$?; continue; }
1525     # Check for guested configure.
1526     if test -f "$ac_srcdir/configure.gnu"; then
1527       echo &&
1528       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529     elif test -f "$ac_srcdir/configure"; then
1530       echo &&
1531       $SHELL "$ac_srcdir/configure" --help=recursive
1532     else
1533       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534     fi || ac_status=$?
1535     cd "$ac_pwd" || { ac_status=$?; break; }
1536   done
1537 fi
1538
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541   cat <<\_ACEOF
1542 package-unused configure version-unused
1543 generated by GNU Autoconf 2.64
1544
1545 Copyright (C) 2009 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549   exit
1550 fi
1551
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1555
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1560 {
1561   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562   rm -f conftest.$ac_objext
1563   if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566   *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570   (eval "$ac_compile") 2>conftest.err
1571   ac_status=$?
1572   if test -s conftest.err; then
1573     grep -v '^ *+' conftest.err >conftest.er1
1574     cat conftest.er1 >&5
1575     mv -f conftest.er1 conftest.err
1576   fi
1577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578   test $ac_status = 0; } && {
1579          test -z "$ac_c_werror_flag" ||
1580          test ! -s conftest.err
1581        } && test -s conftest.$ac_objext; then :
1582   ac_retval=0
1583 else
1584   $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587         ac_retval=1
1588 fi
1589   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1590   return $ac_retval
1591
1592 } # ac_fn_c_try_compile
1593
1594 # ac_fn_c_try_cpp LINENO
1595 # ----------------------
1596 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_c_try_cpp ()
1598 {
1599   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600   if { { ac_try="$ac_cpp conftest.$ac_ext"
1601 case "(($ac_try" in
1602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603   *) ac_try_echo=$ac_try;;
1604 esac
1605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606 $as_echo "$ac_try_echo"; } >&5
1607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1608   ac_status=$?
1609   if test -s conftest.err; then
1610     grep -v '^ *+' conftest.err >conftest.er1
1611     cat conftest.er1 >&5
1612     mv -f conftest.er1 conftest.err
1613   fi
1614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615   test $ac_status = 0; } >/dev/null && {
1616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1617          test ! -s conftest.err
1618        }; then :
1619   ac_retval=0
1620 else
1621   $as_echo "$as_me: failed program was:" >&5
1622 sed 's/^/| /' conftest.$ac_ext >&5
1623
1624     ac_retval=1
1625 fi
1626   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1627   return $ac_retval
1628
1629 } # ac_fn_c_try_cpp
1630
1631 # ac_fn_c_try_run LINENO
1632 # ----------------------
1633 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634 # that executables *can* be run.
1635 ac_fn_c_try_run ()
1636 {
1637   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638   if { { ac_try="$ac_link"
1639 case "(($ac_try" in
1640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641   *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645   (eval "$ac_link") 2>&5
1646   ac_status=$?
1647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649   { { case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_try") 2>&5
1656   ac_status=$?
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; }; }; then :
1659   ac_retval=0
1660 else
1661   $as_echo "$as_me: program exited with status $ac_status" >&5
1662        $as_echo "$as_me: failed program was:" >&5
1663 sed 's/^/| /' conftest.$ac_ext >&5
1664
1665        ac_retval=$ac_status
1666 fi
1667   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669   return $ac_retval
1670
1671 } # ac_fn_c_try_run
1672
1673 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674 # -------------------------------------------------------
1675 # Tests whether HEADER exists and can be compiled using the include files in
1676 # INCLUDES, setting the cache variable VAR accordingly.
1677 ac_fn_c_check_header_compile ()
1678 {
1679   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681 $as_echo_n "checking for $2... " >&6; }
1682 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1683   $as_echo_n "(cached) " >&6
1684 else
1685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h.  */
1687 $4
1688 #include <$2>
1689 _ACEOF
1690 if ac_fn_c_try_compile "$LINENO"; then :
1691   eval "$3=yes"
1692 else
1693   eval "$3=no"
1694 fi
1695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 fi
1697 eval ac_res=\$$3
1698                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699 $as_echo "$ac_res" >&6; }
1700   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701
1702 } # ac_fn_c_check_header_compile
1703
1704 # ac_fn_c_try_link LINENO
1705 # -----------------------
1706 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_link ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   rm -f conftest.$ac_objext conftest$ac_exeext
1711   if { { ac_try="$ac_link"
1712 case "(($ac_try" in
1713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714   *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718   (eval "$ac_link") 2>conftest.err
1719   ac_status=$?
1720   if test -s conftest.err; then
1721     grep -v '^ *+' conftest.err >conftest.er1
1722     cat conftest.er1 >&5
1723     mv -f conftest.er1 conftest.err
1724   fi
1725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726   test $ac_status = 0; } && {
1727          test -z "$ac_c_werror_flag" ||
1728          test ! -s conftest.err
1729        } && test -s conftest$ac_exeext && {
1730          test "$cross_compiling" = yes ||
1731          $as_test_x conftest$ac_exeext
1732        }; then :
1733   ac_retval=0
1734 else
1735   $as_echo "$as_me: failed program was:" >&5
1736 sed 's/^/| /' conftest.$ac_ext >&5
1737
1738         ac_retval=1
1739 fi
1740   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742   # interfere with the next link command; also delete a directory that is
1743   # left behind by Apple's compiler.  We do this before executing the actions.
1744   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746   return $ac_retval
1747
1748 } # ac_fn_c_try_link
1749
1750 # ac_fn_c_check_func LINENO FUNC VAR
1751 # ----------------------------------
1752 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1753 ac_fn_c_check_func ()
1754 {
1755   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757 $as_echo_n "checking for $2... " >&6; }
1758 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1759   $as_echo_n "(cached) " >&6
1760 else
1761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h.  */
1763 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765 #define $2 innocuous_$2
1766
1767 /* System header to define __stub macros and hopefully few prototypes,
1768     which can conflict with char $2 (); below.
1769     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770     <limits.h> exists even on freestanding compilers.  */
1771
1772 #ifdef __STDC__
1773 # include <limits.h>
1774 #else
1775 # include <assert.h>
1776 #endif
1777
1778 #undef $2
1779
1780 /* Override any GCC internal prototype to avoid an error.
1781    Use char because int might match the return type of a GCC
1782    builtin and then its argument prototype would still apply.  */
1783 #ifdef __cplusplus
1784 extern "C"
1785 #endif
1786 char $2 ();
1787 /* The GNU C library defines this for functions which it implements
1788     to always fail with ENOSYS.  Some functions are actually named
1789     something starting with __ and the normal name is an alias.  */
1790 #if defined __stub_$2 || defined __stub___$2
1791 choke me
1792 #endif
1793
1794 int
1795 main ()
1796 {
1797 return $2 ();
1798   ;
1799   return 0;
1800 }
1801 _ACEOF
1802 if ac_fn_c_try_link "$LINENO"; then :
1803   eval "$3=yes"
1804 else
1805   eval "$3=no"
1806 fi
1807 rm -f core conftest.err conftest.$ac_objext \
1808     conftest$ac_exeext conftest.$ac_ext
1809 fi
1810 eval ac_res=\$$3
1811                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812 $as_echo "$ac_res" >&6; }
1813   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814
1815 } # ac_fn_c_check_func
1816
1817 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1818 # -------------------------------------------------------
1819 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1820 # the include files in INCLUDES and setting the cache variable VAR
1821 # accordingly.
1822 ac_fn_c_check_header_mongrel ()
1823 {
1824   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1826   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1827 $as_echo_n "checking for $2... " >&6; }
1828 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1829   $as_echo_n "(cached) " >&6
1830 fi
1831 eval ac_res=\$$3
1832                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1833 $as_echo "$ac_res" >&6; }
1834 else
1835   # Is the header compilable?
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1837 $as_echo_n "checking $2 usability... " >&6; }
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h.  */
1840 $4
1841 #include <$2>
1842 _ACEOF
1843 if ac_fn_c_try_compile "$LINENO"; then :
1844   ac_header_compiler=yes
1845 else
1846   ac_header_compiler=no
1847 fi
1848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1850 $as_echo "$ac_header_compiler" >&6; }
1851
1852 # Is the header present?
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1854 $as_echo_n "checking $2 presence... " >&6; }
1855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856 /* end confdefs.h.  */
1857 #include <$2>
1858 _ACEOF
1859 if ac_fn_c_try_cpp "$LINENO"; then :
1860   ac_header_preproc=yes
1861 else
1862   ac_header_preproc=no
1863 fi
1864 rm -f conftest.err conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1866 $as_echo "$ac_header_preproc" >&6; }
1867
1868 # So?  What about this header?
1869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1870   yes:no: )
1871     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1872 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1874 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875     ;;
1876   no:yes:* )
1877     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1878 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1879     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1880 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1881     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1882 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1884 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1886 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1887     ;;
1888 esac
1889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1890 $as_echo_n "checking for $2... " >&6; }
1891 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1892   $as_echo_n "(cached) " >&6
1893 else
1894   eval "$3=\$ac_header_compiler"
1895 fi
1896 eval ac_res=\$$3
1897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 fi
1900   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1901
1902 } # ac_fn_c_check_header_mongrel
1903
1904 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1905 # -------------------------------------------
1906 # Tests whether TYPE exists after having included INCLUDES, setting cache
1907 # variable VAR accordingly.
1908 ac_fn_c_check_type ()
1909 {
1910   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914   $as_echo_n "(cached) " >&6
1915 else
1916   eval "$3=no"
1917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918 /* end confdefs.h.  */
1919 $4
1920 int
1921 main ()
1922 {
1923 if (sizeof ($2))
1924          return 0;
1925   ;
1926   return 0;
1927 }
1928 _ACEOF
1929 if ac_fn_c_try_compile "$LINENO"; then :
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 if (sizeof (($2)))
1937             return 0;
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943
1944 else
1945   eval "$3=yes"
1946 fi
1947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 $as_echo "$ac_res" >&6; }
1954   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1955
1956 } # ac_fn_c_check_type
1957
1958 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1959 # --------------------------------------------
1960 # Tries to find the compile-time value of EXPR in a program that includes
1961 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1962 # computed
1963 ac_fn_c_compute_int ()
1964 {
1965   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966   if test "$cross_compiling" = yes; then
1967     # Depending upon the size, compute the lo and hi bounds.
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h.  */
1970 $4
1971 int
1972 main ()
1973 {
1974 static int test_array [1 - 2 * !(($2) >= 0)];
1975 test_array [0] = 0
1976
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982   ac_lo=0 ac_mid=0
1983   while :; do
1984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0
1992
1993   ;
1994   return 0;
1995 }
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   ac_hi=$ac_mid; break
1999 else
2000   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2001                         if test $ac_lo -le $ac_mid; then
2002                           ac_lo= ac_hi=
2003                           break
2004                         fi
2005                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008   done
2009 else
2010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 int
2014 main ()
2015 {
2016 static int test_array [1 - 2 * !(($2) < 0)];
2017 test_array [0] = 0
2018
2019   ;
2020   return 0;
2021 }
2022 _ACEOF
2023 if ac_fn_c_try_compile "$LINENO"; then :
2024   ac_hi=-1 ac_mid=-1
2025   while :; do
2026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 int
2030 main ()
2031 {
2032 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2033 test_array [0] = 0
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_lo=$ac_mid; break
2041 else
2042   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2043                         if test $ac_mid -le $ac_hi; then
2044                           ac_lo= ac_hi=
2045                           break
2046                         fi
2047                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2048 fi
2049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2050   done
2051 else
2052   ac_lo= ac_hi=
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2057 # Binary search between lo and hi bounds.
2058 while test "x$ac_lo" != "x$ac_hi"; do
2059   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 int
2064 main ()
2065 {
2066 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2067 test_array [0] = 0
2068
2069   ;
2070   return 0;
2071 }
2072 _ACEOF
2073 if ac_fn_c_try_compile "$LINENO"; then :
2074   ac_hi=$ac_mid
2075 else
2076   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 case $ac_lo in #((
2081 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2082 '') ac_retval=1 ;;
2083 esac
2084   else
2085     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 $4
2088 static long int longval () { return $2; }
2089 static unsigned long int ulongval () { return $2; }
2090 #include <stdio.h>
2091 #include <stdlib.h>
2092 int
2093 main ()
2094 {
2095
2096   FILE *f = fopen ("conftest.val", "w");
2097   if (! f)
2098     return 1;
2099   if (($2) < 0)
2100     {
2101       long int i = longval ();
2102       if (i != ($2))
2103         return 1;
2104       fprintf (f, "%ld", i);
2105     }
2106   else
2107     {
2108       unsigned long int i = ulongval ();
2109       if (i != ($2))
2110         return 1;
2111       fprintf (f, "%lu", i);
2112     }
2113   /* Do not output a trailing newline, as this causes \r\n confusion
2114      on some platforms.  */
2115   return ferror (f) || fclose (f) != 0;
2116
2117   ;
2118   return 0;
2119 }
2120 _ACEOF
2121 if ac_fn_c_try_run "$LINENO"; then :
2122   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2123 else
2124   ac_retval=1
2125 fi
2126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2127   conftest.$ac_objext conftest.beam conftest.$ac_ext
2128 rm -f conftest.val
2129
2130   fi
2131   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132   return $ac_retval
2133
2134 } # ac_fn_c_compute_int
2135 cat >config.log <<_ACEOF
2136 This file contains any messages produced by compilers while
2137 running configure, to aid debugging if configure makes a mistake.
2138
2139 It was created by package-unused $as_me version-unused, which was
2140 generated by GNU Autoconf 2.64.  Invocation command line was
2141
2142   $ $0 $@
2143
2144 _ACEOF
2145 exec 5>>config.log
2146 {
2147 cat <<_ASUNAME
2148 ## --------- ##
2149 ## Platform. ##
2150 ## --------- ##
2151
2152 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2153 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2154 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2155 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2156 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2157
2158 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2159 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2160
2161 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2162 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2163 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2164 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2165 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2166 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2167 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2168
2169 _ASUNAME
2170
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2173 do
2174   IFS=$as_save_IFS
2175   test -z "$as_dir" && as_dir=.
2176     $as_echo "PATH: $as_dir"
2177   done
2178 IFS=$as_save_IFS
2179
2180 } >&5
2181
2182 cat >&5 <<_ACEOF
2183
2184
2185 ## ----------- ##
2186 ## Core tests. ##
2187 ## ----------- ##
2188
2189 _ACEOF
2190
2191
2192 # Keep a trace of the command line.
2193 # Strip out --no-create and --no-recursion so they do not pile up.
2194 # Strip out --silent because we don't want to record it for future runs.
2195 # Also quote any args containing shell meta-characters.
2196 # Make two passes to allow for proper duplicate-argument suppression.
2197 ac_configure_args=
2198 ac_configure_args0=
2199 ac_configure_args1=
2200 ac_must_keep_next=false
2201 for ac_pass in 1 2
2202 do
2203   for ac_arg
2204   do
2205     case $ac_arg in
2206     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2207     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2208     | -silent | --silent | --silen | --sile | --sil)
2209       continue ;;
2210     *\'*)
2211       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2212     esac
2213     case $ac_pass in
2214     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2215     2)
2216       as_fn_append ac_configure_args1 " '$ac_arg'"
2217       if test $ac_must_keep_next = true; then
2218         ac_must_keep_next=false # Got value, back to normal.
2219       else
2220         case $ac_arg in
2221           *=* | --config-cache | -C | -disable-* | --disable-* \
2222           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2223           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2224           | -with-* | --with-* | -without-* | --without-* | --x)
2225             case "$ac_configure_args0 " in
2226               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2227             esac
2228             ;;
2229           -* ) ac_must_keep_next=true ;;
2230         esac
2231       fi
2232       as_fn_append ac_configure_args " '$ac_arg'"
2233       ;;
2234     esac
2235   done
2236 done
2237 { ac_configure_args0=; unset ac_configure_args0;}
2238 { ac_configure_args1=; unset ac_configure_args1;}
2239
2240 # When interrupted or exit'd, cleanup temporary files, and complete
2241 # config.log.  We remove comments because anyway the quotes in there
2242 # would cause problems or look ugly.
2243 # WARNING: Use '\'' to represent an apostrophe within the trap.
2244 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2245 trap 'exit_status=$?
2246   # Save into config.log some information that might help in debugging.
2247   {
2248     echo
2249
2250     cat <<\_ASBOX
2251 ## ---------------- ##
2252 ## Cache variables. ##
2253 ## ---------------- ##
2254 _ASBOX
2255     echo
2256     # The following way of writing the cache mishandles newlines in values,
2257 (
2258   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2259     eval ac_val=\$$ac_var
2260     case $ac_val in #(
2261     *${as_nl}*)
2262       case $ac_var in #(
2263       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2264 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2265       esac
2266       case $ac_var in #(
2267       _ | IFS | as_nl) ;; #(
2268       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2269       *) { eval $ac_var=; unset $ac_var;} ;;
2270       esac ;;
2271     esac
2272   done
2273   (set) 2>&1 |
2274     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2275     *${as_nl}ac_space=\ *)
2276       sed -n \
2277         "s/'\''/'\''\\\\'\'''\''/g;
2278           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2279       ;; #(
2280     *)
2281       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2282       ;;
2283     esac |
2284     sort
2285 )
2286     echo
2287
2288     cat <<\_ASBOX
2289 ## ----------------- ##
2290 ## Output variables. ##
2291 ## ----------------- ##
2292 _ASBOX
2293     echo
2294     for ac_var in $ac_subst_vars
2295     do
2296       eval ac_val=\$$ac_var
2297       case $ac_val in
2298       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2299       esac
2300       $as_echo "$ac_var='\''$ac_val'\''"
2301     done | sort
2302     echo
2303
2304     if test -n "$ac_subst_files"; then
2305       cat <<\_ASBOX
2306 ## ------------------- ##
2307 ## File substitutions. ##
2308 ## ------------------- ##
2309 _ASBOX
2310       echo
2311       for ac_var in $ac_subst_files
2312       do
2313         eval ac_val=\$$ac_var
2314         case $ac_val in
2315         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316         esac
2317         $as_echo "$ac_var='\''$ac_val'\''"
2318       done | sort
2319       echo
2320     fi
2321
2322     if test -s confdefs.h; then
2323       cat <<\_ASBOX
2324 ## ----------- ##
2325 ## confdefs.h. ##
2326 ## ----------- ##
2327 _ASBOX
2328       echo
2329       cat confdefs.h
2330       echo
2331     fi
2332     test "$ac_signal" != 0 &&
2333       $as_echo "$as_me: caught signal $ac_signal"
2334     $as_echo "$as_me: exit $exit_status"
2335   } >&5
2336   rm -f core *.core core.conftest.* &&
2337     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338     exit $exit_status
2339 ' 0
2340 for ac_signal in 1 2 13 15; do
2341   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342 done
2343 ac_signal=0
2344
2345 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2346 rm -f -r conftest* confdefs.h
2347
2348 $as_echo "/* confdefs.h */" > confdefs.h
2349
2350 # Predefined preprocessor variables.
2351
2352 cat >>confdefs.h <<_ACEOF
2353 #define PACKAGE_NAME "$PACKAGE_NAME"
2354 _ACEOF
2355
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358 _ACEOF
2359
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2362 _ACEOF
2363
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_STRING "$PACKAGE_STRING"
2366 _ACEOF
2367
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370 _ACEOF
2371
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_URL "$PACKAGE_URL"
2374 _ACEOF
2375
2376
2377 # Let the site file select an alternate cache file if it wants to.
2378 # Prefer an explicitly selected file to automatically selected ones.
2379 ac_site_file1=NONE
2380 ac_site_file2=NONE
2381 if test -n "$CONFIG_SITE"; then
2382   ac_site_file1=$CONFIG_SITE
2383 elif test "x$prefix" != xNONE; then
2384   ac_site_file1=$prefix/share/config.site
2385   ac_site_file2=$prefix/etc/config.site
2386 else
2387   ac_site_file1=$ac_default_prefix/share/config.site
2388   ac_site_file2=$ac_default_prefix/etc/config.site
2389 fi
2390 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2391 do
2392   test "x$ac_site_file" = xNONE && continue
2393   if test -r "$ac_site_file"; then
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2395 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396     sed 's/^/| /' "$ac_site_file" >&5
2397     . "$ac_site_file"
2398   fi
2399 done
2400
2401 if test -r "$cache_file"; then
2402   # Some versions of bash will fail to source /dev/null (special
2403   # files actually), so we avoid doing that.
2404   if test -f "$cache_file"; then
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2406 $as_echo "$as_me: loading cache $cache_file" >&6;}
2407     case $cache_file in
2408       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2409       *)                      . "./$cache_file";;
2410     esac
2411   fi
2412 else
2413   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2414 $as_echo "$as_me: creating cache $cache_file" >&6;}
2415   >$cache_file
2416 fi
2417
2418 # Check that the precious variables saved in the cache have kept the same
2419 # value.
2420 ac_cache_corrupted=false
2421 for ac_var in $ac_precious_vars; do
2422   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2423   eval ac_new_set=\$ac_env_${ac_var}_set
2424   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2425   eval ac_new_val=\$ac_env_${ac_var}_value
2426   case $ac_old_set,$ac_new_set in
2427     set,)
2428       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2430       ac_cache_corrupted=: ;;
2431     ,set)
2432       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2434       ac_cache_corrupted=: ;;
2435     ,);;
2436     *)
2437       if test "x$ac_old_val" != "x$ac_new_val"; then
2438         # differences in whitespace do not lead to failure.
2439         ac_old_val_w=`echo x $ac_old_val`
2440         ac_new_val_w=`echo x $ac_new_val`
2441         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2442           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2443 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2444           ac_cache_corrupted=:
2445         else
2446           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2447 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2448           eval $ac_var=\$ac_old_val
2449         fi
2450         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2451 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2452         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2453 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2454       fi;;
2455   esac
2456   # Pass precious variables to config.status.
2457   if test "$ac_new_set" = set; then
2458     case $ac_new_val in
2459     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2460     *) ac_arg=$ac_var=$ac_new_val ;;
2461     esac
2462     case " $ac_configure_args " in
2463       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2464       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2465     esac
2466   fi
2467 done
2468 if $ac_cache_corrupted; then
2469   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2472 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2473   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2474 fi
2475 ## -------------------- ##
2476 ## Main body of script. ##
2477 ## -------------------- ##
2478
2479 ac_ext=c
2480 ac_cpp='$CPP $CPPFLAGS'
2481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2484
2485
2486
2487
2488
2489
2490 ac_config_headers="$ac_config_headers config.h"
2491
2492
2493 libtool_VERSION=1:0:0
2494
2495
2496 # Default to --enable-multilib
2497 # Check whether --enable-multilib was given.
2498 if test "${enable_multilib+set}" = set; then :
2499   enableval=$enable_multilib; case "$enableval" in
2500   yes) multilib=yes ;;
2501   no)  multilib=no ;;
2502   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2503  esac
2504 else
2505   multilib=yes
2506 fi
2507
2508
2509 # We may get other options which we leave undocumented:
2510 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2511 # See config-ml.in if you want the gory details.
2512
2513 if test "$srcdir" = "."; then
2514   if test "$with_target_subdir" != "."; then
2515     multi_basedir="$srcdir/$with_multisrctop../.."
2516   else
2517     multi_basedir="$srcdir/$with_multisrctop.."
2518   fi
2519 else
2520   multi_basedir="$srcdir/.."
2521 fi
2522
2523
2524 # Even if the default multilib is not a cross compilation,
2525 # it may be that some of the other multilibs are.
2526 if test $cross_compiling = no && test $multilib = yes \
2527    && test "x${with_multisubdir}" != x ; then
2528    cross_compiling=maybe
2529 fi
2530
2531 ac_config_commands="$ac_config_commands default-1"
2532
2533
2534 ac_aux_dir=
2535 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536   for ac_t in install-sh install.sh shtool; do
2537     if test -f "$ac_dir/$ac_t"; then
2538       ac_aux_dir=$ac_dir
2539       ac_install_sh="$ac_aux_dir/$ac_t -c"
2540       break 2
2541     fi
2542   done
2543 done
2544 if test -z "$ac_aux_dir"; then
2545   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2546 fi
2547
2548 # These three variables are undocumented and unsupported,
2549 # and are intended to be withdrawn in a future Autoconf release.
2550 # They can cause serious problems if a builder's source tree is in a directory
2551 # whose full name contains unusual characters.
2552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2554 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2555
2556
2557 # Make sure we can run config.sub.
2558 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2559   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2560
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2562 $as_echo_n "checking build system type... " >&6; }
2563 if test "${ac_cv_build+set}" = set; then :
2564   $as_echo_n "(cached) " >&6
2565 else
2566   ac_build_alias=$build_alias
2567 test "x$ac_build_alias" = x &&
2568   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2569 test "x$ac_build_alias" = x &&
2570   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2571 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2573
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2576 $as_echo "$ac_cv_build" >&6; }
2577 case $ac_cv_build in
2578 *-*-*) ;;
2579 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2580 esac
2581 build=$ac_cv_build
2582 ac_save_IFS=$IFS; IFS='-'
2583 set x $ac_cv_build
2584 shift
2585 build_cpu=$1
2586 build_vendor=$2
2587 shift; shift
2588 # Remember, the first character of IFS is used to create $*,
2589 # except with old shells:
2590 build_os=$*
2591 IFS=$ac_save_IFS
2592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2593
2594
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2596 $as_echo_n "checking host system type... " >&6; }
2597 if test "${ac_cv_host+set}" = set; then :
2598   $as_echo_n "(cached) " >&6
2599 else
2600   if test "x$host_alias" = x; then
2601   ac_cv_host=$ac_cv_build
2602 else
2603   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2604     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2605 fi
2606
2607 fi
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2609 $as_echo "$ac_cv_host" >&6; }
2610 case $ac_cv_host in
2611 *-*-*) ;;
2612 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2613 esac
2614 host=$ac_cv_host
2615 ac_save_IFS=$IFS; IFS='-'
2616 set x $ac_cv_host
2617 shift
2618 host_cpu=$1
2619 host_vendor=$2
2620 shift; shift
2621 # Remember, the first character of IFS is used to create $*,
2622 # except with old shells:
2623 host_os=$*
2624 IFS=$ac_save_IFS
2625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2626
2627
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2629 $as_echo_n "checking target system type... " >&6; }
2630 if test "${ac_cv_target+set}" = set; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   if test "x$target_alias" = x; then
2634   ac_cv_target=$ac_cv_host
2635 else
2636   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2637     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2638 fi
2639
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2642 $as_echo "$ac_cv_target" >&6; }
2643 case $ac_cv_target in
2644 *-*-*) ;;
2645 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2646 esac
2647 target=$ac_cv_target
2648 ac_save_IFS=$IFS; IFS='-'
2649 set x $ac_cv_target
2650 shift
2651 target_cpu=$1
2652 target_vendor=$2
2653 shift; shift
2654 # Remember, the first character of IFS is used to create $*,
2655 # except with old shells:
2656 target_os=$*
2657 IFS=$ac_save_IFS
2658 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2659
2660
2661 # The aliases save the names the user supplied, while $host etc.
2662 # will get canonicalized.
2663 test -n "$target_alias" &&
2664   test "$program_prefix$program_suffix$program_transform_name" = \
2665     NONENONEs,x,x, &&
2666   program_prefix=${target_alias}-
2667
2668 target_alias=${target_alias-$host_alias}
2669
2670 am__api_version='1.11'
2671
2672 # Find a good install program.  We prefer a C program (faster),
2673 # so one script is as good as another.  But avoid the broken or
2674 # incompatible versions:
2675 # SysV /etc/install, /usr/sbin/install
2676 # SunOS /usr/etc/install
2677 # IRIX /sbin/install
2678 # AIX /bin/install
2679 # AmigaOS /C/install, which installs bootblocks on floppy discs
2680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2683 # OS/2's system install, which has a completely different semantic
2684 # ./install, which can be erroneously created by make from ./install.sh.
2685 # Reject install programs that cannot install multiple files.
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2687 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2688 if test -z "$INSTALL"; then
2689 if test "${ac_cv_path_install+set}" = set; then :
2690   $as_echo_n "(cached) " >&6
2691 else
2692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 for as_dir in $PATH
2694 do
2695   IFS=$as_save_IFS
2696   test -z "$as_dir" && as_dir=.
2697     # Account for people who put trailing slashes in PATH elements.
2698 case $as_dir/ in #((
2699   ./ | .// | /[cC]/* | \
2700   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2701   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2702   /usr/ucb/* ) ;;
2703   *)
2704     # OSF1 and SCO ODT 3.0 have their own names for install.
2705     # Don't use installbsd from OSF since it installs stuff as root
2706     # by default.
2707     for ac_prog in ginstall scoinst install; do
2708       for ac_exec_ext in '' $ac_executable_extensions; do
2709         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2710           if test $ac_prog = install &&
2711             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712             # AIX install.  It has an incompatible calling convention.
2713             :
2714           elif test $ac_prog = install &&
2715             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2716             # program-specific install script used by HP pwplus--don't use.
2717             :
2718           else
2719             rm -rf conftest.one conftest.two conftest.dir
2720             echo one > conftest.one
2721             echo two > conftest.two
2722             mkdir conftest.dir
2723             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2724               test -s conftest.one && test -s conftest.two &&
2725               test -s conftest.dir/conftest.one &&
2726               test -s conftest.dir/conftest.two
2727             then
2728               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2729               break 3
2730             fi
2731           fi
2732         fi
2733       done
2734     done
2735     ;;
2736 esac
2737
2738   done
2739 IFS=$as_save_IFS
2740
2741 rm -rf conftest.one conftest.two conftest.dir
2742
2743 fi
2744   if test "${ac_cv_path_install+set}" = set; then
2745     INSTALL=$ac_cv_path_install
2746   else
2747     # As a last resort, use the slow shell script.  Don't cache a
2748     # value for INSTALL within a source directory, because that will
2749     # break other packages using the cache if that directory is
2750     # removed, or if the value is a relative name.
2751     INSTALL=$ac_install_sh
2752   fi
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2755 $as_echo "$INSTALL" >&6; }
2756
2757 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2758 # It thinks the first close brace ends the variable substitution.
2759 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2760
2761 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2762
2763 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2764
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2766 $as_echo_n "checking whether build environment is sane... " >&6; }
2767 # Just in case
2768 sleep 1
2769 echo timestamp > conftest.file
2770 # Reject unsafe characters in $srcdir or the absolute working directory
2771 # name.  Accept space and tab only in the latter.
2772 am_lf='
2773 '
2774 case `pwd` in
2775   *[\\\"\#\$\&\'\`$am_lf]*)
2776     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2777 esac
2778 case $srcdir in
2779   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2780     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2781 esac
2782
2783 # Do `set' in a subshell so we don't clobber the current shell's
2784 # arguments.  Must try -L first in case configure is actually a
2785 # symlink; some systems play weird games with the mod time of symlinks
2786 # (eg FreeBSD returns the mod time of the symlink's containing
2787 # directory).
2788 if (
2789    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2790    if test "$*" = "X"; then
2791       # -L didn't work.
2792       set X `ls -t "$srcdir/configure" conftest.file`
2793    fi
2794    rm -f conftest.file
2795    if test "$*" != "X $srcdir/configure conftest.file" \
2796       && test "$*" != "X conftest.file $srcdir/configure"; then
2797
2798       # If neither matched, then we have a broken ls.  This can happen
2799       # if, for instance, CONFIG_SHELL is bash and it inherits a
2800       # broken ls alias from the environment.  This has actually
2801       # happened.  Such a system could not be considered "sane".
2802       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2803 alias in your environment" "$LINENO" 5
2804    fi
2805
2806    test "$2" = conftest.file
2807    )
2808 then
2809    # Ok.
2810    :
2811 else
2812    as_fn_error "newly created file is older than distributed files!
2813 Check your system clock" "$LINENO" 5
2814 fi
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2816 $as_echo "yes" >&6; }
2817 test "$program_prefix" != NONE &&
2818   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2819 # Use a double $ so make ignores it.
2820 test "$program_suffix" != NONE &&
2821   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2822 # Double any \ or $.
2823 # By default was `s,x,x', remove it if useless.
2824 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2825 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2826
2827 # expand $ac_aux_dir to an absolute path
2828 am_aux_dir=`cd $ac_aux_dir && pwd`
2829
2830 if test x"${MISSING+set}" != xset; then
2831   case $am_aux_dir in
2832   *\ * | *\     *)
2833     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2834   *)
2835     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2836   esac
2837 fi
2838 # Use eval to expand $SHELL
2839 if eval "$MISSING --run true"; then
2840   am_missing_run="$MISSING --run "
2841 else
2842   am_missing_run=
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2844 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2845 fi
2846
2847 if test x"${install_sh}" != xset; then
2848   case $am_aux_dir in
2849   *\ * | *\     *)
2850     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2851   *)
2852     install_sh="\${SHELL} $am_aux_dir/install-sh"
2853   esac
2854 fi
2855
2856 # Installed binaries are usually stripped using `strip' when the user
2857 # run `make install-strip'.  However `strip' might not be the right
2858 # tool to use in cross-compilation environments, therefore Automake
2859 # will honor the `STRIP' environment variable to overrule this program.
2860 if test "$cross_compiling" != no; then
2861   if test -n "$ac_tool_prefix"; then
2862   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2863 set dummy ${ac_tool_prefix}strip; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_STRIP+set}" = set; then :
2867   $as_echo_n "(cached) " >&6
2868 else
2869   if test -n "$STRIP"; then
2870   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2874 do
2875   IFS=$as_save_IFS
2876   test -z "$as_dir" && as_dir=.
2877     for ac_exec_ext in '' $ac_executable_extensions; do
2878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881     break 2
2882   fi
2883 done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888 fi
2889 STRIP=$ac_cv_prog_STRIP
2890 if test -n "$STRIP"; then
2891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2892 $as_echo "$STRIP" >&6; }
2893 else
2894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2896 fi
2897
2898
2899 fi
2900 if test -z "$ac_cv_prog_STRIP"; then
2901   ac_ct_STRIP=$STRIP
2902   # Extract the first word of "strip", so it can be a program name with args.
2903 set dummy strip; ac_word=$2
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2905 $as_echo_n "checking for $ac_word... " >&6; }
2906 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2907   $as_echo_n "(cached) " >&6
2908 else
2909   if test -n "$ac_ct_STRIP"; then
2910   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915   IFS=$as_save_IFS
2916   test -z "$as_dir" && as_dir=.
2917     for ac_exec_ext in '' $ac_executable_extensions; do
2918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2919     ac_cv_prog_ac_ct_STRIP="strip"
2920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2921     break 2
2922   fi
2923 done
2924   done
2925 IFS=$as_save_IFS
2926
2927 fi
2928 fi
2929 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2930 if test -n "$ac_ct_STRIP"; then
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2932 $as_echo "$ac_ct_STRIP" >&6; }
2933 else
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2935 $as_echo "no" >&6; }
2936 fi
2937
2938   if test "x$ac_ct_STRIP" = x; then
2939     STRIP=":"
2940   else
2941     case $cross_compiling:$ac_tool_warned in
2942 yes:)
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2944 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2945 ac_tool_warned=yes ;;
2946 esac
2947     STRIP=$ac_ct_STRIP
2948   fi
2949 else
2950   STRIP="$ac_cv_prog_STRIP"
2951 fi
2952
2953 fi
2954 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2955
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2957 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2958 if test -z "$MKDIR_P"; then
2959   if test "${ac_cv_path_mkdir+set}" = set; then :
2960   $as_echo_n "(cached) " >&6
2961 else
2962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2964 do
2965   IFS=$as_save_IFS
2966   test -z "$as_dir" && as_dir=.
2967     for ac_prog in mkdir gmkdir; do
2968          for ac_exec_ext in '' $ac_executable_extensions; do
2969            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2970            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2971              'mkdir (GNU coreutils) '* | \
2972              'mkdir (coreutils) '* | \
2973              'mkdir (fileutils) '4.1*)
2974                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2975                break 3;;
2976            esac
2977          done
2978        done
2979   done
2980 IFS=$as_save_IFS
2981
2982 fi
2983
2984   if test "${ac_cv_path_mkdir+set}" = set; then
2985     MKDIR_P="$ac_cv_path_mkdir -p"
2986   else
2987     # As a last resort, use the slow shell script.  Don't cache a
2988     # value for MKDIR_P within a source directory, because that will
2989     # break other packages using the cache if that directory is
2990     # removed, or if the value is a relative name.
2991     test -d ./--version && rmdir ./--version
2992     MKDIR_P="$ac_install_sh -d"
2993   fi
2994 fi
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2996 $as_echo "$MKDIR_P" >&6; }
2997
2998 mkdir_p="$MKDIR_P"
2999 case $mkdir_p in
3000   [\\/$]* | ?:[\\/]*) ;;
3001   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3002 esac
3003
3004 for ac_prog in gawk mawk nawk awk
3005 do
3006   # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy $ac_prog; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_AWK+set}" = set; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$AWK"; then
3014   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023     ac_cv_prog_AWK="$ac_prog"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 AWK=$ac_cv_prog_AWK
3034 if test -n "$AWK"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3036 $as_echo "$AWK" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043   test -n "$AWK" && break
3044 done
3045
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3047 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3048 set x ${MAKE-make}
3049 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3050 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   cat >conftest.make <<\_ACEOF
3054 SHELL = /bin/sh
3055 all:
3056         @echo '@@@%%%=$(MAKE)=@@@%%%'
3057 _ACEOF
3058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3059 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3060   *@@@%%%=?*=@@@%%%*)
3061     eval ac_cv_prog_make_${ac_make}_set=yes;;
3062   *)
3063     eval ac_cv_prog_make_${ac_make}_set=no;;
3064 esac
3065 rm -f conftest.make
3066 fi
3067 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069 $as_echo "yes" >&6; }
3070   SET_MAKE=
3071 else
3072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074   SET_MAKE="MAKE=${MAKE-make}"
3075 fi
3076
3077 rm -rf .tst 2>/dev/null
3078 mkdir .tst 2>/dev/null
3079 if test -d .tst; then
3080   am__leading_dot=.
3081 else
3082   am__leading_dot=_
3083 fi
3084 rmdir .tst 2>/dev/null
3085
3086 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3087   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3088   # is not polluted with repeated "-I."
3089   am__isrc=' -I$(srcdir)'
3090   # test to see if srcdir already configured
3091   if test -f $srcdir/config.status; then
3092     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3093   fi
3094 fi
3095
3096 # test whether we have cygpath
3097 if test -z "$CYGPATH_W"; then
3098   if (cygpath --version) >/dev/null 2>/dev/null; then
3099     CYGPATH_W='cygpath -w'
3100   else
3101     CYGPATH_W=echo
3102   fi
3103 fi
3104
3105
3106 # Define the identity of the package.
3107  PACKAGE='libgo'
3108  VERSION='version-unused'
3109
3110
3111 # Some tools Automake needs.
3112
3113 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3114
3115
3116 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3117
3118
3119 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3120
3121
3122 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3123
3124
3125 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3126
3127 # We need awk for the "check" target.  The system "awk" is bad on
3128 # some platforms.
3129 # Always define AMTAR for backward compatibility.
3130
3131 AMTAR=${AMTAR-"${am_missing_run}tar"}
3132
3133 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149 if test -n "$ac_tool_prefix"; then
3150   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if test "${ac_cv_prog_CC+set}" = set; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$CC"; then
3158   ac_cv_prog_CC="$CC" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3167     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 CC=$ac_cv_prog_CC
3178 if test -n "$CC"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3180 $as_echo "$CC" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187 fi
3188 if test -z "$ac_cv_prog_CC"; then
3189   ac_ct_CC=$CC
3190   # Extract the first word of "gcc", so it can be a program name with args.
3191 set dummy gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   if test -n "$ac_ct_CC"; then
3198   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203   IFS=$as_save_IFS
3204   test -z "$as_dir" && as_dir=.
3205     for ac_exec_ext in '' $ac_executable_extensions; do
3206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207     ac_cv_prog_ac_ct_CC="gcc"
3208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209     break 2
3210   fi
3211 done
3212   done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3218 if test -n "$ac_ct_CC"; then
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3220 $as_echo "$ac_ct_CC" >&6; }
3221 else
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226   if test "x$ac_ct_CC" = x; then
3227     CC=""
3228   else
3229     case $cross_compiling:$ac_tool_warned in
3230 yes:)
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned=yes ;;
3234 esac
3235     CC=$ac_ct_CC
3236   fi
3237 else
3238   CC="$ac_cv_prog_CC"
3239 fi
3240
3241 if test -z "$CC"; then
3242           if test -n "$ac_tool_prefix"; then
3243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3244 set dummy ${ac_tool_prefix}cc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then :
3248   $as_echo_n "(cached) " >&6
3249 else
3250   if test -n "$CC"; then
3251   ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256   IFS=$as_save_IFS
3257   test -z "$as_dir" && as_dir=.
3258     for ac_exec_ext in '' $ac_executable_extensions; do
3259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260     ac_cv_prog_CC="${ac_tool_prefix}cc"
3261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262     break 2
3263   fi
3264 done
3265   done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279
3280   fi
3281 fi
3282 if test -z "$CC"; then
3283   # Extract the first word of "cc", so it can be a program name with args.
3284 set dummy cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288   $as_echo_n "(cached) " >&6
3289 else
3290   if test -n "$CC"; then
3291   ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293   ac_prog_rejected=no
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 for as_dir in $PATH
3296 do
3297   IFS=$as_save_IFS
3298   test -z "$as_dir" && as_dir=.
3299     for ac_exec_ext in '' $ac_executable_extensions; do
3300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3302        ac_prog_rejected=yes
3303        continue
3304      fi
3305     ac_cv_prog_CC="cc"
3306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310   done
3311 IFS=$as_save_IFS
3312
3313 if test $ac_prog_rejected = yes; then
3314   # We found a bogon in the path, so make sure we never use it.
3315   set dummy $ac_cv_prog_CC
3316   shift
3317   if test $# != 0; then
3318     # We chose a different compiler from the bogus one.
3319     # However, it has the same basename, so the bogon will be chosen
3320     # first if we set CC to just the basename; use the full file name.
3321     shift
3322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3323   fi
3324 fi
3325 fi
3326 fi
3327 CC=$ac_cv_prog_CC
3328 if test -n "$CC"; then
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3330 $as_echo "$CC" >&6; }
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 fi
3335
3336
3337 fi
3338 if test -z "$CC"; then
3339   if test -n "$ac_tool_prefix"; then
3340   for ac_prog in cl.exe
3341   do
3342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3345 $as_echo_n "checking for $ac_word... " >&6; }
3346 if test "${ac_cv_prog_CC+set}" = set; then :
3347   $as_echo_n "(cached) " >&6
3348 else
3349   if test -n "$CC"; then
3350   ac_cv_prog_CC="$CC" # Let the user override the test.
3351 else
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357     for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3361     break 2
3362   fi
3363 done
3364   done
3365 IFS=$as_save_IFS
3366
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3372 $as_echo "$CC" >&6; }
3373 else
3374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3375 $as_echo "no" >&6; }
3376 fi
3377
3378
3379     test -n "$CC" && break
3380   done
3381 fi
3382 if test -z "$CC"; then
3383   ac_ct_CC=$CC
3384   for ac_prog in cl.exe
3385 do
3386   # Extract the first word of "$ac_prog", so it can be a program name with args.
3387 set dummy $ac_prog; ac_word=$2
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 $as_echo_n "checking for $ac_word... " >&6; }
3390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3391   $as_echo_n "(cached) " >&6
3392 else
3393   if test -n "$ac_ct_CC"; then
3394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3395 else
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3397 for as_dir in $PATH
3398 do
3399   IFS=$as_save_IFS
3400   test -z "$as_dir" && as_dir=.
3401     for ac_exec_ext in '' $ac_executable_extensions; do
3402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403     ac_cv_prog_ac_ct_CC="$ac_prog"
3404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3405     break 2
3406   fi
3407 done
3408   done
3409 IFS=$as_save_IFS
3410
3411 fi
3412 fi
3413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3414 if test -n "$ac_ct_CC"; then
3415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3416 $as_echo "$ac_ct_CC" >&6; }
3417 else
3418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3419 $as_echo "no" >&6; }
3420 fi
3421
3422
3423   test -n "$ac_ct_CC" && break
3424 done
3425
3426   if test "x$ac_ct_CC" = x; then
3427     CC=""
3428   else
3429     case $cross_compiling:$ac_tool_warned in
3430 yes:)
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3433 ac_tool_warned=yes ;;
3434 esac
3435     CC=$ac_ct_CC
3436   fi
3437 fi
3438
3439 fi
3440
3441
3442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3444 as_fn_error "no acceptable C compiler found in \$PATH
3445 See \`config.log' for more details." "$LINENO" 5; }
3446
3447 # Provide some information about the compiler.
3448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3449 set X $ac_compile
3450 ac_compiler=$2
3451 for ac_option in --version -v -V -qversion; do
3452   { { ac_try="$ac_compiler $ac_option >&5"
3453 case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3458 $as_echo "$ac_try_echo"; } >&5
3459   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460   ac_status=$?
3461   if test -s conftest.err; then
3462     sed '10a\
3463 ... rest of stderr output deleted ...
3464          10q' conftest.err >conftest.er1
3465     cat conftest.er1 >&5
3466     rm -f conftest.er1 conftest.err
3467   fi
3468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3469   test $ac_status = 0; }
3470 done
3471
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 ac_clean_files_save=$ac_clean_files
3484 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3485 # Try to create an executable without -o first, disregard a.out.
3486 # It will help us diagnose broken compilers, and finding out an intuition
3487 # of exeext.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3489 $as_echo_n "checking for C compiler default output file name... " >&6; }
3490 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3491
3492 # The possible output files:
3493 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3494
3495 ac_rmfiles=
3496 for ac_file in $ac_files
3497 do
3498   case $ac_file in
3499     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3500     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3501   esac
3502 done
3503 rm -f $ac_rmfiles
3504
3505 if { { ac_try="$ac_link_default"
3506 case "(($ac_try" in
3507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508   *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512   (eval "$ac_link_default") 2>&5
3513   ac_status=$?
3514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515   test $ac_status = 0; }; then :
3516   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3517 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3518 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3519 # so that the user can short-circuit this test for compilers unknown to
3520 # Autoconf.
3521 for ac_file in $ac_files ''
3522 do
3523   test -f "$ac_file" || continue
3524   case $ac_file in
3525     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3526         ;;
3527     [ab].out )
3528         # We found the default executable, but exeext='' is most
3529         # certainly right.
3530         break;;
3531     *.* )
3532         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3533         then :; else
3534            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535         fi
3536         # We set ac_cv_exeext here because the later test for it is not
3537         # safe: cross compilers may not add the suffix if given an `-o'
3538         # argument, so we may need to know it at that point already.
3539         # Even if this section looks crufty: it has the advantage of
3540         # actually working.
3541         break;;
3542     * )
3543         break;;
3544   esac
3545 done
3546 test "$ac_cv_exeext" = no && ac_cv_exeext=
3547
3548 else
3549   ac_file=''
3550 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3552 $as_echo "$ac_file" >&6; }
3553 if test -z "$ac_file"; then :
3554   $as_echo "$as_me: failed program was:" >&5
3555 sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3559 { as_fn_set_status 77
3560 as_fn_error "C compiler cannot create executables
3561 See \`config.log' for more details." "$LINENO" 5; }; }
3562 fi
3563 ac_exeext=$ac_cv_exeext
3564
3565 # Check that the compiler produces executables we can run.  If not, either
3566 # the compiler is broken, or we cross compile.
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3568 $as_echo_n "checking whether the C compiler works... " >&6; }
3569 # If not cross compiling, check that we can run a simple program.
3570 if test "$cross_compiling" != yes; then
3571   if { ac_try='./$ac_file'
3572   { { case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578   (eval "$ac_try") 2>&5
3579   ac_status=$?
3580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581   test $ac_status = 0; }; }; then
3582     cross_compiling=no
3583   else
3584     if test "$cross_compiling" = maybe; then
3585         cross_compiling=yes
3586     else
3587         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 as_fn_error "cannot run C compiled programs.
3590 If you meant to cross compile, use \`--host'.
3591 See \`config.log' for more details." "$LINENO" 5; }
3592     fi
3593   fi
3594 fi
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3596 $as_echo "yes" >&6; }
3597
3598 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3599 ac_clean_files=$ac_clean_files_save
3600 # Check that the compiler produces executables we can run.  If not, either
3601 # the compiler is broken, or we cross compile.
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3603 $as_echo_n "checking whether we are cross compiling... " >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3605 $as_echo "$cross_compiling" >&6; }
3606
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3608 $as_echo_n "checking for suffix of executables... " >&6; }
3609 if { { ac_try="$ac_link"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_link") 2>&5
3617   ac_status=$?
3618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619   test $ac_status = 0; }; then :
3620   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3621 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3622 # work properly (i.e., refer to `conftest.exe'), while it won't with
3623 # `rm'.
3624 for ac_file in conftest.exe conftest conftest.*; do
3625   test -f "$ac_file" || continue
3626   case $ac_file in
3627     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3628     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3629           break;;
3630     * ) break;;
3631   esac
3632 done
3633 else
3634   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3636 as_fn_error "cannot compute suffix of executables: cannot compile and link
3637 See \`config.log' for more details." "$LINENO" 5; }
3638 fi
3639 rm -f conftest$ac_cv_exeext
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3641 $as_echo "$ac_cv_exeext" >&6; }
3642
3643 rm -f conftest.$ac_ext
3644 EXEEXT=$ac_cv_exeext
3645 ac_exeext=$EXEEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3647 $as_echo_n "checking for suffix of object files... " >&6; }
3648 if test "${ac_cv_objext+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657
3658   ;
3659   return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.o conftest.obj
3663 if { { ac_try="$ac_compile"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3669 $as_echo "$ac_try_echo"; } >&5
3670   (eval "$ac_compile") 2>&5
3671   ac_status=$?
3672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673   test $ac_status = 0; }; then :
3674   for ac_file in conftest.o conftest.obj conftest.*; do
3675   test -f "$ac_file" || continue;
3676   case $ac_file in
3677     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3678     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3679        break;;
3680   esac
3681 done
3682 else
3683   $as_echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3688 as_fn_error "cannot compute suffix of object files: cannot compile
3689 See \`config.log' for more details." "$LINENO" 5; }
3690 fi
3691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3694 $as_echo "$ac_cv_objext" >&6; }
3695 OBJEXT=$ac_cv_objext
3696 ac_objext=$OBJEXT
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3698 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3699 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3700   $as_echo_n "(cached) " >&6
3701 else
3702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h.  */
3704
3705 int
3706 main ()
3707 {
3708 #ifndef __GNUC__
3709        choke me
3710 #endif
3711
3712   ;
3713   return 0;
3714 }
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717   ac_compiler_gnu=yes
3718 else
3719   ac_compiler_gnu=no
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723
3724 fi
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3727 if test $ac_compiler_gnu = yes; then
3728   GCC=yes
3729 else
3730   GCC=
3731 fi
3732 ac_test_CFLAGS=${CFLAGS+set}
3733 ac_save_CFLAGS=$CFLAGS
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3736 if test "${ac_cv_prog_cc_g+set}" = set; then :
3737   $as_echo_n "(cached) " >&6
3738 else
3739   ac_save_c_werror_flag=$ac_c_werror_flag
3740    ac_c_werror_flag=yes
3741    ac_cv_prog_cc_g=no
3742    CFLAGS="-g"
3743    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h.  */
3745
3746 int
3747 main ()
3748 {
3749
3750   ;
3751   return 0;
3752 }
3753 _ACEOF
3754 if ac_fn_c_try_compile "$LINENO"; then :
3755   ac_cv_prog_cc_g=yes
3756 else
3757   CFLAGS=""
3758       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764
3765   ;
3766   return 0;
3767 }
3768 _ACEOF
3769 if ac_fn_c_try_compile "$LINENO"; then :
3770
3771 else
3772   ac_c_werror_flag=$ac_save_c_werror_flag
3773          CFLAGS="-g"
3774          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h.  */
3776
3777 int
3778 main ()
3779 {
3780
3781   ;
3782   return 0;
3783 }
3784 _ACEOF
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786   ac_cv_prog_cc_g=yes
3787 fi
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793    ac_c_werror_flag=$ac_save_c_werror_flag
3794 fi
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3796 $as_echo "$ac_cv_prog_cc_g" >&6; }
3797 if test "$ac_test_CFLAGS" = set; then
3798   CFLAGS=$ac_save_CFLAGS
3799 elif test $ac_cv_prog_cc_g = yes; then
3800   if test "$GCC" = yes; then
3801     CFLAGS="-g -O2"
3802   else
3803     CFLAGS="-g"
3804   fi
3805 else
3806   if test "$GCC" = yes; then
3807     CFLAGS="-O2"
3808   else
3809     CFLAGS=
3810   fi
3811 fi
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3813 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3814 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   ac_cv_prog_cc_c89=no
3818 ac_save_CC=$CC
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h.  */
3821 #include <stdarg.h>
3822 #include <stdio.h>
3823 #include <sys/types.h>
3824 #include <sys/stat.h>
3825 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3826 struct buf { int x; };
3827 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3828 static char *e (p, i)
3829      char **p;
3830      int i;
3831 {
3832   return p[i];
3833 }
3834 static char *f (char * (*g) (char **, int), char **p, ...)
3835 {
3836   char *s;
3837   va_list v;
3838   va_start (v,p);
3839   s = g (p, va_arg (v,int));
3840   va_end (v);
3841   return s;
3842 }
3843
3844 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3845    function prototypes and stuff, but not '\xHH' hex character constants.
3846    These don't provoke an error unfortunately, instead are silently treated
3847    as 'x'.  The following induces an error, until -std is added to get
3848    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3849    array size at least.  It's necessary to write '\x00'==0 to get something
3850    that's true only with -std.  */
3851 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3852
3853 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3854    inside strings and character constants.  */
3855 #define FOO(x) 'x'
3856 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3857
3858 int test (int i, double x);
3859 struct s1 {int (*f) (int a);};
3860 struct s2 {int (*f) (double a);};
3861 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3862 int argc;
3863 char **argv;
3864 int
3865 main ()
3866 {
3867 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 do
3875   CC="$ac_save_CC $ac_arg"
3876   if ac_fn_c_try_compile "$LINENO"; then :
3877   ac_cv_prog_cc_c89=$ac_arg
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext
3880   test "x$ac_cv_prog_cc_c89" != "xno" && break
3881 done
3882 rm -f conftest.$ac_ext
3883 CC=$ac_save_CC
3884
3885 fi
3886 # AC_CACHE_VAL
3887 case "x$ac_cv_prog_cc_c89" in
3888   x)
3889     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3890 $as_echo "none needed" >&6; } ;;
3891   xno)
3892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3893 $as_echo "unsupported" >&6; } ;;
3894   *)
3895     CC="$CC $ac_cv_prog_cc_c89"
3896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3897 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3898 esac
3899 if test "x$ac_cv_prog_cc_c89" != xno; then :
3900
3901 fi
3902
3903 ac_ext=c
3904 ac_cpp='$CPP $CPPFLAGS'
3905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 DEPDIR="${am__leading_dot}deps"
3909
3910 ac_config_commands="$ac_config_commands depfiles"
3911
3912
3913 am_make=${MAKE-make}
3914 cat > confinc << 'END'
3915 am__doit:
3916         @echo this is the am__doit target
3917 .PHONY: am__doit
3918 END
3919 # If we don't find an include directive, just comment out the code.
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3921 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3922 am__include="#"
3923 am__quote=
3924 _am_result=none
3925 # First try GNU make style include.
3926 echo "include confinc" > confmf
3927 # Ignore all kinds of additional output from `make'.
3928 case `$am_make -s -f confmf 2> /dev/null` in #(
3929 *the\ am__doit\ target*)
3930   am__include=include
3931   am__quote=
3932   _am_result=GNU
3933   ;;
3934 esac
3935 # Now try BSD make style include.
3936 if test "$am__include" = "#"; then
3937    echo '.include "confinc"' > confmf
3938    case `$am_make -s -f confmf 2> /dev/null` in #(
3939    *the\ am__doit\ target*)
3940      am__include=.include
3941      am__quote="\""
3942      _am_result=BSD
3943      ;;
3944    esac
3945 fi
3946
3947
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3949 $as_echo "$_am_result" >&6; }
3950 rm -f confinc confmf
3951
3952 # Check whether --enable-dependency-tracking was given.
3953 if test "${enable_dependency_tracking+set}" = set; then :
3954   enableval=$enable_dependency_tracking;
3955 fi
3956
3957 if test "x$enable_dependency_tracking" != xno; then
3958   am_depcomp="$ac_aux_dir/depcomp"
3959   AMDEPBACKSLASH='\'
3960 fi
3961  if test "x$enable_dependency_tracking" != xno; then
3962   AMDEP_TRUE=
3963   AMDEP_FALSE='#'
3964 else
3965   AMDEP_TRUE='#'
3966   AMDEP_FALSE=
3967 fi
3968
3969
3970
3971 depcc="$CC"   am_compiler_list=
3972
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3974 $as_echo_n "checking dependency style of $depcc... " >&6; }
3975 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3976   $as_echo_n "(cached) " >&6
3977 else
3978   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3979   # We make a subdir and do the tests there.  Otherwise we can end up
3980   # making bogus files that we don't know about and never remove.  For
3981   # instance it was reported that on HP-UX the gcc test will end up
3982   # making a dummy file named `D' -- because `-MD' means `put the output
3983   # in D'.
3984   mkdir conftest.dir
3985   # Copy depcomp to subdir because otherwise we won't find it if we're
3986   # using a relative directory.
3987   cp "$am_depcomp" conftest.dir
3988   cd conftest.dir
3989   # We will build objects and dependencies in a subdirectory because
3990   # it helps to detect inapplicable dependency modes.  For instance
3991   # both Tru64's cc and ICC support -MD to output dependencies as a
3992   # side effect of compilation, but ICC will put the dependencies in
3993   # the current directory while Tru64 will put them in the object
3994   # directory.
3995   mkdir sub
3996
3997   am_cv_CC_dependencies_compiler_type=none
3998   if test "$am_compiler_list" = ""; then
3999      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4000   fi
4001   am__universal=false
4002   case " $depcc " in #(
4003      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4004      esac
4005
4006   for depmode in $am_compiler_list; do
4007     # Setup a source with many dependencies, because some compilers
4008     # like to wrap large dependency lists on column 80 (with \), and
4009     # we should not choose a depcomp mode which is confused by this.
4010     #
4011     # We need to recreate these files for each test, as the compiler may
4012     # overwrite some of them when testing with obscure command lines.
4013     # This happens at least with the AIX C compiler.
4014     : > sub/conftest.c
4015     for i in 1 2 3 4 5 6; do
4016       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4017       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4018       # Solaris 8's {/usr,}/bin/sh.
4019       touch sub/conftst$i.h
4020     done
4021     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4022
4023     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4024     # mode.  It turns out that the SunPro C++ compiler does not properly
4025     # handle `-M -o', and we need to detect this.  Also, some Intel
4026     # versions had trouble with output in subdirs
4027     am__obj=sub/conftest.${OBJEXT-o}
4028     am__minus_obj="-o $am__obj"
4029     case $depmode in
4030     gcc)
4031       # This depmode causes a compiler race in universal mode.
4032       test "$am__universal" = false || continue
4033       ;;
4034     nosideeffect)
4035       # after this tag, mechanisms are not by side-effect, so they'll
4036       # only be used when explicitly requested
4037       if test "x$enable_dependency_tracking" = xyes; then
4038         continue
4039       else
4040         break
4041       fi
4042       ;;
4043     msvisualcpp | msvcmsys)
4044       # This compiler won't grok `-c -o', but also, the minuso test has
4045       # not run yet.  These depmodes are late enough in the game, and
4046       # so weak that their functioning should not be impacted.
4047       am__obj=conftest.${OBJEXT-o}
4048       am__minus_obj=
4049       ;;
4050     none) break ;;
4051     esac
4052     if depmode=$depmode \
4053        source=sub/conftest.c object=$am__obj \
4054        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4055        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4056          >/dev/null 2>conftest.err &&
4057        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4058        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4059        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4060        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4061       # icc doesn't choke on unknown options, it will just issue warnings
4062       # or remarks (even with -Werror).  So we grep stderr for any message
4063       # that says an option was ignored or not supported.
4064       # When given -MP, icc 7.0 and 7.1 complain thusly:
4065       #   icc: Command line warning: ignoring option '-M'; no argument required
4066       # The diagnosis changed in icc 8.0:
4067       #   icc: Command line remark: option '-MP' not supported
4068       if (grep 'ignoring option' conftest.err ||
4069           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4070         am_cv_CC_dependencies_compiler_type=$depmode
4071         break
4072       fi
4073     fi
4074   done
4075
4076   cd ..
4077   rm -rf conftest.dir
4078 else
4079   am_cv_CC_dependencies_compiler_type=none
4080 fi
4081
4082 fi
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4084 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4085 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4086
4087  if
4088   test "x$enable_dependency_tracking" != xno \
4089   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4090   am__fastdepCC_TRUE=
4091   am__fastdepCC_FALSE='#'
4092 else
4093   am__fastdepCC_TRUE='#'
4094   am__fastdepCC_FALSE=
4095 fi
4096
4097
4098 ac_ext=go
4099 ac_compile='$GOC -c $GOCFLAGS conftest.$ac_ext >&5'
4100 ac_link='$GOC -o conftest$ac_exeext $GOCFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compile_gnu=yes
4102 if test -n "$ac_tool_prefix"; then
4103   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4104 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106 $as_echo_n "checking for $ac_word... " >&6; }
4107 if test "${ac_cv_prog_GOC+set}" = set; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -n "$GOC"; then
4111   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4112 else
4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118     for ac_exec_ext in '' $ac_executable_extensions; do
4119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4120     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
4121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125   done
4126 IFS=$as_save_IFS
4127
4128 fi
4129 fi
4130 GOC=$ac_cv_prog_GOC
4131 if test -n "$GOC"; then
4132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4133 $as_echo "$GOC" >&6; }
4134 else
4135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136 $as_echo "no" >&6; }
4137 fi
4138
4139
4140 fi
4141 if test -z "$ac_cv_prog_GOC"; then
4142   ac_ct_GOC=$GOC
4143   # Extract the first word of "gccgo", so it can be a program name with args.
4144 set dummy gccgo; ac_word=$2
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4146 $as_echo_n "checking for $ac_word... " >&6; }
4147 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
4148   $as_echo_n "(cached) " >&6
4149 else
4150   if test -n "$ac_ct_GOC"; then
4151   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
4152 else
4153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158     for ac_exec_ext in '' $ac_executable_extensions; do
4159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4160     ac_cv_prog_ac_ct_GOC="gccgo"
4161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165   done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
4171 if test -n "$ac_ct_GOC"; then
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
4173 $as_echo "$ac_ct_GOC" >&6; }
4174 else
4175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 fi
4178
4179   if test "x$ac_ct_GOC" = x; then
4180     GOC=""
4181   else
4182     case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     GOC=$ac_ct_GOC
4189   fi
4190 else
4191   GOC="$ac_cv_prog_GOC"
4192 fi
4193
4194 if test -z "$GOC"; then
4195   if test -n "$ac_tool_prefix"; then
4196     # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
4197 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if test "${ac_cv_prog_GOC+set}" = set; then :
4201   $as_echo_n "(cached) " >&6
4202 else
4203   if test -n "$GOC"; then
4204   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4205 else
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211     for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_prog_GOC="$ac_tool_prefix}gccgo"
4214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218   done
4219 IFS=$as_save_IFS
4220
4221 fi
4222 fi
4223 GOC=$ac_cv_prog_GOC
4224 if test -n "$GOC"; then
4225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4226 $as_echo "$GOC" >&6; }
4227 else
4228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4230 fi
4231
4232
4233   fi
4234 fi
4235 if test -z "$GOC"; then
4236   # Extract the first word of "gccgo", so it can be a program name with args.
4237 set dummy gccgo; ac_word=$2
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4239 $as_echo_n "checking for $ac_word... " >&6; }
4240 if test "${ac_cv_prog_GOC+set}" = set; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   if test -n "$GOC"; then
4244   ac_cv_prog_GOC="$GOC" # Let the user override the test.
4245 else
4246   ac_prog_rejected=no
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252     for ac_exec_ext in '' $ac_executable_extensions; do
4253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254     if test "$as_dir/$ac_word$ac_exec_ext" = "gccgo"; then
4255        ac_prog_rejected=yes
4256        continue
4257      fi
4258     ac_cv_prog_GOC="gccgo"
4259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263   done
4264 IFS=$as_save_IFS
4265
4266 if test $ac_prog_rejected = yes; then
4267   # We found a bogon in the path, so make sure we never use it.
4268   set dummy $ac_cv_prog_GOC
4269   shift
4270   if test $# != 0; then
4271     # We chose a different compiler from the bogus one.
4272     # However, it has the same basename, so the bogon will be chosen
4273     # first if we set GOC to just the basename; use the full file name.
4274     shift
4275     ac_cv_prog_GOC="$as_dir/$ac_word${1+' '}$@"
4276   fi
4277 fi
4278 fi
4279 fi
4280 GOC=$ac_cv_prog_GOC
4281 if test -n "$GOC"; then
4282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
4283 $as_echo "$GOC" >&6; }
4284 else
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289
4290 fi
4291
4292
4293 # Provide some information about the compiler.
4294 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Go compiler version" >&5
4295 set X $ac_compile
4296 ac_compiler=$2
4297 { { ac_try="$ac_compiler --version >&5"
4298 case "(($ac_try" in
4299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300   *) ac_try_echo=$ac_try;;
4301 esac
4302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4303 $as_echo "$ac_try_echo"; } >&5
4304   (eval "$ac_compiler --version >&5") 2>conftest.err
4305   ac_status=$?
4306   if test -s conftest.err; then
4307     sed '10a\
4308 ... rest of stderr output deleted ...
4309          10q' conftest.err >conftest.er1
4310     cat conftest.er1 >&5
4311     rm -f conftest.er1 conftest.err
4312   fi
4313   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314   test $ac_status = 0; }
4315 GOCFLAGS="-g -O2"
4316 ac_ext=c
4317 ac_cpp='$CPP $CPPFLAGS'
4318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321
4322
4323
4324
4325
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4328 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4329     # Check whether --enable-maintainer-mode was given.
4330 if test "${enable_maintainer_mode+set}" = set; then :
4331   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4332 else
4333   USE_MAINTAINER_MODE=no
4334 fi
4335
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4337 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4338    if test $USE_MAINTAINER_MODE = yes; then
4339   MAINTAINER_MODE_TRUE=
4340   MAINTAINER_MODE_FALSE='#'
4341 else
4342   MAINTAINER_MODE_TRUE='#'
4343   MAINTAINER_MODE_FALSE=
4344 fi
4345
4346   MAINT=$MAINTAINER_MODE_TRUE
4347
4348
4349
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360   CPP=
4361 fi
4362 if test -z "$CPP"; then
4363   if test "${ac_cv_prog_CPP+set}" = set; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366       # Double quotes because CPP needs to be expanded
4367     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368     do
4369       ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372   # Use a header file that comes with gcc, so configuring glibc
4373   # with a fresh cross-compiler works.
4374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375   # <limits.h> exists even on freestanding compilers.
4376   # On the NeXT, cc -E runs the code through the compiler's parser,
4377   # not just through cpp. "Syntax error" is here to catch this case.
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380 #ifdef __STDC__
4381 # include <limits.h>
4382 #else
4383 # include <assert.h>
4384 #endif
4385                      Syntax error
4386 _ACEOF
4387 if ac_fn_c_try_cpp "$LINENO"; then :
4388
4389 else
4390   # Broken: fails on valid input.
4391 continue
4392 fi
4393 rm -f conftest.err conftest.$ac_ext
4394
4395   # OK, works on sane cases.  Now check whether nonexistent headers
4396   # can be detected and how.
4397   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398 /* end confdefs.h.  */
4399 #include <ac_nonexistent.h>
4400 _ACEOF
4401 if ac_fn_c_try_cpp "$LINENO"; then :
4402   # Broken: success on invalid input.
4403 continue
4404 else
4405   # Passes both tests.
4406 ac_preproc_ok=:
4407 break
4408 fi
4409 rm -f conftest.err conftest.$ac_ext
4410
4411 done
4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4413 rm -f conftest.err conftest.$ac_ext
4414 if $ac_preproc_ok; then :
4415   break
4416 fi
4417
4418     done
4419     ac_cv_prog_CPP=$CPP
4420
4421 fi
4422   CPP=$ac_cv_prog_CPP
4423 else
4424   ac_cv_prog_CPP=$CPP
4425 fi
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4427 $as_echo "$CPP" >&6; }
4428 ac_preproc_ok=false
4429 for ac_c_preproc_warn_flag in '' yes
4430 do
4431   # Use a header file that comes with gcc, so configuring glibc
4432   # with a fresh cross-compiler works.
4433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4434   # <limits.h> exists even on freestanding compilers.
4435   # On the NeXT, cc -E runs the code through the compiler's parser,
4436   # not just through cpp. "Syntax error" is here to catch this case.
4437   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h.  */
4439 #ifdef __STDC__
4440 # include <limits.h>
4441 #else
4442 # include <assert.h>
4443 #endif
4444                      Syntax error
4445 _ACEOF
4446 if ac_fn_c_try_cpp "$LINENO"; then :
4447
4448 else
4449   # Broken: fails on valid input.
4450 continue
4451 fi
4452 rm -f conftest.err conftest.$ac_ext
4453
4454   # OK, works on sane cases.  Now check whether nonexistent headers
4455   # can be detected and how.
4456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458 #include <ac_nonexistent.h>
4459 _ACEOF
4460 if ac_fn_c_try_cpp "$LINENO"; then :
4461   # Broken: success on invalid input.
4462 continue
4463 else
4464   # Passes both tests.
4465 ac_preproc_ok=:
4466 break
4467 fi
4468 rm -f conftest.err conftest.$ac_ext
4469
4470 done
4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4472 rm -f conftest.err conftest.$ac_ext
4473 if $ac_preproc_ok; then :
4474
4475 else
4476   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4478 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4479 See \`config.log' for more details." "$LINENO" 5; }
4480 fi
4481
4482 ac_ext=c
4483 ac_cpp='$CPP $CPPFLAGS'
4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4491 if test "${ac_cv_path_GREP+set}" = set; then :
4492   $as_echo_n "(cached) " >&6
4493 else
4494   if test -z "$GREP"; then
4495   ac_path_GREP_found=false
4496   # Loop through the user's path and test for each of PROGNAME-LIST
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_prog in grep ggrep; do
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4505       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4506 # Check for GNU ac_path_GREP and select it if it is found.
4507   # Check for GNU $ac_path_GREP
4508 case `"$ac_path_GREP" --version 2>&1` in
4509 *GNU*)
4510   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4511 *)
4512   ac_count=0
4513   $as_echo_n 0123456789 >"conftest.in"
4514   while :
4515   do
4516     cat "conftest.in" "conftest.in" >"conftest.tmp"
4517     mv "conftest.tmp" "conftest.in"
4518     cp "conftest.in" "conftest.nl"
4519     $as_echo 'GREP' >> "conftest.nl"
4520     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522     as_fn_arith $ac_count + 1 && ac_count=$as_val
4523     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4524       # Best one so far, save it but keep looking for a better one
4525       ac_cv_path_GREP="$ac_path_GREP"
4526       ac_path_GREP_max=$ac_count
4527     fi
4528     # 10*(2^10) chars as input seems more than enough
4529     test $ac_count -gt 10 && break
4530   done
4531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534       $ac_path_GREP_found && break 3
4535     done
4536   done
4537   done
4538 IFS=$as_save_IFS
4539   if test -z "$ac_cv_path_GREP"; then
4540     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4541   fi
4542 else
4543   ac_cv_path_GREP=$GREP
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4548 $as_echo "$ac_cv_path_GREP" >&6; }
4549  GREP="$ac_cv_path_GREP"
4550
4551
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4553 $as_echo_n "checking for egrep... " >&6; }
4554 if test "${ac_cv_path_EGREP+set}" = set; then :
4555   $as_echo_n "(cached) " >&6
4556 else
4557   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4558    then ac_cv_path_EGREP="$GREP -E"
4559    else
4560      if test -z "$EGREP"; then
4561   ac_path_EGREP_found=false
4562   # Loop through the user's path and test for each of PROGNAME-LIST
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568     for ac_prog in egrep; do
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4571       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4572 # Check for GNU ac_path_EGREP and select it if it is found.
4573   # Check for GNU $ac_path_EGREP
4574 case `"$ac_path_EGREP" --version 2>&1` in
4575 *GNU*)
4576   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4577 *)
4578   ac_count=0
4579   $as_echo_n 0123456789 >"conftest.in"
4580   while :
4581   do
4582     cat "conftest.in" "conftest.in" >"conftest.tmp"
4583     mv "conftest.tmp" "conftest.in"
4584     cp "conftest.in" "conftest.nl"
4585     $as_echo 'EGREP' >> "conftest.nl"
4586     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4587     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4588     as_fn_arith $ac_count + 1 && ac_count=$as_val
4589     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4590       # Best one so far, save it but keep looking for a better one
4591       ac_cv_path_EGREP="$ac_path_EGREP"
4592       ac_path_EGREP_max=$ac_count
4593     fi
4594     # 10*(2^10) chars as input seems more than enough
4595     test $ac_count -gt 10 && break
4596   done
4597   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4598 esac
4599
4600       $ac_path_EGREP_found && break 3
4601     done
4602   done
4603   done
4604 IFS=$as_save_IFS
4605   if test -z "$ac_cv_path_EGREP"; then
4606     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4607   fi
4608 else
4609   ac_cv_path_EGREP=$EGREP
4610 fi
4611
4612    fi
4613 fi
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4615 $as_echo "$ac_cv_path_EGREP" >&6; }
4616  EGREP="$ac_cv_path_EGREP"
4617
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4620 $as_echo_n "checking for ANSI C header files... " >&6; }
4621 if test "${ac_cv_header_stdc+set}" = set; then :
4622   $as_echo_n "(cached) " >&6
4623 else
4624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626 #include <stdlib.h>
4627 #include <stdarg.h>
4628 #include <string.h>
4629 #include <float.h>
4630
4631 int
4632 main ()
4633 {
4634
4635   ;
4636   return 0;
4637 }
4638 _ACEOF
4639 if ac_fn_c_try_compile "$LINENO"; then :
4640   ac_cv_header_stdc=yes
4641 else
4642   ac_cv_header_stdc=no
4643 fi
4644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645
4646 if test $ac_cv_header_stdc = yes; then
4647   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649 /* end confdefs.h.  */
4650 #include <string.h>
4651
4652 _ACEOF
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654   $EGREP "memchr" >/dev/null 2>&1; then :
4655
4656 else
4657   ac_cv_header_stdc=no
4658 fi
4659 rm -f conftest*
4660
4661 fi
4662
4663 if test $ac_cv_header_stdc = yes; then
4664   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666 /* end confdefs.h.  */
4667 #include <stdlib.h>
4668
4669 _ACEOF
4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4671   $EGREP "free" >/dev/null 2>&1; then :
4672
4673 else
4674   ac_cv_header_stdc=no
4675 fi
4676 rm -f conftest*
4677
4678 fi
4679
4680 if test $ac_cv_header_stdc = yes; then
4681   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4682   if test "$cross_compiling" = yes; then :
4683   :
4684 else
4685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h.  */
4687 #include <ctype.h>
4688 #include <stdlib.h>
4689 #if ((' ' & 0x0FF) == 0x020)
4690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4692 #else
4693 # define ISLOWER(c) \
4694                    (('a' <= (c) && (c) <= 'i') \
4695                      || ('j' <= (c) && (c) <= 'r') \
4696                      || ('s' <= (c) && (c) <= 'z'))
4697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4698 #endif
4699
4700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4701 int
4702 main ()
4703 {
4704   int i;
4705   for (i = 0; i < 256; i++)
4706     if (XOR (islower (i), ISLOWER (i))
4707         || toupper (i) != TOUPPER (i))
4708       return 2;
4709   return 0;
4710 }
4711 _ACEOF
4712 if ac_fn_c_try_run "$LINENO"; then :
4713
4714 else
4715   ac_cv_header_stdc=no
4716 fi
4717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4718   conftest.$ac_objext conftest.beam conftest.$ac_ext
4719 fi
4720
4721 fi
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4724 $as_echo "$ac_cv_header_stdc" >&6; }
4725 if test $ac_cv_header_stdc = yes; then
4726
4727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4728
4729 fi
4730
4731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4733                   inttypes.h stdint.h unistd.h
4734 do :
4735   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4737 "
4738 eval as_val=\$$as_ac_Header
4739    if test "x$as_val" = x""yes; then :
4740   cat >>confdefs.h <<_ACEOF
4741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4742 _ACEOF
4743
4744 fi
4745
4746 done
4747
4748
4749 $ac_includes_default
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4752 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4753 if test "${ac_cv_path_SED+set}" = set; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4757      for ac_i in 1 2 3 4 5 6 7; do
4758        ac_script="$ac_script$as_nl$ac_script"
4759      done
4760      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4761      { ac_script=; unset ac_script;}
4762      if test -z "$SED"; then
4763   ac_path_SED_found=false
4764   # Loop through the user's path and test for each of PROGNAME-LIST
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770     for ac_prog in sed gsed; do
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4773       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4774 # Check for GNU ac_path_SED and select it if it is found.
4775   # Check for GNU $ac_path_SED
4776 case `"$ac_path_SED" --version 2>&1` in
4777 *GNU*)
4778   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4779 *)
4780   ac_count=0
4781   $as_echo_n 0123456789 >"conftest.in"
4782   while :
4783   do
4784     cat "conftest.in" "conftest.in" >"conftest.tmp"
4785     mv "conftest.tmp" "conftest.in"
4786     cp "conftest.in" "conftest.nl"
4787     $as_echo '' >> "conftest.nl"
4788     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790     as_fn_arith $ac_count + 1 && ac_count=$as_val
4791     if test $ac_count -gt ${ac_path_SED_max-0}; then
4792       # Best one so far, save it but keep looking for a better one
4793       ac_cv_path_SED="$ac_path_SED"
4794       ac_path_SED_max=$ac_count
4795     fi
4796     # 10*(2^10) chars as input seems more than enough
4797     test $ac_count -gt 10 && break
4798   done
4799   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 esac
4801
4802       $ac_path_SED_found && break 3
4803     done
4804   done
4805   done
4806 IFS=$as_save_IFS
4807   if test -z "$ac_cv_path_SED"; then
4808     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4809   fi
4810 else
4811   ac_cv_path_SED=$SED
4812 fi
4813
4814 fi
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4816 $as_echo "$ac_cv_path_SED" >&6; }
4817  SED="$ac_cv_path_SED"
4818   rm -f conftest.sed
4819
4820 test -z "$SED" && SED=sed
4821 Xsed="$SED -e 1s/^X//"
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4834 $as_echo_n "checking for fgrep... " >&6; }
4835 if test "${ac_cv_path_FGREP+set}" = set; then :
4836   $as_echo_n "(cached) " >&6
4837 else
4838   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4839    then ac_cv_path_FGREP="$GREP -F"
4840    else
4841      if test -z "$FGREP"; then
4842   ac_path_FGREP_found=false
4843   # Loop through the user's path and test for each of PROGNAME-LIST
4844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849     for ac_prog in fgrep; do
4850     for ac_exec_ext in '' $ac_executable_extensions; do
4851       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4852       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4853 # Check for GNU ac_path_FGREP and select it if it is found.
4854   # Check for GNU $ac_path_FGREP
4855 case `"$ac_path_FGREP" --version 2>&1` in
4856 *GNU*)
4857   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4858 *)
4859   ac_count=0
4860   $as_echo_n 0123456789 >"conftest.in"
4861   while :
4862   do
4863     cat "conftest.in" "conftest.in" >"conftest.tmp"
4864     mv "conftest.tmp" "conftest.in"
4865     cp "conftest.in" "conftest.nl"
4866     $as_echo 'FGREP' >> "conftest.nl"
4867     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4868     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4869     as_fn_arith $ac_count + 1 && ac_count=$as_val
4870     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4871       # Best one so far, save it but keep looking for a better one
4872       ac_cv_path_FGREP="$ac_path_FGREP"
4873       ac_path_FGREP_max=$ac_count
4874     fi
4875     # 10*(2^10) chars as input seems more than enough
4876     test $ac_count -gt 10 && break
4877   done
4878   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879 esac
4880
4881       $ac_path_FGREP_found && break 3
4882     done
4883   done
4884   done
4885 IFS=$as_save_IFS
4886   if test -z "$ac_cv_path_FGREP"; then
4887     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888   fi
4889 else
4890   ac_cv_path_FGREP=$FGREP
4891 fi
4892
4893    fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4896 $as_echo "$ac_cv_path_FGREP" >&6; }
4897  FGREP="$ac_cv_path_FGREP"
4898
4899
4900 test -z "$GREP" && GREP=grep
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4919 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4920 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4923 $as_echo_n "checking how to print strings... " >&6; }
4924 # Test print first, because it will be a builtin if present.
4925 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4926    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4927   ECHO='print -r --'
4928 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4929   ECHO='printf %s\n'
4930 else
4931   # Use this function as a fallback that always works.
4932   func_fallback_echo ()
4933   {
4934     eval 'cat <<_LTECHO_EOF
4935 $1
4936 _LTECHO_EOF'
4937   }
4938   ECHO='func_fallback_echo'
4939 fi
4940
4941 # func_echo_all arg...
4942 # Invoke $ECHO with all args, space-separated.
4943 func_echo_all ()
4944 {
4945     $ECHO ""
4946 }
4947
4948 case "$ECHO" in
4949   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4950 $as_echo "printf" >&6; } ;;
4951   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4952 $as_echo "print -r" >&6; } ;;
4953   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4954 $as_echo "cat" >&6; } ;;
4955 esac
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972 # Check whether --with-gnu-ld was given.
4973 if test "${with_gnu_ld+set}" = set; then :
4974   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4975 else
4976   with_gnu_ld=no
4977 fi
4978
4979 ac_prog=ld
4980 if test "$GCC" = yes; then
4981   # Check if gcc -print-prog-name=ld gives a path.
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4983 $as_echo_n "checking for ld used by $CC... " >&6; }
4984   case $host in
4985   *-*-mingw*)
4986     # gcc leaves a trailing carriage return which upsets mingw
4987     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4988   *)
4989     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4990   esac
4991   case $ac_prog in
4992     # Accept absolute paths.
4993     [\\/]* | ?:[\\/]*)
4994       re_direlt='/[^/][^/]*/\.\./'
4995       # Canonicalize the pathname of ld
4996       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4997       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4998         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4999       done
5000       test -z "$LD" && LD="$ac_prog"
5001       ;;
5002   "")
5003     # If it fails, then pretend we aren't using GCC.
5004     ac_prog=ld
5005     ;;
5006   *)
5007     # If it is relative, then search for the first ld in PATH.
5008     with_gnu_ld=unknown
5009     ;;
5010   esac
5011 elif test "$with_gnu_ld" = yes; then
5012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5013 $as_echo_n "checking for GNU ld... " >&6; }
5014 else
5015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5016 $as_echo_n "checking for non-GNU ld... " >&6; }
5017 fi
5018 if test "${lt_cv_path_LD+set}" = set; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   if test -z "$LD"; then
5022   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023   for ac_dir in $PATH; do
5024     IFS="$lt_save_ifs"
5025     test -z "$ac_dir" && ac_dir=.
5026     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5027       lt_cv_path_LD="$ac_dir/$ac_prog"
5028       # Check to see if the program is GNU ld.  I'd rather use --version,
5029       # but apparently some variants of GNU ld only accept -v.
5030       # Break only if it was the GNU/non-GNU ld that we prefer.
5031       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5032       *GNU* | *'with BFD'*)
5033         test "$with_gnu_ld" != no && break
5034         ;;
5035       *)
5036         test "$with_gnu_ld" != yes && break
5037         ;;
5038       esac
5039     fi
5040   done
5041   IFS="$lt_save_ifs"
5042 else
5043   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5044 fi
5045 fi
5046
5047 LD="$lt_cv_path_LD"
5048 if test -n "$LD"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5050 $as_echo "$LD" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5058 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5062 case `$LD -v 2>&1 </dev/null` in
5063 *GNU* | *'with BFD'*)
5064   lt_cv_prog_gnu_ld=yes
5065   ;;
5066 *)
5067   lt_cv_prog_gnu_ld=no
5068   ;;
5069 esac
5070 fi
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5073 with_gnu_ld=$lt_cv_prog_gnu_ld
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083 if test -n "$ac_tool_prefix"; then
5084   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5085 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5089   $as_echo_n "(cached) " >&6
5090 else
5091   if test -n "$RANLIB"; then
5092   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5096 do
5097   IFS=$as_save_IFS
5098   test -z "$as_dir" && as_dir=.
5099     for ac_exec_ext in '' $ac_executable_extensions; do
5100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103     break 2
5104   fi
5105 done
5106   done
5107 IFS=$as_save_IFS
5108
5109 fi
5110 fi
5111 RANLIB=$ac_cv_prog_RANLIB
5112 if test -n "$RANLIB"; then
5113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5114 $as_echo "$RANLIB" >&6; }
5115 else
5116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5118 fi
5119
5120
5121 fi
5122 if test -z "$ac_cv_prog_RANLIB"; then
5123   ac_ct_RANLIB=$RANLIB
5124   # Extract the first word of "ranlib", so it can be a program name with args.
5125 set dummy ranlib; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5129   $as_echo_n "(cached) " >&6
5130 else
5131   if test -n "$ac_ct_RANLIB"; then
5132   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_prog_ac_ct_RANLIB="ranlib"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5152 if test -n "$ac_ct_RANLIB"; then
5153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5154 $as_echo "$ac_ct_RANLIB" >&6; }
5155 else
5156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160   if test "x$ac_ct_RANLIB" = x; then
5161     RANLIB=":"
5162   else
5163     case $cross_compiling:$ac_tool_warned in
5164 yes:)
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5168 esac
5169     RANLIB=$ac_ct_RANLIB
5170   fi
5171 else
5172   RANLIB="$ac_cv_prog_RANLIB"
5173 fi
5174
5175 if test -n "$ac_tool_prefix"; then
5176   # Extract the first word of "${ac_tool_prefix}objcopy", so it can be a program name with args.
5177 set dummy ${ac_tool_prefix}objcopy; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -n "$OBJCOPY"; then
5184   ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193     ac_cv_prog_OBJCOPY="${ac_tool_prefix}objcopy"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 OBJCOPY=$ac_cv_prog_OBJCOPY
5204 if test -n "$OBJCOPY"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
5206 $as_echo "$OBJCOPY" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213 fi
5214 if test -z "$ac_cv_prog_OBJCOPY"; then
5215   ac_ct_OBJCOPY=$OBJCOPY
5216   # Extract the first word of "objcopy", so it can be a program name with args.
5217 set dummy objcopy; ac_word=$2
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5219 $as_echo_n "checking for $ac_word... " >&6; }
5220 if test "${ac_cv_prog_ac_ct_OBJCOPY+set}" = set; then :
5221   $as_echo_n "(cached) " >&6
5222 else
5223   if test -n "$ac_ct_OBJCOPY"; then
5224   ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test.
5225 else
5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5227 for as_dir in $PATH
5228 do
5229   IFS=$as_save_IFS
5230   test -z "$as_dir" && as_dir=.
5231     for ac_exec_ext in '' $ac_executable_extensions; do
5232   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5233     ac_cv_prog_ac_ct_OBJCOPY="objcopy"
5234     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5235     break 2
5236   fi
5237 done
5238   done
5239 IFS=$as_save_IFS
5240
5241 fi
5242 fi
5243 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY
5244 if test -n "$ac_ct_OBJCOPY"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5
5246 $as_echo "$ac_ct_OBJCOPY" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252   if test "x$ac_ct_OBJCOPY" = x; then
5253     OBJCOPY="missing-objcopy"
5254   else
5255     case $cross_compiling:$ac_tool_warned in
5256 yes:)
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5259 ac_tool_warned=yes ;;
5260 esac
5261     OBJCOPY=$ac_ct_OBJCOPY
5262   fi
5263 else
5264   OBJCOPY="$ac_cv_prog_OBJCOPY"
5265 fi
5266
5267
5268 enable_dlopen=yes
5269
5270
5271
5272 case `pwd` in
5273   *\ * | *\     *)
5274     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5275 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5276 esac
5277
5278
5279
5280 macro_version='2.2.7a'
5281 macro_revision='1.3134'
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295 ltmain="$ac_aux_dir/ltmain.sh"
5296
5297 # Backslashify metacharacters that are still active within
5298 # double-quoted strings.
5299 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5300
5301 # Same as above, but do not quote variable references.
5302 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5303
5304 # Sed substitution to delay expansion of an escaped shell variable in a
5305 # double_quote_subst'ed string.
5306 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5307
5308 # Sed substitution to delay expansion of an escaped single quote.
5309 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5310
5311 # Sed substitution to avoid accidental globbing in evaled expressions
5312 no_glob_subst='s/\*/\\\*/g'
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5315 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5316 if test "${lt_cv_path_NM+set}" = set; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if test -n "$NM"; then
5320   # Let the user override the test.
5321   lt_cv_path_NM="$NM"
5322 else
5323   lt_nm_to_check="${ac_tool_prefix}nm"
5324   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5325     lt_nm_to_check="$lt_nm_to_check nm"
5326   fi
5327   for lt_tmp_nm in $lt_nm_to_check; do
5328     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5329     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5330       IFS="$lt_save_ifs"
5331       test -z "$ac_dir" && ac_dir=.
5332       tmp_nm="$ac_dir/$lt_tmp_nm"
5333       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5334         # Check to see if the nm accepts a BSD-compat flag.
5335         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5336         #   nm: unknown option "B" ignored
5337         # Tru64's nm complains that /dev/null is an invalid object file
5338         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5339         */dev/null* | *'Invalid file or object type'*)
5340           lt_cv_path_NM="$tmp_nm -B"
5341           break
5342           ;;
5343         *)
5344           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5345           */dev/null*)
5346             lt_cv_path_NM="$tmp_nm -p"
5347             break
5348             ;;
5349           *)
5350             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5351             continue # so that we can try to find one that supports BSD flags
5352             ;;
5353           esac
5354           ;;
5355         esac
5356       fi
5357     done
5358     IFS="$lt_save_ifs"
5359   done
5360   : ${lt_cv_path_NM=no}
5361 fi
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5364 $as_echo "$lt_cv_path_NM" >&6; }
5365 if test "$lt_cv_path_NM" != "no"; then
5366   NM="$lt_cv_path_NM"
5367 else
5368   # Didn't find any BSD compatible name lister, look for dumpbin.
5369   if test -n "$DUMPBIN"; then :
5370     # Let the user override the test.
5371   else
5372     if test -n "$ac_tool_prefix"; then
5373   for ac_prog in dumpbin "link -dump"
5374   do
5375     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5376 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5380   $as_echo_n "(cached) " >&6
5381 else
5382   if test -n "$DUMPBIN"; then
5383   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5384 else
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399
5400 fi
5401 fi
5402 DUMPBIN=$ac_cv_prog_DUMPBIN
5403 if test -n "$DUMPBIN"; then
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5405 $as_echo "$DUMPBIN" >&6; }
5406 else
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409 fi
5410
5411
5412     test -n "$DUMPBIN" && break
5413   done
5414 fi
5415 if test -z "$DUMPBIN"; then
5416   ac_ct_DUMPBIN=$DUMPBIN
5417   for ac_prog in dumpbin "link -dump"
5418 do
5419   # Extract the first word of "$ac_prog", so it can be a program name with args.
5420 set dummy $ac_prog; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5424   $as_echo_n "(cached) " >&6
5425 else
5426   if test -n "$ac_ct_DUMPBIN"; then
5427   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444 fi
5445 fi
5446 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5447 if test -n "$ac_ct_DUMPBIN"; then
5448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5449 $as_echo "$ac_ct_DUMPBIN" >&6; }
5450 else
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456   test -n "$ac_ct_DUMPBIN" && break
5457 done
5458
5459   if test "x$ac_ct_DUMPBIN" = x; then
5460     DUMPBIN=":"
5461   else
5462     case $cross_compiling:$ac_tool_warned in
5463 yes:)
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5465 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5466 ac_tool_warned=yes ;;
5467 esac
5468     DUMPBIN=$ac_ct_DUMPBIN
5469   fi
5470 fi
5471
5472     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5473     *COFF*)
5474       DUMPBIN="$DUMPBIN -symbols"
5475       ;;
5476     *)
5477       DUMPBIN=:
5478       ;;
5479     esac
5480   fi
5481
5482   if test "$DUMPBIN" != ":"; then
5483     NM="$DUMPBIN"
5484   fi
5485 fi
5486 test -z "$NM" && NM=nm
5487
5488
5489
5490
5491
5492
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5494 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5495 if test "${lt_cv_nm_interface+set}" = set; then :
5496   $as_echo_n "(cached) " >&6
5497 else
5498   lt_cv_nm_interface="BSD nm"
5499   echo "int some_variable = 0;" > conftest.$ac_ext
5500   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5501   (eval "$ac_compile" 2>conftest.err)
5502   cat conftest.err >&5
5503   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5504   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5505   cat conftest.err >&5
5506   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5507   cat conftest.out >&5
5508   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5509     lt_cv_nm_interface="MS dumpbin"
5510   fi
5511   rm -f conftest*
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5514 $as_echo "$lt_cv_nm_interface" >&6; }
5515
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5517 $as_echo_n "checking whether ln -s works... " >&6; }
5518 LN_S=$as_ln_s
5519 if test "$LN_S" = "ln -s"; then
5520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 else
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5524 $as_echo "no, using $LN_S" >&6; }
5525 fi
5526
5527 # find the maximum length of command line arguments
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5529 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5530 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5531   $as_echo_n "(cached) " >&6
5532 else
5533     i=0
5534   teststring="ABCD"
5535
5536   case $build_os in
5537   msdosdjgpp*)
5538     # On DJGPP, this test can blow up pretty badly due to problems in libc
5539     # (any single argument exceeding 2000 bytes causes a buffer overrun
5540     # during glob expansion).  Even if it were fixed, the result of this
5541     # check would be larger than it should be.
5542     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5543     ;;
5544
5545   gnu*)
5546     # Under GNU Hurd, this test is not required because there is
5547     # no limit to the length of command line arguments.
5548     # Libtool will interpret -1 as no limit whatsoever
5549     lt_cv_sys_max_cmd_len=-1;
5550     ;;
5551
5552   cygwin* | mingw* | cegcc*)
5553     # On Win9x/ME, this test blows up -- it succeeds, but takes
5554     # about 5 minutes as the teststring grows exponentially.
5555     # Worse, since 9x/ME are not pre-emptively multitasking,
5556     # you end up with a "frozen" computer, even though with patience
5557     # the test eventually succeeds (with a max line length of 256k).
5558     # Instead, let's just punt: use the minimum linelength reported by
5559     # all of the supported platforms: 8192 (on NT/2K/XP).
5560     lt_cv_sys_max_cmd_len=8192;
5561     ;;
5562
5563   mint*)
5564     # On MiNT this can take a long time and run out of memory.
5565     lt_cv_sys_max_cmd_len=8192;
5566     ;;
5567
5568   amigaos*)
5569     # On AmigaOS with pdksh, this test takes hours, literally.
5570     # So we just punt and use a minimum line length of 8192.
5571     lt_cv_sys_max_cmd_len=8192;
5572     ;;
5573
5574   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5575     # This has been around since 386BSD, at least.  Likely further.
5576     if test -x /sbin/sysctl; then
5577       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5578     elif test -x /usr/sbin/sysctl; then
5579       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5580     else
5581       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5582     fi
5583     # And add a safety zone
5584     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5586     ;;
5587
5588   interix*)
5589     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5590     lt_cv_sys_max_cmd_len=196608
5591     ;;
5592
5593   osf*)
5594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5596     # nice to cause kernel panics so lets avoid the loop below.
5597     # First set a reasonable default.
5598     lt_cv_sys_max_cmd_len=16384
5599     #
5600     if test -x /sbin/sysconfig; then
5601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5603       esac
5604     fi
5605     ;;
5606   sco3.2v5*)
5607     lt_cv_sys_max_cmd_len=102400
5608     ;;
5609   sysv5* | sco5v6* | sysv4.2uw2*)
5610     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5611     if test -n "$kargmax"; then
5612       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5613     else
5614       lt_cv_sys_max_cmd_len=32768
5615     fi
5616     ;;
5617   *)
5618     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5619     if test -n "$lt_cv_sys_max_cmd_len"; then
5620       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5621       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5622     else
5623       # Make teststring a little bigger before we do anything with it.
5624       # a 1K string should be a reasonable start.
5625       for i in 1 2 3 4 5 6 7 8 ; do
5626         teststring=$teststring$teststring
5627       done
5628       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5629       # If test is not a shell built-in, we'll probably end up computing a
5630       # maximum length that is only half of the actual maximum length, but
5631       # we can't tell.
5632       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5633                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5634               test $i != 17 # 1/2 MB should be enough
5635       do
5636         i=`expr $i + 1`
5637         teststring=$teststring$teststring
5638       done
5639       # Only check the string length outside the loop.
5640       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5641       teststring=
5642       # Add a significant safety factor because C++ compilers can tack on
5643       # massive amounts of additional arguments before passing them to the
5644       # linker.  It appears as though 1/2 is a usable value.
5645       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5646     fi
5647     ;;
5648   esac
5649
5650 fi
5651
5652 if test -n $lt_cv_sys_max_cmd_len ; then
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5654 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5655 else
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5657 $as_echo "none" >&6; }
5658 fi
5659 max_cmd_len=$lt_cv_sys_max_cmd_len
5660
5661
5662
5663
5664
5665
5666 : ${CP="cp -f"}
5667 : ${MV="mv -f"}
5668 : ${RM="rm -f"}
5669
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5671 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5672 # Try some XSI features
5673 xsi_shell=no
5674 ( _lt_dummy="a/b/c"
5675   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5676       = c,a/b,, \
5677     && eval 'test $(( 1 + 1 )) -eq 2 \
5678     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5679   && xsi_shell=yes
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5681 $as_echo "$xsi_shell" >&6; }
5682
5683
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5685 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5686 lt_shell_append=no
5687 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5688     >/dev/null 2>&1 \
5689   && lt_shell_append=yes
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5691 $as_echo "$lt_shell_append" >&6; }
5692
5693
5694 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5695   lt_unset=unset
5696 else
5697   lt_unset=false
5698 fi
5699
5700
5701
5702
5703
5704 # test EBCDIC or ASCII
5705 case `echo X|tr X '\101'` in
5706  A) # ASCII based system
5707     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5708   lt_SP2NL='tr \040 \012'
5709   lt_NL2SP='tr \015\012 \040\040'
5710   ;;
5711  *) # EBCDIC based system
5712   lt_SP2NL='tr \100 \n'
5713   lt_NL2SP='tr \r\n \100\100'
5714   ;;
5715 esac
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5726 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5727 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   lt_cv_ld_reload_flag='-r'
5731 fi
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5733 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5734 reload_flag=$lt_cv_ld_reload_flag
5735 case $reload_flag in
5736 "" | " "*) ;;
5737 *) reload_flag=" $reload_flag" ;;
5738 esac
5739 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5740 case $host_os in
5741   darwin*)
5742     if test "$GCC" = yes; then
5743       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5744     else
5745       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5746     fi
5747     ;;
5748 esac
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 if test -n "$ac_tool_prefix"; then
5759   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5760 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$OBJDUMP"; then
5767   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 OBJDUMP=$ac_cv_prog_OBJDUMP
5787 if test -n "$OBJDUMP"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5789 $as_echo "$OBJDUMP" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795
5796 fi
5797 if test -z "$ac_cv_prog_OBJDUMP"; then
5798   ac_ct_OBJDUMP=$OBJDUMP
5799   # Extract the first word of "objdump", so it can be a program name with args.
5800 set dummy objdump; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   if test -n "$ac_ct_OBJDUMP"; then
5807   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5808 else
5809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5810 for as_dir in $PATH
5811 do
5812   IFS=$as_save_IFS
5813   test -z "$as_dir" && as_dir=.
5814     for ac_exec_ext in '' $ac_executable_extensions; do
5815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5816     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818     break 2
5819   fi
5820 done
5821   done
5822 IFS=$as_save_IFS
5823
5824 fi
5825 fi
5826 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5827 if test -n "$ac_ct_OBJDUMP"; then
5828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5829 $as_echo "$ac_ct_OBJDUMP" >&6; }
5830 else
5831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832 $as_echo "no" >&6; }
5833 fi
5834
5835   if test "x$ac_ct_OBJDUMP" = x; then
5836     OBJDUMP="false"
5837   else
5838     case $cross_compiling:$ac_tool_warned in
5839 yes:)
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5842 ac_tool_warned=yes ;;
5843 esac
5844     OBJDUMP=$ac_ct_OBJDUMP
5845   fi
5846 else
5847   OBJDUMP="$ac_cv_prog_OBJDUMP"
5848 fi
5849
5850 test -z "$OBJDUMP" && OBJDUMP=objdump
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5861 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5862 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   lt_cv_file_magic_cmd='$MAGIC_CMD'
5866 lt_cv_file_magic_test_file=
5867 lt_cv_deplibs_check_method='unknown'
5868 # Need to set the preceding variable on all platforms that support
5869 # interlibrary dependencies.
5870 # 'none' -- dependencies not supported.
5871 # `unknown' -- same as none, but documents that we really don't know.
5872 # 'pass_all' -- all dependencies passed with no checks.
5873 # 'test_compile' -- check by making test program.
5874 # 'file_magic [[regex]]' -- check by looking for files in library path
5875 # which responds to the $file_magic_cmd with a given extended regex.
5876 # If you have `file' or equivalent on your system and you're not sure
5877 # whether `pass_all' will *always* work, you probably want this one.
5878
5879 case $host_os in
5880 aix[4-9]*)
5881   lt_cv_deplibs_check_method=pass_all
5882   ;;
5883
5884 beos*)
5885   lt_cv_deplibs_check_method=pass_all
5886   ;;
5887
5888 bsdi[45]*)
5889   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5890   lt_cv_file_magic_cmd='/usr/bin/file -L'
5891   lt_cv_file_magic_test_file=/shlib/libc.so
5892   ;;
5893
5894 cygwin*)
5895   # func_win32_libid is a shell function defined in ltmain.sh
5896   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5897   lt_cv_file_magic_cmd='func_win32_libid'
5898   ;;
5899
5900 mingw* | pw32*)
5901   # Base MSYS/MinGW do not provide the 'file' command needed by
5902   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5903   # unless we find 'file', for example because we are cross-compiling.
5904   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5905   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5906     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5907     lt_cv_file_magic_cmd='func_win32_libid'
5908   else
5909     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5910     lt_cv_file_magic_cmd='$OBJDUMP -f'
5911   fi
5912   ;;
5913
5914 cegcc*)
5915   # use the weaker test based on 'objdump'. See mingw*.
5916   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5917   lt_cv_file_magic_cmd='$OBJDUMP -f'
5918   ;;
5919
5920 darwin* | rhapsody*)
5921   lt_cv_deplibs_check_method=pass_all
5922   ;;
5923
5924 freebsd* | dragonfly*)
5925   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5926     case $host_cpu in
5927     i*86 )
5928       # Not sure whether the presence of OpenBSD here was a mistake.
5929       # Let's accept both of them until this is cleared up.
5930       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5931       lt_cv_file_magic_cmd=/usr/bin/file
5932       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5933       ;;
5934     esac
5935   else
5936     lt_cv_deplibs_check_method=pass_all
5937   fi
5938   ;;
5939
5940 gnu*)
5941   lt_cv_deplibs_check_method=pass_all
5942   ;;
5943
5944 haiku*)
5945   lt_cv_deplibs_check_method=pass_all
5946   ;;
5947
5948 hpux10.20* | hpux11*)
5949   lt_cv_file_magic_cmd=/usr/bin/file
5950   case $host_cpu in
5951   ia64*)
5952     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5953     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5954     ;;
5955   hppa*64*)
5956     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]'
5957     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5958     ;;
5959   *)
5960     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5961     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5962     ;;
5963   esac
5964   ;;
5965
5966 interix[3-9]*)
5967   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5968   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5969   ;;
5970
5971 irix5* | irix6* | nonstopux*)
5972   case $LD in
5973   *-32|*"-32 ") libmagic=32-bit;;
5974   *-n32|*"-n32 ") libmagic=N32;;
5975   *-64|*"-64 ") libmagic=64-bit;;
5976   *) libmagic=never-match;;
5977   esac
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980
5981 # This must be Linux ELF.
5982 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5983   lt_cv_deplibs_check_method=pass_all
5984   ;;
5985
5986 netbsd*)
5987   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5988     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5989   else
5990     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5991   fi
5992   ;;
5993
5994 newos6*)
5995   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5996   lt_cv_file_magic_cmd=/usr/bin/file
5997   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5998   ;;
5999
6000 *nto* | *qnx*)
6001   lt_cv_deplibs_check_method=pass_all
6002   ;;
6003
6004 openbsd*)
6005   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6006     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6007   else
6008     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6009   fi
6010   ;;
6011
6012 osf3* | osf4* | osf5*)
6013   lt_cv_deplibs_check_method=pass_all
6014   ;;
6015
6016 rdos*)
6017   lt_cv_deplibs_check_method=pass_all
6018   ;;
6019
6020 solaris*)
6021   lt_cv_deplibs_check_method=pass_all
6022   ;;
6023
6024 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6025   lt_cv_deplibs_check_method=pass_all
6026   ;;
6027
6028 sysv4 | sysv4.3*)
6029   case $host_vendor in
6030   motorola)
6031     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]'
6032     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6033     ;;
6034   ncr)
6035     lt_cv_deplibs_check_method=pass_all
6036     ;;
6037   sequent)
6038     lt_cv_file_magic_cmd='/bin/file'
6039     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6040     ;;
6041   sni)
6042     lt_cv_file_magic_cmd='/bin/file'
6043     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044     lt_cv_file_magic_test_file=/lib/libc.so
6045     ;;
6046   siemens)
6047     lt_cv_deplibs_check_method=pass_all
6048     ;;
6049   pc)
6050     lt_cv_deplibs_check_method=pass_all
6051     ;;
6052   esac
6053   ;;
6054
6055 tpf*)
6056   lt_cv_deplibs_check_method=pass_all
6057   ;;
6058 esac
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6062 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6063 file_magic_cmd=$lt_cv_file_magic_cmd
6064 deplibs_check_method=$lt_cv_deplibs_check_method
6065 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078 if test -n "$ac_tool_prefix"; then
6079   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6080 set dummy ${ac_tool_prefix}ar; ac_word=$2
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082 $as_echo_n "checking for $ac_word... " >&6; }
6083 if test "${ac_cv_prog_AR+set}" = set; then :
6084   $as_echo_n "(cached) " >&6
6085 else
6086   if test -n "$AR"; then
6087   ac_cv_prog_AR="$AR" # Let the user override the test.
6088 else
6089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090 for as_dir in $PATH
6091 do
6092   IFS=$as_save_IFS
6093   test -z "$as_dir" && as_dir=.
6094     for ac_exec_ext in '' $ac_executable_extensions; do
6095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6096     ac_cv_prog_AR="${ac_tool_prefix}ar"
6097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098     break 2
6099   fi
6100 done
6101   done
6102 IFS=$as_save_IFS
6103
6104 fi
6105 fi
6106 AR=$ac_cv_prog_AR
6107 if test -n "$AR"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6109 $as_echo "$AR" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112 $as_echo "no" >&6; }
6113 fi
6114
6115
6116 fi
6117 if test -z "$ac_cv_prog_AR"; then
6118   ac_ct_AR=$AR
6119   # Extract the first word of "ar", so it can be a program name with args.
6120 set dummy ar; ac_word=$2
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6122 $as_echo_n "checking for $ac_word... " >&6; }
6123 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6124   $as_echo_n "(cached) " >&6
6125 else
6126   if test -n "$ac_ct_AR"; then
6127   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6128 else
6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6136     ac_cv_prog_ac_ct_AR="ar"
6137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6138     break 2
6139   fi
6140 done
6141   done
6142 IFS=$as_save_IFS
6143
6144 fi
6145 fi
6146 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6147 if test -n "$ac_ct_AR"; then
6148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6149 $as_echo "$ac_ct_AR" >&6; }
6150 else
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 fi
6154
6155   if test "x$ac_ct_AR" = x; then
6156     AR="false"
6157   else
6158     case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164     AR=$ac_ct_AR
6165   fi
6166 else
6167   AR="$ac_cv_prog_AR"
6168 fi
6169
6170 test -z "$AR" && AR=ar
6171 test -z "$AR_FLAGS" && AR_FLAGS=cru
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 if test -n "$ac_tool_prefix"; then
6184   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6185 set dummy ${ac_tool_prefix}strip; ac_word=$2
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 $as_echo_n "checking for $ac_word... " >&6; }
6188 if test "${ac_cv_prog_STRIP+set}" = set; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   if test -n "$STRIP"; then
6192   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6193 else
6194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195 for as_dir in $PATH
6196 do
6197   IFS=$as_save_IFS
6198   test -z "$as_dir" && as_dir=.
6199     for ac_exec_ext in '' $ac_executable_extensions; do
6200   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6201     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203     break 2
6204   fi
6205 done
6206   done
6207 IFS=$as_save_IFS
6208
6209 fi
6210 fi
6211 STRIP=$ac_cv_prog_STRIP
6212 if test -n "$STRIP"; then
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6214 $as_echo "$STRIP" >&6; }
6215 else
6216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 $as_echo "no" >&6; }
6218 fi
6219
6220
6221 fi
6222 if test -z "$ac_cv_prog_STRIP"; then
6223   ac_ct_STRIP=$STRIP
6224   # Extract the first word of "strip", so it can be a program name with args.
6225 set dummy strip; ac_word=$2
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6227 $as_echo_n "checking for $ac_word... " >&6; }
6228 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6229   $as_echo_n "(cached) " >&6
6230 else
6231   if test -n "$ac_ct_STRIP"; then
6232   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6233 else
6234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239     for ac_exec_ext in '' $ac_executable_extensions; do
6240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6241     ac_cv_prog_ac_ct_STRIP="strip"
6242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246   done
6247 IFS=$as_save_IFS
6248
6249 fi
6250 fi
6251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6252 if test -n "$ac_ct_STRIP"; then
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6254 $as_echo "$ac_ct_STRIP" >&6; }
6255 else
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6257 $as_echo "no" >&6; }
6258 fi
6259
6260   if test "x$ac_ct_STRIP" = x; then
6261     STRIP=":"
6262   else
6263     case $cross_compiling:$ac_tool_warned in
6264 yes:)
6265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6267 ac_tool_warned=yes ;;
6268 esac
6269     STRIP=$ac_ct_STRIP
6270   fi
6271 else
6272   STRIP="$ac_cv_prog_STRIP"
6273 fi
6274
6275 test -z "$STRIP" && STRIP=:
6276
6277
6278
6279
6280
6281
6282 if test -n "$ac_tool_prefix"; then
6283   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$RANLIB"; then
6291   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 RANLIB=$ac_cv_prog_RANLIB
6311 if test -n "$RANLIB"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6313 $as_echo "$RANLIB" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319
6320 fi
6321 if test -z "$ac_cv_prog_RANLIB"; then
6322   ac_ct_RANLIB=$RANLIB
6323   # Extract the first word of "ranlib", so it can be a program name with args.
6324 set dummy ranlib; ac_word=$2
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6326 $as_echo_n "checking for $ac_word... " >&6; }
6327 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   if test -n "$ac_ct_RANLIB"; then
6331   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336   IFS=$as_save_IFS
6337   test -z "$as_dir" && as_dir=.
6338     for ac_exec_ext in '' $ac_executable_extensions; do
6339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340     ac_cv_prog_ac_ct_RANLIB="ranlib"
6341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6342     break 2
6343   fi
6344 done
6345   done
6346 IFS=$as_save_IFS
6347
6348 fi
6349 fi
6350 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6351 if test -n "$ac_ct_RANLIB"; then
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6353 $as_echo "$ac_ct_RANLIB" >&6; }
6354 else
6355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6356 $as_echo "no" >&6; }
6357 fi
6358
6359   if test "x$ac_ct_RANLIB" = x; then
6360     RANLIB=":"
6361   else
6362     case $cross_compiling:$ac_tool_warned in
6363 yes:)
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6366 ac_tool_warned=yes ;;
6367 esac
6368     RANLIB=$ac_ct_RANLIB
6369   fi
6370 else
6371   RANLIB="$ac_cv_prog_RANLIB"
6372 fi
6373
6374 test -z "$RANLIB" && RANLIB=:
6375
6376
6377
6378
6379
6380
6381 # Determine commands to create old-style static archives.
6382 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6383 old_postinstall_cmds='chmod 644 $oldlib'
6384 old_postuninstall_cmds=
6385
6386 if test -n "$RANLIB"; then
6387   case $host_os in
6388   openbsd*)
6389     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6390     ;;
6391   *)
6392     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6393     ;;
6394   esac
6395   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6396 fi
6397
6398 case $host_os in
6399   darwin*)
6400     lock_old_archive_extraction=yes ;;
6401   *)
6402     lock_old_archive_extraction=no ;;
6403 esac
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443 # If no C compiler was specified, use CC.
6444 LTCC=${LTCC-"$CC"}
6445
6446 # If no C compiler flags were specified, use CFLAGS.
6447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6448
6449 # Allow CC to be a program name with arguments.
6450 compiler=$CC
6451
6452
6453 # Check for command to grab the raw symbol name followed by C symbol from nm.
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6455 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6456 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6457   $as_echo_n "(cached) " >&6
6458 else
6459
6460 # These are sane defaults that work on at least a few old systems.
6461 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6462
6463 # Character class describing NM global symbol codes.
6464 symcode='[BCDEGRST]'
6465
6466 # Regexp to match symbols that can be accessed directly from C.
6467 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6468
6469 # Define system-specific variables.
6470 case $host_os in
6471 aix*)
6472   symcode='[BCDT]'
6473   ;;
6474 cygwin* | mingw* | pw32* | cegcc*)
6475   symcode='[ABCDGISTW]'
6476   ;;
6477 hpux*)
6478   if test "$host_cpu" = ia64; then
6479     symcode='[ABCDEGRST]'
6480   fi
6481   ;;
6482 irix* | nonstopux*)
6483   symcode='[BCDEGRST]'
6484   ;;
6485 osf*)
6486   symcode='[BCDEGQRST]'
6487   ;;
6488 solaris*)
6489   symcode='[BDRT]'
6490   ;;
6491 sco3.2v5*)
6492   symcode='[DT]'
6493   ;;
6494 sysv4.2uw2*)
6495   symcode='[DT]'
6496   ;;
6497 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6498   symcode='[ABDT]'
6499   ;;
6500 sysv4)
6501   symcode='[DFNSTU]'
6502   ;;
6503 esac
6504
6505 # If we're using GNU nm, then use its standard symbol codes.
6506 case `$NM -V 2>&1` in
6507 *GNU* | *'with BFD'*)
6508   symcode='[ABCDGIRSTW]' ;;
6509 esac
6510
6511 # Transform an extracted symbol line into a proper C declaration.
6512 # Some systems (esp. on ia64) link data and code symbols differently,
6513 # so use this general approach.
6514 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6515
6516 # Transform an extracted symbol line into symbol name and symbol address
6517 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6518 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'"
6519
6520 # Handle CRLF in mingw tool chain
6521 opt_cr=
6522 case $build_os in
6523 mingw*)
6524   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6525   ;;
6526 esac
6527
6528 # Try without a prefix underscore, then with it.
6529 for ac_symprfx in "" "_"; do
6530
6531   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6532   symxfrm="\\1 $ac_symprfx\\2 \\2"
6533
6534   # Write the raw and C identifiers.
6535   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6536     # Fake it for dumpbin and say T for any non-static function
6537     # and D for any global variable.
6538     # Also find C++ and __fastcall symbols from MSVC++,
6539     # which start with @ or ?.
6540     lt_cv_sys_global_symbol_pipe="$AWK '"\
6541 "     {last_section=section; section=\$ 3};"\
6542 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6543 "     \$ 0!~/External *\|/{next};"\
6544 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6545 "     {if(hide[section]) next};"\
6546 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6547 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6548 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6549 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6550 "     ' prfx=^$ac_symprfx"
6551   else
6552     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6553   fi
6554
6555   # Check to see that the pipe works correctly.
6556   pipe_works=no
6557
6558   rm -f conftest*
6559   cat > conftest.$ac_ext <<_LT_EOF
6560 #ifdef __cplusplus
6561 extern "C" {
6562 #endif
6563 char nm_test_var;
6564 void nm_test_func(void);
6565 void nm_test_func(void){}
6566 #ifdef __cplusplus
6567 }
6568 #endif
6569 int main(){nm_test_var='a';nm_test_func();return(0);}
6570 _LT_EOF
6571
6572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573   (eval $ac_compile) 2>&5
6574   ac_status=$?
6575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576   test $ac_status = 0; }; then
6577     # Now try to grab the symbols.
6578     nlist=conftest.nm
6579     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6580   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6581   ac_status=$?
6582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583   test $ac_status = 0; } && test -s "$nlist"; then
6584       # Try sorting and uniquifying the output.
6585       if sort "$nlist" | uniq > "$nlist"T; then
6586         mv -f "$nlist"T "$nlist"
6587       else
6588         rm -f "$nlist"T
6589       fi
6590
6591       # Make sure that we snagged all the symbols we need.
6592       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6593         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6594           cat <<_LT_EOF > conftest.$ac_ext
6595 #ifdef __cplusplus
6596 extern "C" {
6597 #endif
6598
6599 _LT_EOF
6600           # Now generate the symbol file.
6601           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6602
6603           cat <<_LT_EOF >> conftest.$ac_ext
6604
6605 /* The mapping between symbol names and symbols.  */
6606 const struct {
6607   const char *name;
6608   void       *address;
6609 }
6610 lt__PROGRAM__LTX_preloaded_symbols[] =
6611 {
6612   { "@PROGRAM@", (void *) 0 },
6613 _LT_EOF
6614           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6615           cat <<\_LT_EOF >> conftest.$ac_ext
6616   {0, (void *) 0}
6617 };
6618
6619 /* This works around a problem in FreeBSD linker */
6620 #ifdef FREEBSD_WORKAROUND
6621 static const void *lt_preloaded_setup() {
6622   return lt__PROGRAM__LTX_preloaded_symbols;
6623 }
6624 #endif
6625
6626 #ifdef __cplusplus
6627 }
6628 #endif
6629 _LT_EOF
6630           # Now try linking the two files.
6631           mv conftest.$ac_objext conftstm.$ac_objext
6632           lt_save_LIBS="$LIBS"
6633           lt_save_CFLAGS="$CFLAGS"
6634           LIBS="conftstm.$ac_objext"
6635           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6636           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6637   (eval $ac_link) 2>&5
6638   ac_status=$?
6639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6640   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6641             pipe_works=yes
6642           fi
6643           LIBS="$lt_save_LIBS"
6644           CFLAGS="$lt_save_CFLAGS"
6645         else
6646           echo "cannot find nm_test_func in $nlist" >&5
6647         fi
6648       else
6649         echo "cannot find nm_test_var in $nlist" >&5
6650       fi
6651     else
6652       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6653     fi
6654   else
6655     echo "$progname: failed program was:" >&5
6656     cat conftest.$ac_ext >&5
6657   fi
6658   rm -rf conftest* conftst*
6659
6660   # Do not use the global_symbol_pipe unless it works.
6661   if test "$pipe_works" = yes; then
6662     break
6663   else
6664     lt_cv_sys_global_symbol_pipe=
6665   fi
6666 done
6667
6668 fi
6669
6670 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6671   lt_cv_sys_global_symbol_to_cdecl=
6672 fi
6673 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6675 $as_echo "failed" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6678 $as_echo "ok" >&6; }
6679 fi
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702 # Check whether --enable-libtool-lock was given.
6703 if test "${enable_libtool_lock+set}" = set; then :
6704   enableval=$enable_libtool_lock;
6705 fi
6706
6707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6708
6709 # Some flags need to be propagated to the compiler or linker for good
6710 # libtool support.
6711 case $host in
6712 ia64-*-hpux*)
6713   # Find out which ABI we are using.
6714   echo 'int i;' > conftest.$ac_ext
6715   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6716   (eval $ac_compile) 2>&5
6717   ac_status=$?
6718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6719   test $ac_status = 0; }; then
6720     case `/usr/bin/file conftest.$ac_objext` in
6721       *ELF-32*)
6722         HPUX_IA64_MODE="32"
6723         ;;
6724       *ELF-64*)
6725         HPUX_IA64_MODE="64"
6726         ;;
6727     esac
6728   fi
6729   rm -rf conftest*
6730   ;;
6731 *-*-irix6*)
6732   # Find out which ABI we are using.
6733   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6734   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6735   (eval $ac_compile) 2>&5
6736   ac_status=$?
6737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738   test $ac_status = 0; }; then
6739     if test "$lt_cv_prog_gnu_ld" = yes; then
6740       case `/usr/bin/file conftest.$ac_objext` in
6741         *32-bit*)
6742           LD="${LD-ld} -melf32bsmip"
6743           ;;
6744         *N32*)
6745           LD="${LD-ld} -melf32bmipn32"
6746           ;;
6747         *64-bit*)
6748           LD="${LD-ld} -melf64bmip"
6749         ;;
6750       esac
6751     else
6752       case `/usr/bin/file conftest.$ac_objext` in
6753         *32-bit*)
6754           LD="${LD-ld} -32"
6755           ;;
6756         *N32*)
6757           LD="${LD-ld} -n32"
6758           ;;
6759         *64-bit*)
6760           LD="${LD-ld} -64"
6761           ;;
6762       esac
6763     fi
6764   fi
6765   rm -rf conftest*
6766   ;;
6767
6768 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6769 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6770   # Find out which ABI we are using.
6771   echo 'int i;' > conftest.$ac_ext
6772   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6773   (eval $ac_compile) 2>&5
6774   ac_status=$?
6775   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6776   test $ac_status = 0; }; then
6777     case `/usr/bin/file conftest.o` in
6778       *32-bit*)
6779         case $host in
6780           x86_64-*kfreebsd*-gnu)
6781             LD="${LD-ld} -m elf_i386_fbsd"
6782             ;;
6783           x86_64-*linux*)
6784             LD="${LD-ld} -m elf_i386"
6785             ;;
6786           ppc64-*linux*|powerpc64-*linux*)
6787             LD="${LD-ld} -m elf32ppclinux"
6788             ;;
6789           s390x-*linux*)
6790             LD="${LD-ld} -m elf_s390"
6791             ;;
6792           sparc64-*linux*)
6793             LD="${LD-ld} -m elf32_sparc"
6794             ;;
6795         esac
6796         ;;
6797       *64-bit*)
6798         case $host in
6799           x86_64-*kfreebsd*-gnu)
6800             LD="${LD-ld} -m elf_x86_64_fbsd"
6801             ;;
6802           x86_64-*linux*)
6803             LD="${LD-ld} -m elf_x86_64"
6804             ;;
6805           ppc*-*linux*|powerpc*-*linux*)
6806             LD="${LD-ld} -m elf64ppc"
6807             ;;
6808           s390*-*linux*|s390*-*tpf*)
6809             LD="${LD-ld} -m elf64_s390"
6810             ;;
6811           sparc*-*linux*)
6812             LD="${LD-ld} -m elf64_sparc"
6813             ;;
6814         esac
6815         ;;
6816     esac
6817   fi
6818   rm -rf conftest*
6819   ;;
6820
6821 *-*-sco3.2v5*)
6822   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6823   SAVE_CFLAGS="$CFLAGS"
6824   CFLAGS="$CFLAGS -belf"
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6826 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6827 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   ac_ext=c
6831 ac_cpp='$CPP $CPPFLAGS'
6832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6835
6836      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6837 /* end confdefs.h.  */
6838
6839 int
6840 main ()
6841 {
6842
6843   ;
6844   return 0;
6845 }
6846 _ACEOF
6847 if ac_fn_c_try_link "$LINENO"; then :
6848   lt_cv_cc_needs_belf=yes
6849 else
6850   lt_cv_cc_needs_belf=no
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext \
6853     conftest$ac_exeext conftest.$ac_ext
6854      ac_ext=c
6855 ac_cpp='$CPP $CPPFLAGS'
6856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6859
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6862 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6863   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6864     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6865     CFLAGS="$SAVE_CFLAGS"
6866   fi
6867   ;;
6868 *-*solaris*)
6869   # Find out which ABI we are using.
6870   echo 'int i;' > conftest.$ac_ext
6871   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872   (eval $ac_compile) 2>&5
6873   ac_status=$?
6874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875   test $ac_status = 0; }; then
6876     case `/usr/bin/file conftest.o` in
6877     *64-bit*)
6878       case $lt_cv_prog_gnu_ld in
6879       yes*)
6880         case $host in
6881         i?86-*-solaris* | x86_64-*-solaris2.1[0-9]*)
6882           LD="${LD-ld} -m elf_x86_64"
6883           ;;
6884         sparc*-*-solaris*)
6885           LD="${LD-ld} -m elf64_sparc"
6886           ;;
6887         esac
6888         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6889         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6890           LD="${LD-ld}_sol2"
6891         fi
6892         ;;
6893       *)
6894         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6895           LD="${LD-ld} -64"
6896         fi
6897         ;;
6898       esac
6899       ;;
6900     esac
6901   fi
6902   rm -rf conftest*
6903   ;;
6904 esac
6905
6906 need_locks="$enable_libtool_lock"
6907
6908
6909   case $host_os in
6910     rhapsody* | darwin*)
6911     if test -n "$ac_tool_prefix"; then
6912   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6913 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6915 $as_echo_n "checking for $ac_word... " >&6; }
6916 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6917   $as_echo_n "(cached) " >&6
6918 else
6919   if test -n "$DSYMUTIL"; then
6920   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925   IFS=$as_save_IFS
6926   test -z "$as_dir" && as_dir=.
6927     for ac_exec_ext in '' $ac_executable_extensions; do
6928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6929     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6931     break 2
6932   fi
6933 done
6934   done
6935 IFS=$as_save_IFS
6936
6937 fi
6938 fi
6939 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6940 if test -n "$DSYMUTIL"; then
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6942 $as_echo "$DSYMUTIL" >&6; }
6943 else
6944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6945 $as_echo "no" >&6; }
6946 fi
6947
6948
6949 fi
6950 if test -z "$ac_cv_prog_DSYMUTIL"; then
6951   ac_ct_DSYMUTIL=$DSYMUTIL
6952   # Extract the first word of "dsymutil", so it can be a program name with args.
6953 set dummy dsymutil; ac_word=$2
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6955 $as_echo_n "checking for $ac_word... " >&6; }
6956 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   if test -n "$ac_ct_DSYMUTIL"; then
6960   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6961 else
6962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6963 for as_dir in $PATH
6964 do
6965   IFS=$as_save_IFS
6966   test -z "$as_dir" && as_dir=.
6967     for ac_exec_ext in '' $ac_executable_extensions; do
6968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6969     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6971     break 2
6972   fi
6973 done
6974   done
6975 IFS=$as_save_IFS
6976
6977 fi
6978 fi
6979 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6980 if test -n "$ac_ct_DSYMUTIL"; then
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6982 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6983 else
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987
6988   if test "x$ac_ct_DSYMUTIL" = x; then
6989     DSYMUTIL=":"
6990   else
6991     case $cross_compiling:$ac_tool_warned in
6992 yes:)
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6994 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6995 ac_tool_warned=yes ;;
6996 esac
6997     DSYMUTIL=$ac_ct_DSYMUTIL
6998   fi
6999 else
7000   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7001 fi
7002
7003     if test -n "$ac_tool_prefix"; then
7004   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7005 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7007 $as_echo_n "checking for $ac_word... " >&6; }
7008 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7009   $as_echo_n "(cached) " >&6
7010 else
7011   if test -n "$NMEDIT"; then
7012   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7013 else
7014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 for as_dir in $PATH
7016 do
7017   IFS=$as_save_IFS
7018   test -z "$as_dir" && as_dir=.
7019     for ac_exec_ext in '' $ac_executable_extensions; do
7020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7023     break 2
7024   fi
7025 done
7026   done
7027 IFS=$as_save_IFS
7028
7029 fi
7030 fi
7031 NMEDIT=$ac_cv_prog_NMEDIT
7032 if test -n "$NMEDIT"; then
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7034 $as_echo "$NMEDIT" >&6; }
7035 else
7036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7037 $as_echo "no" >&6; }
7038 fi
7039
7040
7041 fi
7042 if test -z "$ac_cv_prog_NMEDIT"; then
7043   ac_ct_NMEDIT=$NMEDIT
7044   # Extract the first word of "nmedit", so it can be a program name with args.
7045 set dummy nmedit; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   if test -n "$ac_ct_NMEDIT"; then
7052   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7056 do
7057   IFS=$as_save_IFS
7058   test -z "$as_dir" && as_dir=.
7059     for ac_exec_ext in '' $ac_executable_extensions; do
7060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7061     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063     break 2
7064   fi
7065 done
7066   done
7067 IFS=$as_save_IFS
7068
7069 fi
7070 fi
7071 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7072 if test -n "$ac_ct_NMEDIT"; then
7073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7074 $as_echo "$ac_ct_NMEDIT" >&6; }
7075 else
7076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7078 fi
7079
7080   if test "x$ac_ct_NMEDIT" = x; then
7081     NMEDIT=":"
7082   else
7083     case $cross_compiling:$ac_tool_warned in
7084 yes:)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7087 ac_tool_warned=yes ;;
7088 esac
7089     NMEDIT=$ac_ct_NMEDIT
7090   fi
7091 else
7092   NMEDIT="$ac_cv_prog_NMEDIT"
7093 fi
7094
7095     if test -n "$ac_tool_prefix"; then
7096   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7097 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099 $as_echo_n "checking for $ac_word... " >&6; }
7100 if test "${ac_cv_prog_LIPO+set}" = set; then :
7101   $as_echo_n "(cached) " >&6
7102 else
7103   if test -n "$LIPO"; then
7104   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7105 else
7106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107 for as_dir in $PATH
7108 do
7109   IFS=$as_save_IFS
7110   test -z "$as_dir" && as_dir=.
7111     for ac_exec_ext in '' $ac_executable_extensions; do
7112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7113     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115     break 2
7116   fi
7117 done
7118   done
7119 IFS=$as_save_IFS
7120
7121 fi
7122 fi
7123 LIPO=$ac_cv_prog_LIPO
7124 if test -n "$LIPO"; then
7125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7126 $as_echo "$LIPO" >&6; }
7127 else
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }
7130 fi
7131
7132
7133 fi
7134 if test -z "$ac_cv_prog_LIPO"; then
7135   ac_ct_LIPO=$LIPO
7136   # Extract the first word of "lipo", so it can be a program name with args.
7137 set dummy lipo; ac_word=$2
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139 $as_echo_n "checking for $ac_word... " >&6; }
7140 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7141   $as_echo_n "(cached) " >&6
7142 else
7143   if test -n "$ac_ct_LIPO"; then
7144   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7145 else
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH
7148 do
7149   IFS=$as_save_IFS
7150   test -z "$as_dir" && as_dir=.
7151     for ac_exec_ext in '' $ac_executable_extensions; do
7152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7153     ac_cv_prog_ac_ct_LIPO="lipo"
7154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155     break 2
7156   fi
7157 done
7158   done
7159 IFS=$as_save_IFS
7160
7161 fi
7162 fi
7163 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7164 if test -n "$ac_ct_LIPO"; then
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7166 $as_echo "$ac_ct_LIPO" >&6; }
7167 else
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172   if test "x$ac_ct_LIPO" = x; then
7173     LIPO=":"
7174   else
7175     case $cross_compiling:$ac_tool_warned in
7176 yes:)
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179 ac_tool_warned=yes ;;
7180 esac
7181     LIPO=$ac_ct_LIPO
7182   fi
7183 else
7184   LIPO="$ac_cv_prog_LIPO"
7185 fi
7186
7187     if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}otool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$OTOOL"; then
7196   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 OTOOL=$ac_cv_prog_OTOOL
7216 if test -n "$OTOOL"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7218 $as_echo "$OTOOL" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_OTOOL"; then
7227   ac_ct_OTOOL=$OTOOL
7228   # Extract the first word of "otool", so it can be a program name with args.
7229 set dummy otool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_OTOOL"; then
7236   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245     ac_cv_prog_ac_ct_OTOOL="otool"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7256 if test -n "$ac_ct_OTOOL"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7258 $as_echo "$ac_ct_OTOOL" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_OTOOL" = x; then
7265     OTOOL=":"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     OTOOL=$ac_ct_OTOOL
7274   fi
7275 else
7276   OTOOL="$ac_cv_prog_OTOOL"
7277 fi
7278
7279     if test -n "$ac_tool_prefix"; then
7280   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7285   $as_echo_n "(cached) " >&6
7286 else
7287   if test -n "$OTOOL64"; then
7288   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293   IFS=$as_save_IFS
7294   test -z "$as_dir" && as_dir=.
7295     for ac_exec_ext in '' $ac_executable_extensions; do
7296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299     break 2
7300   fi
7301 done
7302   done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 OTOOL64=$ac_cv_prog_OTOOL64
7308 if test -n "$OTOOL64"; then
7309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7310 $as_echo "$OTOOL64" >&6; }
7311 else
7312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_OTOOL64"; then
7319   ac_ct_OTOOL64=$OTOOL64
7320   # Extract the first word of "otool64", so it can be a program name with args.
7321 set dummy otool64; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test -n "$ac_ct_OTOOL64"; then
7328   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335     for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_prog_ac_ct_OTOOL64="otool64"
7338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342   done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7348 if test -n "$ac_ct_OTOOL64"; then
7349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7350 $as_echo "$ac_ct_OTOOL64" >&6; }
7351 else
7352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356   if test "x$ac_ct_OTOOL64" = x; then
7357     OTOOL64=":"
7358   else
7359     case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365     OTOOL64=$ac_ct_OTOOL64
7366   fi
7367 else
7368   OTOOL64="$ac_cv_prog_OTOOL64"
7369 fi
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7398 $as_echo_n "checking for -single_module linker flag... " >&6; }
7399 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7400   $as_echo_n "(cached) " >&6
7401 else
7402   lt_cv_apple_cc_single_mod=no
7403       if test -z "${LT_MULTI_MODULE}"; then
7404         # By default we will add the -single_module flag. You can override
7405         # by either setting the environment variable LT_MULTI_MODULE
7406         # non-empty at configure time, or by adding -multi_module to the
7407         # link flags.
7408         rm -rf libconftest.dylib*
7409         echo "int foo(void){return 1;}" > conftest.c
7410         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7411 -dynamiclib -Wl,-single_module conftest.c" >&5
7412         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7413           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7414         _lt_result=$?
7415         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7416           lt_cv_apple_cc_single_mod=yes
7417         else
7418           cat conftest.err >&5
7419         fi
7420         rm -rf libconftest.dylib*
7421         rm -f conftest.*
7422       fi
7423 fi
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7425 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7426     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7427 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7428 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7429   $as_echo_n "(cached) " >&6
7430 else
7431   lt_cv_ld_exported_symbols_list=no
7432       save_LDFLAGS=$LDFLAGS
7433       echo "_main" > conftest.sym
7434       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7435       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h.  */
7437
7438 int
7439 main ()
7440 {
7441
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"; then :
7447   lt_cv_ld_exported_symbols_list=yes
7448 else
7449   lt_cv_ld_exported_symbols_list=no
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext \
7452     conftest$ac_exeext conftest.$ac_ext
7453         LDFLAGS="$save_LDFLAGS"
7454
7455 fi
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7457 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7459 $as_echo_n "checking for -force_load linker flag... " >&6; }
7460 if test "${lt_cv_ld_force_load+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   lt_cv_ld_force_load=no
7464       cat > conftest.c << _LT_EOF
7465 int forced_loaded() { return 2;}
7466 _LT_EOF
7467       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7468       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7469       echo "$AR cru libconftest.a conftest.o" >&5
7470       $AR cru libconftest.a conftest.o 2>&5
7471       cat > conftest.c << _LT_EOF
7472 int main() { return 0;}
7473 _LT_EOF
7474       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7475       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7476       _lt_result=$?
7477       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7478         lt_cv_ld_force_load=yes
7479       else
7480         cat conftest.err >&5
7481       fi
7482         rm -f conftest.err libconftest.a conftest conftest.c
7483         rm -rf conftest.dSYM
7484
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7487 $as_echo "$lt_cv_ld_force_load" >&6; }
7488     case $host_os in
7489     rhapsody* | darwin1.[012])
7490       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7491     darwin1.*)
7492       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7493     darwin*) # darwin 5.x on
7494       # if running on 10.5 or later, the deployment target defaults
7495       # to the OS version, if on x86, and 10.4, the deployment
7496       # target defaults to 10.4. Don't you love it?
7497       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7498         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7499           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7500         10.[012]*)
7501           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7502         10.*)
7503           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7504       esac
7505     ;;
7506   esac
7507     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7508       _lt_dar_single_mod='$single_module'
7509     fi
7510     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7511       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7512     else
7513       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7514     fi
7515     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7516       _lt_dsymutil='~$DSYMUTIL $lib || :'
7517     else
7518       _lt_dsymutil=
7519     fi
7520     ;;
7521   esac
7522
7523 for ac_header in dlfcn.h
7524 do :
7525   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7526 "
7527 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7528   cat >>confdefs.h <<_ACEOF
7529 #define HAVE_DLFCN_H 1
7530 _ACEOF
7531
7532 fi
7533
7534 done
7535
7536 if test -n "$ac_tool_prefix"; then
7537   # Extract the first word of "${ac_tool_prefix}gccgo", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}gccgo; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_GOC+set}" = set; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$GOC"; then
7545   ac_cv_prog_GOC="$GOC" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554     ac_cv_prog_GOC="${ac_tool_prefix}gccgo"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 GOC=$ac_cv_prog_GOC
7565 if test -n "$GOC"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC" >&5
7567 $as_echo "$GOC" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_GOC"; then
7576   ac_ct_GOC=$GOC
7577   # Extract the first word of "gccgo", so it can be a program name with args.
7578 set dummy gccgo; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if test "${ac_cv_prog_ac_ct_GOC+set}" = set; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$ac_ct_GOC"; then
7585   ac_cv_prog_ac_ct_GOC="$ac_ct_GOC" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7594     ac_cv_prog_ac_ct_GOC="gccgo"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_GOC=$ac_cv_prog_ac_ct_GOC
7605 if test -n "$ac_ct_GOC"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GOC" >&5
7607 $as_echo "$ac_ct_GOC" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613   if test "x$ac_ct_GOC" = x; then
7614     GOC=""
7615   else
7616     case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     GOC=$ac_ct_GOC
7623   fi
7624 else
7625   GOC="$ac_cv_prog_GOC"
7626 fi
7627
7628
7629
7630
7631
7632
7633 # Set options
7634
7635
7636
7637
7638   enable_win32_dll=no
7639
7640
7641             # Check whether --enable-shared was given.
7642 if test "${enable_shared+set}" = set; then :
7643   enableval=$enable_shared; p=${PACKAGE-default}
7644     case $enableval in
7645     yes) enable_shared=yes ;;
7646     no) enable_shared=no ;;
7647     *)
7648       enable_shared=no
7649       # Look at the argument we got.  We use all the common list separators.
7650       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7651       for pkg in $enableval; do
7652         IFS="$lt_save_ifs"
7653         if test "X$pkg" = "X$p"; then
7654           enable_shared=yes
7655         fi
7656       done
7657       IFS="$lt_save_ifs"
7658       ;;
7659     esac
7660 else
7661   enable_shared=yes
7662 fi
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672   # Check whether --enable-static was given.
7673 if test "${enable_static+set}" = set; then :
7674   enableval=$enable_static; p=${PACKAGE-default}
7675     case $enableval in
7676     yes) enable_static=yes ;;
7677     no) enable_static=no ;;
7678     *)
7679      enable_static=no
7680       # Look at the argument we got.  We use all the common list separators.
7681       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7682       for pkg in $enableval; do
7683         IFS="$lt_save_ifs"
7684         if test "X$pkg" = "X$p"; then
7685           enable_static=yes
7686         fi
7687       done
7688       IFS="$lt_save_ifs"
7689       ;;
7690     esac
7691 else
7692   enable_static=yes
7693 fi
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704 # Check whether --with-pic was given.
7705 if test "${with_pic+set}" = set; then :
7706   withval=$with_pic; pic_mode="$withval"
7707 else
7708   pic_mode=default
7709 fi
7710
7711
7712 test -z "$pic_mode" && pic_mode=default
7713
7714
7715
7716
7717
7718
7719
7720   # Check whether --enable-fast-install was given.
7721 if test "${enable_fast_install+set}" = set; then :
7722   enableval=$enable_fast_install; p=${PACKAGE-default}
7723     case $enableval in
7724     yes) enable_fast_install=yes ;;
7725     no) enable_fast_install=no ;;
7726     *)
7727       enable_fast_install=no
7728       # Look at the argument we got.  We use all the common list separators.
7729       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7730       for pkg in $enableval; do
7731         IFS="$lt_save_ifs"
7732         if test "X$pkg" = "X$p"; then
7733           enable_fast_install=yes
7734         fi
7735       done
7736       IFS="$lt_save_ifs"
7737       ;;
7738     esac
7739 else
7740   enable_fast_install=yes
7741 fi
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753 # This can be used to rebuild libtool when needed
7754 LIBTOOL_DEPS="$ltmain"
7755
7756 # Always use our own libtool.
7757 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 test -z "$LN_S" && LN_S="ln -s"
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799 if test -n "${ZSH_VERSION+set}" ; then
7800    setopt NO_GLOB_SUBST
7801 fi
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7804 $as_echo_n "checking for objdir... " >&6; }
7805 if test "${lt_cv_objdir+set}" = set; then :
7806   $as_echo_n "(cached) " >&6
7807 else
7808   rm -f .libs 2>/dev/null
7809 mkdir .libs 2>/dev/null
7810 if test -d .libs; then
7811   lt_cv_objdir=.libs
7812 else
7813   # MS-DOS does not allow filenames that begin with a dot.
7814   lt_cv_objdir=_libs
7815 fi
7816 rmdir .libs 2>/dev/null
7817 fi
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7819 $as_echo "$lt_cv_objdir" >&6; }
7820 objdir=$lt_cv_objdir
7821
7822
7823
7824
7825
7826 cat >>confdefs.h <<_ACEOF
7827 #define LT_OBJDIR "$lt_cv_objdir/"
7828 _ACEOF
7829
7830
7831
7832
7833 case $host_os in
7834 aix3*)
7835   # AIX sometimes has problems with the GCC collect2 program.  For some
7836   # reason, if we set the COLLECT_NAMES environment variable, the problems
7837   # vanish in a puff of smoke.
7838   if test "X${COLLECT_NAMES+set}" != Xset; then
7839     COLLECT_NAMES=
7840     export COLLECT_NAMES
7841   fi
7842   ;;
7843 esac
7844
7845 # Global variables:
7846 ofile=libtool
7847 can_build_shared=yes
7848
7849 # All known linkers require a `.a' archive for static linking (except MSVC,
7850 # which needs '.lib').
7851 libext=a
7852
7853 with_gnu_ld="$lt_cv_prog_gnu_ld"
7854
7855 old_CC="$CC"
7856 old_CFLAGS="$CFLAGS"
7857
7858 # Set sane defaults for various variables
7859 test -z "$CC" && CC=cc
7860 test -z "$LTCC" && LTCC=$CC
7861 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7862 test -z "$LD" && LD=ld
7863 test -z "$ac_objext" && ac_objext=o
7864
7865 for cc_temp in $compiler""; do
7866   case $cc_temp in
7867     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7868     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7869     \-*) ;;
7870     *) break;;
7871   esac
7872 done
7873 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874
7875
7876 # Only perform the check for file, if the check method requires it
7877 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7878 case $deplibs_check_method in
7879 file_magic*)
7880   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7882 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7883 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7884   $as_echo_n "(cached) " >&6
7885 else
7886   case $MAGIC_CMD in
7887 [\\/*] |  ?:[\\/]*)
7888   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889   ;;
7890 *)
7891   lt_save_MAGIC_CMD="$MAGIC_CMD"
7892   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7893   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894   for ac_dir in $ac_dummy; do
7895     IFS="$lt_save_ifs"
7896     test -z "$ac_dir" && ac_dir=.
7897     if test -f $ac_dir/${ac_tool_prefix}file; then
7898       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7899       if test -n "$file_magic_test_file"; then
7900         case $deplibs_check_method in
7901         "file_magic "*)
7902           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7904           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905             $EGREP "$file_magic_regex" > /dev/null; then
7906             :
7907           else
7908             cat <<_LT_EOF 1>&2
7909
7910 *** Warning: the command libtool uses to detect shared libraries,
7911 *** $file_magic_cmd, produces output that libtool cannot recognize.
7912 *** The result is that libtool may fail to recognize shared libraries
7913 *** as such.  This will affect the creation of libtool libraries that
7914 *** depend on shared libraries, but programs linked with such libtool
7915 *** libraries will work regardless of this problem.  Nevertheless, you
7916 *** may want to report the problem to your system manager and/or to
7917 *** bug-libtool@gnu.org
7918
7919 _LT_EOF
7920           fi ;;
7921         esac
7922       fi
7923       break
7924     fi
7925   done
7926   IFS="$lt_save_ifs"
7927   MAGIC_CMD="$lt_save_MAGIC_CMD"
7928   ;;
7929 esac
7930 fi
7931
7932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7933 if test -n "$MAGIC_CMD"; then
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935 $as_echo "$MAGIC_CMD" >&6; }
7936 else
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942
7943
7944
7945 if test -z "$lt_cv_path_MAGIC_CMD"; then
7946   if test -n "$ac_tool_prefix"; then
7947     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7948 $as_echo_n "checking for file... " >&6; }
7949 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   case $MAGIC_CMD in
7953 [\\/*] |  ?:[\\/]*)
7954   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955   ;;
7956 *)
7957   lt_save_MAGIC_CMD="$MAGIC_CMD"
7958   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7959   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7960   for ac_dir in $ac_dummy; do
7961     IFS="$lt_save_ifs"
7962     test -z "$ac_dir" && ac_dir=.
7963     if test -f $ac_dir/file; then
7964       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7965       if test -n "$file_magic_test_file"; then
7966         case $deplibs_check_method in
7967         "file_magic "*)
7968           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7969           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7970           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7971             $EGREP "$file_magic_regex" > /dev/null; then
7972             :
7973           else
7974             cat <<_LT_EOF 1>&2
7975
7976 *** Warning: the command libtool uses to detect shared libraries,
7977 *** $file_magic_cmd, produces output that libtool cannot recognize.
7978 *** The result is that libtool may fail to recognize shared libraries
7979 *** as such.  This will affect the creation of libtool libraries that
7980 *** depend on shared libraries, but programs linked with such libtool
7981 *** libraries will work regardless of this problem.  Nevertheless, you
7982 *** may want to report the problem to your system manager and/or to
7983 *** bug-libtool@gnu.org
7984
7985 _LT_EOF
7986           fi ;;
7987         esac
7988       fi
7989       break
7990     fi
7991   done
7992   IFS="$lt_save_ifs"
7993   MAGIC_CMD="$lt_save_MAGIC_CMD"
7994   ;;
7995 esac
7996 fi
7997
7998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7999 if test -n "$MAGIC_CMD"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8001 $as_echo "$MAGIC_CMD" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006
8007
8008   else
8009     MAGIC_CMD=:
8010   fi
8011 fi
8012
8013   fi
8014   ;;
8015 esac
8016
8017 # Use C for the default configuration in the libtool script
8018
8019 lt_save_CC="$CC"
8020 ac_ext=c
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025
8026
8027 # Source file extension for C test sources.
8028 ac_ext=c
8029
8030 # Object file extension for compiled C test sources.
8031 objext=o
8032 objext=$objext
8033
8034 # Code to be used in simple compile tests
8035 lt_simple_compile_test_code="int some_variable = 0;"
8036
8037 # Code to be used in simple link tests
8038 lt_simple_link_test_code='int main(){return(0);}'
8039
8040
8041
8042
8043
8044
8045
8046 # If no C compiler was specified, use CC.
8047 LTCC=${LTCC-"$CC"}
8048
8049 # If no C compiler flags were specified, use CFLAGS.
8050 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8051
8052 # Allow CC to be a program name with arguments.
8053 compiler=$CC
8054
8055 # Save the default compiler, since it gets overwritten when the other
8056 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8057 compiler_DEFAULT=$CC
8058
8059 # save warnings/boilerplate of simple test code
8060 ac_outfile=conftest.$ac_objext
8061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8063 _lt_compiler_boilerplate=`cat conftest.err`
8064 $RM conftest*
8065
8066 ac_outfile=conftest.$ac_objext
8067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8069 _lt_linker_boilerplate=`cat conftest.err`
8070 $RM -r conftest*
8071
8072
8073 ## CAVEAT EMPTOR:
8074 ## There is no encapsulation within the following macros, do not change
8075 ## the running order or otherwise move them around unless you know exactly
8076 ## what you are doing...
8077 if test -n "$compiler"; then
8078
8079 lt_prog_compiler_no_builtin_flag=
8080
8081 if test "$GCC" = yes; then
8082   case $cc_basename in
8083   nvcc*)
8084     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8085   *)
8086     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8087   esac
8088
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8090 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8091 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8092   $as_echo_n "(cached) " >&6
8093 else
8094   lt_cv_prog_compiler_rtti_exceptions=no
8095    ac_outfile=conftest.$ac_objext
8096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8097    lt_compiler_flag="-fno-rtti -fno-exceptions"
8098    # Insert the option either (1) after the last *FLAGS variable, or
8099    # (2) before a word containing "conftest.", or (3) at the end.
8100    # Note that $ac_compile itself does not contain backslashes and begins
8101    # with a dollar sign (not a hyphen), so the echo should work correctly.
8102    # The option is referenced via a variable to avoid confusing sed.
8103    lt_compile=`echo "$ac_compile" | $SED \
8104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8106    -e 's:$: $lt_compiler_flag:'`
8107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8108    (eval "$lt_compile" 2>conftest.err)
8109    ac_status=$?
8110    cat conftest.err >&5
8111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112    if (exit $ac_status) && test -s "$ac_outfile"; then
8113      # The compiler can only warn and ignore the option if not recognized
8114      # So say no if there are warnings other than the usual output.
8115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8116      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8117      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8118        lt_cv_prog_compiler_rtti_exceptions=yes
8119      fi
8120    fi
8121    $RM conftest*
8122
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8125 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8126
8127 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8128     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8129 else
8130     :
8131 fi
8132
8133 fi
8134
8135
8136
8137
8138
8139
8140   lt_prog_compiler_wl=
8141 lt_prog_compiler_pic=
8142 lt_prog_compiler_static=
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8145 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8146
8147   if test "$GCC" = yes; then
8148     lt_prog_compiler_wl='-Wl,'
8149     lt_prog_compiler_static='-static'
8150
8151     case $host_os in
8152       aix*)
8153       # All AIX code is PIC.
8154       if test "$host_cpu" = ia64; then
8155         # AIX 5 now supports IA64 processor
8156         lt_prog_compiler_static='-Bstatic'
8157       fi
8158       ;;
8159
8160     amigaos*)
8161       case $host_cpu in
8162       powerpc)
8163             # see comment about AmigaOS4 .so support
8164             lt_prog_compiler_pic='-fPIC'
8165         ;;
8166       m68k)
8167             # FIXME: we need at least 68020 code to build shared libraries, but
8168             # adding the `-m68020' flag to GCC prevents building anything better,
8169             # like `-m68040'.
8170             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8171         ;;
8172       esac
8173       ;;
8174
8175     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8176       # PIC is the default for these OSes.
8177       ;;
8178
8179     mingw* | cygwin* | pw32* | os2* | cegcc*)
8180       # This hack is so that the source file can tell whether it is being
8181       # built for inclusion in a dll (and should export symbols for example).
8182       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8183       # (--disable-auto-import) libraries
8184       lt_prog_compiler_pic='-DDLL_EXPORT'
8185       ;;
8186
8187     darwin* | rhapsody*)
8188       # PIC is the default on this platform
8189       # Common symbols not allowed in MH_DYLIB files
8190       lt_prog_compiler_pic='-fno-common'
8191       ;;
8192
8193     haiku*)
8194       # PIC is the default for Haiku.
8195       # The "-static" flag exists, but is broken.
8196       lt_prog_compiler_static=
8197       ;;
8198
8199     hpux*)
8200       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8201       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8202       # sets the default TLS model and affects inlining.
8203       case $host_cpu in
8204       hppa*64*)
8205         # +Z the default
8206         ;;
8207       *)
8208         lt_prog_compiler_pic='-fPIC'
8209         ;;
8210       esac
8211       ;;
8212
8213     interix[3-9]*)
8214       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8215       # Instead, we relocate shared libraries at runtime.
8216       ;;
8217
8218     msdosdjgpp*)
8219       # Just because we use GCC doesn't mean we suddenly get shared libraries
8220       # on systems that don't support them.
8221       lt_prog_compiler_can_build_shared=no
8222       enable_shared=no
8223       ;;
8224
8225     *nto* | *qnx*)
8226       # QNX uses GNU C++, but need to define -shared option too, otherwise
8227       # it will coredump.
8228       lt_prog_compiler_pic='-fPIC -shared'
8229       ;;
8230
8231     sysv4*MP*)
8232       if test -d /usr/nec; then
8233         lt_prog_compiler_pic=-Kconform_pic
8234       fi
8235       ;;
8236
8237     *)
8238       lt_prog_compiler_pic='-fPIC'
8239       ;;
8240     esac
8241
8242     case $cc_basename in
8243     nvcc*) # Cuda Compiler Driver 2.2
8244       lt_prog_compiler_wl='-Xlinker '
8245       lt_prog_compiler_pic='-Xcompiler -fPIC'
8246       ;;
8247     esac
8248   else
8249     # PORTME Check for flag to pass linker flags through the system compiler.
8250     case $host_os in
8251     aix*)
8252       lt_prog_compiler_wl='-Wl,'
8253       if test "$host_cpu" = ia64; then
8254         # AIX 5 now supports IA64 processor
8255         lt_prog_compiler_static='-Bstatic'
8256       else
8257         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8258       fi
8259       ;;
8260
8261     mingw* | cygwin* | pw32* | os2* | cegcc*)
8262       # This hack is so that the source file can tell whether it is being
8263       # built for inclusion in a dll (and should export symbols for example).
8264       lt_prog_compiler_pic='-DDLL_EXPORT'
8265       ;;
8266
8267     hpux9* | hpux10* | hpux11*)
8268       lt_prog_compiler_wl='-Wl,'
8269       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8270       # not for PA HP-UX.
8271       case $host_cpu in
8272       hppa*64*|ia64*)
8273         # +Z the default
8274         ;;
8275       *)
8276         lt_prog_compiler_pic='+Z'
8277         ;;
8278       esac
8279       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8280       lt_prog_compiler_static='${wl}-a ${wl}archive'
8281       ;;
8282
8283     irix5* | irix6* | nonstopux*)
8284       lt_prog_compiler_wl='-Wl,'
8285       # PIC (with -KPIC) is the default.
8286       lt_prog_compiler_static='-non_shared'
8287       ;;
8288
8289     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8290       case $cc_basename in
8291       # old Intel for x86_64 which still supported -KPIC.
8292       ecc*)
8293         lt_prog_compiler_wl='-Wl,'
8294         lt_prog_compiler_pic='-KPIC'
8295         lt_prog_compiler_static='-static'
8296         ;;
8297       # icc used to be incompatible with GCC.
8298       # ICC 10 doesn't accept -KPIC any more.
8299       icc* | ifort*)
8300         lt_prog_compiler_wl='-Wl,'
8301         lt_prog_compiler_pic='-fPIC'
8302         lt_prog_compiler_static='-static'
8303         ;;
8304       # Lahey Fortran 8.1.
8305       lf95*)
8306         lt_prog_compiler_wl='-Wl,'
8307         lt_prog_compiler_pic='--shared'
8308         lt_prog_compiler_static='--static'
8309         ;;
8310       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8311         # Portland Group compilers (*not* the Pentium gcc compiler,
8312         # which looks to be a dead project)
8313         lt_prog_compiler_wl='-Wl,'
8314         lt_prog_compiler_pic='-fpic'
8315         lt_prog_compiler_static='-Bstatic'
8316         ;;
8317       ccc*)
8318         lt_prog_compiler_wl='-Wl,'
8319         # All Alpha code is PIC.
8320         lt_prog_compiler_static='-non_shared'
8321         ;;
8322       xl* | bgxl* | bgf* | mpixl*)
8323         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8324         lt_prog_compiler_wl='-Wl,'
8325         lt_prog_compiler_pic='-qpic'
8326         lt_prog_compiler_static='-qstaticlink'
8327         ;;
8328       *)
8329         case `$CC -V 2>&1 | sed 5q` in
8330         *Sun\ F* | *Sun*Fortran*)
8331           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8332           lt_prog_compiler_pic='-KPIC'
8333           lt_prog_compiler_static='-Bstatic'
8334           lt_prog_compiler_wl=''
8335           ;;
8336         *Sun\ C*)
8337           # Sun C 5.9
8338           lt_prog_compiler_pic='-KPIC'
8339           lt_prog_compiler_static='-Bstatic'
8340           lt_prog_compiler_wl='-Wl,'
8341           ;;
8342         esac
8343         ;;
8344       esac
8345       ;;
8346
8347     newsos6)
8348       lt_prog_compiler_pic='-KPIC'
8349       lt_prog_compiler_static='-Bstatic'
8350       ;;
8351
8352     *nto* | *qnx*)
8353       # QNX uses GNU C++, but need to define -shared option too, otherwise
8354       # it will coredump.
8355       lt_prog_compiler_pic='-fPIC -shared'
8356       ;;
8357
8358     osf3* | osf4* | osf5*)
8359       lt_prog_compiler_wl='-Wl,'
8360       # All OSF/1 code is PIC.
8361       lt_prog_compiler_static='-non_shared'
8362       ;;
8363
8364     rdos*)
8365       lt_prog_compiler_static='-non_shared'
8366       ;;
8367
8368     solaris*)
8369       lt_prog_compiler_pic='-KPIC'
8370       lt_prog_compiler_static='-Bstatic'
8371       case $cc_basename in
8372       f77* | f90* | f95*)
8373         lt_prog_compiler_wl='-Qoption ld ';;
8374       *)
8375         lt_prog_compiler_wl='-Wl,';;
8376       esac
8377       ;;
8378
8379     sunos4*)
8380       lt_prog_compiler_wl='-Qoption ld '
8381       lt_prog_compiler_pic='-PIC'
8382       lt_prog_compiler_static='-Bstatic'
8383       ;;
8384
8385     sysv4 | sysv4.2uw2* | sysv4.3*)
8386       lt_prog_compiler_wl='-Wl,'
8387       lt_prog_compiler_pic='-KPIC'
8388       lt_prog_compiler_static='-Bstatic'
8389       ;;
8390
8391     sysv4*MP*)
8392       if test -d /usr/nec ;then
8393         lt_prog_compiler_pic='-Kconform_pic'
8394         lt_prog_compiler_static='-Bstatic'
8395       fi
8396       ;;
8397
8398     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8399       lt_prog_compiler_wl='-Wl,'
8400       lt_prog_compiler_pic='-KPIC'
8401       lt_prog_compiler_static='-Bstatic'
8402       ;;
8403
8404     unicos*)
8405       lt_prog_compiler_wl='-Wl,'
8406       lt_prog_compiler_can_build_shared=no
8407       ;;
8408
8409     uts4*)
8410       lt_prog_compiler_pic='-pic'
8411       lt_prog_compiler_static='-Bstatic'
8412       ;;
8413
8414     *)
8415       lt_prog_compiler_can_build_shared=no
8416       ;;
8417     esac
8418   fi
8419
8420 case $host_os in
8421   # For platforms which do not support PIC, -DPIC is meaningless:
8422   *djgpp*)
8423     lt_prog_compiler_pic=
8424     ;;
8425   *)
8426     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8427     ;;
8428 esac
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8430 $as_echo "$lt_prog_compiler_pic" >&6; }
8431
8432
8433
8434
8435
8436
8437 #
8438 # Check to make sure the PIC flag actually works.
8439 #
8440 if test -n "$lt_prog_compiler_pic"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8442 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8443 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8444   $as_echo_n "(cached) " >&6
8445 else
8446   lt_cv_prog_compiler_pic_works=no
8447    ac_outfile=conftest.$ac_objext
8448    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8449    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8450    # Insert the option either (1) after the last *FLAGS variable, or
8451    # (2) before a word containing "conftest.", or (3) at the end.
8452    # Note that $ac_compile itself does not contain backslashes and begins
8453    # with a dollar sign (not a hyphen), so the echo should work correctly.
8454    # The option is referenced via a variable to avoid confusing sed.
8455    lt_compile=`echo "$ac_compile" | $SED \
8456    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8457    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8458    -e 's:$: $lt_compiler_flag:'`
8459    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8460    (eval "$lt_compile" 2>conftest.err)
8461    ac_status=$?
8462    cat conftest.err >&5
8463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464    if (exit $ac_status) && test -s "$ac_outfile"; then
8465      # The compiler can only warn and ignore the option if not recognized
8466      # So say no if there are warnings other than the usual output.
8467      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8468      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8469      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8470        lt_cv_prog_compiler_pic_works=yes
8471      fi
8472    fi
8473    $RM conftest*
8474
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8477 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8478
8479 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8480     case $lt_prog_compiler_pic in
8481      "" | " "*) ;;
8482      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8483      esac
8484 else
8485     lt_prog_compiler_pic=
8486      lt_prog_compiler_can_build_shared=no
8487 fi
8488
8489 fi
8490
8491
8492
8493
8494
8495
8496 #
8497 # Check to make sure the static flag actually works.
8498 #
8499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8501 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8502 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8503   $as_echo_n "(cached) " >&6
8504 else
8505   lt_cv_prog_compiler_static_works=no
8506    save_LDFLAGS="$LDFLAGS"
8507    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8508    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8509    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8510      # The linker can only warn and ignore the option if not recognized
8511      # So say no if there are warnings
8512      if test -s conftest.err; then
8513        # Append any errors to the config.log.
8514        cat conftest.err 1>&5
8515        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8516        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8517        if diff conftest.exp conftest.er2 >/dev/null; then
8518          lt_cv_prog_compiler_static_works=yes
8519        fi
8520      else
8521        lt_cv_prog_compiler_static_works=yes
8522      fi
8523    fi
8524    $RM -r conftest*
8525    LDFLAGS="$save_LDFLAGS"
8526
8527 fi
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8529 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8530
8531 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8532     :
8533 else
8534     lt_prog_compiler_static=
8535 fi
8536
8537
8538
8539
8540
8541
8542
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8544 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8545 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8546   $as_echo_n "(cached) " >&6
8547 else
8548   lt_cv_prog_compiler_c_o=no
8549    $RM -r conftest 2>/dev/null
8550    mkdir conftest
8551    cd conftest
8552    mkdir out
8553    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554
8555    lt_compiler_flag="-o out/conftest2.$ac_objext"
8556    # Insert the option either (1) after the last *FLAGS variable, or
8557    # (2) before a word containing "conftest.", or (3) at the end.
8558    # Note that $ac_compile itself does not contain backslashes and begins
8559    # with a dollar sign (not a hyphen), so the echo should work correctly.
8560    lt_compile=`echo "$ac_compile" | $SED \
8561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563    -e 's:$: $lt_compiler_flag:'`
8564    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565    (eval "$lt_compile" 2>out/conftest.err)
8566    ac_status=$?
8567    cat out/conftest.err >&5
8568    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8570    then
8571      # The compiler can only warn and ignore the option if not recognized
8572      # So say no if there are warnings
8573      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8574      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8575      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8576        lt_cv_prog_compiler_c_o=yes
8577      fi
8578    fi
8579    chmod u+w . 2>&5
8580    $RM conftest*
8581    # SGI C++ compiler will create directory out/ii_files/ for
8582    # template instantiation
8583    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8584    $RM out/* && rmdir out
8585    cd ..
8586    $RM -r conftest
8587    $RM conftest*
8588
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8591 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8592
8593
8594
8595
8596
8597
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8599 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8600 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   lt_cv_prog_compiler_c_o=no
8604    $RM -r conftest 2>/dev/null
8605    mkdir conftest
8606    cd conftest
8607    mkdir out
8608    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609
8610    lt_compiler_flag="-o out/conftest2.$ac_objext"
8611    # Insert the option either (1) after the last *FLAGS variable, or
8612    # (2) before a word containing "conftest.", or (3) at the end.
8613    # Note that $ac_compile itself does not contain backslashes and begins
8614    # with a dollar sign (not a hyphen), so the echo should work correctly.
8615    lt_compile=`echo "$ac_compile" | $SED \
8616    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8617    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8618    -e 's:$: $lt_compiler_flag:'`
8619    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8620    (eval "$lt_compile" 2>out/conftest.err)
8621    ac_status=$?
8622    cat out/conftest.err >&5
8623    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8625    then
8626      # The compiler can only warn and ignore the option if not recognized
8627      # So say no if there are warnings
8628      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8629      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8630      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8631        lt_cv_prog_compiler_c_o=yes
8632      fi
8633    fi
8634    chmod u+w . 2>&5
8635    $RM conftest*
8636    # SGI C++ compiler will create directory out/ii_files/ for
8637    # template instantiation
8638    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8639    $RM out/* && rmdir out
8640    cd ..
8641    $RM -r conftest
8642    $RM conftest*
8643
8644 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8646 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647
8648
8649
8650
8651 hard_links="nottested"
8652 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8653   # do not overwrite the value of need_locks provided by the user
8654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8655 $as_echo_n "checking if we can lock with hard links... " >&6; }
8656   hard_links=yes
8657   $RM conftest*
8658   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8659   touch conftest.a
8660   ln conftest.a conftest.b 2>&5 || hard_links=no
8661   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8663 $as_echo "$hard_links" >&6; }
8664   if test "$hard_links" = no; then
8665     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8666 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8667     need_locks=warn
8668   fi
8669 else
8670   need_locks=no
8671 fi
8672
8673
8674
8675
8676
8677
8678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8679 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8680
8681   runpath_var=
8682   allow_undefined_flag=
8683   always_export_symbols=no
8684   archive_cmds=
8685   archive_expsym_cmds=
8686   compiler_needs_object=no
8687   enable_shared_with_static_runtimes=no
8688   export_dynamic_flag_spec=
8689   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8690   hardcode_automatic=no
8691   hardcode_direct=no
8692   hardcode_direct_absolute=no
8693   hardcode_libdir_flag_spec=
8694   hardcode_libdir_flag_spec_ld=
8695   hardcode_libdir_separator=
8696   hardcode_minus_L=no
8697   hardcode_shlibpath_var=unsupported
8698   inherit_rpath=no
8699   link_all_deplibs=unknown
8700   module_cmds=
8701   module_expsym_cmds=
8702   old_archive_from_new_cmds=
8703   old_archive_from_expsyms_cmds=
8704   thread_safe_flag_spec=
8705   whole_archive_flag_spec=
8706   # include_expsyms should be a list of space-separated symbols to be *always*
8707   # included in the symbol list
8708   include_expsyms=
8709   # exclude_expsyms can be an extended regexp of symbols to exclude
8710   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8711   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8712   # as well as any symbol that contains `d'.
8713   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8714   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8715   # platforms (ab)use it in PIC code, but their linkers get confused if
8716   # the symbol is explicitly referenced.  Since portable code cannot
8717   # rely on this symbol name, it's probably fine to never include it in
8718   # preloaded symbol tables.
8719   # Exclude shared library initialization/finalization symbols.
8720   extract_expsyms_cmds=
8721
8722   case $host_os in
8723   cygwin* | mingw* | pw32* | cegcc*)
8724     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8725     # When not using gcc, we currently assume that we are using
8726     # Microsoft Visual C++.
8727     if test "$GCC" != yes; then
8728       with_gnu_ld=no
8729     fi
8730     ;;
8731   interix*)
8732     # we just hope/assume this is gcc and not c89 (= MSVC++)
8733     with_gnu_ld=yes
8734     ;;
8735   openbsd*)
8736     with_gnu_ld=no
8737     ;;
8738   esac
8739
8740   ld_shlibs=yes
8741
8742   # On some targets, GNU ld is compatible enough with the native linker
8743   # that we're better off using the native interface for both.
8744   lt_use_gnu_ld_interface=no
8745   if test "$with_gnu_ld" = yes; then
8746     case $host_os in
8747       aix*)
8748         # The AIX port of GNU ld has always aspired to compatibility
8749         # with the native linker.  However, as the warning in the GNU ld
8750         # block says, versions before 2.19.5* couldn't really create working
8751         # shared libraries, regardless of the interface used.
8752         case `$LD -v 2>&1` in
8753           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8754           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8755           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8756           *)
8757             lt_use_gnu_ld_interface=yes
8758             ;;
8759         esac
8760         ;;
8761       *)
8762         lt_use_gnu_ld_interface=yes
8763         ;;
8764     esac
8765   fi
8766
8767   if test "$lt_use_gnu_ld_interface" = yes; then
8768     # If archive_cmds runs LD, not CC, wlarc should be empty
8769     wlarc='${wl}'
8770
8771     # Set some defaults for GNU ld with shared library support. These
8772     # are reset later if shared libraries are not supported. Putting them
8773     # here allows them to be overridden if necessary.
8774     runpath_var=LD_RUN_PATH
8775     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8776     export_dynamic_flag_spec='${wl}--export-dynamic'
8777     # ancient GNU ld didn't support --whole-archive et. al.
8778     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8779       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8780     else
8781       whole_archive_flag_spec=
8782     fi
8783     supports_anon_versioning=no
8784     case `$LD -v 2>&1` in
8785       *GNU\ gold*) supports_anon_versioning=yes ;;
8786       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8787       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8788       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8789       *\ 2.11.*) ;; # other 2.11 versions
8790       *) supports_anon_versioning=yes ;;
8791     esac
8792
8793     # See if GNU ld supports shared libraries.
8794     case $host_os in
8795     aix[3-9]*)
8796       # On AIX/PPC, the GNU linker is very broken
8797       if test "$host_cpu" != ia64; then
8798         ld_shlibs=no
8799         cat <<_LT_EOF 1>&2
8800
8801 *** Warning: the GNU linker, at least up to release 2.19, is reported
8802 *** to be unable to reliably create shared libraries on AIX.
8803 *** Therefore, libtool is disabling shared libraries support.  If you
8804 *** really care for shared libraries, you may want to install binutils
8805 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8806 *** You will then need to restart the configuration process.
8807
8808 _LT_EOF
8809       fi
8810       ;;
8811
8812     amigaos*)
8813       case $host_cpu in
8814       powerpc)
8815             # see comment about AmigaOS4 .so support
8816             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8817             archive_expsym_cmds=''
8818         ;;
8819       m68k)
8820             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)'
8821             hardcode_libdir_flag_spec='-L$libdir'
8822             hardcode_minus_L=yes
8823         ;;
8824       esac
8825       ;;
8826
8827     beos*)
8828       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8829         allow_undefined_flag=unsupported
8830         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8831         # support --undefined.  This deserves some investigation.  FIXME
8832         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833       else
8834         ld_shlibs=no
8835       fi
8836       ;;
8837
8838     cygwin* | mingw* | pw32* | cegcc*)
8839       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8840       # as there is no search path for DLLs.
8841       hardcode_libdir_flag_spec='-L$libdir'
8842       export_dynamic_flag_spec='${wl}--export-all-symbols'
8843       allow_undefined_flag=unsupported
8844       always_export_symbols=no
8845       enable_shared_with_static_runtimes=yes
8846       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8847
8848       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8849         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8850         # If the export-symbols file already is a .def file (1st line
8851         # is EXPORTS), use it as is; otherwise, prepend...
8852         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8853           cp $export_symbols $output_objdir/$soname.def;
8854         else
8855           echo EXPORTS > $output_objdir/$soname.def;
8856           cat $export_symbols >> $output_objdir/$soname.def;
8857         fi~
8858         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8859       else
8860         ld_shlibs=no
8861       fi
8862       ;;
8863
8864     haiku*)
8865       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8866       link_all_deplibs=yes
8867       ;;
8868
8869     interix[3-9]*)
8870       hardcode_direct=no
8871       hardcode_shlibpath_var=no
8872       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8873       export_dynamic_flag_spec='${wl}-E'
8874       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8875       # Instead, shared libraries are loaded at an image base (0x10000000 by
8876       # default) and relocated if they conflict, which is a slow very memory
8877       # consuming and fragmenting process.  To avoid this, we pick a random,
8878       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8879       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8880       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8881       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'
8882       ;;
8883
8884     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8885       tmp_diet=no
8886       if test "$host_os" = linux-dietlibc; then
8887         case $cc_basename in
8888           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8889         esac
8890       fi
8891       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8892          && test "$tmp_diet" = no
8893       then
8894         tmp_addflag=
8895         tmp_sharedflag='-shared'
8896         case $cc_basename,$host_cpu in
8897         pgcc*)                          # Portland Group C compiler
8898           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'
8899           tmp_addflag=' $pic_flag'
8900           ;;
8901         pgf77* | pgf90* | pgf95* | pgfortran*)
8902                                         # Portland Group f77 and f90 compilers
8903           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'
8904           tmp_addflag=' $pic_flag -Mnomain' ;;
8905         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8906           tmp_addflag=' -i_dynamic' ;;
8907         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8908           tmp_addflag=' -i_dynamic -nofor_main' ;;
8909         ifc* | ifort*)                  # Intel Fortran compiler
8910           tmp_addflag=' -nofor_main' ;;
8911         lf95*)                          # Lahey Fortran 8.1
8912           whole_archive_flag_spec=
8913           tmp_sharedflag='--shared' ;;
8914         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8915           tmp_sharedflag='-qmkshrobj'
8916           tmp_addflag= ;;
8917         nvcc*)  # Cuda Compiler Driver 2.2
8918           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'
8919           compiler_needs_object=yes
8920           ;;
8921         esac
8922         case `$CC -V 2>&1 | sed 5q` in
8923         *Sun\ C*)                       # Sun C 5.9
8924           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'
8925           compiler_needs_object=yes
8926           tmp_sharedflag='-G' ;;
8927         *Sun\ F*)                       # Sun Fortran 8.3
8928           tmp_sharedflag='-G' ;;
8929         esac
8930         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931
8932         if test "x$supports_anon_versioning" = xyes; then
8933           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8934             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8935             echo "local: *; };" >> $output_objdir/$libname.ver~
8936             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8937         fi
8938
8939         case $cc_basename in
8940         xlf* | bgf* | bgxlf* | mpixlf*)
8941           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8942           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8943           hardcode_libdir_flag_spec=
8944           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8945           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8946           if test "x$supports_anon_versioning" = xyes; then
8947             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8948               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8949               echo "local: *; };" >> $output_objdir/$libname.ver~
8950               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8951           fi
8952           ;;
8953         esac
8954       else
8955         ld_shlibs=no
8956       fi
8957       ;;
8958
8959     netbsd*)
8960       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8961         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8962         wlarc=
8963       else
8964         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8966       fi
8967       ;;
8968
8969     solaris*)
8970       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8971         ld_shlibs=no
8972         cat <<_LT_EOF 1>&2
8973
8974 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8975 *** create shared libraries on Solaris systems.  Therefore, libtool
8976 *** is disabling shared libraries support.  We urge you to upgrade GNU
8977 *** binutils to release 2.9.1 or newer.  Another option is to modify
8978 *** your PATH or compiler configuration so that the native linker is
8979 *** used, and then restart.
8980
8981 _LT_EOF
8982       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8983         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8985       else
8986         ld_shlibs=no
8987       fi
8988       ;;
8989
8990     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8991       case `$LD -v 2>&1` in
8992         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8993         ld_shlibs=no
8994         cat <<_LT_EOF 1>&2
8995
8996 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8997 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8998 *** is disabling shared libraries support.  We urge you to upgrade GNU
8999 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9000 *** your PATH or compiler configuration so that the native linker is
9001 *** used, and then restart.
9002
9003 _LT_EOF
9004         ;;
9005         *)
9006           # For security reasons, it is highly recommended that you always
9007           # use absolute paths for naming shared libraries, and exclude the
9008           # DT_RUNPATH tag from executables and libraries.  But doing so
9009           # requires that you compile everything twice, which is a pain.
9010           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9011             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9012             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9013             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9014           else
9015             ld_shlibs=no
9016           fi
9017         ;;
9018       esac
9019       ;;
9020
9021     sunos4*)
9022       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023       wlarc=
9024       hardcode_direct=yes
9025       hardcode_shlibpath_var=no
9026       ;;
9027
9028     *)
9029       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9030         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9031         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9032       else
9033         ld_shlibs=no
9034       fi
9035       ;;
9036     esac
9037
9038     if test "$ld_shlibs" = no; then
9039       runpath_var=
9040       hardcode_libdir_flag_spec=
9041       export_dynamic_flag_spec=
9042       whole_archive_flag_spec=
9043     fi
9044   else
9045     # PORTME fill in a description of your system's linker (not GNU ld)
9046     case $host_os in
9047     aix3*)
9048       allow_undefined_flag=unsupported
9049       always_export_symbols=yes
9050       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'
9051       # Note: this linker hardcodes the directories in LIBPATH if there
9052       # are no directories specified by -L.
9053       hardcode_minus_L=yes
9054       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9055         # Neither direct hardcoding nor static linking is supported with a
9056         # broken collect2.
9057         hardcode_direct=unsupported
9058       fi
9059       ;;
9060
9061     aix[4-9]*)
9062       if test "$host_cpu" = ia64; then
9063         # On IA64, the linker does run time linking by default, so we don't
9064         # have to do anything special.
9065         aix_use_runtimelinking=no
9066         exp_sym_flag='-Bexport'
9067         no_entry_flag=""
9068       else
9069         # If we're using GNU nm, then we don't want the "-C" option.
9070         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9071         # Also, AIX nm treats weak defined symbols like other global
9072         # defined symbols, whereas GNU nm marks them as "W".
9073         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9074           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'
9075         else
9076           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'
9077         fi
9078         aix_use_runtimelinking=no
9079
9080         # Test if we are trying to use run time linking or normal
9081         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9082         # need to do runtime linking.
9083         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9084           for ld_flag in $LDFLAGS; do
9085           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9086             aix_use_runtimelinking=yes
9087             break
9088           fi
9089           done
9090           ;;
9091         esac
9092
9093         exp_sym_flag='-bexport'
9094         no_entry_flag='-bnoentry'
9095       fi
9096
9097       # When large executables or shared objects are built, AIX ld can
9098       # have problems creating the table of contents.  If linking a library
9099       # or program results in "error TOC overflow" add -mminimal-toc to
9100       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9101       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9102
9103       archive_cmds=''
9104       hardcode_direct=yes
9105       hardcode_direct_absolute=yes
9106       hardcode_libdir_separator=':'
9107       link_all_deplibs=yes
9108       file_list_spec='${wl}-f,'
9109
9110       if test "$GCC" = yes; then
9111         case $host_os in aix4.[012]|aix4.[012].*)
9112         # We only want to do this on AIX 4.2 and lower, the check
9113         # below for broken collect2 doesn't work under 4.3+
9114           collect2name=`${CC} -print-prog-name=collect2`
9115           if test -f "$collect2name" &&
9116            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9117           then
9118           # We have reworked collect2
9119           :
9120           else
9121           # We have old collect2
9122           hardcode_direct=unsupported
9123           # It fails to find uninstalled libraries when the uninstalled
9124           # path is not listed in the libpath.  Setting hardcode_minus_L
9125           # to unsupported forces relinking
9126           hardcode_minus_L=yes
9127           hardcode_libdir_flag_spec='-L$libdir'
9128           hardcode_libdir_separator=
9129           fi
9130           ;;
9131         esac
9132         shared_flag='-shared'
9133         if test "$aix_use_runtimelinking" = yes; then
9134           shared_flag="$shared_flag "'${wl}-G'
9135         fi
9136       else
9137         # not using gcc
9138         if test "$host_cpu" = ia64; then
9139         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9140         # chokes on -Wl,-G. The following line is correct:
9141           shared_flag='-G'
9142         else
9143           if test "$aix_use_runtimelinking" = yes; then
9144             shared_flag='${wl}-G'
9145           else
9146             shared_flag='${wl}-bM:SRE'
9147           fi
9148         fi
9149       fi
9150
9151       export_dynamic_flag_spec='${wl}-bexpall'
9152       # It seems that -bexpall does not export symbols beginning with
9153       # underscore (_), so it is better to generate a list of symbols to export.
9154       always_export_symbols=yes
9155       if test "$aix_use_runtimelinking" = yes; then
9156         # Warning - without using the other runtime loading flags (-brtl),
9157         # -berok will link without error, but may produce a broken library.
9158         allow_undefined_flag='-berok'
9159         # Determine the default libpath from the value encoded in an
9160         # empty executable.
9161         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9162 /* end confdefs.h.  */
9163
9164 int
9165 main ()
9166 {
9167
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 if ac_fn_c_try_link "$LINENO"; then :
9173
9174 lt_aix_libpath_sed='
9175     /Import File Strings/,/^$/ {
9176         /^0/ {
9177             s/^0  *\(.*\)$/\1/
9178             p
9179         }
9180     }'
9181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9182 # Check for a 64-bit object if we didn't find anything.
9183 if test -z "$aix_libpath"; then
9184   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9185 fi
9186 fi
9187 rm -f core conftest.err conftest.$ac_objext \
9188     conftest$ac_exeext conftest.$ac_ext
9189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9190
9191         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9192         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"
9193       else
9194         if test "$host_cpu" = ia64; then
9195           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9196           allow_undefined_flag="-z nodefs"
9197           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"
9198         else
9199          # Determine the default libpath from the value encoded in an
9200          # empty executable.
9201          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h.  */
9203
9204 int
9205 main ()
9206 {
9207
9208   ;
9209   return 0;
9210 }
9211 _ACEOF
9212 if ac_fn_c_try_link "$LINENO"; then :
9213
9214 lt_aix_libpath_sed='
9215     /Import File Strings/,/^$/ {
9216         /^0/ {
9217             s/^0  *\(.*\)$/\1/
9218             p
9219         }
9220     }'
9221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9222 # Check for a 64-bit object if we didn't find anything.
9223 if test -z "$aix_libpath"; then
9224   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9225 fi
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext \
9228     conftest$ac_exeext conftest.$ac_ext
9229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230
9231          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9232           # Warning - without using the other run time loading flags,
9233           # -berok will link without error, but may produce a broken library.
9234           no_undefined_flag=' ${wl}-bernotok'
9235           allow_undefined_flag=' ${wl}-berok'
9236           if test "$with_gnu_ld" = yes; then
9237             # We only use this code for GNU lds that support --whole-archive.
9238             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9239           else
9240             # Exported symbols can be pulled into shared objects from archives
9241             whole_archive_flag_spec='$convenience'
9242           fi
9243           archive_cmds_need_lc=yes
9244           # This is similar to how AIX traditionally builds its shared libraries.
9245           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'
9246         fi
9247       fi
9248       ;;
9249
9250     amigaos*)
9251       case $host_cpu in
9252       powerpc)
9253             # see comment about AmigaOS4 .so support
9254             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9255             archive_expsym_cmds=''
9256         ;;
9257       m68k)
9258             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)'
9259             hardcode_libdir_flag_spec='-L$libdir'
9260             hardcode_minus_L=yes
9261         ;;
9262       esac
9263       ;;
9264
9265     bsdi[45]*)
9266       export_dynamic_flag_spec=-rdynamic
9267       ;;
9268
9269     cygwin* | mingw* | pw32* | cegcc*)
9270       # When not using gcc, we currently assume that we are using
9271       # Microsoft Visual C++.
9272       # hardcode_libdir_flag_spec is actually meaningless, as there is
9273       # no search path for DLLs.
9274       hardcode_libdir_flag_spec=' '
9275       allow_undefined_flag=unsupported
9276       # Tell ltmain to make .lib files, not .a files.
9277       libext=lib
9278       # Tell ltmain to make .dll files, not .so files.
9279       shrext_cmds=".dll"
9280       # FIXME: Setting linknames here is a bad hack.
9281       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9282       # The linker will automatically build a .lib file if we build a DLL.
9283       old_archive_from_new_cmds='true'
9284       # FIXME: Should let the user specify the lib program.
9285       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9286       fix_srcfile_path='`cygpath -w "$srcfile"`'
9287       enable_shared_with_static_runtimes=yes
9288       ;;
9289
9290     darwin* | rhapsody*)
9291
9292
9293   archive_cmds_need_lc=no
9294   hardcode_direct=no
9295   hardcode_automatic=yes
9296   hardcode_shlibpath_var=unsupported
9297   if test "$lt_cv_ld_force_load" = "yes"; then
9298     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\"`'
9299   else
9300     whole_archive_flag_spec=''
9301   fi
9302   link_all_deplibs=yes
9303   allow_undefined_flag="$_lt_dar_allow_undefined"
9304   case $cc_basename in
9305      ifort*) _lt_dar_can_shared=yes ;;
9306      *) _lt_dar_can_shared=$GCC ;;
9307   esac
9308   if test "$_lt_dar_can_shared" = "yes"; then
9309     output_verbose_link_cmd=func_echo_all
9310     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9311     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9312     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}"
9313     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}"
9314
9315   else
9316   ld_shlibs=no
9317   fi
9318
9319       ;;
9320
9321     dgux*)
9322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9323       hardcode_libdir_flag_spec='-L$libdir'
9324       hardcode_shlibpath_var=no
9325       ;;
9326
9327     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9328     # support.  Future versions do this automatically, but an explicit c++rt0.o
9329     # does not break anything, and helps significantly (at the cost of a little
9330     # extra space).
9331     freebsd2.2*)
9332       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9333       hardcode_libdir_flag_spec='-R$libdir'
9334       hardcode_direct=yes
9335       hardcode_shlibpath_var=no
9336       ;;
9337
9338     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9339     freebsd2*)
9340       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9341       hardcode_direct=yes
9342       hardcode_minus_L=yes
9343       hardcode_shlibpath_var=no
9344       ;;
9345
9346     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9347     freebsd* | dragonfly*)
9348       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9349       hardcode_libdir_flag_spec='-R$libdir'
9350       hardcode_direct=yes
9351       hardcode_shlibpath_var=no
9352       ;;
9353
9354     hpux9*)
9355       if test "$GCC" = yes; then
9356         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'
9357       else
9358         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'
9359       fi
9360       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9361       hardcode_libdir_separator=:
9362       hardcode_direct=yes
9363
9364       # hardcode_minus_L: Not really in the search PATH,
9365       # but as the default location of the library.
9366       hardcode_minus_L=yes
9367       export_dynamic_flag_spec='${wl}-E'
9368       ;;
9369
9370     hpux10*)
9371       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9372         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9373       else
9374         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9375       fi
9376       if test "$with_gnu_ld" = no; then
9377         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9378         hardcode_libdir_flag_spec_ld='+b $libdir'
9379         hardcode_libdir_separator=:
9380         hardcode_direct=yes
9381         hardcode_direct_absolute=yes
9382         export_dynamic_flag_spec='${wl}-E'
9383         # hardcode_minus_L: Not really in the search PATH,
9384         # but as the default location of the library.
9385         hardcode_minus_L=yes
9386       fi
9387       ;;
9388
9389     hpux11*)
9390       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9391         case $host_cpu in
9392         hppa*64*)
9393           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394           ;;
9395         ia64*)
9396           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9397           ;;
9398         *)
9399           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9400           ;;
9401         esac
9402       else
9403         case $host_cpu in
9404         hppa*64*)
9405           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406           ;;
9407         ia64*)
9408           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9409           ;;
9410         *)
9411
9412           # Older versions of the 11.00 compiler do not understand -b yet
9413           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9414           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9415 $as_echo_n "checking if $CC understands -b... " >&6; }
9416 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9417   $as_echo_n "(cached) " >&6
9418 else
9419   lt_cv_prog_compiler__b=no
9420    save_LDFLAGS="$LDFLAGS"
9421    LDFLAGS="$LDFLAGS -b"
9422    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9423    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9424      # The linker can only warn and ignore the option if not recognized
9425      # So say no if there are warnings
9426      if test -s conftest.err; then
9427        # Append any errors to the config.log.
9428        cat conftest.err 1>&5
9429        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9430        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9431        if diff conftest.exp conftest.er2 >/dev/null; then
9432          lt_cv_prog_compiler__b=yes
9433        fi
9434      else
9435        lt_cv_prog_compiler__b=yes
9436      fi
9437    fi
9438    $RM -r conftest*
9439    LDFLAGS="$save_LDFLAGS"
9440
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9443 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9444
9445 if test x"$lt_cv_prog_compiler__b" = xyes; then
9446     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447 else
9448     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9449 fi
9450
9451           ;;
9452         esac
9453       fi
9454       if test "$with_gnu_ld" = no; then
9455         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9456         hardcode_libdir_separator=:
9457
9458         case $host_cpu in
9459         hppa*64*|ia64*)
9460           hardcode_direct=no
9461           hardcode_shlibpath_var=no
9462           ;;
9463         *)
9464           hardcode_direct=yes
9465           hardcode_direct_absolute=yes
9466           export_dynamic_flag_spec='${wl}-E'
9467
9468           # hardcode_minus_L: Not really in the search PATH,
9469           # but as the default location of the library.
9470           hardcode_minus_L=yes
9471           ;;
9472         esac
9473       fi
9474       ;;
9475
9476     irix5* | irix6* | nonstopux*)
9477       if test "$GCC" = yes; then
9478         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'
9479         # Try to use the -exported_symbol ld option, if it does not
9480         # work, assume that -exports_file does not work either and
9481         # implicitly export all symbols.
9482         save_LDFLAGS="$LDFLAGS"
9483         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9484         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h.  */
9486 int foo(void) {}
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489   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'
9490
9491 fi
9492 rm -f core conftest.err conftest.$ac_objext \
9493     conftest$ac_exeext conftest.$ac_ext
9494         LDFLAGS="$save_LDFLAGS"
9495       else
9496         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'
9497         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'
9498       fi
9499       archive_cmds_need_lc='no'
9500       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9501       hardcode_libdir_separator=:
9502       inherit_rpath=yes
9503       link_all_deplibs=yes
9504       ;;
9505
9506     netbsd*)
9507       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9508         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9509       else
9510         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9511       fi
9512       hardcode_libdir_flag_spec='-R$libdir'
9513       hardcode_direct=yes
9514       hardcode_shlibpath_var=no
9515       ;;
9516
9517     newsos6)
9518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519       hardcode_direct=yes
9520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9521       hardcode_libdir_separator=:
9522       hardcode_shlibpath_var=no
9523       ;;
9524
9525     *nto* | *qnx*)
9526       ;;
9527
9528     openbsd*)
9529       if test -f /usr/libexec/ld.so; then
9530         hardcode_direct=yes
9531         hardcode_shlibpath_var=no
9532         hardcode_direct_absolute=yes
9533         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9534           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9535           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9536           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9537           export_dynamic_flag_spec='${wl}-E'
9538         else
9539           case $host_os in
9540            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9541              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542              hardcode_libdir_flag_spec='-R$libdir'
9543              ;;
9544            *)
9545              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9546              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547              ;;
9548           esac
9549         fi
9550       else
9551         ld_shlibs=no
9552       fi
9553       ;;
9554
9555     os2*)
9556       hardcode_libdir_flag_spec='-L$libdir'
9557       hardcode_minus_L=yes
9558       allow_undefined_flag=unsupported
9559       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'
9560       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9561       ;;
9562
9563     osf3*)
9564       if test "$GCC" = yes; then
9565         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9566         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'
9567       else
9568         allow_undefined_flag=' -expect_unresolved \*'
9569         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'
9570       fi
9571       archive_cmds_need_lc='no'
9572       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573       hardcode_libdir_separator=:
9574       ;;
9575
9576     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9577       if test "$GCC" = yes; then
9578         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9579         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'
9580         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581       else
9582         allow_undefined_flag=' -expect_unresolved \*'
9583         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'
9584         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~
9585         $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'
9586
9587         # Both c and cxx compiler support -rpath directly
9588         hardcode_libdir_flag_spec='-rpath $libdir'
9589       fi
9590       archive_cmds_need_lc='no'
9591       hardcode_libdir_separator=:
9592       ;;
9593
9594     solaris*)
9595       no_undefined_flag=' -z defs'
9596       if test "$GCC" = yes; then
9597         wlarc='${wl}'
9598         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9599         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9600           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9601       else
9602         case `$CC -V 2>&1` in
9603         *"Compilers 5.0"*)
9604           wlarc=''
9605           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9606           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9607           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9608           ;;
9609         *)
9610           wlarc='${wl}'
9611           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9612           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9613           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614           ;;
9615         esac
9616       fi
9617       hardcode_libdir_flag_spec='-R$libdir'
9618       hardcode_shlibpath_var=no
9619       case $host_os in
9620       solaris2.[0-5] | solaris2.[0-5].*) ;;
9621       *)
9622         # The compiler driver will combine and reorder linker options,
9623         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9624         # but is careful enough not to reorder.
9625         # Supported since Solaris 2.6 (maybe 2.5.1?)
9626         if test "$GCC" = yes; then
9627           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9628         else
9629           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9630         fi
9631         ;;
9632       esac
9633       link_all_deplibs=yes
9634       ;;
9635
9636     sunos4*)
9637       if test "x$host_vendor" = xsequent; then
9638         # Use $CC to link under sequent, because it throws in some extra .o
9639         # files that make .init and .fini sections work.
9640         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9641       else
9642         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9643       fi
9644       hardcode_libdir_flag_spec='-L$libdir'
9645       hardcode_direct=yes
9646       hardcode_minus_L=yes
9647       hardcode_shlibpath_var=no
9648       ;;
9649
9650     sysv4)
9651       case $host_vendor in
9652         sni)
9653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9654           hardcode_direct=yes # is this really true???
9655         ;;
9656         siemens)
9657           ## LD is ld it makes a PLAMLIB
9658           ## CC just makes a GrossModule.
9659           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9660           reload_cmds='$CC -r -o $output$reload_objs'
9661           hardcode_direct=no
9662         ;;
9663         motorola)
9664           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9665           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9666         ;;
9667       esac
9668       runpath_var='LD_RUN_PATH'
9669       hardcode_shlibpath_var=no
9670       ;;
9671
9672     sysv4.3*)
9673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9674       hardcode_shlibpath_var=no
9675       export_dynamic_flag_spec='-Bexport'
9676       ;;
9677
9678     sysv4*MP*)
9679       if test -d /usr/nec; then
9680         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9681         hardcode_shlibpath_var=no
9682         runpath_var=LD_RUN_PATH
9683         hardcode_runpath_var=yes
9684         ld_shlibs=yes
9685       fi
9686       ;;
9687
9688     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9689       no_undefined_flag='${wl}-z,text'
9690       archive_cmds_need_lc=no
9691       hardcode_shlibpath_var=no
9692       runpath_var='LD_RUN_PATH'
9693
9694       if test "$GCC" = yes; then
9695         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697       else
9698         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9699         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9700       fi
9701       ;;
9702
9703     sysv5* | sco3.2v5* | sco5v6*)
9704       # Note: We can NOT use -z defs as we might desire, because we do not
9705       # link with -lc, and that would cause any symbols used from libc to
9706       # always be unresolved, which means just about no library would
9707       # ever link correctly.  If we're not using GNU ld we use -z text
9708       # though, which does catch some bad symbols but isn't as heavy-handed
9709       # as -z defs.
9710       no_undefined_flag='${wl}-z,text'
9711       allow_undefined_flag='${wl}-z,nodefs'
9712       archive_cmds_need_lc=no
9713       hardcode_shlibpath_var=no
9714       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9715       hardcode_libdir_separator=':'
9716       link_all_deplibs=yes
9717       export_dynamic_flag_spec='${wl}-Bexport'
9718       runpath_var='LD_RUN_PATH'
9719
9720       if test "$GCC" = yes; then
9721         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9723       else
9724         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9725         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9726       fi
9727       ;;
9728
9729     uts4*)
9730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9731       hardcode_libdir_flag_spec='-L$libdir'
9732       hardcode_shlibpath_var=no
9733       ;;
9734
9735     *)
9736       ld_shlibs=no
9737       ;;
9738     esac
9739
9740     if test x$host_vendor = xsni; then
9741       case $host in
9742       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9743         export_dynamic_flag_spec='${wl}-Blargedynsym'
9744         ;;
9745       esac
9746     fi
9747   fi
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9750 $as_echo "$ld_shlibs" >&6; }
9751 test "$ld_shlibs" = no && can_build_shared=no
9752
9753 with_gnu_ld=$with_gnu_ld
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769 #
9770 # Do we need to explicitly link libc?
9771 #
9772 case "x$archive_cmds_need_lc" in
9773 x|xyes)
9774   # Assume -lc should be added
9775   archive_cmds_need_lc=yes
9776
9777   if test "$enable_shared" = yes && test "$GCC" = yes; then
9778     case $archive_cmds in
9779     *'~'*)
9780       # FIXME: we may have to deal with multi-command sequences.
9781       ;;
9782     '$CC '*)
9783       # Test whether the compiler implicitly links with -lc since on some
9784       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9785       # to ld, don't add -lc before -lgcc.
9786       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9788 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9789   $as_echo_n "(cached) " >&6
9790 else
9791   $RM conftest*
9792         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9793
9794         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798   test $ac_status = 0; } 2>conftest.err; then
9799           soname=conftest
9800           lib=conftest
9801           libobjs=conftest.$ac_objext
9802           deplibs=
9803           wl=$lt_prog_compiler_wl
9804           pic_flag=$lt_prog_compiler_pic
9805           compiler_flags=-v
9806           linker_flags=-v
9807           verstring=
9808           output_objdir=.
9809           libname=conftest
9810           lt_save_allow_undefined_flag=$allow_undefined_flag
9811           allow_undefined_flag=
9812           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9813   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9814   ac_status=$?
9815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816   test $ac_status = 0; }
9817           then
9818             lt_cv_archive_cmds_need_lc=no
9819           else
9820             lt_cv_archive_cmds_need_lc=yes
9821           fi
9822           allow_undefined_flag=$lt_save_allow_undefined_flag
9823         else
9824           cat conftest.err 1>&5
9825         fi
9826         $RM conftest*
9827
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9830 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9831       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9832       ;;
9833     esac
9834   fi
9835   ;;
9836 esac
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9995 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9996
9997 if test "$GCC" = yes; then
9998   case $host_os in
9999     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10000     *) lt_awk_arg="/^libraries:/" ;;
10001   esac
10002   case $host_os in
10003     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10004     *) lt_sed_strip_eq="s,=/,/,g" ;;
10005   esac
10006   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10007   case $lt_search_path_spec in
10008   *\;*)
10009     # if the path contains ";" then we assume it to be the separator
10010     # otherwise default to the standard path separator (i.e. ":") - it is
10011     # assumed that no part of a normal pathname contains ";" but that should
10012     # okay in the real world where ";" in dirpaths is itself problematic.
10013     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10014     ;;
10015   *)
10016     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10017     ;;
10018   esac
10019   # Ok, now we have the path, separated by spaces, we can step through it
10020   # and add multilib dir if necessary.
10021   lt_tmp_lt_search_path_spec=
10022   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10023   for lt_sys_path in $lt_search_path_spec; do
10024     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10025       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10026     else
10027       test -d "$lt_sys_path" && \
10028         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10029     fi
10030   done
10031   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10032 BEGIN {RS=" "; FS="/|\n";} {
10033   lt_foo="";
10034   lt_count=0;
10035   for (lt_i = NF; lt_i > 0; lt_i--) {
10036     if ($lt_i != "" && $lt_i != ".") {
10037       if ($lt_i == "..") {
10038         lt_count++;
10039       } else {
10040         if (lt_count == 0) {
10041           lt_foo="/" $lt_i lt_foo;
10042         } else {
10043           lt_count--;
10044         }
10045       }
10046     }
10047   }
10048   if (lt_foo != "") { lt_freq[lt_foo]++; }
10049   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10050 }'`
10051   # AWK program above erroneously prepends '/' to C:/dos/paths
10052   # for these hosts.
10053   case $host_os in
10054     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10055       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10056   esac
10057   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10058 else
10059   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10060 fi
10061 library_names_spec=
10062 libname_spec='lib$name'
10063 soname_spec=
10064 shrext_cmds=".so"
10065 postinstall_cmds=
10066 postuninstall_cmds=
10067 finish_cmds=
10068 finish_eval=
10069 shlibpath_var=
10070 shlibpath_overrides_runpath=unknown
10071 version_type=none
10072 dynamic_linker="$host_os ld.so"
10073 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10074 need_lib_prefix=unknown
10075 hardcode_into_libs=no
10076
10077 # when you set need_version to no, make sure it does not cause -set_version
10078 # flags to be left without arguments
10079 need_version=unknown
10080
10081 case $host_os in
10082 aix3*)
10083   version_type=linux
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10085   shlibpath_var=LIBPATH
10086
10087   # AIX 3 has no versioning support, so we append a major version to the name.
10088   soname_spec='${libname}${release}${shared_ext}$major'
10089   ;;
10090
10091 aix[4-9]*)
10092   version_type=linux
10093   need_lib_prefix=no
10094   need_version=no
10095   hardcode_into_libs=yes
10096   if test "$host_cpu" = ia64; then
10097     # AIX 5 supports IA64
10098     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10099     shlibpath_var=LD_LIBRARY_PATH
10100   else
10101     # With GCC up to 2.95.x, collect2 would create an import file
10102     # for dependence libraries.  The import file would start with
10103     # the line `#! .'.  This would cause the generated library to
10104     # depend on `.', always an invalid library.  This was fixed in
10105     # development snapshots of GCC prior to 3.0.
10106     case $host_os in
10107       aix4 | aix4.[01] | aix4.[01].*)
10108       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10109            echo ' yes '
10110            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10111         :
10112       else
10113         can_build_shared=no
10114       fi
10115       ;;
10116     esac
10117     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10118     # soname into executable. Probably we can add versioning support to
10119     # collect2, so additional links can be useful in future.
10120     if test "$aix_use_runtimelinking" = yes; then
10121       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10122       # instead of lib<name>.a to let people know that these are not
10123       # typical AIX shared libraries.
10124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125     else
10126       # We preserve .a as extension for shared libraries through AIX4.2
10127       # and later when we are not doing run time linking.
10128       library_names_spec='${libname}${release}.a $libname.a'
10129       soname_spec='${libname}${release}${shared_ext}$major'
10130     fi
10131     shlibpath_var=LIBPATH
10132   fi
10133   ;;
10134
10135 amigaos*)
10136   case $host_cpu in
10137   powerpc)
10138     # Since July 2007 AmigaOS4 officially supports .so libraries.
10139     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10140     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141     ;;
10142   m68k)
10143     library_names_spec='$libname.ixlibrary $libname.a'
10144     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10145     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'
10146     ;;
10147   esac
10148   ;;
10149
10150 beos*)
10151   library_names_spec='${libname}${shared_ext}'
10152   dynamic_linker="$host_os ld.so"
10153   shlibpath_var=LIBRARY_PATH
10154   ;;
10155
10156 bsdi[45]*)
10157   version_type=linux
10158   need_version=no
10159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10160   soname_spec='${libname}${release}${shared_ext}$major'
10161   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10162   shlibpath_var=LD_LIBRARY_PATH
10163   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10164   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10165   # the default ld.so.conf also contains /usr/contrib/lib and
10166   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10167   # libtool to hard-code these into programs
10168   ;;
10169
10170 cygwin* | mingw* | pw32* | cegcc*)
10171   version_type=windows
10172   shrext_cmds=".dll"
10173   need_version=no
10174   need_lib_prefix=no
10175
10176   case $GCC,$host_os in
10177   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10178     library_names_spec='$libname.dll.a'
10179     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10180     postinstall_cmds='base_file=`basename \${file}`~
10181       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10182       dldir=$destdir/`dirname \$dlpath`~
10183       test -d \$dldir || mkdir -p \$dldir~
10184       $install_prog $dir/$dlname \$dldir/$dlname~
10185       chmod a+x \$dldir/$dlname~
10186       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10187         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10188       fi'
10189     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10190       dlpath=$dir/\$dldll~
10191        $RM \$dlpath'
10192     shlibpath_overrides_runpath=yes
10193
10194     case $host_os in
10195     cygwin*)
10196       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10197       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198
10199       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10200       ;;
10201     mingw* | cegcc*)
10202       # MinGW DLLs use traditional 'lib' prefix
10203       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204       ;;
10205     pw32*)
10206       # pw32 DLLs use 'pw' prefix rather than 'lib'
10207       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208       ;;
10209     esac
10210     ;;
10211
10212   *)
10213     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10214     ;;
10215   esac
10216   dynamic_linker='Win32 ld.exe'
10217   # FIXME: first we should search . and the directory the executable is in
10218   shlibpath_var=PATH
10219   ;;
10220
10221 darwin* | rhapsody*)
10222   dynamic_linker="$host_os dyld"
10223   version_type=darwin
10224   need_lib_prefix=no
10225   need_version=no
10226   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10227   soname_spec='${libname}${release}${major}$shared_ext'
10228   shlibpath_overrides_runpath=yes
10229   shlibpath_var=DYLD_LIBRARY_PATH
10230   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10231
10232   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10233   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10234   ;;
10235
10236 dgux*)
10237   version_type=linux
10238   need_lib_prefix=no
10239   need_version=no
10240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10241   soname_spec='${libname}${release}${shared_ext}$major'
10242   shlibpath_var=LD_LIBRARY_PATH
10243   ;;
10244
10245 freebsd* | dragonfly*)
10246   # DragonFly does not have aout.  When/if they implement a new
10247   # versioning mechanism, adjust this.
10248   if test -x /usr/bin/objformat; then
10249     objformat=`/usr/bin/objformat`
10250   else
10251     case $host_os in
10252     freebsd[123]*) objformat=aout ;;
10253     *) objformat=elf ;;
10254     esac
10255   fi
10256   version_type=freebsd-$objformat
10257   case $version_type in
10258     freebsd-elf*)
10259       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260       need_version=no
10261       need_lib_prefix=no
10262       ;;
10263     freebsd-*)
10264       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10265       need_version=yes
10266       ;;
10267   esac
10268   shlibpath_var=LD_LIBRARY_PATH
10269   case $host_os in
10270   freebsd2*)
10271     shlibpath_overrides_runpath=yes
10272     ;;
10273   freebsd3.[01]* | freebsdelf3.[01]*)
10274     shlibpath_overrides_runpath=yes
10275     hardcode_into_libs=yes
10276     ;;
10277   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10278   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10279     shlibpath_overrides_runpath=no
10280     hardcode_into_libs=yes
10281     ;;
10282   *) # from 4.6 on, and DragonFly
10283     shlibpath_overrides_runpath=yes
10284     hardcode_into_libs=yes
10285     ;;
10286   esac
10287   ;;
10288
10289 gnu*)
10290   version_type=linux
10291   need_lib_prefix=no
10292   need_version=no
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10294   soname_spec='${libname}${release}${shared_ext}$major'
10295   shlibpath_var=LD_LIBRARY_PATH
10296   hardcode_into_libs=yes
10297   ;;
10298
10299 haiku*)
10300   version_type=linux
10301   need_lib_prefix=no
10302   need_version=no
10303   dynamic_linker="$host_os runtime_loader"
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10309   hardcode_into_libs=yes
10310   ;;
10311
10312 hpux9* | hpux10* | hpux11*)
10313   # Give a soname corresponding to the major version so that dld.sl refuses to
10314   # link against other versions.
10315   version_type=sunos
10316   need_lib_prefix=no
10317   need_version=no
10318   case $host_cpu in
10319   ia64*)
10320     shrext_cmds='.so'
10321     hardcode_into_libs=yes
10322     dynamic_linker="$host_os dld.so"
10323     shlibpath_var=LD_LIBRARY_PATH
10324     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10325     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326     soname_spec='${libname}${release}${shared_ext}$major'
10327     if test "X$HPUX_IA64_MODE" = X32; then
10328       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10329     else
10330       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10331     fi
10332     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333     ;;
10334   hppa*64*)
10335     shrext_cmds='.sl'
10336     hardcode_into_libs=yes
10337     dynamic_linker="$host_os dld.sl"
10338     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10339     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10340     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341     soname_spec='${libname}${release}${shared_ext}$major'
10342     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10343     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10344     ;;
10345   *)
10346     shrext_cmds='.sl'
10347     dynamic_linker="$host_os dld.sl"
10348     shlibpath_var=SHLIB_PATH
10349     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10350     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10351     soname_spec='${libname}${release}${shared_ext}$major'
10352     ;;
10353   esac
10354   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10355   postinstall_cmds='chmod 555 $lib'
10356   # or fails outright, so override atomically:
10357   install_override_mode=555
10358   ;;
10359
10360 interix[3-9]*)
10361   version_type=linux
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10367   shlibpath_var=LD_LIBRARY_PATH
10368   shlibpath_overrides_runpath=no
10369   hardcode_into_libs=yes
10370   ;;
10371
10372 irix5* | irix6* | nonstopux*)
10373   case $host_os in
10374     nonstopux*) version_type=nonstopux ;;
10375     *)
10376         if test "$lt_cv_prog_gnu_ld" = yes; then
10377                 version_type=linux
10378         else
10379                 version_type=irix
10380         fi ;;
10381   esac
10382   need_lib_prefix=no
10383   need_version=no
10384   soname_spec='${libname}${release}${shared_ext}$major'
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10386   case $host_os in
10387   irix5* | nonstopux*)
10388     libsuff= shlibsuff=
10389     ;;
10390   *)
10391     case $LD in # libtool.m4 will add one of these switches to LD
10392     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10393       libsuff= shlibsuff= libmagic=32-bit;;
10394     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10395       libsuff=32 shlibsuff=N32 libmagic=N32;;
10396     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10397       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10398     *) libsuff= shlibsuff= libmagic=never-match;;
10399     esac
10400     ;;
10401   esac
10402   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10403   shlibpath_overrides_runpath=no
10404   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10405   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10406   hardcode_into_libs=yes
10407   ;;
10408
10409 # No shared lib support for Linux oldld, aout, or coff.
10410 linux*oldld* | linux*aout* | linux*coff*)
10411   dynamic_linker=no
10412   ;;
10413
10414 # This must be Linux ELF.
10415 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10416   version_type=linux
10417   need_lib_prefix=no
10418   need_version=no
10419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10420   soname_spec='${libname}${release}${shared_ext}$major'
10421   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   shlibpath_overrides_runpath=no
10424
10425   # Some binutils ld are patched to set DT_RUNPATH
10426   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10427   $as_echo_n "(cached) " >&6
10428 else
10429   lt_cv_shlibpath_overrides_runpath=no
10430     save_LDFLAGS=$LDFLAGS
10431     save_libdir=$libdir
10432     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10433          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10434     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h.  */
10436
10437 int
10438 main ()
10439 {
10440
10441   ;
10442   return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10447   lt_cv_shlibpath_overrides_runpath=yes
10448 fi
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451     conftest$ac_exeext conftest.$ac_ext
10452     LDFLAGS=$save_LDFLAGS
10453     libdir=$save_libdir
10454
10455 fi
10456
10457   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10458
10459   # This implies no fast_install, which is unacceptable.
10460   # Some rework will be needed to allow for fast_install
10461   # before this can be enabled.
10462   hardcode_into_libs=yes
10463
10464   # Append ld.so.conf contents to the search path
10465   if test -f /etc/ld.so.conf; then
10466     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' ' '`
10467     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10468   fi
10469
10470   # We used to test for /lib/ld.so.1 and disable shared libraries on
10471   # powerpc, because MkLinux only supported shared libraries with the
10472   # GNU dynamic linker.  Since this was broken with cross compilers,
10473   # most powerpc-linux boxes support dynamic linking these days and
10474   # people can always --disable-shared, the test was removed, and we
10475   # assume the GNU/Linux dynamic linker is in use.
10476   dynamic_linker='GNU/Linux ld.so'
10477   ;;
10478
10479 netbsd*)
10480   version_type=sunos
10481   need_lib_prefix=no
10482   need_version=no
10483   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10485     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10486     dynamic_linker='NetBSD (a.out) ld.so'
10487   else
10488     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10489     soname_spec='${libname}${release}${shared_ext}$major'
10490     dynamic_linker='NetBSD ld.elf_so'
10491   fi
10492   shlibpath_var=LD_LIBRARY_PATH
10493   shlibpath_overrides_runpath=yes
10494   hardcode_into_libs=yes
10495   ;;
10496
10497 newsos6)
10498   version_type=linux
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500   shlibpath_var=LD_LIBRARY_PATH
10501   shlibpath_overrides_runpath=yes
10502   ;;
10503
10504 *nto* | *qnx*)
10505   version_type=qnx
10506   need_lib_prefix=no
10507   need_version=no
10508   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10509   soname_spec='${libname}${release}${shared_ext}$major'
10510   shlibpath_var=LD_LIBRARY_PATH
10511   shlibpath_overrides_runpath=no
10512   hardcode_into_libs=yes
10513   dynamic_linker='ldqnx.so'
10514   ;;
10515
10516 openbsd*)
10517   version_type=sunos
10518   sys_lib_dlsearch_path_spec="/usr/lib"
10519   need_lib_prefix=no
10520   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10521   case $host_os in
10522     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10523     *)                          need_version=no  ;;
10524   esac
10525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10527   shlibpath_var=LD_LIBRARY_PATH
10528   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10529     case $host_os in
10530       openbsd2.[89] | openbsd2.[89].*)
10531         shlibpath_overrides_runpath=no
10532         ;;
10533       *)
10534         shlibpath_overrides_runpath=yes
10535         ;;
10536       esac
10537   else
10538     shlibpath_overrides_runpath=yes
10539   fi
10540   ;;
10541
10542 os2*)
10543   libname_spec='$name'
10544   shrext_cmds=".dll"
10545   need_lib_prefix=no
10546   library_names_spec='$libname${shared_ext} $libname.a'
10547   dynamic_linker='OS/2 ld.exe'
10548   shlibpath_var=LIBPATH
10549   ;;
10550
10551 osf3* | osf4* | osf5*)
10552   version_type=osf
10553   need_lib_prefix=no
10554   need_version=no
10555   soname_spec='${libname}${release}${shared_ext}$major'
10556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557   shlibpath_var=LD_LIBRARY_PATH
10558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10560   ;;
10561
10562 rdos*)
10563   dynamic_linker=no
10564   ;;
10565
10566 solaris*)
10567   version_type=linux
10568   need_lib_prefix=no
10569   need_version=no
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10571   soname_spec='${libname}${release}${shared_ext}$major'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   shlibpath_overrides_runpath=yes
10574   hardcode_into_libs=yes
10575   # ldd complains unless libraries are executable
10576   postinstall_cmds='chmod +x $lib'
10577   ;;
10578
10579 sunos4*)
10580   version_type=sunos
10581   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10582   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10583   shlibpath_var=LD_LIBRARY_PATH
10584   shlibpath_overrides_runpath=yes
10585   if test "$with_gnu_ld" = yes; then
10586     need_lib_prefix=no
10587   fi
10588   need_version=yes
10589   ;;
10590
10591 sysv4 | sysv4.3*)
10592   version_type=linux
10593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   shlibpath_var=LD_LIBRARY_PATH
10596   case $host_vendor in
10597     sni)
10598       shlibpath_overrides_runpath=no
10599       need_lib_prefix=no
10600       runpath_var=LD_RUN_PATH
10601       ;;
10602     siemens)
10603       need_lib_prefix=no
10604       ;;
10605     motorola)
10606       need_lib_prefix=no
10607       need_version=no
10608       shlibpath_overrides_runpath=no
10609       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10610       ;;
10611   esac
10612   ;;
10613
10614 sysv4*MP*)
10615   if test -d /usr/nec ;then
10616     version_type=linux
10617     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10618     soname_spec='$libname${shared_ext}.$major'
10619     shlibpath_var=LD_LIBRARY_PATH
10620   fi
10621   ;;
10622
10623 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10624   version_type=freebsd-elf
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   shlibpath_overrides_runpath=yes
10631   hardcode_into_libs=yes
10632   if test "$with_gnu_ld" = yes; then
10633     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10634   else
10635     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10636     case $host_os in
10637       sco3.2v5*)
10638         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10639         ;;
10640     esac
10641   fi
10642   sys_lib_dlsearch_path_spec='/usr/lib'
10643   ;;
10644
10645 tpf*)
10646   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10647   version_type=linux
10648   need_lib_prefix=no
10649   need_version=no
10650   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651   shlibpath_var=LD_LIBRARY_PATH
10652   shlibpath_overrides_runpath=no
10653   hardcode_into_libs=yes
10654   ;;
10655
10656 uts4*)
10657   version_type=linux
10658   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10659   soname_spec='${libname}${release}${shared_ext}$major'
10660   shlibpath_var=LD_LIBRARY_PATH
10661   ;;
10662
10663 *)
10664   dynamic_linker=no
10665   ;;
10666 esac
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10668 $as_echo "$dynamic_linker" >&6; }
10669 test "$dynamic_linker" = no && can_build_shared=no
10670
10671 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10672 if test "$GCC" = yes; then
10673   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10674 fi
10675
10676 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10677   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10678 fi
10679 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10680   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10681 fi
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10775 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10776 hardcode_action=
10777 if test -n "$hardcode_libdir_flag_spec" ||
10778    test -n "$runpath_var" ||
10779    test "X$hardcode_automatic" = "Xyes" ; then
10780
10781   # We can hardcode non-existent directories.
10782   if test "$hardcode_direct" != no &&
10783      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10784      # have to relink, otherwise we might link with an installed library
10785      # when we should be linking with a yet-to-be-installed one
10786      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10787      test "$hardcode_minus_L" != no; then
10788     # Linking always hardcodes the temporary library directory.
10789     hardcode_action=relink
10790   else
10791     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10792     hardcode_action=immediate
10793   fi
10794 else
10795   # We cannot hardcode anything, or else we can only hardcode existing
10796   # directories.
10797   hardcode_action=unsupported
10798 fi
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10800 $as_echo "$hardcode_action" >&6; }
10801
10802 if test "$hardcode_action" = relink ||
10803    test "$inherit_rpath" = yes; then
10804   # Fast installation is not supported
10805   enable_fast_install=no
10806 elif test "$shlibpath_overrides_runpath" = yes ||
10807      test "$enable_shared" = no; then
10808   # Fast installation is not necessary
10809   enable_fast_install=needless
10810 fi
10811
10812
10813
10814
10815
10816
10817   if test "x$enable_dlopen" != xyes; then
10818   enable_dlopen=unknown
10819   enable_dlopen_self=unknown
10820   enable_dlopen_self_static=unknown
10821 else
10822   lt_cv_dlopen=no
10823   lt_cv_dlopen_libs=
10824
10825   case $host_os in
10826   beos*)
10827     lt_cv_dlopen="load_add_on"
10828     lt_cv_dlopen_libs=
10829     lt_cv_dlopen_self=yes
10830     ;;
10831
10832   mingw* | pw32* | cegcc*)
10833     lt_cv_dlopen="LoadLibrary"
10834     lt_cv_dlopen_libs=
10835     ;;
10836
10837   cygwin*)
10838     lt_cv_dlopen="dlopen"
10839     lt_cv_dlopen_libs=
10840     ;;
10841
10842   darwin*)
10843   # if libdl is installed we need to link against it
10844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10845 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10846 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10847   $as_echo_n "(cached) " >&6
10848 else
10849   ac_check_lib_save_LIBS=$LIBS
10850 LIBS="-ldl  $LIBS"
10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852 /* end confdefs.h.  */
10853
10854 /* Override any GCC internal prototype to avoid an error.
10855    Use char because int might match the return type of a GCC
10856    builtin and then its argument prototype would still apply.  */
10857 #ifdef __cplusplus
10858 extern "C"
10859 #endif
10860 char dlopen ();
10861 int
10862 main ()
10863 {
10864 return dlopen ();
10865   ;
10866   return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"; then :
10870   ac_cv_lib_dl_dlopen=yes
10871 else
10872   ac_cv_lib_dl_dlopen=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext \
10875     conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10877 fi
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10879 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10880 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10881   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10882 else
10883
10884     lt_cv_dlopen="dyld"
10885     lt_cv_dlopen_libs=
10886     lt_cv_dlopen_self=yes
10887
10888 fi
10889
10890     ;;
10891
10892   *)
10893     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10894 if test "x$ac_cv_func_shl_load" = x""yes; then :
10895   lt_cv_dlopen="shl_load"
10896 else
10897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10898 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10899 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10900   $as_echo_n "(cached) " >&6
10901 else
10902   ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldld  $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h.  */
10906
10907 /* Override any GCC internal prototype to avoid an error.
10908    Use char because int might match the return type of a GCC
10909    builtin and then its argument prototype would still apply.  */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char shl_load ();
10914 int
10915 main ()
10916 {
10917 return shl_load ();
10918   ;
10919   return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923   ac_cv_lib_dld_shl_load=yes
10924 else
10925   ac_cv_lib_dld_shl_load=no
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext \
10928     conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10930 fi
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10932 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10933 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10934   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10935 else
10936   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10937 if test "x$ac_cv_func_dlopen" = x""yes; then :
10938   lt_cv_dlopen="dlopen"
10939 else
10940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10942 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10943   $as_echo_n "(cached) " >&6
10944 else
10945   ac_check_lib_save_LIBS=$LIBS
10946 LIBS="-ldl  $LIBS"
10947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h.  */
10949
10950 /* Override any GCC internal prototype to avoid an error.
10951    Use char because int might match the return type of a GCC
10952    builtin and then its argument prototype would still apply.  */
10953 #ifdef __cplusplus
10954 extern "C"
10955 #endif
10956 char dlopen ();
10957 int
10958 main ()
10959 {
10960 return dlopen ();
10961   ;
10962   return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_link "$LINENO"; then :
10966   ac_cv_lib_dl_dlopen=yes
10967 else
10968   ac_cv_lib_dl_dlopen=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext \
10971     conftest$ac_exeext conftest.$ac_ext
10972 LIBS=$ac_check_lib_save_LIBS
10973 fi
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10975 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10976 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10977   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10978 else
10979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10980 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10981 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10982   $as_echo_n "(cached) " >&6
10983 else
10984   ac_check_lib_save_LIBS=$LIBS
10985 LIBS="-lsvld  $LIBS"
10986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h.  */
10988
10989 /* Override any GCC internal prototype to avoid an error.
10990    Use char because int might match the return type of a GCC
10991    builtin and then its argument prototype would still apply.  */
10992 #ifdef __cplusplus
10993 extern "C"
10994 #endif
10995 char dlopen ();
10996 int
10997 main ()
10998 {
10999 return dlopen ();
11000   ;
11001   return 0;
11002 }
11003 _ACEOF
11004 if ac_fn_c_try_link "$LINENO"; then :
11005   ac_cv_lib_svld_dlopen=yes
11006 else
11007   ac_cv_lib_svld_dlopen=no
11008 fi
11009 rm -f core conftest.err conftest.$ac_objext \
11010     conftest$ac_exeext conftest.$ac_ext
11011 LIBS=$ac_check_lib_save_LIBS
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11014 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11015 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11016   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11017 else
11018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11019 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11021   $as_echo_n "(cached) " >&6
11022 else
11023   ac_check_lib_save_LIBS=$LIBS
11024 LIBS="-ldld  $LIBS"
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h.  */
11027
11028 /* Override any GCC internal prototype to avoid an error.
11029    Use char because int might match the return type of a GCC
11030    builtin and then its argument prototype would still apply.  */
11031 #ifdef __cplusplus
11032 extern "C"
11033 #endif
11034 char dld_link ();
11035 int
11036 main ()
11037 {
11038 return dld_link ();
11039   ;
11040   return 0;
11041 }
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044   ac_cv_lib_dld_dld_link=yes
11045 else
11046   ac_cv_lib_dld_dld_link=no
11047 fi
11048 rm -f core conftest.err conftest.$ac_objext \
11049     conftest$ac_exeext conftest.$ac_ext
11050 LIBS=$ac_check_lib_save_LIBS
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11053 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11054 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11055   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11056 fi
11057
11058
11059 fi
11060
11061
11062 fi
11063
11064
11065 fi
11066
11067
11068 fi
11069
11070
11071 fi
11072
11073     ;;
11074   esac
11075
11076   if test "x$lt_cv_dlopen" != xno; then
11077     enable_dlopen=yes
11078   else
11079     enable_dlopen=no
11080   fi
11081
11082   case $lt_cv_dlopen in
11083   dlopen)
11084     save_CPPFLAGS="$CPPFLAGS"
11085     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11086
11087     save_LDFLAGS="$LDFLAGS"
11088     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11089
11090     save_LIBS="$LIBS"
11091     LIBS="$lt_cv_dlopen_libs $LIBS"
11092
11093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11094 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11095 if test "${lt_cv_dlopen_self+set}" = set; then :
11096   $as_echo_n "(cached) " >&6
11097 else
11098           if test "$cross_compiling" = yes; then :
11099   lt_cv_dlopen_self=cross
11100 else
11101   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11102   lt_status=$lt_dlunknown
11103   cat > conftest.$ac_ext <<_LT_EOF
11104 #line 11104 "configure"
11105 #include "confdefs.h"
11106
11107 #if HAVE_DLFCN_H
11108 #include <dlfcn.h>
11109 #endif
11110
11111 #include <stdio.h>
11112
11113 #ifdef RTLD_GLOBAL
11114 #  define LT_DLGLOBAL           RTLD_GLOBAL
11115 #else
11116 #  ifdef DL_GLOBAL
11117 #    define LT_DLGLOBAL         DL_GLOBAL
11118 #  else
11119 #    define LT_DLGLOBAL         0
11120 #  endif
11121 #endif
11122
11123 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11124    find out it does not work in some platform. */
11125 #ifndef LT_DLLAZY_OR_NOW
11126 #  ifdef RTLD_LAZY
11127 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11128 #  else
11129 #    ifdef DL_LAZY
11130 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11131 #    else
11132 #      ifdef RTLD_NOW
11133 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11134 #      else
11135 #        ifdef DL_NOW
11136 #          define LT_DLLAZY_OR_NOW      DL_NOW
11137 #        else
11138 #          define LT_DLLAZY_OR_NOW      0
11139 #        endif
11140 #      endif
11141 #    endif
11142 #  endif
11143 #endif
11144
11145 /* When -fvisbility=hidden is used, assume the code has been annotated
11146    correspondingly for the symbols needed.  */
11147 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11148 void fnord () __attribute__((visibility("default")));
11149 #endif
11150
11151 void fnord () { int i=42; }
11152 int main ()
11153 {
11154   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11155   int status = $lt_dlunknown;
11156
11157   if (self)
11158     {
11159       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11160       else
11161         {
11162           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11163           else puts (dlerror ());
11164         }
11165       /* dlclose (self); */
11166     }
11167   else
11168     puts (dlerror ());
11169
11170   return status;
11171 }
11172 _LT_EOF
11173   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11174   (eval $ac_link) 2>&5
11175   ac_status=$?
11176   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11177   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11178     (./conftest; exit; ) >&5 2>/dev/null
11179     lt_status=$?
11180     case x$lt_status in
11181       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11182       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11183       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11184     esac
11185   else :
11186     # compilation failed
11187     lt_cv_dlopen_self=no
11188   fi
11189 fi
11190 rm -fr conftest*
11191
11192
11193 fi
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11195 $as_echo "$lt_cv_dlopen_self" >&6; }
11196
11197     if test "x$lt_cv_dlopen_self" = xyes; then
11198       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11199       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11200 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11201 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11202   $as_echo_n "(cached) " >&6
11203 else
11204           if test "$cross_compiling" = yes; then :
11205   lt_cv_dlopen_self_static=cross
11206 else
11207   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11208   lt_status=$lt_dlunknown
11209   cat > conftest.$ac_ext <<_LT_EOF
11210 #line 11210 "configure"
11211 #include "confdefs.h"
11212
11213 #if HAVE_DLFCN_H
11214 #include <dlfcn.h>
11215 #endif
11216
11217 #include <stdio.h>
11218
11219 #ifdef RTLD_GLOBAL
11220 #  define LT_DLGLOBAL           RTLD_GLOBAL
11221 #else
11222 #  ifdef DL_GLOBAL
11223 #    define LT_DLGLOBAL         DL_GLOBAL
11224 #  else
11225 #    define LT_DLGLOBAL         0
11226 #  endif
11227 #endif
11228
11229 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11230    find out it does not work in some platform. */
11231 #ifndef LT_DLLAZY_OR_NOW
11232 #  ifdef RTLD_LAZY
11233 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11234 #  else
11235 #    ifdef DL_LAZY
11236 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11237 #    else
11238 #      ifdef RTLD_NOW
11239 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11240 #      else
11241 #        ifdef DL_NOW
11242 #          define LT_DLLAZY_OR_NOW      DL_NOW
11243 #        else
11244 #          define LT_DLLAZY_OR_NOW      0
11245 #        endif
11246 #      endif
11247 #    endif
11248 #  endif
11249 #endif
11250
11251 /* When -fvisbility=hidden is used, assume the code has been annotated
11252    correspondingly for the symbols needed.  */
11253 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11254 void fnord () __attribute__((visibility("default")));
11255 #endif
11256
11257 void fnord () { int i=42; }
11258 int main ()
11259 {
11260   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11261   int status = $lt_dlunknown;
11262
11263   if (self)
11264     {
11265       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11266       else
11267         {
11268           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11269           else puts (dlerror ());
11270         }
11271       /* dlclose (self); */
11272     }
11273   else
11274     puts (dlerror ());
11275
11276   return status;
11277 }
11278 _LT_EOF
11279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11280   (eval $ac_link) 2>&5
11281   ac_status=$?
11282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11284     (./conftest; exit; ) >&5 2>/dev/null
11285     lt_status=$?
11286     case x$lt_status in
11287       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11288       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11289       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11290     esac
11291   else :
11292     # compilation failed
11293     lt_cv_dlopen_self_static=no
11294   fi
11295 fi
11296 rm -fr conftest*
11297
11298
11299 fi
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11301 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11302     fi
11303
11304     CPPFLAGS="$save_CPPFLAGS"
11305     LDFLAGS="$save_LDFLAGS"
11306     LIBS="$save_LIBS"
11307     ;;
11308   esac
11309
11310   case $lt_cv_dlopen_self in
11311   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11312   *) enable_dlopen_self=unknown ;;
11313   esac
11314
11315   case $lt_cv_dlopen_self_static in
11316   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11317   *) enable_dlopen_self_static=unknown ;;
11318   esac
11319 fi
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337 striplib=
11338 old_striplib=
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11340 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11341 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11342   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11343   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11345 $as_echo "yes" >&6; }
11346 else
11347 # FIXME - insert some real tests, host_os isn't really good enough
11348   case $host_os in
11349   darwin*)
11350     if test -n "$STRIP" ; then
11351       striplib="$STRIP -x"
11352       old_striplib="$STRIP -S"
11353       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11354 $as_echo "yes" >&6; }
11355     else
11356       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11357 $as_echo "no" >&6; }
11358     fi
11359     ;;
11360   *)
11361     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363     ;;
11364   esac
11365 fi
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378   # Report which library types will actually be built
11379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11380 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11382 $as_echo "$can_build_shared" >&6; }
11383
11384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11385 $as_echo_n "checking whether to build shared libraries... " >&6; }
11386   test "$can_build_shared" = "no" && enable_shared=no
11387
11388   # On AIX, shared libraries and static libraries use the same namespace, and
11389   # are all built from PIC.
11390   case $host_os in
11391   aix3*)
11392     test "$enable_shared" = yes && enable_static=no
11393     if test -n "$RANLIB"; then
11394       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11395       postinstall_cmds='$RANLIB $lib'
11396     fi
11397     ;;
11398
11399   aix[4-9]*)
11400     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11401       test "$enable_shared" = yes && enable_static=no
11402     fi
11403     ;;
11404   esac
11405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11406 $as_echo "$enable_shared" >&6; }
11407
11408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11409 $as_echo_n "checking whether to build static libraries... " >&6; }
11410   # Make sure either enable_shared or enable_static is yes.
11411   test "$enable_shared" = yes || enable_static=yes
11412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11413 $as_echo "$enable_static" >&6; }
11414
11415
11416
11417
11418 fi
11419 ac_ext=c
11420 ac_cpp='$CPP $CPPFLAGS'
11421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11424
11425 CC="$lt_save_CC"
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 # Source file extension for Go test sources.
11440 ac_ext=go
11441
11442 # Object file extension for compiled Go test sources.
11443 objext=o
11444 objext_GO=$objext
11445
11446 # Code to be used in simple compile tests
11447 lt_simple_compile_test_code="package main; func main() { }"
11448
11449 # Code to be used in simple link tests
11450 lt_simple_link_test_code='package main; func main() { }'
11451
11452 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11453
11454
11455
11456
11457
11458
11459 # If no C compiler was specified, use CC.
11460 LTCC=${LTCC-"$CC"}
11461
11462 # If no C compiler flags were specified, use CFLAGS.
11463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11464
11465 # Allow CC to be a program name with arguments.
11466 compiler=$CC
11467
11468
11469 # save warnings/boilerplate of simple test code
11470 ac_outfile=conftest.$ac_objext
11471 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11472 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11473 _lt_compiler_boilerplate=`cat conftest.err`
11474 $RM conftest*
11475
11476 ac_outfile=conftest.$ac_objext
11477 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11478 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11479 _lt_linker_boilerplate=`cat conftest.err`
11480 $RM -r conftest*
11481
11482
11483 # Allow CC to be a program name with arguments.
11484 lt_save_CC="$CC"
11485 lt_save_GCC="$GCC"
11486 GCC=yes
11487 CC=${GOC-"gccgo"}
11488 compiler=$CC
11489 compiler_GO=$CC
11490 LD_GO="$LD"
11491 for cc_temp in $compiler""; do
11492   case $cc_temp in
11493     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11494     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11495     \-*) ;;
11496     *) break;;
11497   esac
11498 done
11499 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11500
11501
11502 # Go did not exist at the time GCC didn't implicitly link libc in.
11503 archive_cmds_need_lc_GO=no
11504
11505 old_archive_cmds_GO=$old_archive_cmds
11506
11507 ## CAVEAT EMPTOR:
11508 ## There is no encapsulation within the following macros, do not change
11509 ## the running order or otherwise move them around unless you know exactly
11510 ## what you are doing...
11511 if test -n "$compiler"; then
11512
11513 lt_prog_compiler_no_builtin_flag_GO=
11514
11515 if test "$GCC" = yes; then
11516   case $cc_basename in
11517   nvcc*)
11518     lt_prog_compiler_no_builtin_flag_GO=' -Xcompiler -fno-builtin' ;;
11519   *)
11520     lt_prog_compiler_no_builtin_flag_GO=' -fno-builtin' ;;
11521   esac
11522
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11524 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   lt_cv_prog_compiler_rtti_exceptions=no
11529    ac_outfile=conftest.$ac_objext
11530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11531    lt_compiler_flag="-fno-rtti -fno-exceptions"
11532    # Insert the option either (1) after the last *FLAGS variable, or
11533    # (2) before a word containing "conftest.", or (3) at the end.
11534    # Note that $ac_compile itself does not contain backslashes and begins
11535    # with a dollar sign (not a hyphen), so the echo should work correctly.
11536    # The option is referenced via a variable to avoid confusing sed.
11537    lt_compile=`echo "$ac_compile" | $SED \
11538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11540    -e 's:$: $lt_compiler_flag:'`
11541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11542    (eval "$lt_compile" 2>conftest.err)
11543    ac_status=$?
11544    cat conftest.err >&5
11545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546    if (exit $ac_status) && test -s "$ac_outfile"; then
11547      # The compiler can only warn and ignore the option if not recognized
11548      # So say no if there are warnings other than the usual output.
11549      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11550      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11551      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11552        lt_cv_prog_compiler_rtti_exceptions=yes
11553      fi
11554    fi
11555    $RM conftest*
11556
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11559 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11560
11561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11562     lt_prog_compiler_no_builtin_flag_GO="$lt_prog_compiler_no_builtin_flag_GO -fno-rtti -fno-exceptions"
11563 else
11564     :
11565 fi
11566
11567 fi
11568
11569
11570
11571   lt_prog_compiler_wl_GO=
11572 lt_prog_compiler_pic_GO=
11573 lt_prog_compiler_static_GO=
11574
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11576 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11577
11578   if test "$GCC" = yes; then
11579     lt_prog_compiler_wl_GO='-Wl,'
11580     lt_prog_compiler_static_GO='-static'
11581
11582     case $host_os in
11583       aix*)
11584       # All AIX code is PIC.
11585       if test "$host_cpu" = ia64; then
11586         # AIX 5 now supports IA64 processor
11587         lt_prog_compiler_static_GO='-Bstatic'
11588       fi
11589       ;;
11590
11591     amigaos*)
11592       case $host_cpu in
11593       powerpc)
11594             # see comment about AmigaOS4 .so support
11595             lt_prog_compiler_pic_GO='-fPIC'
11596         ;;
11597       m68k)
11598             # FIXME: we need at least 68020 code to build shared libraries, but
11599             # adding the `-m68020' flag to GCC prevents building anything better,
11600             # like `-m68040'.
11601             lt_prog_compiler_pic_GO='-m68020 -resident32 -malways-restore-a4'
11602         ;;
11603       esac
11604       ;;
11605
11606     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11607       # PIC is the default for these OSes.
11608       ;;
11609
11610     mingw* | cygwin* | pw32* | os2* | cegcc*)
11611       # This hack is so that the source file can tell whether it is being
11612       # built for inclusion in a dll (and should export symbols for example).
11613       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11614       # (--disable-auto-import) libraries
11615       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11616       ;;
11617
11618     darwin* | rhapsody*)
11619       # PIC is the default on this platform
11620       # Common symbols not allowed in MH_DYLIB files
11621       lt_prog_compiler_pic_GO='-fno-common'
11622       ;;
11623
11624     haiku*)
11625       # PIC is the default for Haiku.
11626       # The "-static" flag exists, but is broken.
11627       lt_prog_compiler_static_GO=
11628       ;;
11629
11630     hpux*)
11631       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11632       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11633       # sets the default TLS model and affects inlining.
11634       case $host_cpu in
11635       hppa*64*)
11636         # +Z the default
11637         ;;
11638       *)
11639         lt_prog_compiler_pic_GO='-fPIC'
11640         ;;
11641       esac
11642       ;;
11643
11644     interix[3-9]*)
11645       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11646       # Instead, we relocate shared libraries at runtime.
11647       ;;
11648
11649     msdosdjgpp*)
11650       # Just because we use GCC doesn't mean we suddenly get shared libraries
11651       # on systems that don't support them.
11652       lt_prog_compiler_can_build_shared_GO=no
11653       enable_shared=no
11654       ;;
11655
11656     *nto* | *qnx*)
11657       # QNX uses GNU C++, but need to define -shared option too, otherwise
11658       # it will coredump.
11659       lt_prog_compiler_pic_GO='-fPIC -shared'
11660       ;;
11661
11662     sysv4*MP*)
11663       if test -d /usr/nec; then
11664         lt_prog_compiler_pic_GO=-Kconform_pic
11665       fi
11666       ;;
11667
11668     *)
11669       lt_prog_compiler_pic_GO='-fPIC'
11670       ;;
11671     esac
11672
11673     case $cc_basename in
11674     nvcc*) # Cuda Compiler Driver 2.2
11675       lt_prog_compiler_wl_GO='-Xlinker '
11676       lt_prog_compiler_pic_GO='-Xcompiler -fPIC'
11677       ;;
11678     esac
11679   else
11680     # PORTME Check for flag to pass linker flags through the system compiler.
11681     case $host_os in
11682     aix*)
11683       lt_prog_compiler_wl_GO='-Wl,'
11684       if test "$host_cpu" = ia64; then
11685         # AIX 5 now supports IA64 processor
11686         lt_prog_compiler_static_GO='-Bstatic'
11687       else
11688         lt_prog_compiler_static_GO='-bnso -bI:/lib/syscalls.exp'
11689       fi
11690       ;;
11691
11692     mingw* | cygwin* | pw32* | os2* | cegcc*)
11693       # This hack is so that the source file can tell whether it is being
11694       # built for inclusion in a dll (and should export symbols for example).
11695       lt_prog_compiler_pic_GO='-DDLL_EXPORT'
11696       ;;
11697
11698     hpux9* | hpux10* | hpux11*)
11699       lt_prog_compiler_wl_GO='-Wl,'
11700       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11701       # not for PA HP-UX.
11702       case $host_cpu in
11703       hppa*64*|ia64*)
11704         # +Z the default
11705         ;;
11706       *)
11707         lt_prog_compiler_pic_GO='+Z'
11708         ;;
11709       esac
11710       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11711       lt_prog_compiler_static_GO='${wl}-a ${wl}archive'
11712       ;;
11713
11714     irix5* | irix6* | nonstopux*)
11715       lt_prog_compiler_wl_GO='-Wl,'
11716       # PIC (with -KPIC) is the default.
11717       lt_prog_compiler_static_GO='-non_shared'
11718       ;;
11719
11720     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11721       case $cc_basename in
11722       # old Intel for x86_64 which still supported -KPIC.
11723       ecc*)
11724         lt_prog_compiler_wl_GO='-Wl,'
11725         lt_prog_compiler_pic_GO='-KPIC'
11726         lt_prog_compiler_static_GO='-static'
11727         ;;
11728       # icc used to be incompatible with GCC.
11729       # ICC 10 doesn't accept -KPIC any more.
11730       icc* | ifort*)
11731         lt_prog_compiler_wl_GO='-Wl,'
11732         lt_prog_compiler_pic_GO='-fPIC'
11733         lt_prog_compiler_static_GO='-static'
11734         ;;
11735       # Lahey Fortran 8.1.
11736       lf95*)
11737         lt_prog_compiler_wl_GO='-Wl,'
11738         lt_prog_compiler_pic_GO='--shared'
11739         lt_prog_compiler_static_GO='--static'
11740         ;;
11741       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11742         # Portland Group compilers (*not* the Pentium gcc compiler,
11743         # which looks to be a dead project)
11744         lt_prog_compiler_wl_GO='-Wl,'
11745         lt_prog_compiler_pic_GO='-fpic'
11746         lt_prog_compiler_static_GO='-Bstatic'
11747         ;;
11748       ccc*)
11749         lt_prog_compiler_wl_GO='-Wl,'
11750         # All Alpha code is PIC.
11751         lt_prog_compiler_static_GO='-non_shared'
11752         ;;
11753       xl* | bgxl* | bgf* | mpixl*)
11754         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11755         lt_prog_compiler_wl_GO='-Wl,'
11756         lt_prog_compiler_pic_GO='-qpic'
11757         lt_prog_compiler_static_GO='-qstaticlink'
11758         ;;
11759       *)
11760         case `$CC -V 2>&1 | sed 5q` in
11761         *Sun\ F* | *Sun*Fortran*)
11762           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11763           lt_prog_compiler_pic_GO='-KPIC'
11764           lt_prog_compiler_static_GO='-Bstatic'
11765           lt_prog_compiler_wl_GO=''
11766           ;;
11767         *Sun\ C*)
11768           # Sun C 5.9
11769           lt_prog_compiler_pic_GO='-KPIC'
11770           lt_prog_compiler_static_GO='-Bstatic'
11771           lt_prog_compiler_wl_GO='-Wl,'
11772           ;;
11773         esac
11774         ;;
11775       esac
11776       ;;
11777
11778     newsos6)
11779       lt_prog_compiler_pic_GO='-KPIC'
11780       lt_prog_compiler_static_GO='-Bstatic'
11781       ;;
11782
11783     *nto* | *qnx*)
11784       # QNX uses GNU C++, but need to define -shared option too, otherwise
11785       # it will coredump.
11786       lt_prog_compiler_pic_GO='-fPIC -shared'
11787       ;;
11788
11789     osf3* | osf4* | osf5*)
11790       lt_prog_compiler_wl_GO='-Wl,'
11791       # All OSF/1 code is PIC.
11792       lt_prog_compiler_static_GO='-non_shared'
11793       ;;
11794
11795     rdos*)
11796       lt_prog_compiler_static_GO='-non_shared'
11797       ;;
11798
11799     solaris*)
11800       lt_prog_compiler_pic_GO='-KPIC'
11801       lt_prog_compiler_static_GO='-Bstatic'
11802       case $cc_basename in
11803       f77* | f90* | f95*)
11804         lt_prog_compiler_wl_GO='-Qoption ld ';;
11805       *)
11806         lt_prog_compiler_wl_GO='-Wl,';;
11807       esac
11808       ;;
11809
11810     sunos4*)
11811       lt_prog_compiler_wl_GO='-Qoption ld '
11812       lt_prog_compiler_pic_GO='-PIC'
11813       lt_prog_compiler_static_GO='-Bstatic'
11814       ;;
11815
11816     sysv4 | sysv4.2uw2* | sysv4.3*)
11817       lt_prog_compiler_wl_GO='-Wl,'
11818       lt_prog_compiler_pic_GO='-KPIC'
11819       lt_prog_compiler_static_GO='-Bstatic'
11820       ;;
11821
11822     sysv4*MP*)
11823       if test -d /usr/nec ;then
11824         lt_prog_compiler_pic_GO='-Kconform_pic'
11825         lt_prog_compiler_static_GO='-Bstatic'
11826       fi
11827       ;;
11828
11829     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11830       lt_prog_compiler_wl_GO='-Wl,'
11831       lt_prog_compiler_pic_GO='-KPIC'
11832       lt_prog_compiler_static_GO='-Bstatic'
11833       ;;
11834
11835     unicos*)
11836       lt_prog_compiler_wl_GO='-Wl,'
11837       lt_prog_compiler_can_build_shared_GO=no
11838       ;;
11839
11840     uts4*)
11841       lt_prog_compiler_pic_GO='-pic'
11842       lt_prog_compiler_static_GO='-Bstatic'
11843       ;;
11844
11845     *)
11846       lt_prog_compiler_can_build_shared_GO=no
11847       ;;
11848     esac
11849   fi
11850
11851 case $host_os in
11852   # For platforms which do not support PIC, -DPIC is meaningless:
11853   *djgpp*)
11854     lt_prog_compiler_pic_GO=
11855     ;;
11856   *)
11857     lt_prog_compiler_pic_GO="$lt_prog_compiler_pic_GO"
11858     ;;
11859 esac
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GO" >&5
11861 $as_echo "$lt_prog_compiler_pic_GO" >&6; }
11862
11863
11864
11865 #
11866 # Check to make sure the PIC flag actually works.
11867 #
11868 if test -n "$lt_prog_compiler_pic_GO"; then
11869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GO works" >&5
11870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GO works... " >&6; }
11871 if test "${lt_cv_prog_compiler_pic_works_GO+set}" = set; then :
11872   $as_echo_n "(cached) " >&6
11873 else
11874   lt_cv_prog_compiler_pic_works_GO=no
11875    ac_outfile=conftest.$ac_objext
11876    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11877    lt_compiler_flag="$lt_prog_compiler_pic_GO"
11878    # Insert the option either (1) after the last *FLAGS variable, or
11879    # (2) before a word containing "conftest.", or (3) at the end.
11880    # Note that $ac_compile itself does not contain backslashes and begins
11881    # with a dollar sign (not a hyphen), so the echo should work correctly.
11882    # The option is referenced via a variable to avoid confusing sed.
11883    lt_compile=`echo "$ac_compile" | $SED \
11884    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11885    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11886    -e 's:$: $lt_compiler_flag:'`
11887    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11888    (eval "$lt_compile" 2>conftest.err)
11889    ac_status=$?
11890    cat conftest.err >&5
11891    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892    if (exit $ac_status) && test -s "$ac_outfile"; then
11893      # The compiler can only warn and ignore the option if not recognized
11894      # So say no if there are warnings other than the usual output.
11895      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11896      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11897      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11898        lt_cv_prog_compiler_pic_works_GO=yes
11899      fi
11900    fi
11901    $RM conftest*
11902
11903 fi
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GO" >&5
11905 $as_echo "$lt_cv_prog_compiler_pic_works_GO" >&6; }
11906
11907 if test x"$lt_cv_prog_compiler_pic_works_GO" = xyes; then
11908     case $lt_prog_compiler_pic_GO in
11909      "" | " "*) ;;
11910      *) lt_prog_compiler_pic_GO=" $lt_prog_compiler_pic_GO" ;;
11911      esac
11912 else
11913     lt_prog_compiler_pic_GO=
11914      lt_prog_compiler_can_build_shared_GO=no
11915 fi
11916
11917 fi
11918
11919
11920
11921 #
11922 # Check to make sure the static flag actually works.
11923 #
11924 wl=$lt_prog_compiler_wl_GO eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GO\"
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11926 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11927 if test "${lt_cv_prog_compiler_static_works_GO+set}" = set; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   lt_cv_prog_compiler_static_works_GO=no
11931    save_LDFLAGS="$LDFLAGS"
11932    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11933    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11934    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11935      # The linker can only warn and ignore the option if not recognized
11936      # So say no if there are warnings
11937      if test -s conftest.err; then
11938        # Append any errors to the config.log.
11939        cat conftest.err 1>&5
11940        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11941        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11942        if diff conftest.exp conftest.er2 >/dev/null; then
11943          lt_cv_prog_compiler_static_works_GO=yes
11944        fi
11945      else
11946        lt_cv_prog_compiler_static_works_GO=yes
11947      fi
11948    fi
11949    $RM -r conftest*
11950    LDFLAGS="$save_LDFLAGS"
11951
11952 fi
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GO" >&5
11954 $as_echo "$lt_cv_prog_compiler_static_works_GO" >&6; }
11955
11956 if test x"$lt_cv_prog_compiler_static_works_GO" = xyes; then
11957     :
11958 else
11959     lt_prog_compiler_static_GO=
11960 fi
11961
11962
11963
11964
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11966 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11967 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
11968   $as_echo_n "(cached) " >&6
11969 else
11970   lt_cv_prog_compiler_c_o_GO=no
11971    $RM -r conftest 2>/dev/null
11972    mkdir conftest
11973    cd conftest
11974    mkdir out
11975    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11976
11977    lt_compiler_flag="-o out/conftest2.$ac_objext"
11978    # Insert the option either (1) after the last *FLAGS variable, or
11979    # (2) before a word containing "conftest.", or (3) at the end.
11980    # Note that $ac_compile itself does not contain backslashes and begins
11981    # with a dollar sign (not a hyphen), so the echo should work correctly.
11982    lt_compile=`echo "$ac_compile" | $SED \
11983    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11984    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11985    -e 's:$: $lt_compiler_flag:'`
11986    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11987    (eval "$lt_compile" 2>out/conftest.err)
11988    ac_status=$?
11989    cat out/conftest.err >&5
11990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11992    then
11993      # The compiler can only warn and ignore the option if not recognized
11994      # So say no if there are warnings
11995      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11996      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11997      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11998        lt_cv_prog_compiler_c_o_GO=yes
11999      fi
12000    fi
12001    chmod u+w . 2>&5
12002    $RM conftest*
12003    # SGI C++ compiler will create directory out/ii_files/ for
12004    # template instantiation
12005    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12006    $RM out/* && rmdir out
12007    cd ..
12008    $RM -r conftest
12009    $RM conftest*
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12013 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12014
12015
12016
12017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12019 if test "${lt_cv_prog_compiler_c_o_GO+set}" = set; then :
12020   $as_echo_n "(cached) " >&6
12021 else
12022   lt_cv_prog_compiler_c_o_GO=no
12023    $RM -r conftest 2>/dev/null
12024    mkdir conftest
12025    cd conftest
12026    mkdir out
12027    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12028
12029    lt_compiler_flag="-o out/conftest2.$ac_objext"
12030    # Insert the option either (1) after the last *FLAGS variable, or
12031    # (2) before a word containing "conftest.", or (3) at the end.
12032    # Note that $ac_compile itself does not contain backslashes and begins
12033    # with a dollar sign (not a hyphen), so the echo should work correctly.
12034    lt_compile=`echo "$ac_compile" | $SED \
12035    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12036    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12037    -e 's:$: $lt_compiler_flag:'`
12038    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12039    (eval "$lt_compile" 2>out/conftest.err)
12040    ac_status=$?
12041    cat out/conftest.err >&5
12042    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12044    then
12045      # The compiler can only warn and ignore the option if not recognized
12046      # So say no if there are warnings
12047      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12048      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12049      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12050        lt_cv_prog_compiler_c_o_GO=yes
12051      fi
12052    fi
12053    chmod u+w . 2>&5
12054    $RM conftest*
12055    # SGI C++ compiler will create directory out/ii_files/ for
12056    # template instantiation
12057    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12058    $RM out/* && rmdir out
12059    cd ..
12060    $RM -r conftest
12061    $RM conftest*
12062
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GO" >&5
12065 $as_echo "$lt_cv_prog_compiler_c_o_GO" >&6; }
12066
12067
12068
12069
12070 hard_links="nottested"
12071 if test "$lt_cv_prog_compiler_c_o_GO" = no && test "$need_locks" != no; then
12072   # do not overwrite the value of need_locks provided by the user
12073   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12074 $as_echo_n "checking if we can lock with hard links... " >&6; }
12075   hard_links=yes
12076   $RM conftest*
12077   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12078   touch conftest.a
12079   ln conftest.a conftest.b 2>&5 || hard_links=no
12080   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12082 $as_echo "$hard_links" >&6; }
12083   if test "$hard_links" = no; then
12084     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12085 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12086     need_locks=warn
12087   fi
12088 else
12089   need_locks=no
12090 fi
12091
12092
12093
12094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12096
12097   runpath_var=
12098   allow_undefined_flag_GO=
12099   always_export_symbols_GO=no
12100   archive_cmds_GO=
12101   archive_expsym_cmds_GO=
12102   compiler_needs_object_GO=no
12103   enable_shared_with_static_runtimes_GO=no
12104   export_dynamic_flag_spec_GO=
12105   export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12106   hardcode_automatic_GO=no
12107   hardcode_direct_GO=no
12108   hardcode_direct_absolute_GO=no
12109   hardcode_libdir_flag_spec_GO=
12110   hardcode_libdir_flag_spec_ld_GO=
12111   hardcode_libdir_separator_GO=
12112   hardcode_minus_L_GO=no
12113   hardcode_shlibpath_var_GO=unsupported
12114   inherit_rpath_GO=no
12115   link_all_deplibs_GO=unknown
12116   module_cmds_GO=
12117   module_expsym_cmds_GO=
12118   old_archive_from_new_cmds_GO=
12119   old_archive_from_expsyms_cmds_GO=
12120   thread_safe_flag_spec_GO=
12121   whole_archive_flag_spec_GO=
12122   # include_expsyms should be a list of space-separated symbols to be *always*
12123   # included in the symbol list
12124   include_expsyms_GO=
12125   # exclude_expsyms can be an extended regexp of symbols to exclude
12126   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12127   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12128   # as well as any symbol that contains `d'.
12129   exclude_expsyms_GO='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12130   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12131   # platforms (ab)use it in PIC code, but their linkers get confused if
12132   # the symbol is explicitly referenced.  Since portable code cannot
12133   # rely on this symbol name, it's probably fine to never include it in
12134   # preloaded symbol tables.
12135   # Exclude shared library initialization/finalization symbols.
12136   extract_expsyms_cmds=
12137
12138   case $host_os in
12139   cygwin* | mingw* | pw32* | cegcc*)
12140     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12141     # When not using gcc, we currently assume that we are using
12142     # Microsoft Visual C++.
12143     if test "$GCC" != yes; then
12144       with_gnu_ld=no
12145     fi
12146     ;;
12147   interix*)
12148     # we just hope/assume this is gcc and not c89 (= MSVC++)
12149     with_gnu_ld=yes
12150     ;;
12151   openbsd*)
12152     with_gnu_ld=no
12153     ;;
12154   esac
12155
12156   ld_shlibs_GO=yes
12157
12158   # On some targets, GNU ld is compatible enough with the native linker
12159   # that we're better off using the native interface for both.
12160   lt_use_gnu_ld_interface=no
12161   if test "$with_gnu_ld" = yes; then
12162     case $host_os in
12163       aix*)
12164         # The AIX port of GNU ld has always aspired to compatibility
12165         # with the native linker.  However, as the warning in the GNU ld
12166         # block says, versions before 2.19.5* couldn't really create working
12167         # shared libraries, regardless of the interface used.
12168         case `$LD -v 2>&1` in
12169           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12170           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12171           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12172           *)
12173             lt_use_gnu_ld_interface=yes
12174             ;;
12175         esac
12176         ;;
12177       *)
12178         lt_use_gnu_ld_interface=yes
12179         ;;
12180     esac
12181   fi
12182
12183   if test "$lt_use_gnu_ld_interface" = yes; then
12184     # If archive_cmds runs LD, not CC, wlarc should be empty
12185     wlarc='${wl}'
12186
12187     # Set some defaults for GNU ld with shared library support. These
12188     # are reset later if shared libraries are not supported. Putting them
12189     # here allows them to be overridden if necessary.
12190     runpath_var=LD_RUN_PATH
12191     hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12192     export_dynamic_flag_spec_GO='${wl}--export-dynamic'
12193     # ancient GNU ld didn't support --whole-archive et. al.
12194     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12195       whole_archive_flag_spec_GO="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12196     else
12197       whole_archive_flag_spec_GO=
12198     fi
12199     supports_anon_versioning=no
12200     case `$LD -v 2>&1` in
12201       *GNU\ gold*) supports_anon_versioning=yes ;;
12202       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12203       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12204       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12205       *\ 2.11.*) ;; # other 2.11 versions
12206       *) supports_anon_versioning=yes ;;
12207     esac
12208
12209     # See if GNU ld supports shared libraries.
12210     case $host_os in
12211     aix[3-9]*)
12212       # On AIX/PPC, the GNU linker is very broken
12213       if test "$host_cpu" != ia64; then
12214         ld_shlibs_GO=no
12215         cat <<_LT_EOF 1>&2
12216
12217 *** Warning: the GNU linker, at least up to release 2.19, is reported
12218 *** to be unable to reliably create shared libraries on AIX.
12219 *** Therefore, libtool is disabling shared libraries support.  If you
12220 *** really care for shared libraries, you may want to install binutils
12221 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12222 *** You will then need to restart the configuration process.
12223
12224 _LT_EOF
12225       fi
12226       ;;
12227
12228     amigaos*)
12229       case $host_cpu in
12230       powerpc)
12231             # see comment about AmigaOS4 .so support
12232             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12233             archive_expsym_cmds_GO=''
12234         ;;
12235       m68k)
12236             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)'
12237             hardcode_libdir_flag_spec_GO='-L$libdir'
12238             hardcode_minus_L_GO=yes
12239         ;;
12240       esac
12241       ;;
12242
12243     beos*)
12244       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12245         allow_undefined_flag_GO=unsupported
12246         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12247         # support --undefined.  This deserves some investigation.  FIXME
12248         archive_cmds_GO='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12249       else
12250         ld_shlibs_GO=no
12251       fi
12252       ;;
12253
12254     cygwin* | mingw* | pw32* | cegcc*)
12255       # _LT_TAGVAR(hardcode_libdir_flag_spec, GO) is actually meaningless,
12256       # as there is no search path for DLLs.
12257       hardcode_libdir_flag_spec_GO='-L$libdir'
12258       export_dynamic_flag_spec_GO='${wl}--export-all-symbols'
12259       allow_undefined_flag_GO=unsupported
12260       always_export_symbols_GO=no
12261       enable_shared_with_static_runtimes_GO=yes
12262       export_symbols_cmds_GO='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12263
12264       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12265         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12266         # If the export-symbols file already is a .def file (1st line
12267         # is EXPORTS), use it as is; otherwise, prepend...
12268         archive_expsym_cmds_GO='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12269           cp $export_symbols $output_objdir/$soname.def;
12270         else
12271           echo EXPORTS > $output_objdir/$soname.def;
12272           cat $export_symbols >> $output_objdir/$soname.def;
12273         fi~
12274         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12275       else
12276         ld_shlibs_GO=no
12277       fi
12278       ;;
12279
12280     haiku*)
12281       archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12282       link_all_deplibs_GO=yes
12283       ;;
12284
12285     interix[3-9]*)
12286       hardcode_direct_GO=no
12287       hardcode_shlibpath_var_GO=no
12288       hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12289       export_dynamic_flag_spec_GO='${wl}-E'
12290       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12291       # Instead, shared libraries are loaded at an image base (0x10000000 by
12292       # default) and relocated if they conflict, which is a slow very memory
12293       # consuming and fragmenting process.  To avoid this, we pick a random,
12294       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12295       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12296       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'
12297       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'
12298       ;;
12299
12300     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12301       tmp_diet=no
12302       if test "$host_os" = linux-dietlibc; then
12303         case $cc_basename in
12304           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12305         esac
12306       fi
12307       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12308          && test "$tmp_diet" = no
12309       then
12310         tmp_addflag=
12311         tmp_sharedflag='-shared'
12312         case $cc_basename,$host_cpu in
12313         pgcc*)                          # Portland Group C compiler
12314           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'
12315           tmp_addflag=' $pic_flag'
12316           ;;
12317         pgf77* | pgf90* | pgf95* | pgfortran*)
12318                                         # Portland Group f77 and f90 compilers
12319           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'
12320           tmp_addflag=' $pic_flag -Mnomain' ;;
12321         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12322           tmp_addflag=' -i_dynamic' ;;
12323         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12324           tmp_addflag=' -i_dynamic -nofor_main' ;;
12325         ifc* | ifort*)                  # Intel Fortran compiler
12326           tmp_addflag=' -nofor_main' ;;
12327         lf95*)                          # Lahey Fortran 8.1
12328           whole_archive_flag_spec_GO=
12329           tmp_sharedflag='--shared' ;;
12330         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12331           tmp_sharedflag='-qmkshrobj'
12332           tmp_addflag= ;;
12333         nvcc*)  # Cuda Compiler Driver 2.2
12334           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'
12335           compiler_needs_object_GO=yes
12336           ;;
12337         esac
12338         case `$CC -V 2>&1 | sed 5q` in
12339         *Sun\ C*)                       # Sun C 5.9
12340           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'
12341           compiler_needs_object_GO=yes
12342           tmp_sharedflag='-G' ;;
12343         *Sun\ F*)                       # Sun Fortran 8.3
12344           tmp_sharedflag='-G' ;;
12345         esac
12346         archive_cmds_GO='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347
12348         if test "x$supports_anon_versioning" = xyes; then
12349           archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12350             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12351             echo "local: *; };" >> $output_objdir/$libname.ver~
12352             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12353         fi
12354
12355         case $cc_basename in
12356         xlf* | bgf* | bgxlf* | mpixlf*)
12357           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12358           whole_archive_flag_spec_GO='--whole-archive$convenience --no-whole-archive'
12359           hardcode_libdir_flag_spec_GO=
12360           hardcode_libdir_flag_spec_ld_GO='-rpath $libdir'
12361           archive_cmds_GO='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12362           if test "x$supports_anon_versioning" = xyes; then
12363             archive_expsym_cmds_GO='echo "{ global:" > $output_objdir/$libname.ver~
12364               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12365               echo "local: *; };" >> $output_objdir/$libname.ver~
12366               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12367           fi
12368           ;;
12369         esac
12370       else
12371         ld_shlibs_GO=no
12372       fi
12373       ;;
12374
12375     netbsd*)
12376       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12377         archive_cmds_GO='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12378         wlarc=
12379       else
12380         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12381         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12382       fi
12383       ;;
12384
12385     solaris*)
12386       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12387         ld_shlibs_GO=no
12388         cat <<_LT_EOF 1>&2
12389
12390 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12391 *** create shared libraries on Solaris systems.  Therefore, libtool
12392 *** is disabling shared libraries support.  We urge you to upgrade GNU
12393 *** binutils to release 2.9.1 or newer.  Another option is to modify
12394 *** your PATH or compiler configuration so that the native linker is
12395 *** used, and then restart.
12396
12397 _LT_EOF
12398       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12399         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12401       else
12402         ld_shlibs_GO=no
12403       fi
12404       ;;
12405
12406     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12407       case `$LD -v 2>&1` in
12408         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12409         ld_shlibs_GO=no
12410         cat <<_LT_EOF 1>&2
12411
12412 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12413 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12414 *** is disabling shared libraries support.  We urge you to upgrade GNU
12415 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12416 *** your PATH or compiler configuration so that the native linker is
12417 *** used, and then restart.
12418
12419 _LT_EOF
12420         ;;
12421         *)
12422           # For security reasons, it is highly recommended that you always
12423           # use absolute paths for naming shared libraries, and exclude the
12424           # DT_RUNPATH tag from executables and libraries.  But doing so
12425           # requires that you compile everything twice, which is a pain.
12426           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12427             hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12428             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12429             archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12430           else
12431             ld_shlibs_GO=no
12432           fi
12433         ;;
12434       esac
12435       ;;
12436
12437     sunos4*)
12438       archive_cmds_GO='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12439       wlarc=
12440       hardcode_direct_GO=yes
12441       hardcode_shlibpath_var_GO=no
12442       ;;
12443
12444     *)
12445       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12446         archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12447         archive_expsym_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12448       else
12449         ld_shlibs_GO=no
12450       fi
12451       ;;
12452     esac
12453
12454     if test "$ld_shlibs_GO" = no; then
12455       runpath_var=
12456       hardcode_libdir_flag_spec_GO=
12457       export_dynamic_flag_spec_GO=
12458       whole_archive_flag_spec_GO=
12459     fi
12460   else
12461     # PORTME fill in a description of your system's linker (not GNU ld)
12462     case $host_os in
12463     aix3*)
12464       allow_undefined_flag_GO=unsupported
12465       always_export_symbols_GO=yes
12466       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'
12467       # Note: this linker hardcodes the directories in LIBPATH if there
12468       # are no directories specified by -L.
12469       hardcode_minus_L_GO=yes
12470       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12471         # Neither direct hardcoding nor static linking is supported with a
12472         # broken collect2.
12473         hardcode_direct_GO=unsupported
12474       fi
12475       ;;
12476
12477     aix[4-9]*)
12478       if test "$host_cpu" = ia64; then
12479         # On IA64, the linker does run time linking by default, so we don't
12480         # have to do anything special.
12481         aix_use_runtimelinking=no
12482         exp_sym_flag='-Bexport'
12483         no_entry_flag=""
12484       else
12485         # If we're using GNU nm, then we don't want the "-C" option.
12486         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12487         # Also, AIX nm treats weak defined symbols like other global
12488         # defined symbols, whereas GNU nm marks them as "W".
12489         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12490           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'
12491         else
12492           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'
12493         fi
12494         aix_use_runtimelinking=no
12495
12496         # Test if we are trying to use run time linking or normal
12497         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12498         # need to do runtime linking.
12499         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12500           for ld_flag in $LDFLAGS; do
12501           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12502             aix_use_runtimelinking=yes
12503             break
12504           fi
12505           done
12506           ;;
12507         esac
12508
12509         exp_sym_flag='-bexport'
12510         no_entry_flag='-bnoentry'
12511       fi
12512
12513       # When large executables or shared objects are built, AIX ld can
12514       # have problems creating the table of contents.  If linking a library
12515       # or program results in "error TOC overflow" add -mminimal-toc to
12516       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12517       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12518
12519       archive_cmds_GO=''
12520       hardcode_direct_GO=yes
12521       hardcode_direct_absolute_GO=yes
12522       hardcode_libdir_separator_GO=':'
12523       link_all_deplibs_GO=yes
12524       file_list_spec_GO='${wl}-f,'
12525
12526       if test "$GCC" = yes; then
12527         case $host_os in aix4.[012]|aix4.[012].*)
12528         # We only want to do this on AIX 4.2 and lower, the check
12529         # below for broken collect2 doesn't work under 4.3+
12530           collect2name=`${CC} -print-prog-name=collect2`
12531           if test -f "$collect2name" &&
12532            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12533           then
12534           # We have reworked collect2
12535           :
12536           else
12537           # We have old collect2
12538           hardcode_direct_GO=unsupported
12539           # It fails to find uninstalled libraries when the uninstalled
12540           # path is not listed in the libpath.  Setting hardcode_minus_L
12541           # to unsupported forces relinking
12542           hardcode_minus_L_GO=yes
12543           hardcode_libdir_flag_spec_GO='-L$libdir'
12544           hardcode_libdir_separator_GO=
12545           fi
12546           ;;
12547         esac
12548         shared_flag='-shared'
12549         if test "$aix_use_runtimelinking" = yes; then
12550           shared_flag="$shared_flag "'${wl}-G'
12551         fi
12552       else
12553         # not using gcc
12554         if test "$host_cpu" = ia64; then
12555         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12556         # chokes on -Wl,-G. The following line is correct:
12557           shared_flag='-G'
12558         else
12559           if test "$aix_use_runtimelinking" = yes; then
12560             shared_flag='${wl}-G'
12561           else
12562             shared_flag='${wl}-bM:SRE'
12563           fi
12564         fi
12565       fi
12566
12567       export_dynamic_flag_spec_GO='${wl}-bexpall'
12568       # It seems that -bexpall does not export symbols beginning with
12569       # underscore (_), so it is better to generate a list of symbols to export.
12570       always_export_symbols_GO=yes
12571       if test "$aix_use_runtimelinking" = yes; then
12572         # Warning - without using the other runtime loading flags (-brtl),
12573         # -berok will link without error, but may produce a broken library.
12574         allow_undefined_flag_GO='-berok'
12575         # Determine the default libpath from the value encoded in an
12576         # empty executable.
12577         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h.  */
12579
12580 int
12581 main ()
12582 {
12583
12584   ;
12585   return 0;
12586 }
12587 _ACEOF
12588 if ac_fn_c_try_link "$LINENO"; then :
12589
12590 lt_aix_libpath_sed='
12591     /Import File Strings/,/^$/ {
12592         /^0/ {
12593             s/^0  *\(.*\)$/\1/
12594             p
12595         }
12596     }'
12597 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12598 # Check for a 64-bit object if we didn't find anything.
12599 if test -z "$aix_libpath"; then
12600   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12601 fi
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext \
12604     conftest$ac_exeext conftest.$ac_ext
12605 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12606
12607         hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12608         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"
12609       else
12610         if test "$host_cpu" = ia64; then
12611           hardcode_libdir_flag_spec_GO='${wl}-R $libdir:/usr/lib:/lib'
12612           allow_undefined_flag_GO="-z nodefs"
12613           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"
12614         else
12615          # Determine the default libpath from the value encoded in an
12616          # empty executable.
12617          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h.  */
12619
12620 int
12621 main ()
12622 {
12623
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629
12630 lt_aix_libpath_sed='
12631     /Import File Strings/,/^$/ {
12632         /^0/ {
12633             s/^0  *\(.*\)$/\1/
12634             p
12635         }
12636     }'
12637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12638 # Check for a 64-bit object if we didn't find anything.
12639 if test -z "$aix_libpath"; then
12640   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12641 fi
12642 fi
12643 rm -f core conftest.err conftest.$ac_objext \
12644     conftest$ac_exeext conftest.$ac_ext
12645 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12646
12647          hardcode_libdir_flag_spec_GO='${wl}-blibpath:$libdir:'"$aix_libpath"
12648           # Warning - without using the other run time loading flags,
12649           # -berok will link without error, but may produce a broken library.
12650           no_undefined_flag_GO=' ${wl}-bernotok'
12651           allow_undefined_flag_GO=' ${wl}-berok'
12652           if test "$with_gnu_ld" = yes; then
12653             # We only use this code for GNU lds that support --whole-archive.
12654             whole_archive_flag_spec_GO='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12655           else
12656             # Exported symbols can be pulled into shared objects from archives
12657             whole_archive_flag_spec_GO='$convenience'
12658           fi
12659           archive_cmds_need_lc_GO=yes
12660           # This is similar to how AIX traditionally builds its shared libraries.
12661           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'
12662         fi
12663       fi
12664       ;;
12665
12666     amigaos*)
12667       case $host_cpu in
12668       powerpc)
12669             # see comment about AmigaOS4 .so support
12670             archive_cmds_GO='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12671             archive_expsym_cmds_GO=''
12672         ;;
12673       m68k)
12674             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)'
12675             hardcode_libdir_flag_spec_GO='-L$libdir'
12676             hardcode_minus_L_GO=yes
12677         ;;
12678       esac
12679       ;;
12680
12681     bsdi[45]*)
12682       export_dynamic_flag_spec_GO=-rdynamic
12683       ;;
12684
12685     cygwin* | mingw* | pw32* | cegcc*)
12686       # When not using gcc, we currently assume that we are using
12687       # Microsoft Visual C++.
12688       # hardcode_libdir_flag_spec is actually meaningless, as there is
12689       # no search path for DLLs.
12690       hardcode_libdir_flag_spec_GO=' '
12691       allow_undefined_flag_GO=unsupported
12692       # Tell ltmain to make .lib files, not .a files.
12693       libext=lib
12694       # Tell ltmain to make .dll files, not .so files.
12695       shrext_cmds=".dll"
12696       # FIXME: Setting linknames here is a bad hack.
12697       archive_cmds_GO='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12698       # The linker will automatically build a .lib file if we build a DLL.
12699       old_archive_from_new_cmds_GO='true'
12700       # FIXME: Should let the user specify the lib program.
12701       old_archive_cmds_GO='lib -OUT:$oldlib$oldobjs$old_deplibs'
12702       fix_srcfile_path_GO='`cygpath -w "$srcfile"`'
12703       enable_shared_with_static_runtimes_GO=yes
12704       ;;
12705
12706     darwin* | rhapsody*)
12707
12708
12709   archive_cmds_need_lc_GO=no
12710   hardcode_direct_GO=no
12711   hardcode_automatic_GO=yes
12712   hardcode_shlibpath_var_GO=unsupported
12713   if test "$lt_cv_ld_force_load" = "yes"; then
12714     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\"`'
12715   else
12716     whole_archive_flag_spec_GO=''
12717   fi
12718   link_all_deplibs_GO=yes
12719   allow_undefined_flag_GO="$_lt_dar_allow_undefined"
12720   case $cc_basename in
12721      ifort*) _lt_dar_can_shared=yes ;;
12722      *) _lt_dar_can_shared=$GCC ;;
12723   esac
12724   if test "$_lt_dar_can_shared" = "yes"; then
12725     output_verbose_link_cmd=func_echo_all
12726     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}"
12727     module_cmds_GO="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12728     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}"
12729     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}"
12730
12731   else
12732   ld_shlibs_GO=no
12733   fi
12734
12735       ;;
12736
12737     dgux*)
12738       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12739       hardcode_libdir_flag_spec_GO='-L$libdir'
12740       hardcode_shlibpath_var_GO=no
12741       ;;
12742
12743     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12744     # support.  Future versions do this automatically, but an explicit c++rt0.o
12745     # does not break anything, and helps significantly (at the cost of a little
12746     # extra space).
12747     freebsd2.2*)
12748       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12749       hardcode_libdir_flag_spec_GO='-R$libdir'
12750       hardcode_direct_GO=yes
12751       hardcode_shlibpath_var_GO=no
12752       ;;
12753
12754     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12755     freebsd2*)
12756       archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12757       hardcode_direct_GO=yes
12758       hardcode_minus_L_GO=yes
12759       hardcode_shlibpath_var_GO=no
12760       ;;
12761
12762     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12763     freebsd* | dragonfly*)
12764       archive_cmds_GO='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12765       hardcode_libdir_flag_spec_GO='-R$libdir'
12766       hardcode_direct_GO=yes
12767       hardcode_shlibpath_var_GO=no
12768       ;;
12769
12770     hpux9*)
12771       if test "$GCC" = yes; then
12772         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'
12773       else
12774         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'
12775       fi
12776       hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12777       hardcode_libdir_separator_GO=:
12778       hardcode_direct_GO=yes
12779
12780       # hardcode_minus_L: Not really in the search PATH,
12781       # but as the default location of the library.
12782       hardcode_minus_L_GO=yes
12783       export_dynamic_flag_spec_GO='${wl}-E'
12784       ;;
12785
12786     hpux10*)
12787       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12788         archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12789       else
12790         archive_cmds_GO='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12791       fi
12792       if test "$with_gnu_ld" = no; then
12793         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12794         hardcode_libdir_flag_spec_ld_GO='+b $libdir'
12795         hardcode_libdir_separator_GO=:
12796         hardcode_direct_GO=yes
12797         hardcode_direct_absolute_GO=yes
12798         export_dynamic_flag_spec_GO='${wl}-E'
12799         # hardcode_minus_L: Not really in the search PATH,
12800         # but as the default location of the library.
12801         hardcode_minus_L_GO=yes
12802       fi
12803       ;;
12804
12805     hpux11*)
12806       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12807         case $host_cpu in
12808         hppa*64*)
12809           archive_cmds_GO='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12810           ;;
12811         ia64*)
12812           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12813           ;;
12814         *)
12815           archive_cmds_GO='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12816           ;;
12817         esac
12818       else
12819         case $host_cpu in
12820         hppa*64*)
12821           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12822           ;;
12823         ia64*)
12824           archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12825           ;;
12826         *)
12827         archive_cmds_GO='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12828           ;;
12829         esac
12830       fi
12831       if test "$with_gnu_ld" = no; then
12832         hardcode_libdir_flag_spec_GO='${wl}+b ${wl}$libdir'
12833         hardcode_libdir_separator_GO=:
12834
12835         case $host_cpu in
12836         hppa*64*|ia64*)
12837           hardcode_direct_GO=no
12838           hardcode_shlibpath_var_GO=no
12839           ;;
12840         *)
12841           hardcode_direct_GO=yes
12842           hardcode_direct_absolute_GO=yes
12843           export_dynamic_flag_spec_GO='${wl}-E'
12844
12845           # hardcode_minus_L: Not really in the search PATH,
12846           # but as the default location of the library.
12847           hardcode_minus_L_GO=yes
12848           ;;
12849         esac
12850       fi
12851       ;;
12852
12853     irix5* | irix6* | nonstopux*)
12854       if test "$GCC" = yes; then
12855         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'
12856         # Try to use the -exported_symbol ld option, if it does not
12857         # work, assume that -exports_file does not work either and
12858         # implicitly export all symbols.
12859         save_LDFLAGS="$LDFLAGS"
12860         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12861         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12862 /* end confdefs.h.  */
12863 int foo(void) {}
12864 _ACEOF
12865 if ac_fn_c_try_link "$LINENO"; then :
12866   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'
12867
12868 fi
12869 rm -f core conftest.err conftest.$ac_objext \
12870     conftest$ac_exeext conftest.$ac_ext
12871         LDFLAGS="$save_LDFLAGS"
12872       else
12873         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'
12874         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'
12875       fi
12876       archive_cmds_need_lc_GO='no'
12877       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12878       hardcode_libdir_separator_GO=:
12879       inherit_rpath_GO=yes
12880       link_all_deplibs_GO=yes
12881       ;;
12882
12883     netbsd*)
12884       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12885         archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12886       else
12887         archive_cmds_GO='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12888       fi
12889       hardcode_libdir_flag_spec_GO='-R$libdir'
12890       hardcode_direct_GO=yes
12891       hardcode_shlibpath_var_GO=no
12892       ;;
12893
12894     newsos6)
12895       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12896       hardcode_direct_GO=yes
12897       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12898       hardcode_libdir_separator_GO=:
12899       hardcode_shlibpath_var_GO=no
12900       ;;
12901
12902     *nto* | *qnx*)
12903       ;;
12904
12905     openbsd*)
12906       if test -f /usr/libexec/ld.so; then
12907         hardcode_direct_GO=yes
12908         hardcode_shlibpath_var_GO=no
12909         hardcode_direct_absolute_GO=yes
12910         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12911           archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12912           archive_expsym_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12913           hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12914           export_dynamic_flag_spec_GO='${wl}-E'
12915         else
12916           case $host_os in
12917            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12918              archive_cmds_GO='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12919              hardcode_libdir_flag_spec_GO='-R$libdir'
12920              ;;
12921            *)
12922              archive_cmds_GO='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12923              hardcode_libdir_flag_spec_GO='${wl}-rpath,$libdir'
12924              ;;
12925           esac
12926         fi
12927       else
12928         ld_shlibs_GO=no
12929       fi
12930       ;;
12931
12932     os2*)
12933       hardcode_libdir_flag_spec_GO='-L$libdir'
12934       hardcode_minus_L_GO=yes
12935       allow_undefined_flag_GO=unsupported
12936       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'
12937       old_archive_from_new_cmds_GO='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12938       ;;
12939
12940     osf3*)
12941       if test "$GCC" = yes; then
12942         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12943         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'
12944       else
12945         allow_undefined_flag_GO=' -expect_unresolved \*'
12946         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'
12947       fi
12948       archive_cmds_need_lc_GO='no'
12949       hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12950       hardcode_libdir_separator_GO=:
12951       ;;
12952
12953     osf4* | osf5*)      # as osf3* with the addition of -msym flag
12954       if test "$GCC" = yes; then
12955         allow_undefined_flag_GO=' ${wl}-expect_unresolved ${wl}\*'
12956         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'
12957         hardcode_libdir_flag_spec_GO='${wl}-rpath ${wl}$libdir'
12958       else
12959         allow_undefined_flag_GO=' -expect_unresolved \*'
12960         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'
12961         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~
12962         $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'
12963
12964         # Both c and cxx compiler support -rpath directly
12965         hardcode_libdir_flag_spec_GO='-rpath $libdir'
12966       fi
12967       archive_cmds_need_lc_GO='no'
12968       hardcode_libdir_separator_GO=:
12969       ;;
12970
12971     solaris*)
12972       no_undefined_flag_GO=' -z defs'
12973       if test "$GCC" = yes; then
12974         wlarc='${wl}'
12975         archive_cmds_GO='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12976         archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12977           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12978       else
12979         case `$CC -V 2>&1` in
12980         *"Compilers 5.0"*)
12981           wlarc=''
12982           archive_cmds_GO='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12983           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12984           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12985           ;;
12986         *)
12987           wlarc='${wl}'
12988           archive_cmds_GO='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12989           archive_expsym_cmds_GO='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12990           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12991           ;;
12992         esac
12993       fi
12994       hardcode_libdir_flag_spec_GO='-R$libdir'
12995       hardcode_shlibpath_var_GO=no
12996       case $host_os in
12997       solaris2.[0-5] | solaris2.[0-5].*) ;;
12998       *)
12999         # The compiler driver will combine and reorder linker options,
13000         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13001         # but is careful enough not to reorder.
13002         # Supported since Solaris 2.6 (maybe 2.5.1?)
13003         if test "$GCC" = yes; then
13004           whole_archive_flag_spec_GO='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13005         else
13006           whole_archive_flag_spec_GO='-z allextract$convenience -z defaultextract'
13007         fi
13008         ;;
13009       esac
13010       link_all_deplibs_GO=yes
13011       ;;
13012
13013     sunos4*)
13014       if test "x$host_vendor" = xsequent; then
13015         # Use $CC to link under sequent, because it throws in some extra .o
13016         # files that make .init and .fini sections work.
13017         archive_cmds_GO='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13018       else
13019         archive_cmds_GO='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13020       fi
13021       hardcode_libdir_flag_spec_GO='-L$libdir'
13022       hardcode_direct_GO=yes
13023       hardcode_minus_L_GO=yes
13024       hardcode_shlibpath_var_GO=no
13025       ;;
13026
13027     sysv4)
13028       case $host_vendor in
13029         sni)
13030           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13031           hardcode_direct_GO=yes # is this really true???
13032         ;;
13033         siemens)
13034           ## LD is ld it makes a PLAMLIB
13035           ## CC just makes a GrossModule.
13036           archive_cmds_GO='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13037           reload_cmds_GO='$CC -r -o $output$reload_objs'
13038           hardcode_direct_GO=no
13039         ;;
13040         motorola)
13041           archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13042           hardcode_direct_GO=no #Motorola manual says yes, but my tests say they lie
13043         ;;
13044       esac
13045       runpath_var='LD_RUN_PATH'
13046       hardcode_shlibpath_var_GO=no
13047       ;;
13048
13049     sysv4.3*)
13050       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13051       hardcode_shlibpath_var_GO=no
13052       export_dynamic_flag_spec_GO='-Bexport'
13053       ;;
13054
13055     sysv4*MP*)
13056       if test -d /usr/nec; then
13057         archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13058         hardcode_shlibpath_var_GO=no
13059         runpath_var=LD_RUN_PATH
13060         hardcode_runpath_var=yes
13061         ld_shlibs_GO=yes
13062       fi
13063       ;;
13064
13065     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13066       no_undefined_flag_GO='${wl}-z,text'
13067       archive_cmds_need_lc_GO=no
13068       hardcode_shlibpath_var_GO=no
13069       runpath_var='LD_RUN_PATH'
13070
13071       if test "$GCC" = yes; then
13072         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13073         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13074       else
13075         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13076         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077       fi
13078       ;;
13079
13080     sysv5* | sco3.2v5* | sco5v6*)
13081       # Note: We can NOT use -z defs as we might desire, because we do not
13082       # link with -lc, and that would cause any symbols used from libc to
13083       # always be unresolved, which means just about no library would
13084       # ever link correctly.  If we're not using GNU ld we use -z text
13085       # though, which does catch some bad symbols but isn't as heavy-handed
13086       # as -z defs.
13087       no_undefined_flag_GO='${wl}-z,text'
13088       allow_undefined_flag_GO='${wl}-z,nodefs'
13089       archive_cmds_need_lc_GO=no
13090       hardcode_shlibpath_var_GO=no
13091       hardcode_libdir_flag_spec_GO='${wl}-R,$libdir'
13092       hardcode_libdir_separator_GO=':'
13093       link_all_deplibs_GO=yes
13094       export_dynamic_flag_spec_GO='${wl}-Bexport'
13095       runpath_var='LD_RUN_PATH'
13096
13097       if test "$GCC" = yes; then
13098         archive_cmds_GO='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13099         archive_expsym_cmds_GO='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13100       else
13101         archive_cmds_GO='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102         archive_expsym_cmds_GO='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103       fi
13104       ;;
13105
13106     uts4*)
13107       archive_cmds_GO='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13108       hardcode_libdir_flag_spec_GO='-L$libdir'
13109       hardcode_shlibpath_var_GO=no
13110       ;;
13111
13112     *)
13113       ld_shlibs_GO=no
13114       ;;
13115     esac
13116
13117     if test x$host_vendor = xsni; then
13118       case $host in
13119       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13120         export_dynamic_flag_spec_GO='${wl}-Blargedynsym'
13121         ;;
13122       esac
13123     fi
13124   fi
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GO" >&5
13127 $as_echo "$ld_shlibs_GO" >&6; }
13128 test "$ld_shlibs_GO" = no && can_build_shared=no
13129
13130 with_gnu_ld_GO=$with_gnu_ld
13131
13132
13133
13134
13135
13136
13137 #
13138 # Do we need to explicitly link libc?
13139 #
13140 case "x$archive_cmds_need_lc_GO" in
13141 x|xyes)
13142   # Assume -lc should be added
13143   archive_cmds_need_lc_GO=yes
13144
13145   if test "$enable_shared" = yes && test "$GCC" = yes; then
13146     case $archive_cmds_GO in
13147     *'~'*)
13148       # FIXME: we may have to deal with multi-command sequences.
13149       ;;
13150     '$CC '*)
13151       # Test whether the compiler implicitly links with -lc since on some
13152       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13153       # to ld, don't add -lc before -lgcc.
13154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13156 if test "${lt_cv_archive_cmds_need_lc_GO+set}" = set; then :
13157   $as_echo_n "(cached) " >&6
13158 else
13159   $RM conftest*
13160         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13161
13162         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13163   (eval $ac_compile) 2>&5
13164   ac_status=$?
13165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166   test $ac_status = 0; } 2>conftest.err; then
13167           soname=conftest
13168           lib=conftest
13169           libobjs=conftest.$ac_objext
13170           deplibs=
13171           wl=$lt_prog_compiler_wl_GO
13172           pic_flag=$lt_prog_compiler_pic_GO
13173           compiler_flags=-v
13174           linker_flags=-v
13175           verstring=
13176           output_objdir=.
13177           libname=conftest
13178           lt_save_allow_undefined_flag=$allow_undefined_flag_GO
13179           allow_undefined_flag_GO=
13180           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13181   (eval $archive_cmds_GO 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13182   ac_status=$?
13183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184   test $ac_status = 0; }
13185           then
13186             lt_cv_archive_cmds_need_lc_GO=no
13187           else
13188             lt_cv_archive_cmds_need_lc_GO=yes
13189           fi
13190           allow_undefined_flag_GO=$lt_save_allow_undefined_flag
13191         else
13192           cat conftest.err 1>&5
13193         fi
13194         $RM conftest*
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GO" >&5
13198 $as_echo "$lt_cv_archive_cmds_need_lc_GO" >&6; }
13199       archive_cmds_need_lc_GO=$lt_cv_archive_cmds_need_lc_GO
13200       ;;
13201     esac
13202   fi
13203   ;;
13204 esac
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13271 hardcode_action_GO=
13272 if test -n "$hardcode_libdir_flag_spec_GO" ||
13273    test -n "$runpath_var_GO" ||
13274    test "X$hardcode_automatic_GO" = "Xyes" ; then
13275
13276   # We can hardcode non-existent directories.
13277   if test "$hardcode_direct_GO" != no &&
13278      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13279      # have to relink, otherwise we might link with an installed library
13280      # when we should be linking with a yet-to-be-installed one
13281      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GO)" != no &&
13282      test "$hardcode_minus_L_GO" != no; then
13283     # Linking always hardcodes the temporary library directory.
13284     hardcode_action_GO=relink
13285   else
13286     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13287     hardcode_action_GO=immediate
13288   fi
13289 else
13290   # We cannot hardcode anything, or else we can only hardcode existing
13291   # directories.
13292   hardcode_action_GO=unsupported
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GO" >&5
13295 $as_echo "$hardcode_action_GO" >&6; }
13296
13297 if test "$hardcode_action_GO" = relink ||
13298    test "$inherit_rpath_GO" = yes; then
13299   # Fast installation is not supported
13300   enable_fast_install=no
13301 elif test "$shlibpath_overrides_runpath" = yes ||
13302      test "$enable_shared" = no; then
13303   # Fast installation is not necessary
13304   enable_fast_install=needless
13305 fi
13306
13307
13308
13309
13310
13311
13312
13313 fi
13314
13315 ac_ext=c
13316 ac_cpp='$CPP $CPPFLAGS'
13317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320
13321
13322 GCC=$lt_save_GCC
13323 CC="$lt_save_CC"
13324
13325
13326
13327
13328         ac_config_commands="$ac_config_commands libtool"
13329
13330
13331
13332
13333 # Only expand once:
13334
13335
13336
13337
13338
13339 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
13340
13341
13342 for ac_prog in gawk mawk nawk awk
13343 do
13344   # Extract the first word of "$ac_prog", so it can be a program name with args.
13345 set dummy $ac_prog; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13347 $as_echo_n "checking for $ac_word... " >&6; }
13348 if test "${ac_cv_prog_AWK+set}" = set; then :
13349   $as_echo_n "(cached) " >&6
13350 else
13351   if test -n "$AWK"; then
13352   ac_cv_prog_AWK="$AWK" # Let the user override the test.
13353 else
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13356 do
13357   IFS=$as_save_IFS
13358   test -z "$as_dir" && as_dir=.
13359     for ac_exec_ext in '' $ac_executable_extensions; do
13360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13361     ac_cv_prog_AWK="$ac_prog"
13362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13363     break 2
13364   fi
13365 done
13366   done
13367 IFS=$as_save_IFS
13368
13369 fi
13370 fi
13371 AWK=$ac_cv_prog_AWK
13372 if test -n "$AWK"; then
13373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13374 $as_echo "$AWK" >&6; }
13375 else
13376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13378 fi
13379
13380
13381   test -n "$AWK" && break
13382 done
13383
13384
13385 WARN_FLAGS='-Wall -Wextra -Wwrite-strings -Wcast-qual'
13386
13387
13388 WERROR="-Werror"
13389
13390
13391 glibgo_toolexecdir=no
13392 glibgo_toolexeclibdir=no
13393 glibgo_prefixdir=$prefix
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
13396 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
13397 # Check whether --enable-version-specific-runtime-libs was given.
13398 if test "${enable_version_specific_runtime_libs+set}" = set; then :
13399   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
13400     yes) version_specific_libs=yes ;;
13401     no)  version_specific_libs=no ;;
13402     *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
13403    esac
13404 else
13405   version_specific_libs=no
13406 fi
13407
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
13409 $as_echo "$version_specific_libs" >&6; }
13410
13411 # Version-specific runtime libs processing.
13412 if test $version_specific_libs = yes; then
13413   glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13414   glibgo_toolexeclibdir='${toolexecdir}/${gcc_version}$(MULTISUBDIR)'
13415 fi
13416
13417 # Calculate glibgo_toolexecdir, glibgo_toolexeclibdir
13418 # Install a library built with a cross compiler in tooldir, not libdir.
13419 if test x"$glibgo_toolexecdir" = x"no"; then
13420   if test -n "$with_cross_host" &&
13421      test x"$with_cross_host" != x"no"; then
13422     glibgo_toolexecdir='${exec_prefix}/${host_alias}'
13423     glibgo_toolexeclibdir='${toolexecdir}/lib'
13424   else
13425     glibgo_toolexecdir='${libdir}/gcc/${host_alias}'
13426     glibgo_toolexeclibdir='${libdir}'
13427   fi
13428   multi_os_directory=`$CC -print-multi-os-directory`
13429   case $multi_os_directory in
13430     .) ;; # Avoid trailing /.
13431     *) glibgo_toolexeclibdir=$glibgo_toolexeclibdir/$multi_os_directory ;;
13432   esac
13433 fi
13434
13435
13436
13437
13438
13439 # See if the user wants to configure without libffi.  Some
13440 # architectures don't support it.  FIXME: We should set a default
13441 # based on the host.
13442
13443 # Check whether --with-libffi was given.
13444 if test "${with_libffi+set}" = set; then :
13445   withval=$with_libffi; :
13446 else
13447   with_libffi=${with_libffi_default-yes}
13448 fi
13449
13450
13451 LIBFFI=
13452 LIBFFIINCS=
13453 if test "$with_libffi" != no; then
13454
13455 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
13456
13457    LIBFFI=../libffi/libffi_convenience.la
13458    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
13459 fi
13460
13461
13462
13463 # Used to tell GNU make to include a file without telling automake to
13464 # include it.
13465 go_include="-include"
13466
13467
13468 is_darwin=no
13469 is_freebsd=no
13470 is_irix=no
13471 is_linux=no
13472 is_netbsd=no
13473 is_rtems=no
13474 is_solaris=no
13475 GOOS=unknown
13476 case ${host} in
13477   *-*-darwin*)   is_darwin=yes;  GOOS=darwin ;;
13478   *-*-freebsd*)  is_freebsd=yes; GOOS=freebsd ;;
13479   *-*-irix6*)    is_irix=yes;    GOOS=irix ;;
13480   *-*-linux*)    is_linux=yes;   GOOS=linux ;;
13481   *-*-netbsd*)   is_netbsd=yes;  GOOS=netbsd ;;
13482   *-*-rtems*)    is_rtems=yes;   GOOS=rtems ;;
13483   *-*-solaris2*) is_solaris=yes; GOOS=solaris ;;
13484 esac
13485  if test $is_darwin = yes; then
13486   LIBGO_IS_DARWIN_TRUE=
13487   LIBGO_IS_DARWIN_FALSE='#'
13488 else
13489   LIBGO_IS_DARWIN_TRUE='#'
13490   LIBGO_IS_DARWIN_FALSE=
13491 fi
13492
13493  if test $is_freebsd = yes; then
13494   LIBGO_IS_FREEBSD_TRUE=
13495   LIBGO_IS_FREEBSD_FALSE='#'
13496 else
13497   LIBGO_IS_FREEBSD_TRUE='#'
13498   LIBGO_IS_FREEBSD_FALSE=
13499 fi
13500
13501  if test $is_irix = yes; then
13502   LIBGO_IS_IRIX_TRUE=
13503   LIBGO_IS_IRIX_FALSE='#'
13504 else
13505   LIBGO_IS_IRIX_TRUE='#'
13506   LIBGO_IS_IRIX_FALSE=
13507 fi
13508
13509  if test $is_linux = yes; then
13510   LIBGO_IS_LINUX_TRUE=
13511   LIBGO_IS_LINUX_FALSE='#'
13512 else
13513   LIBGO_IS_LINUX_TRUE='#'
13514   LIBGO_IS_LINUX_FALSE=
13515 fi
13516
13517  if test $is_netbsd = yes; then
13518   LIBGO_IS_NETBSD_TRUE=
13519   LIBGO_IS_NETBSD_FALSE='#'
13520 else
13521   LIBGO_IS_NETBSD_TRUE='#'
13522   LIBGO_IS_NETBSD_FALSE=
13523 fi
13524
13525  if test $is_rtems = yes; then
13526   LIBGO_IS_RTEMS_TRUE=
13527   LIBGO_IS_RTEMS_FALSE='#'
13528 else
13529   LIBGO_IS_RTEMS_TRUE='#'
13530   LIBGO_IS_RTEMS_FALSE=
13531 fi
13532
13533  if test $is_solaris = yes; then
13534   LIBGO_IS_SOLARIS_TRUE=
13535   LIBGO_IS_SOLARIS_FALSE='#'
13536 else
13537   LIBGO_IS_SOLARIS_TRUE='#'
13538   LIBGO_IS_SOLARIS_FALSE=
13539 fi
13540
13541
13542
13543 is_386=no
13544 is_alpha=no
13545 is_arm=no
13546 is_m68k=no
13547 mips_abi=unknown
13548 is_ppc=no
13549 is_ppc64=no
13550 is_sparc=no
13551 is_sparc64=no
13552 is_x86_64=no
13553 GOARCH=unknown
13554 case ${host} in
13555   alpha*-*-*)
13556     is_alpha=yes
13557     GOARCH=alpha
13558     ;;
13559   arm*-*-* | strongarm*-*-* | ep9312*-*-* | xscale-*-*)
13560     is_arm=yes
13561     GOARCH=arm
13562     ;;
13563   i[34567]86-*-* | x86_64-*-*)
13564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13565 /* end confdefs.h.  */
13566
13567 #ifdef __x86_64__
13568 #error 64-bit
13569 #endif
13570 _ACEOF
13571 if ac_fn_c_try_compile "$LINENO"; then :
13572   is_386=yes
13573 else
13574   is_x86_64=yes
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577     if test "$is_386" = "yes"; then
13578       GOARCH=386
13579     else
13580       GOARCH=amd64
13581     fi
13582     ;;
13583   m68k*-*-*)
13584     is_m68k=yes
13585     GOARCH=m68k
13586     ;;
13587   mips*-*-*)
13588     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h.  */
13590
13591 #if _MIPS_SIM != _ABIO32
13592 #error not o32
13593 #endif
13594 _ACEOF
13595 if ac_fn_c_try_compile "$LINENO"; then :
13596   mips_abi="o32"
13597 else
13598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h.  */
13600
13601 #if _MIPS_SIM != _ABIN32
13602 #error not n32
13603 #endif
13604 _ACEOF
13605 if ac_fn_c_try_compile "$LINENO"; then :
13606   mips_abi="n32"
13607 else
13608   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h.  */
13610
13611 #if _MIPS_SIM != _ABI64
13612 #error not n64
13613 #endif
13614 _ACEOF
13615 if ac_fn_c_try_compile "$LINENO"; then :
13616   mips_abi="n64"
13617 else
13618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13619 /* end confdefs.h.  */
13620
13621 #if _MIPS_SIM != _ABIO64
13622 #error not o64
13623 #endif
13624 _ACEOF
13625 if ac_fn_c_try_compile "$LINENO"; then :
13626   mips_abi="o64"
13627 else
13628   as_fn_error "unknown MIPS ABI" "$LINENO" 5
13629 mips_abi="n32"
13630 fi
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13632 fi
13633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13636 fi
13637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13638     case "$mips_abi" in
13639     "o32") GOARCH=mipso32 ;;
13640     "n32") GOARCH=mipsn32 ;;
13641     "n64") GOARCH=mipsn64 ;;
13642     "o64") GOARCH=mipso64 ;;
13643     esac
13644     ;;
13645   rs6000*-*-* | powerpc*-*-*)
13646     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h.  */
13648
13649 #ifdef _ARCH_PPC64
13650 #error 64-bit
13651 #endif
13652 _ACEOF
13653 if ac_fn_c_try_compile "$LINENO"; then :
13654   is_ppc=yes
13655 else
13656   is_ppc64=yes
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13659     if test "$is_ppc" = "yes"; then
13660       GOARCH=ppc
13661     else
13662       GOARCH=ppc64
13663     fi
13664     ;;
13665   sparc*-*-*)
13666     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h.  */
13668
13669 #if defined(__sparcv9) || defined(__arch64__)
13670 #error 64-bit
13671 #endif
13672 _ACEOF
13673 if ac_fn_c_try_compile "$LINENO"; then :
13674   is_sparc=yes
13675 else
13676   is_sparc64=yes
13677 fi
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679     if test "$is_sparc" = "yes"; then
13680       GOARCH=sparc
13681     else
13682       GOARCH=sparc64
13683     fi
13684     ;;
13685 esac
13686  if test $is_386 = yes; then
13687   LIBGO_IS_386_TRUE=
13688   LIBGO_IS_386_FALSE='#'
13689 else
13690   LIBGO_IS_386_TRUE='#'
13691   LIBGO_IS_386_FALSE=
13692 fi
13693
13694  if test $is_alpha = yes; then
13695   LIBGO_IS_ALPHA_TRUE=
13696   LIBGO_IS_ALPHA_FALSE='#'
13697 else
13698   LIBGO_IS_ALPHA_TRUE='#'
13699   LIBGO_IS_ALPHA_FALSE=
13700 fi
13701
13702  if test $is_arm = yes; then
13703   LIBGO_IS_ARM_TRUE=
13704   LIBGO_IS_ARM_FALSE='#'
13705 else
13706   LIBGO_IS_ARM_TRUE='#'
13707   LIBGO_IS_ARM_FALSE=
13708 fi
13709
13710  if test $is_m68k = yes; then
13711   LIBGO_IS_M68K_TRUE=
13712   LIBGO_IS_M68K_FALSE='#'
13713 else
13714   LIBGO_IS_M68K_TRUE='#'
13715   LIBGO_IS_M68K_FALSE=
13716 fi
13717
13718  if test $mips_abi != unknown; then
13719   LIBGO_IS_MIPS_TRUE=
13720   LIBGO_IS_MIPS_FALSE='#'
13721 else
13722   LIBGO_IS_MIPS_TRUE='#'
13723   LIBGO_IS_MIPS_FALSE=
13724 fi
13725
13726  if test $mips_abi = o32; then
13727   LIBGO_IS_MIPSO32_TRUE=
13728   LIBGO_IS_MIPSO32_FALSE='#'
13729 else
13730   LIBGO_IS_MIPSO32_TRUE='#'
13731   LIBGO_IS_MIPSO32_FALSE=
13732 fi
13733
13734  if test $mips_abi = n32; then
13735   LIBGO_IS_MIPSN32_TRUE=
13736   LIBGO_IS_MIPSN32_FALSE='#'
13737 else
13738   LIBGO_IS_MIPSN32_TRUE='#'
13739   LIBGO_IS_MIPSN32_FALSE=
13740 fi
13741
13742  if test $mips_abi = n64; then
13743   LIBGO_IS_MIPSN64_TRUE=
13744   LIBGO_IS_MIPSN64_FALSE='#'
13745 else
13746   LIBGO_IS_MIPSN64_TRUE='#'
13747   LIBGO_IS_MIPSN64_FALSE=
13748 fi
13749
13750  if test $mips_abi = o64; then
13751   LIBGO_IS_MIPSO64_TRUE=
13752   LIBGO_IS_MIPSO64_FALSE='#'
13753 else
13754   LIBGO_IS_MIPSO64_TRUE='#'
13755   LIBGO_IS_MIPSO64_FALSE=
13756 fi
13757
13758  if test $is_ppc = yes; then
13759   LIBGO_IS_PPC_TRUE=
13760   LIBGO_IS_PPC_FALSE='#'
13761 else
13762   LIBGO_IS_PPC_TRUE='#'
13763   LIBGO_IS_PPC_FALSE=
13764 fi
13765
13766  if test $is_ppc64 = yes; then
13767   LIBGO_IS_PPC64_TRUE=
13768   LIBGO_IS_PPC64_FALSE='#'
13769 else
13770   LIBGO_IS_PPC64_TRUE='#'
13771   LIBGO_IS_PPC64_FALSE=
13772 fi
13773
13774  if test $is_sparc = yes; then
13775   LIBGO_IS_SPARC_TRUE=
13776   LIBGO_IS_SPARC_FALSE='#'
13777 else
13778   LIBGO_IS_SPARC_TRUE='#'
13779   LIBGO_IS_SPARC_FALSE=
13780 fi
13781
13782  if test $is_sparc64 = yes; then
13783   LIBGO_IS_SPARC64_TRUE=
13784   LIBGO_IS_SPARC64_FALSE='#'
13785 else
13786   LIBGO_IS_SPARC64_TRUE='#'
13787   LIBGO_IS_SPARC64_FALSE=
13788 fi
13789
13790  if test $is_x86_64 = yes; then
13791   LIBGO_IS_X86_64_TRUE=
13792   LIBGO_IS_X86_64_FALSE='#'
13793 else
13794   LIBGO_IS_X86_64_TRUE='#'
13795   LIBGO_IS_X86_64_FALSE=
13796 fi
13797
13798
13799
13800 GO_LIBCALL_OS_FILE=
13801 GO_LIBCALL_OS_ARCH_FILE=
13802 GO_SYSCALL_OS_FILE=
13803 GO_SYSCALL_OS_ARCH_FILE=
13804 if test -f ${srcdir}/go/syscall/libcall_${GOOS}.go; then
13805   GO_LIBCALL_OS_FILE=go/syscall/libcall_${GOOS}.go
13806 fi
13807 if test -f ${srcdir}/go/syscall/libcall_${GOOS}_${GOARCH}.go; then
13808   GO_LIBCALL_OS_ARCH_FILE=go/syscall/libcall_${GOOS}_${GOARCH}.go
13809 fi
13810 if test -f ${srcdir}/go/syscall/syscall_${GOOS}.go; then
13811   GO_SYSCALL_OS_FILE=go/syscall/syscall_${GOOS}.go
13812 fi
13813 if test -f ${srcdir}/go/syscall/syscall_${GOOS}_${GOARCH}.go; then
13814   GO_SYSCALL_OS_ARCH_FILE=go/syscall/syscall_${GOOS}_${GOARCH}.go
13815 fi
13816
13817
13818
13819
13820
13821 OSCFLAGS="-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
13822 case "$target" in
13823     mips-sgi-irix6.5*)
13824         # IRIX 6 needs _XOPEN_SOURCE=500 for the XPG5 version of struct
13825         # msghdr in <sys/socket.h>.
13826         OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500"
13827         ;;
13828     *-*-solaris2.[89])
13829         # Solaris 8/9 need this so struct msghdr gets the msg_control
13830         # etc. fields in <sys/socket.h> (_XPG4_2).
13831         OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D__EXTENSIONS__"
13832         ;;
13833     *-*-solaris2.1[01])
13834         # Solaris 10+ needs this so struct msghdr gets the msg_control
13835         # etc. fields in <sys/socket.h> (_XPG4_2).  _XOPEN_SOURCE=600 as
13836         # above doesn't work with C99.
13837         OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
13838         ;;
13839 esac
13840
13841
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fsplit-stack is supported" >&5
13843 $as_echo_n "checking whether -fsplit-stack is supported... " >&6; }
13844 if test "${libgo_cv_c_split_stack_supported+set}" = set; then :
13845   $as_echo_n "(cached) " >&6
13846 else
13847   CFLAGS_hold=$CFLAGS
13848 CFLAGS="$CFLAGS -fsplit-stack"
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h.  */
13851 int i;
13852 _ACEOF
13853 if ac_fn_c_try_compile "$LINENO"; then :
13854   libgo_cv_c_split_stack_supported=yes
13855 else
13856   libgo_cv_c_split_stack_supported=no
13857 fi
13858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13859 CFLAGS=$CFLAGS_hold
13860 fi
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_split_stack_supported" >&5
13862 $as_echo "$libgo_cv_c_split_stack_supported" >&6; }
13863 if test "$libgo_cv_c_split_stack_supported" = yes; then
13864   SPLIT_STACK=-fsplit-stack
13865
13866 $as_echo "#define USING_SPLIT_STACK 1" >>confdefs.h
13867
13868 else
13869   SPLIT_STACK=
13870 fi
13871
13872  if test "$libgo_cv_c_split_stack_supported" = yes; then
13873   USING_SPLIT_STACK_TRUE=
13874   USING_SPLIT_STACK_FALSE='#'
13875 else
13876   USING_SPLIT_STACK_TRUE='#'
13877   USING_SPLIT_STACK_FALSE=
13878 fi
13879
13880
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker supports split stack" >&5
13882 $as_echo_n "checking whether linker supports split stack... " >&6; }
13883 if test "${libgo_cv_c_linker_supports_split_stack+set}" = set; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   libgo_cv_c_linker_supports_split_stack=no
13887 if $LD --help 2>/dev/null | grep split-stack-adjust-size >/dev/null 2>&1; then
13888   libgo_cv_c_linker_supports_split_stack=yes
13889 fi
13890 fi
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_linker_supports_split_stack" >&5
13892 $as_echo "$libgo_cv_c_linker_supports_split_stack" >&6; }
13893 if test "$libgo_cv_c_linker_supports_split_stack" = yes; then
13894
13895 $as_echo "#define LINKER_SUPPORTS_SPLIT_STACK 1" >>confdefs.h
13896
13897 fi
13898
13899 MATH_LIBS=
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
13901 $as_echo_n "checking for sqrt in -lm... " >&6; }
13902 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
13903   $as_echo_n "(cached) " >&6
13904 else
13905   ac_check_lib_save_LIBS=$LIBS
13906 LIBS="-lm  $LIBS"
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h.  */
13909
13910 /* Override any GCC internal prototype to avoid an error.
13911    Use char because int might match the return type of a GCC
13912    builtin and then its argument prototype would still apply.  */
13913 #ifdef __cplusplus
13914 extern "C"
13915 #endif
13916 char sqrt ();
13917 int
13918 main ()
13919 {
13920 return sqrt ();
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 if ac_fn_c_try_link "$LINENO"; then :
13926   ac_cv_lib_m_sqrt=yes
13927 else
13928   ac_cv_lib_m_sqrt=no
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext \
13931     conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
13935 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
13936 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
13937   MATH_LIBS=-lm
13938 fi
13939
13940
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
13943 $as_echo_n "checking for socket libraries... " >&6; }
13944 if test "${libgo_cv_lib_sockets+set}" = set; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   libgo_cv_lib_sockets=
13948    libgo_check_both=no
13949    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13950 if test "x$ac_cv_func_connect" = x""yes; then :
13951   libgo_check_socket=no
13952 else
13953   libgo_check_socket=yes
13954 fi
13955
13956    if test "$libgo_check_socket" = "yes"; then
13957      unset ac_cv_func_connect
13958      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
13959 $as_echo_n "checking for main in -lsocket... " >&6; }
13960 if test "${ac_cv_lib_socket_main+set}" = set; then :
13961   $as_echo_n "(cached) " >&6
13962 else
13963   ac_check_lib_save_LIBS=$LIBS
13964 LIBS="-lsocket  $LIBS"
13965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967
13968
13969 int
13970 main ()
13971 {
13972 return main ();
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 if ac_fn_c_try_link "$LINENO"; then :
13978   ac_cv_lib_socket_main=yes
13979 else
13980   ac_cv_lib_socket_main=no
13981 fi
13982 rm -f core conftest.err conftest.$ac_objext \
13983     conftest$ac_exeext conftest.$ac_ext
13984 LIBS=$ac_check_lib_save_LIBS
13985 fi
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
13987 $as_echo "$ac_cv_lib_socket_main" >&6; }
13988 if test "x$ac_cv_lib_socket_main" = x""yes; then :
13989   libgo_cv_lib_sockets="-lsocket"
13990 else
13991   libgo_check_both=yes
13992 fi
13993
13994    fi
13995    if test "$libgo_check_both" = "yes"; then
13996      libgo_old_libs=$LIBS
13997      LIBS="$LIBS -lsocket -lnsl"
13998      unset ac_cv_func_accept
13999      ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
14000 if test "x$ac_cv_func_accept" = x""yes; then :
14001   libgo_check_nsl=no
14002                     libgo_cv_lib_sockets="-lsocket -lnsl"
14003 fi
14004
14005      unset ac_cv_func_accept
14006      LIBS=$libgo_old_libs
14007    fi
14008    unset ac_cv_func_gethostbyname
14009    libgo_old_libs="$LIBS"
14010    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
14011 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
14012
14013 else
14014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
14015 $as_echo_n "checking for main in -lnsl... " >&6; }
14016 if test "${ac_cv_lib_nsl_main+set}" = set; then :
14017   $as_echo_n "(cached) " >&6
14018 else
14019   ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-lnsl  $LIBS"
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h.  */
14023
14024
14025 int
14026 main ()
14027 {
14028 return main ();
14029   ;
14030   return 0;
14031 }
14032 _ACEOF
14033 if ac_fn_c_try_link "$LINENO"; then :
14034   ac_cv_lib_nsl_main=yes
14035 else
14036   ac_cv_lib_nsl_main=no
14037 fi
14038 rm -f core conftest.err conftest.$ac_objext \
14039     conftest$ac_exeext conftest.$ac_ext
14040 LIBS=$ac_check_lib_save_LIBS
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
14043 $as_echo "$ac_cv_lib_nsl_main" >&6; }
14044 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
14045   libgo_cv_lib_sockets="$libgo_cv_lib_sockets -lnsl"
14046 fi
14047
14048 fi
14049
14050    unset ac_cv_func_gethostbyname
14051    LIBS=$libgo_old_libs
14052
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sockets" >&5
14055 $as_echo "$libgo_cv_lib_sockets" >&6; }
14056 NET_LIBS="$libgo_cv_lib_sockets"
14057
14058
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is supported" >&5
14060 $as_echo_n "checking whether -pthread is supported... " >&6; }
14061 if test "${libgo_cv_lib_pthread+set}" = set; then :
14062   $as_echo_n "(cached) " >&6
14063 else
14064   CFLAGS_hold=$CFLAGS
14065 CFLAGS="$CFLAGS -pthread"
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h.  */
14068 int i;
14069 _ACEOF
14070 if ac_fn_c_try_compile "$LINENO"; then :
14071   libgo_cv_lib_pthread=yes
14072 else
14073   libgo_cv_lib_pthread=no
14074 fi
14075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14076 CFLAGS=$CFLAGS_hold
14077 fi
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_pthread" >&5
14079 $as_echo "$libgo_cv_lib_pthread" >&6; }
14080 PTHREAD_CFLAGS=
14081 if test "$libgo_cv_lib_pthread" = yes; then
14082   PTHREAD_CFLAGS=-pthread
14083 fi
14084
14085
14086 PTHREAD_LIBS=
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
14088 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
14089 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
14090   $as_echo_n "(cached) " >&6
14091 else
14092   ac_check_lib_save_LIBS=$LIBS
14093 LIBS="-lpthread  $LIBS"
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h.  */
14096
14097 /* Override any GCC internal prototype to avoid an error.
14098    Use char because int might match the return type of a GCC
14099    builtin and then its argument prototype would still apply.  */
14100 #ifdef __cplusplus
14101 extern "C"
14102 #endif
14103 char pthread_create ();
14104 int
14105 main ()
14106 {
14107 return pthread_create ();
14108   ;
14109   return 0;
14110 }
14111 _ACEOF
14112 if ac_fn_c_try_link "$LINENO"; then :
14113   ac_cv_lib_pthread_pthread_create=yes
14114 else
14115   ac_cv_lib_pthread_pthread_create=no
14116 fi
14117 rm -f core conftest.err conftest.$ac_objext \
14118     conftest$ac_exeext conftest.$ac_ext
14119 LIBS=$ac_check_lib_save_LIBS
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
14122 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
14123 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
14124   PTHREAD_LIBS=-lpthread
14125 fi
14126
14127
14128
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14130 $as_echo_n "checking for library containing sched_yield... " >&6; }
14131 if test "${ac_cv_search_sched_yield+set}" = set; then :
14132   $as_echo_n "(cached) " >&6
14133 else
14134   ac_func_search_save_LIBS=$LIBS
14135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h.  */
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139    Use char because int might match the return type of a GCC
14140    builtin and then its argument prototype would still apply.  */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char sched_yield ();
14145 int
14146 main ()
14147 {
14148 return sched_yield ();
14149   ;
14150   return 0;
14151 }
14152 _ACEOF
14153 for ac_lib in '' rt; do
14154   if test -z "$ac_lib"; then
14155     ac_res="none required"
14156   else
14157     ac_res=-l$ac_lib
14158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14159   fi
14160   if ac_fn_c_try_link "$LINENO"; then :
14161   ac_cv_search_sched_yield=$ac_res
14162 fi
14163 rm -f core conftest.err conftest.$ac_objext \
14164     conftest$ac_exeext
14165   if test "${ac_cv_search_sched_yield+set}" = set; then :
14166   break
14167 fi
14168 done
14169 if test "${ac_cv_search_sched_yield+set}" = set; then :
14170
14171 else
14172   ac_cv_search_sched_yield=no
14173 fi
14174 rm conftest.$ac_ext
14175 LIBS=$ac_func_search_save_LIBS
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
14178 $as_echo "$ac_cv_search_sched_yield" >&6; }
14179 ac_res=$ac_cv_search_sched_yield
14180 if test "$ac_res" != no; then :
14181   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14182
14183 fi
14184
14185
14186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14188 if test "${ac_cv_c_bigendian+set}" = set; then :
14189   $as_echo_n "(cached) " >&6
14190 else
14191   ac_cv_c_bigendian=unknown
14192     # See if we're dealing with a universal compiler.
14193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h.  */
14195 #ifndef __APPLE_CC__
14196                not a universal capable compiler
14197              #endif
14198              typedef int dummy;
14199
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"; then :
14202
14203         # Check for potential -arch flags.  It is not universal unless
14204         # there are at least two -arch flags with different values.
14205         ac_arch=
14206         ac_prev=
14207         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14208          if test -n "$ac_prev"; then
14209            case $ac_word in
14210              i?86 | x86_64 | ppc | ppc64)
14211                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14212                  ac_arch=$ac_word
14213                else
14214                  ac_cv_c_bigendian=universal
14215                  break
14216                fi
14217                ;;
14218            esac
14219            ac_prev=
14220          elif test "x$ac_word" = "x-arch"; then
14221            ac_prev=arch
14222          fi
14223        done
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14226     if test $ac_cv_c_bigendian = unknown; then
14227       # See if sys/param.h defines the BYTE_ORDER macro.
14228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229 /* end confdefs.h.  */
14230 #include <sys/types.h>
14231              #include <sys/param.h>
14232
14233 int
14234 main ()
14235 {
14236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14237                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14238                      && LITTLE_ENDIAN)
14239               bogus endian macros
14240              #endif
14241
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 if ac_fn_c_try_compile "$LINENO"; then :
14247   # It does; now see whether it defined to BIG_ENDIAN or not.
14248          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h.  */
14250 #include <sys/types.h>
14251                 #include <sys/param.h>
14252
14253 int
14254 main ()
14255 {
14256 #if BYTE_ORDER != BIG_ENDIAN
14257                  not big endian
14258                 #endif
14259
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 if ac_fn_c_try_compile "$LINENO"; then :
14265   ac_cv_c_bigendian=yes
14266 else
14267   ac_cv_c_bigendian=no
14268 fi
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14270 fi
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14272     fi
14273     if test $ac_cv_c_bigendian = unknown; then
14274       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14275       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h.  */
14277 #include <limits.h>
14278
14279 int
14280 main ()
14281 {
14282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14283               bogus endian macros
14284              #endif
14285
14286   ;
14287   return 0;
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_compile "$LINENO"; then :
14291   # It does; now see whether it defined to _BIG_ENDIAN or not.
14292          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h.  */
14294 #include <limits.h>
14295
14296 int
14297 main ()
14298 {
14299 #ifndef _BIG_ENDIAN
14300                  not big endian
14301                 #endif
14302
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308   ac_cv_c_bigendian=yes
14309 else
14310   ac_cv_c_bigendian=no
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313 fi
14314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14315     fi
14316     if test $ac_cv_c_bigendian = unknown; then
14317       # Compile a test program.
14318       if test "$cross_compiling" = yes; then :
14319   # Try to guess by grepping values from an object file.
14320          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14321 /* end confdefs.h.  */
14322 short int ascii_mm[] =
14323                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14324                 short int ascii_ii[] =
14325                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14326                 int use_ascii (int i) {
14327                   return ascii_mm[i] + ascii_ii[i];
14328                 }
14329                 short int ebcdic_ii[] =
14330                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14331                 short int ebcdic_mm[] =
14332                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14333                 int use_ebcdic (int i) {
14334                   return ebcdic_mm[i] + ebcdic_ii[i];
14335                 }
14336                 extern int foo;
14337
14338 int
14339 main ()
14340 {
14341 return use_ascii (foo) == use_ebcdic (foo);
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14348               ac_cv_c_bigendian=yes
14349             fi
14350             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14351               if test "$ac_cv_c_bigendian" = unknown; then
14352                 ac_cv_c_bigendian=no
14353               else
14354                 # finding both strings is unlikely to happen, but who knows?
14355                 ac_cv_c_bigendian=unknown
14356               fi
14357             fi
14358 fi
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 else
14361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363 $ac_includes_default
14364 int
14365 main ()
14366 {
14367
14368              /* Are we little or big endian?  From Harbison&Steele.  */
14369              union
14370              {
14371                long int l;
14372                char c[sizeof (long int)];
14373              } u;
14374              u.l = 1;
14375              return u.c[sizeof (long int) - 1] == 1;
14376
14377   ;
14378   return 0;
14379 }
14380 _ACEOF
14381 if ac_fn_c_try_run "$LINENO"; then :
14382   ac_cv_c_bigendian=no
14383 else
14384   ac_cv_c_bigendian=yes
14385 fi
14386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14387   conftest.$ac_objext conftest.beam conftest.$ac_ext
14388 fi
14389
14390     fi
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14393 $as_echo "$ac_cv_c_bigendian" >&6; }
14394  case $ac_cv_c_bigendian in #(
14395    yes)
14396      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14397 ;; #(
14398    no)
14399       ;; #(
14400    universal)
14401
14402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14403
14404      ;; #(
14405    *)
14406      as_fn_error "unknown endianness
14407  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14408  esac
14409
14410
14411
14412
14413 # Check whether --with-system-libunwind was given.
14414 if test "${with_system_libunwind+set}" = set; then :
14415   withval=$with_system_libunwind;
14416 fi
14417
14418   # If system-libunwind was not specifically set, pick a default setting.
14419   if test x$with_system_libunwind = x; then
14420     case ${target} in
14421       ia64-*-hpux*) with_system_libunwind=yes ;;
14422       *) with_system_libunwind=no ;;
14423     esac
14424   fi
14425   # Based on system-libunwind and target, do we have ipinfo?
14426   if  test x$with_system_libunwind = xyes; then
14427     case ${target} in
14428       ia64-*-*) have_unwind_getipinfo=no ;;
14429       *) have_unwind_getipinfo=yes ;;
14430     esac
14431   else
14432     # Darwin before version 9 does not have _Unwind_GetIPInfo.
14433
14434     case ${target} in
14435       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
14436       *) have_unwind_getipinfo=yes ;;
14437     esac
14438
14439   fi
14440
14441   if test x$have_unwind_getipinfo = xyes; then
14442
14443 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
14444
14445   fi
14446
14447
14448 # Check whether --enable-sjlj-exceptions was given.
14449 if test "${enable_sjlj_exceptions+set}" = set; then :
14450   enableval=$enable_sjlj_exceptions; case "$enableval" in
14451    yes|no|auto) ;;
14452    *) as_fn_error "unknown argument to --enable-sjlj-exceptions" "$LINENO" 5 ;;
14453    esac
14454 else
14455   enable_sjlj_exceptions=auto
14456 fi
14457
14458
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use setjmp/longjmp exceptions" >&5
14460 $as_echo_n "checking whether to use setjmp/longjmp exceptions... " >&6; }
14461 if test "${libgo_cv_lib_sjlj_exceptions+set}" = set; then :
14462   $as_echo_n "(cached) " >&6
14463 else
14464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h.  */
14466
14467 void bar ();
14468 void clean (int *);
14469 void foo ()
14470 {
14471   int i __attribute__ ((cleanup (clean)));
14472   bar();
14473 }
14474
14475 _ACEOF
14476 CFLAGS_hold=$CFLAGS
14477 CFLAGS="--save-temps -fexceptions"
14478 libgo_cv_lib_sjlj_exceptions=unknown
14479 if ac_fn_c_try_compile; then :
14480   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1; then
14481     libgo_cv_lib_sjlj_exceptions=yes
14482   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1; then
14483     libgo_cv_lib_sjlj_exceptions=no
14484   fi
14485 fi
14486 CFLAGS=$CFLAGS_hold
14487 rm -f conftest*
14488
14489 fi
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_sjlj_exceptions" >&5
14491 $as_echo "$libgo_cv_lib_sjlj_exceptions" >&6; }
14492
14493 if test "$enable_sjlj_exceptions" = "auto"; then
14494   enable_sjlj_exceptions=$libgo_cv_lib_sjlj_exceptions
14495 fi
14496
14497 case $enable_sjlj_exceptions in
14498 yes)
14499
14500 $as_echo "#define LIBGO_SJLJ_EXCEPTIONS 1" >>confdefs.h
14501
14502   ;;
14503 no)
14504   ;;
14505 *)
14506   as_fn_error "unable to detect exception model" "$LINENO" 5
14507   ;;
14508 esac
14509
14510 for ac_header in sys/mman.h syscall.h sys/epoll.h sys/ptrace.h sys/syscall.h sys/user.h sys/utsname.h sys/select.h sys/socket.h net/if.h sys/prctl.h
14511 do :
14512   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14514 eval as_val=\$$as_ac_Header
14515    if test "x$as_val" = x""yes; then :
14516   cat >>confdefs.h <<_ACEOF
14517 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14518 _ACEOF
14519
14520 fi
14521
14522 done
14523
14524
14525 for ac_header in linux/filter.h linux/netlink.h linux/rtnetlink.h
14526 do :
14527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14528 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_SOCKET_H
14529 #include <sys/socket.h>
14530 #endif
14531
14532 "
14533 eval as_val=\$$as_ac_Header
14534    if test "x$as_val" = x""yes; then :
14535   cat >>confdefs.h <<_ACEOF
14536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14537 _ACEOF
14538
14539 fi
14540
14541 done
14542
14543
14544  if test "$ac_cv_header_sys_mman_h" = yes; then
14545   HAVE_SYS_MMAN_H_TRUE=
14546   HAVE_SYS_MMAN_H_FALSE='#'
14547 else
14548   HAVE_SYS_MMAN_H_TRUE='#'
14549   HAVE_SYS_MMAN_H_FALSE=
14550 fi
14551
14552
14553 for ac_func in strerror_r strsignal wait4 mincore setenv
14554 do :
14555   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14556 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14557 eval as_val=\$$as_ac_var
14558    if test "x$as_val" = x""yes; then :
14559   cat >>confdefs.h <<_ACEOF
14560 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14561 _ACEOF
14562
14563 fi
14564 done
14565
14566  if test "$ac_cv_func_strerror_r" = yes; then
14567   HAVE_STRERROR_R_TRUE=
14568   HAVE_STRERROR_R_FALSE='#'
14569 else
14570   HAVE_STRERROR_R_TRUE='#'
14571   HAVE_STRERROR_R_FALSE=
14572 fi
14573
14574  if test "$ac_cv_func_wait4" = yes; then
14575   HAVE_WAIT4_TRUE=
14576   HAVE_WAIT4_FALSE='#'
14577 else
14578   HAVE_WAIT4_TRUE='#'
14579   HAVE_WAIT4_FALSE=
14580 fi
14581
14582
14583 for ac_func in epoll_create1 faccessat fchmodat fchownat futimesat inotify_add_watch inotify_init inotify_rm_watch mkdirat mknodat openat renameat splice tee unlinkat unshare
14584 do :
14585   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14586 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14587 eval as_val=\$$as_ac_var
14588    if test "x$as_val" = x""yes; then :
14589   cat >>confdefs.h <<_ACEOF
14590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14591 _ACEOF
14592
14593 fi
14594 done
14595
14596 ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default"
14597 if test "x$ac_cv_type_loff_t" = x""yes; then :
14598
14599 cat >>confdefs.h <<_ACEOF
14600 #define HAVE_LOFF_T 1
14601 _ACEOF
14602
14603
14604 fi
14605
14606
14607 CFLAGS_hold="$CFLAGS"
14608 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
14609 LIBS_hold="$LIBS"
14610 LIBS="$LIBS $PTHREAD_LIBS"
14611 for ac_func in sem_timedwait
14612 do :
14613   ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
14614 if test "x$ac_cv_func_sem_timedwait" = x""yes; then :
14615   cat >>confdefs.h <<_ACEOF
14616 #define HAVE_SEM_TIMEDWAIT 1
14617 _ACEOF
14618
14619 fi
14620 done
14621
14622 CFLAGS="$CFLAGS_hold"
14623 LIBS="$LIBS_hold"
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_bool_compare_and_swap_4" >&5
14626 $as_echo_n "checking for __sync_bool_compare_and_swap_4... " >&6; }
14627 if test "${libgo_cv_func___sync_bool_compare_and_swap_4+set}" = set; then :
14628   $as_echo_n "(cached) " >&6
14629 else
14630   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h.  */
14632
14633 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14634 uint32 i;
14635 int main() { return __sync_bool_compare_and_swap (&i, 0, 1); }
14636
14637 _ACEOF
14638 if ac_fn_c_try_link "$LINENO"; then :
14639   libgo_cv_func___sync_bool_compare_and_swap_4=yes
14640 else
14641   libgo_cv_func___sync_bool_compare_and_swap_4=no
14642 fi
14643 rm -f core conftest.err conftest.$ac_objext \
14644     conftest$ac_exeext conftest.$ac_ext
14645 fi
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_bool_compare_and_swap_4" >&5
14647 $as_echo "$libgo_cv_func___sync_bool_compare_and_swap_4" >&6; }
14648 if test "$libgo_cv_func___sync_bool_compare_and_swap_4" = "yes"; then
14649
14650 $as_echo "#define HAVE_SYNC_BOOL_COMPARE_AND_SWAP_4 1" >>confdefs.h
14651
14652 fi
14653
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_fetch_and_add_4" >&5
14655 $as_echo_n "checking for __sync_fetch_and_add_4... " >&6; }
14656 if test "${libgo_cv_func___sync_fetch_and_add_4+set}" = set; then :
14657   $as_echo_n "(cached) " >&6
14658 else
14659   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660 /* end confdefs.h.  */
14661
14662 typedef unsigned int uint32  __attribute__ ((mode (SI)));
14663 uint32 i;
14664 int main() { return __sync_fetch_and_add (&i, 1); }
14665
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"; then :
14668   libgo_cv_func___sync_fetch_and_add_4=yes
14669 else
14670   libgo_cv_func___sync_fetch_and_add_4=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext \
14673     conftest$ac_exeext conftest.$ac_ext
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_func___sync_fetch_and_add_4" >&5
14676 $as_echo "$libgo_cv_func___sync_fetch_and_add_4" >&6; }
14677 if test "$libgo_cv_func___sync_fetch_and_add_4" = "yes"; then
14678
14679 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD_4 1" >>confdefs.h
14680
14681 fi
14682
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -minline-all-stringops" >&5
14684 $as_echo_n "checking whether compiler supports -minline-all-stringops... " >&6; }
14685 if test "${libgo_cv_c_stringops+set}" = set; then :
14686   $as_echo_n "(cached) " >&6
14687 else
14688   CFLAGS_hold=$CFLAGS
14689 CFLAGS="$CFLAGS -minline-all-stringops"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h.  */
14692 int i;
14693 _ACEOF
14694 if ac_fn_c_try_compile "$LINENO"; then :
14695   libgo_cv_c_stringops=yes
14696 else
14697   libgo_cv_c_stringops=no
14698 fi
14699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14700 CFLAGS=$CFLAGS_hold
14701 fi
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_stringops" >&5
14703 $as_echo "$libgo_cv_c_stringops" >&6; }
14704 STRINGOPS_FLAG=
14705 if test "$libgo_cv_c_stringops" = yes; then
14706   STRINGOPS_FLAG=-minline-all-stringops
14707 fi
14708
14709
14710 CFLAGS_hold=$CFLAGS
14711 CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
14712 ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default"
14713 if test "x$ac_cv_type_off64_t" = x""yes; then :
14714
14715 cat >>confdefs.h <<_ACEOF
14716 #define HAVE_OFF64_T 1
14717 _ACEOF
14718
14719
14720 fi
14721
14722 CFLAGS=$CFLAGS_hold
14723
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event size" >&5
14725 $as_echo_n "checking epoll_event size... " >&6; }
14726 if test "${libgo_cv_c_epoll_event_size+set}" = set; then :
14727   $as_echo_n "(cached) " >&6
14728 else
14729   if ac_fn_c_compute_int "$LINENO" "sizeof (struct epoll_event)" "libgo_cv_c_epoll_event_size"        "#include <sys/epoll.h>"; then :
14730
14731 else
14732   libgo_cv_c_epoll_event_size=0
14733 fi
14734
14735 fi
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_size" >&5
14737 $as_echo "$libgo_cv_c_epoll_event_size" >&6; }
14738 SIZEOF_STRUCT_EPOLL_EVENT=${libgo_cv_c_epoll_event_size}
14739
14740
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking epoll_event data.fd offset" >&5
14742 $as_echo_n "checking epoll_event data.fd offset... " >&6; }
14743 if test "${libgo_cv_c_epoll_event_fd_offset+set}" = set; then :
14744   $as_echo_n "(cached) " >&6
14745 else
14746   if ac_fn_c_compute_int "$LINENO" "offsetof (struct epoll_event, data.fd)" "libgo_cv_c_epoll_event_fd_offset"        "#include <stddef.h>
14747 #include <sys/epoll.h>"; then :
14748
14749 else
14750   libgo_cv_c_epoll_event_fd_offset=0
14751 fi
14752
14753 fi
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_c_epoll_event_fd_offset" >&5
14755 $as_echo "$libgo_cv_c_epoll_event_fd_offset" >&6; }
14756 STRUCT_EPOLL_EVENT_FD_OFFSET=${libgo_cv_c_epoll_event_fd_offset}
14757
14758
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setcontext clobbers TLS variables" >&5
14760 $as_echo_n "checking whether setcontext clobbers TLS variables... " >&6; }
14761 if test "${libgo_cv_lib_setcontext_clobbers_tls+set}" = set; then :
14762   $as_echo_n "(cached) " >&6
14763 else
14764   LIBS_hold="$LIBS"
14765 LIBS="$LIBS $PTHREAD_LIBS"
14766 if test "$cross_compiling" = yes; then :
14767   case "$target" in
14768   x86_64*-*-solaris2.10) libgo_cv_lib_setcontext_clobbers_tls=yes ;;
14769   *) libgo_cv_lib_setcontext_clobbers_tls=no ;;
14770  esac
14771
14772 else
14773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14774 /* end confdefs.h.  */
14775
14776 #include <pthread.h>
14777 #include <stdlib.h>
14778 #include <ucontext.h>
14779 #include <unistd.h>
14780
14781 __thread int tls;
14782
14783 static char stack[10 * 1024 * 1024];
14784 static ucontext_t c;
14785
14786 /* Called via makecontext/setcontext.  */
14787
14788 static void
14789 cfn (void)
14790 {
14791   exit (tls);
14792 }
14793
14794 /* Called via pthread_create.  */
14795
14796 static void *
14797 tfn (void *dummy)
14798 {
14799   /* The thread should still see this value after calling
14800      setcontext.  */
14801   tls = 0;
14802
14803   setcontext (&c);
14804
14805   /* The call to setcontext should not return.  */
14806   abort ();
14807 }
14808
14809 int
14810 main ()
14811 {
14812   pthread_t tid;
14813
14814   /* The thread should not see this value.  */
14815   tls = 1;
14816
14817   if (getcontext (&c) < 0)
14818     abort ();
14819
14820   c.uc_stack.ss_sp = stack;
14821   c.uc_stack.ss_flags = 0;
14822   c.uc_stack.ss_size = sizeof stack;
14823   c.uc_link = NULL;
14824   makecontext (&c, cfn, 0);
14825
14826   if (pthread_create (&tid, NULL, tfn, NULL) != 0)
14827     abort ();
14828
14829   if (pthread_join (tid, NULL) != 0)
14830     abort ();
14831
14832   /* The thread should have called exit.  */
14833   abort ();
14834 }
14835
14836 _ACEOF
14837 if ac_fn_c_try_run "$LINENO"; then :
14838   libgo_cv_lib_setcontext_clobbers_tls=no
14839 else
14840   libgo_cv_lib_setcontext_clobbers_tls=yes
14841 fi
14842 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14843   conftest.$ac_objext conftest.beam conftest.$ac_ext
14844 fi
14845
14846 LIBS="$LIBS_hold"
14847
14848 fi
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgo_cv_lib_setcontext_clobbers_tls" >&5
14850 $as_echo "$libgo_cv_lib_setcontext_clobbers_tls" >&6; }
14851 if test "$libgo_cv_lib_setcontext_clobbers_tls" = "yes"; then
14852
14853 $as_echo "#define SETCONTEXT_CLOBBERS_TLS 1" >>confdefs.h
14854
14855 fi
14856
14857 cat >confcache <<\_ACEOF
14858 # This file is a shell script that caches the results of configure
14859 # tests run on this system so they can be shared between configure
14860 # scripts and configure runs, see configure's option --config-cache.
14861 # It is not useful on other systems.  If it contains results you don't
14862 # want to keep, you may remove or edit it.
14863 #
14864 # config.status only pays attention to the cache file if you give it
14865 # the --recheck option to rerun configure.
14866 #
14867 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14868 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14869 # following values.
14870
14871 _ACEOF
14872
14873 # The following way of writing the cache mishandles newlines in values,
14874 # but we know of no workaround that is simple, portable, and efficient.
14875 # So, we kill variables containing newlines.
14876 # Ultrix sh set writes to stderr and can't be redirected directly,
14877 # and sets the high bit in the cache file unless we assign to the vars.
14878 (
14879   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14880     eval ac_val=\$$ac_var
14881     case $ac_val in #(
14882     *${as_nl}*)
14883       case $ac_var in #(
14884       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14885 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14886       esac
14887       case $ac_var in #(
14888       _ | IFS | as_nl) ;; #(
14889       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14890       *) { eval $ac_var=; unset $ac_var;} ;;
14891       esac ;;
14892     esac
14893   done
14894
14895   (set) 2>&1 |
14896     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14897     *${as_nl}ac_space=\ *)
14898       # `set' does not quote correctly, so add quotes: double-quote
14899       # substitution turns \\\\ into \\, and sed turns \\ into \.
14900       sed -n \
14901         "s/'/'\\\\''/g;
14902           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14903       ;; #(
14904     *)
14905       # `set' quotes correctly as required by POSIX, so do not add quotes.
14906       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14907       ;;
14908     esac |
14909     sort
14910 ) |
14911   sed '
14912      /^ac_cv_env_/b end
14913      t clear
14914      :clear
14915      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14916      t end
14917      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14918      :end' >>confcache
14919 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14920   if test -w "$cache_file"; then
14921     test "x$cache_file" != "x/dev/null" &&
14922       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14923 $as_echo "$as_me: updating cache $cache_file" >&6;}
14924     cat confcache >$cache_file
14925   else
14926     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14927 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14928   fi
14929 fi
14930 rm -f confcache
14931
14932 if test ${multilib} = yes; then
14933   multilib_arg="--enable-multilib"
14934 else
14935   multilib_arg=
14936 fi
14937
14938 ac_config_files="$ac_config_files Makefile testsuite/Makefile"
14939
14940
14941 ac_config_commands="$ac_config_commands default"
14942
14943
14944 cat >confcache <<\_ACEOF
14945 # This file is a shell script that caches the results of configure
14946 # tests run on this system so they can be shared between configure
14947 # scripts and configure runs, see configure's option --config-cache.
14948 # It is not useful on other systems.  If it contains results you don't
14949 # want to keep, you may remove or edit it.
14950 #
14951 # config.status only pays attention to the cache file if you give it
14952 # the --recheck option to rerun configure.
14953 #
14954 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14955 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14956 # following values.
14957
14958 _ACEOF
14959
14960 # The following way of writing the cache mishandles newlines in values,
14961 # but we know of no workaround that is simple, portable, and efficient.
14962 # So, we kill variables containing newlines.
14963 # Ultrix sh set writes to stderr and can't be redirected directly,
14964 # and sets the high bit in the cache file unless we assign to the vars.
14965 (
14966   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14967     eval ac_val=\$$ac_var
14968     case $ac_val in #(
14969     *${as_nl}*)
14970       case $ac_var in #(
14971       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14972 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14973       esac
14974       case $ac_var in #(
14975       _ | IFS | as_nl) ;; #(
14976       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14977       *) { eval $ac_var=; unset $ac_var;} ;;
14978       esac ;;
14979     esac
14980   done
14981
14982   (set) 2>&1 |
14983     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14984     *${as_nl}ac_space=\ *)
14985       # `set' does not quote correctly, so add quotes: double-quote
14986       # substitution turns \\\\ into \\, and sed turns \\ into \.
14987       sed -n \
14988         "s/'/'\\\\''/g;
14989           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14990       ;; #(
14991     *)
14992       # `set' quotes correctly as required by POSIX, so do not add quotes.
14993       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14994       ;;
14995     esac |
14996     sort
14997 ) |
14998   sed '
14999      /^ac_cv_env_/b end
15000      t clear
15001      :clear
15002      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15003      t end
15004      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15005      :end' >>confcache
15006 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15007   if test -w "$cache_file"; then
15008     test "x$cache_file" != "x/dev/null" &&
15009       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15010 $as_echo "$as_me: updating cache $cache_file" >&6;}
15011     cat confcache >$cache_file
15012   else
15013     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15014 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15015   fi
15016 fi
15017 rm -f confcache
15018
15019 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15020 # Let make expand exec_prefix.
15021 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15022
15023 DEFS=-DHAVE_CONFIG_H
15024
15025 ac_libobjs=
15026 ac_ltlibobjs=
15027 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15028   # 1. Remove the extension, and $U if already installed.
15029   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15030   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15031   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15032   #    will be set to the directory where LIBOBJS objects are built.
15033   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15034   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15035 done
15036 LIBOBJS=$ac_libobjs
15037
15038 LTLIBOBJS=$ac_ltlibobjs
15039
15040
15041  if test -n "$EXEEXT"; then
15042   am__EXEEXT_TRUE=
15043   am__EXEEXT_FALSE='#'
15044 else
15045   am__EXEEXT_TRUE='#'
15046   am__EXEEXT_FALSE=
15047 fi
15048
15049 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15050   as_fn_error "conditional \"AMDEP\" was never defined.
15051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15052 fi
15053 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15054   as_fn_error "conditional \"am__fastdepCC\" was never defined.
15055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15056 fi
15057 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15058   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15060 fi
15061 if test -z "${LIBGO_IS_DARWIN_TRUE}" && test -z "${LIBGO_IS_DARWIN_FALSE}"; then
15062   as_fn_error "conditional \"LIBGO_IS_DARWIN\" was never defined.
15063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15064 fi
15065 if test -z "${LIBGO_IS_FREEBSD_TRUE}" && test -z "${LIBGO_IS_FREEBSD_FALSE}"; then
15066   as_fn_error "conditional \"LIBGO_IS_FREEBSD\" was never defined.
15067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15068 fi
15069 if test -z "${LIBGO_IS_IRIX_TRUE}" && test -z "${LIBGO_IS_IRIX_FALSE}"; then
15070   as_fn_error "conditional \"LIBGO_IS_IRIX\" was never defined.
15071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15072 fi
15073 if test -z "${LIBGO_IS_LINUX_TRUE}" && test -z "${LIBGO_IS_LINUX_FALSE}"; then
15074   as_fn_error "conditional \"LIBGO_IS_LINUX\" was never defined.
15075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15076 fi
15077 if test -z "${LIBGO_IS_NETBSD_TRUE}" && test -z "${LIBGO_IS_NETBSD_FALSE}"; then
15078   as_fn_error "conditional \"LIBGO_IS_NETBSD\" was never defined.
15079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15080 fi
15081 if test -z "${LIBGO_IS_RTEMS_TRUE}" && test -z "${LIBGO_IS_RTEMS_FALSE}"; then
15082   as_fn_error "conditional \"LIBGO_IS_RTEMS\" was never defined.
15083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15084 fi
15085 if test -z "${LIBGO_IS_SOLARIS_TRUE}" && test -z "${LIBGO_IS_SOLARIS_FALSE}"; then
15086   as_fn_error "conditional \"LIBGO_IS_SOLARIS\" was never defined.
15087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15088 fi
15089 if test -z "${LIBGO_IS_386_TRUE}" && test -z "${LIBGO_IS_386_FALSE}"; then
15090   as_fn_error "conditional \"LIBGO_IS_386\" was never defined.
15091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15092 fi
15093 if test -z "${LIBGO_IS_ALPHA_TRUE}" && test -z "${LIBGO_IS_ALPHA_FALSE}"; then
15094   as_fn_error "conditional \"LIBGO_IS_ALPHA\" was never defined.
15095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15096 fi
15097 if test -z "${LIBGO_IS_ARM_TRUE}" && test -z "${LIBGO_IS_ARM_FALSE}"; then
15098   as_fn_error "conditional \"LIBGO_IS_ARM\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100 fi
15101 if test -z "${LIBGO_IS_M68K_TRUE}" && test -z "${LIBGO_IS_M68K_FALSE}"; then
15102   as_fn_error "conditional \"LIBGO_IS_M68K\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104 fi
15105 if test -z "${LIBGO_IS_MIPS_TRUE}" && test -z "${LIBGO_IS_MIPS_FALSE}"; then
15106   as_fn_error "conditional \"LIBGO_IS_MIPS\" was never defined.
15107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15108 fi
15109 if test -z "${LIBGO_IS_MIPSO32_TRUE}" && test -z "${LIBGO_IS_MIPSO32_FALSE}"; then
15110   as_fn_error "conditional \"LIBGO_IS_MIPSO32\" was never defined.
15111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15112 fi
15113 if test -z "${LIBGO_IS_MIPSN32_TRUE}" && test -z "${LIBGO_IS_MIPSN32_FALSE}"; then
15114   as_fn_error "conditional \"LIBGO_IS_MIPSN32\" was never defined.
15115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116 fi
15117 if test -z "${LIBGO_IS_MIPSN64_TRUE}" && test -z "${LIBGO_IS_MIPSN64_FALSE}"; then
15118   as_fn_error "conditional \"LIBGO_IS_MIPSN64\" was never defined.
15119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 fi
15121 if test -z "${LIBGO_IS_MIPSO64_TRUE}" && test -z "${LIBGO_IS_MIPSO64_FALSE}"; then
15122   as_fn_error "conditional \"LIBGO_IS_MIPSO64\" was never defined.
15123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 fi
15125 if test -z "${LIBGO_IS_PPC_TRUE}" && test -z "${LIBGO_IS_PPC_FALSE}"; then
15126   as_fn_error "conditional \"LIBGO_IS_PPC\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 fi
15129 if test -z "${LIBGO_IS_PPC64_TRUE}" && test -z "${LIBGO_IS_PPC64_FALSE}"; then
15130   as_fn_error "conditional \"LIBGO_IS_PPC64\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${LIBGO_IS_SPARC_TRUE}" && test -z "${LIBGO_IS_SPARC_FALSE}"; then
15134   as_fn_error "conditional \"LIBGO_IS_SPARC\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137 if test -z "${LIBGO_IS_SPARC64_TRUE}" && test -z "${LIBGO_IS_SPARC64_FALSE}"; then
15138   as_fn_error "conditional \"LIBGO_IS_SPARC64\" was never defined.
15139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140 fi
15141 if test -z "${LIBGO_IS_X86_64_TRUE}" && test -z "${LIBGO_IS_X86_64_FALSE}"; then
15142   as_fn_error "conditional \"LIBGO_IS_X86_64\" was never defined.
15143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144 fi
15145 if test -z "${USING_SPLIT_STACK_TRUE}" && test -z "${USING_SPLIT_STACK_FALSE}"; then
15146   as_fn_error "conditional \"USING_SPLIT_STACK\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149
15150 if test -z "${HAVE_SYS_MMAN_H_TRUE}" && test -z "${HAVE_SYS_MMAN_H_FALSE}"; then
15151   as_fn_error "conditional \"HAVE_SYS_MMAN_H\" was never defined.
15152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15153 fi
15154 if test -z "${HAVE_STRERROR_R_TRUE}" && test -z "${HAVE_STRERROR_R_FALSE}"; then
15155   as_fn_error "conditional \"HAVE_STRERROR_R\" was never defined.
15156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15157 fi
15158 if test -z "${HAVE_WAIT4_TRUE}" && test -z "${HAVE_WAIT4_FALSE}"; then
15159   as_fn_error "conditional \"HAVE_WAIT4\" was never defined.
15160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15161 fi
15162
15163 : ${CONFIG_STATUS=./config.status}
15164 ac_write_fail=0
15165 ac_clean_files_save=$ac_clean_files
15166 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15168 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15169 as_write_fail=0
15170 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15171 #! $SHELL
15172 # Generated by $as_me.
15173 # Run this file to recreate the current configuration.
15174 # Compiler output produced by configure, useful for debugging
15175 # configure, is in config.log if it exists.
15176
15177 debug=false
15178 ac_cs_recheck=false
15179 ac_cs_silent=false
15180
15181 SHELL=\${CONFIG_SHELL-$SHELL}
15182 export SHELL
15183 _ASEOF
15184 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15185 ## -------------------- ##
15186 ## M4sh Initialization. ##
15187 ## -------------------- ##
15188
15189 # Be more Bourne compatible
15190 DUALCASE=1; export DUALCASE # for MKS sh
15191 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15192   emulate sh
15193   NULLCMD=:
15194   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15195   # is contrary to our usage.  Disable this feature.
15196   alias -g '${1+"$@"}'='"$@"'
15197   setopt NO_GLOB_SUBST
15198 else
15199   case `(set -o) 2>/dev/null` in #(
15200   *posix*) :
15201     set -o posix ;; #(
15202   *) :
15203      ;;
15204 esac
15205 fi
15206
15207
15208 as_nl='
15209 '
15210 export as_nl
15211 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15212 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15213 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15214 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15215 # Prefer a ksh shell builtin over an external printf program on Solaris,
15216 # but without wasting forks for bash or zsh.
15217 if test -z "$BASH_VERSION$ZSH_VERSION" \
15218     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15219   as_echo='print -r --'
15220   as_echo_n='print -rn --'
15221 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15222   as_echo='printf %s\n'
15223   as_echo_n='printf %s'
15224 else
15225   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15226     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15227     as_echo_n='/usr/ucb/echo -n'
15228   else
15229     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15230     as_echo_n_body='eval
15231       arg=$1;
15232       case $arg in #(
15233       *"$as_nl"*)
15234         expr "X$arg" : "X\\(.*\\)$as_nl";
15235         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15236       esac;
15237       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15238     '
15239     export as_echo_n_body
15240     as_echo_n='sh -c $as_echo_n_body as_echo'
15241   fi
15242   export as_echo_body
15243   as_echo='sh -c $as_echo_body as_echo'
15244 fi
15245
15246 # The user is always right.
15247 if test "${PATH_SEPARATOR+set}" != set; then
15248   PATH_SEPARATOR=:
15249   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15250     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15251       PATH_SEPARATOR=';'
15252   }
15253 fi
15254
15255
15256 # IFS
15257 # We need space, tab and new line, in precisely that order.  Quoting is
15258 # there to prevent editors from complaining about space-tab.
15259 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15260 # splitting by setting IFS to empty value.)
15261 IFS=" ""        $as_nl"
15262
15263 # Find who we are.  Look in the path if we contain no directory separator.
15264 case $0 in #((
15265   *[\\/]* ) as_myself=$0 ;;
15266   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $PATH
15268 do
15269   IFS=$as_save_IFS
15270   test -z "$as_dir" && as_dir=.
15271     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15272   done
15273 IFS=$as_save_IFS
15274
15275      ;;
15276 esac
15277 # We did not find ourselves, most probably we were run as `sh COMMAND'
15278 # in which case we are not to be found in the path.
15279 if test "x$as_myself" = x; then
15280   as_myself=$0
15281 fi
15282 if test ! -f "$as_myself"; then
15283   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15284   exit 1
15285 fi
15286
15287 # Unset variables that we do not need and which cause bugs (e.g. in
15288 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15289 # suppresses any "Segmentation fault" message there.  '((' could
15290 # trigger a bug in pdksh 5.2.14.
15291 for as_var in BASH_ENV ENV MAIL MAILPATH
15292 do eval test x\${$as_var+set} = xset \
15293   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15294 done
15295 PS1='$ '
15296 PS2='> '
15297 PS4='+ '
15298
15299 # NLS nuisances.
15300 LC_ALL=C
15301 export LC_ALL
15302 LANGUAGE=C
15303 export LANGUAGE
15304
15305 # CDPATH.
15306 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15307
15308
15309 # as_fn_error ERROR [LINENO LOG_FD]
15310 # ---------------------------------
15311 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15312 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15313 # script with status $?, using 1 if that was 0.
15314 as_fn_error ()
15315 {
15316   as_status=$?; test $as_status -eq 0 && as_status=1
15317   if test "$3"; then
15318     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15319     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15320   fi
15321   $as_echo "$as_me: error: $1" >&2
15322   as_fn_exit $as_status
15323 } # as_fn_error
15324
15325
15326 # as_fn_set_status STATUS
15327 # -----------------------
15328 # Set $? to STATUS, without forking.
15329 as_fn_set_status ()
15330 {
15331   return $1
15332 } # as_fn_set_status
15333
15334 # as_fn_exit STATUS
15335 # -----------------
15336 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15337 as_fn_exit ()
15338 {
15339   set +e
15340   as_fn_set_status $1
15341   exit $1
15342 } # as_fn_exit
15343
15344 # as_fn_unset VAR
15345 # ---------------
15346 # Portably unset VAR.
15347 as_fn_unset ()
15348 {
15349   { eval $1=; unset $1;}
15350 }
15351 as_unset=as_fn_unset
15352 # as_fn_append VAR VALUE
15353 # ----------------------
15354 # Append the text in VALUE to the end of the definition contained in VAR. Take
15355 # advantage of any shell optimizations that allow amortized linear growth over
15356 # repeated appends, instead of the typical quadratic growth present in naive
15357 # implementations.
15358 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15359   eval 'as_fn_append ()
15360   {
15361     eval $1+=\$2
15362   }'
15363 else
15364   as_fn_append ()
15365   {
15366     eval $1=\$$1\$2
15367   }
15368 fi # as_fn_append
15369
15370 # as_fn_arith ARG...
15371 # ------------------
15372 # Perform arithmetic evaluation on the ARGs, and store the result in the
15373 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15374 # must be portable across $(()) and expr.
15375 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15376   eval 'as_fn_arith ()
15377   {
15378     as_val=$(( $* ))
15379   }'
15380 else
15381   as_fn_arith ()
15382   {
15383     as_val=`expr "$@" || test $? -eq 1`
15384   }
15385 fi # as_fn_arith
15386
15387
15388 if expr a : '\(a\)' >/dev/null 2>&1 &&
15389    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15390   as_expr=expr
15391 else
15392   as_expr=false
15393 fi
15394
15395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15396   as_basename=basename
15397 else
15398   as_basename=false
15399 fi
15400
15401 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15402   as_dirname=dirname
15403 else
15404   as_dirname=false
15405 fi
15406
15407 as_me=`$as_basename -- "$0" ||
15408 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15409          X"$0" : 'X\(//\)$' \| \
15410          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15411 $as_echo X/"$0" |
15412     sed '/^.*\/\([^/][^/]*\)\/*$/{
15413             s//\1/
15414             q
15415           }
15416           /^X\/\(\/\/\)$/{
15417             s//\1/
15418             q
15419           }
15420           /^X\/\(\/\).*/{
15421             s//\1/
15422             q
15423           }
15424           s/.*/./; q'`
15425
15426 # Avoid depending upon Character Ranges.
15427 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15428 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15429 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15430 as_cr_digits='0123456789'
15431 as_cr_alnum=$as_cr_Letters$as_cr_digits
15432
15433 ECHO_C= ECHO_N= ECHO_T=
15434 case `echo -n x` in #(((((
15435 -n*)
15436   case `echo 'xy\c'` in
15437   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15438   xy)  ECHO_C='\c';;
15439   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15440        ECHO_T=' ';;
15441   esac;;
15442 *)
15443   ECHO_N='-n';;
15444 esac
15445
15446 rm -f conf$$ conf$$.exe conf$$.file
15447 if test -d conf$$.dir; then
15448   rm -f conf$$.dir/conf$$.file
15449 else
15450   rm -f conf$$.dir
15451   mkdir conf$$.dir 2>/dev/null
15452 fi
15453 if (echo >conf$$.file) 2>/dev/null; then
15454   if ln -s conf$$.file conf$$ 2>/dev/null; then
15455     as_ln_s='ln -s'
15456     # ... but there are two gotchas:
15457     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15458     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15459     # In both cases, we have to default to `cp -p'.
15460     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15461       as_ln_s='cp -p'
15462   elif ln conf$$.file conf$$ 2>/dev/null; then
15463     as_ln_s=ln
15464   else
15465     as_ln_s='cp -p'
15466   fi
15467 else
15468   as_ln_s='cp -p'
15469 fi
15470 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15471 rmdir conf$$.dir 2>/dev/null
15472
15473
15474 # as_fn_mkdir_p
15475 # -------------
15476 # Create "$as_dir" as a directory, including parents if necessary.
15477 as_fn_mkdir_p ()
15478 {
15479
15480   case $as_dir in #(
15481   -*) as_dir=./$as_dir;;
15482   esac
15483   test -d "$as_dir" || eval $as_mkdir_p || {
15484     as_dirs=
15485     while :; do
15486       case $as_dir in #(
15487       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15488       *) as_qdir=$as_dir;;
15489       esac
15490       as_dirs="'$as_qdir' $as_dirs"
15491       as_dir=`$as_dirname -- "$as_dir" ||
15492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15493          X"$as_dir" : 'X\(//\)[^/]' \| \
15494          X"$as_dir" : 'X\(//\)$' \| \
15495          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15496 $as_echo X"$as_dir" |
15497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15498             s//\1/
15499             q
15500           }
15501           /^X\(\/\/\)[^/].*/{
15502             s//\1/
15503             q
15504           }
15505           /^X\(\/\/\)$/{
15506             s//\1/
15507             q
15508           }
15509           /^X\(\/\).*/{
15510             s//\1/
15511             q
15512           }
15513           s/.*/./; q'`
15514       test -d "$as_dir" && break
15515     done
15516     test -z "$as_dirs" || eval "mkdir $as_dirs"
15517   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15518
15519
15520 } # as_fn_mkdir_p
15521 if mkdir -p . 2>/dev/null; then
15522   as_mkdir_p='mkdir -p "$as_dir"'
15523 else
15524   test -d ./-p && rmdir ./-p
15525   as_mkdir_p=false
15526 fi
15527
15528 if test -x / >/dev/null 2>&1; then
15529   as_test_x='test -x'
15530 else
15531   if ls -dL / >/dev/null 2>&1; then
15532     as_ls_L_option=L
15533   else
15534     as_ls_L_option=
15535   fi
15536   as_test_x='
15537     eval sh -c '\''
15538       if test -d "$1"; then
15539         test -d "$1/.";
15540       else
15541         case $1 in #(
15542         -*)set "./$1";;
15543         esac;
15544         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15545         ???[sx]*):;;*)false;;esac;fi
15546     '\'' sh
15547   '
15548 fi
15549 as_executable_p=$as_test_x
15550
15551 # Sed expression to map a string onto a valid CPP name.
15552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15553
15554 # Sed expression to map a string onto a valid variable name.
15555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15556
15557
15558 exec 6>&1
15559 ## ----------------------------------- ##
15560 ## Main body of $CONFIG_STATUS script. ##
15561 ## ----------------------------------- ##
15562 _ASEOF
15563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15564
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 # Save the log message, to keep $0 and so on meaningful, and to
15567 # report actual input values of CONFIG_FILES etc. instead of their
15568 # values after options handling.
15569 ac_log="
15570 This file was extended by package-unused $as_me version-unused, which was
15571 generated by GNU Autoconf 2.64.  Invocation command line was
15572
15573   CONFIG_FILES    = $CONFIG_FILES
15574   CONFIG_HEADERS  = $CONFIG_HEADERS
15575   CONFIG_LINKS    = $CONFIG_LINKS
15576   CONFIG_COMMANDS = $CONFIG_COMMANDS
15577   $ $0 $@
15578
15579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15580 "
15581
15582 _ACEOF
15583
15584 case $ac_config_files in *"
15585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15586 esac
15587
15588 case $ac_config_headers in *"
15589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15590 esac
15591
15592
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 # Files that config.status was made for.
15595 config_files="$ac_config_files"
15596 config_headers="$ac_config_headers"
15597 config_commands="$ac_config_commands"
15598
15599 _ACEOF
15600
15601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15602 ac_cs_usage="\
15603 \`$as_me' instantiates files and other configuration actions
15604 from templates according to the current configuration.  Unless the files
15605 and actions are specified as TAGs, all are instantiated by default.
15606
15607 Usage: $0 [OPTION]... [TAG]...
15608
15609   -h, --help       print this help, then exit
15610   -V, --version    print version number and configuration settings, then exit
15611   -q, --quiet, --silent
15612                    do not print progress messages
15613   -d, --debug      don't remove temporary files
15614       --recheck    update $as_me by reconfiguring in the same conditions
15615       --file=FILE[:TEMPLATE]
15616                    instantiate the configuration file FILE
15617       --header=FILE[:TEMPLATE]
15618                    instantiate the configuration header FILE
15619
15620 Configuration files:
15621 $config_files
15622
15623 Configuration headers:
15624 $config_headers
15625
15626 Configuration commands:
15627 $config_commands
15628
15629 Report bugs to the package provider."
15630
15631 _ACEOF
15632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 ac_cs_version="\\
15634 package-unused config.status version-unused
15635 configured by $0, generated by GNU Autoconf 2.64,
15636   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15637
15638 Copyright (C) 2009 Free Software Foundation, Inc.
15639 This config.status script is free software; the Free Software Foundation
15640 gives unlimited permission to copy, distribute and modify it."
15641
15642 ac_pwd='$ac_pwd'
15643 srcdir='$srcdir'
15644 INSTALL='$INSTALL'
15645 MKDIR_P='$MKDIR_P'
15646 AWK='$AWK'
15647 test -n "\$AWK" || AWK=awk
15648 _ACEOF
15649
15650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15651 # The default lists apply if the user does not specify any file.
15652 ac_need_defaults=:
15653 while test $# != 0
15654 do
15655   case $1 in
15656   --*=*)
15657     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15658     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15659     ac_shift=:
15660     ;;
15661   *)
15662     ac_option=$1
15663     ac_optarg=$2
15664     ac_shift=shift
15665     ;;
15666   esac
15667
15668   case $ac_option in
15669   # Handling of the options.
15670   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15671     ac_cs_recheck=: ;;
15672   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15673     $as_echo "$ac_cs_version"; exit ;;
15674   --debug | --debu | --deb | --de | --d | -d )
15675     debug=: ;;
15676   --file | --fil | --fi | --f )
15677     $ac_shift
15678     case $ac_optarg in
15679     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15680     esac
15681     as_fn_append CONFIG_FILES " '$ac_optarg'"
15682     ac_need_defaults=false;;
15683   --header | --heade | --head | --hea )
15684     $ac_shift
15685     case $ac_optarg in
15686     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15687     esac
15688     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15689     ac_need_defaults=false;;
15690   --he | --h)
15691     # Conflict between --help and --header
15692     as_fn_error "ambiguous option: \`$1'
15693 Try \`$0 --help' for more information.";;
15694   --help | --hel | -h )
15695     $as_echo "$ac_cs_usage"; exit ;;
15696   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15697   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15698     ac_cs_silent=: ;;
15699
15700   # This is an error.
15701   -*) as_fn_error "unrecognized option: \`$1'
15702 Try \`$0 --help' for more information." ;;
15703
15704   *) as_fn_append ac_config_targets " $1"
15705      ac_need_defaults=false ;;
15706
15707   esac
15708   shift
15709 done
15710
15711 ac_configure_extra_args=
15712
15713 if $ac_cs_silent; then
15714   exec 6>/dev/null
15715   ac_configure_extra_args="$ac_configure_extra_args --silent"
15716 fi
15717
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 if \$ac_cs_recheck; then
15721   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15722   shift
15723   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15724   CONFIG_SHELL='$SHELL'
15725   export CONFIG_SHELL
15726   exec "\$@"
15727 fi
15728
15729 _ACEOF
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731 exec 5>>config.log
15732 {
15733   echo
15734   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15735 ## Running $as_me. ##
15736 _ASBOX
15737   $as_echo "$ac_log"
15738 } >&5
15739
15740 _ACEOF
15741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15742 #
15743 # INIT-COMMANDS
15744 #
15745
15746 srcdir="$srcdir"
15747 host="$host"
15748 target="$target"
15749 with_multisubdir="$with_multisubdir"
15750 with_multisrctop="$with_multisrctop"
15751 with_target_subdir="$with_target_subdir"
15752 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15753 multi_basedir="$multi_basedir"
15754 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15755 CC="$CC"
15756 CXX="$CXX"
15757 GFORTRAN="$GFORTRAN"
15758 GCJ="$GCJ"
15759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15760
15761
15762 # The HP-UX ksh and POSIX shell print the target directory to stdout
15763 # if CDPATH is set.
15764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15765
15766 sed_quote_subst='$sed_quote_subst'
15767 double_quote_subst='$double_quote_subst'
15768 delay_variable_subst='$delay_variable_subst'
15769 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15770 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15771 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15772 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15773 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15774 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15775 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15776 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15777 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15778 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15779 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15780 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15781 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15782 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15783 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15784 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15785 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15786 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15787 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15788 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15789 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15790 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15791 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15792 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15793 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15794 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15795 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15796 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15797 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15798 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15799 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15800 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15801 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15802 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15803 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15804 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15805 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15806 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15807 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15808 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15809 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15810 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15811 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15812 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15813 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15814 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15815 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15816 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15817 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"`'
15818 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15819 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15820 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15821 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15824 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15825 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15826 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15827 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15828 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15829 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15830 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15831 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15832 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15833 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15834 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15835 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15836 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15837 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15838 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15839 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15841 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15842 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15843 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15844 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15845 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15846 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15847 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15848 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15850 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15852 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15853 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15854 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15855 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15856 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15857 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15858 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15859 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15860 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15861 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15862 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15863 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15864 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15865 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15866 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15867 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15868 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15869 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15870 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15871 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15872 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15873 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15874 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15875 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15876 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15877 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15878 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15879 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15880 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15881 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15882 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15883 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15884 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15885 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15886 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15887 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15888 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15889 LD_GO='`$ECHO "$LD_GO" | $SED "$delay_single_quote_subst"`'
15890 reload_flag_GO='`$ECHO "$reload_flag_GO" | $SED "$delay_single_quote_subst"`'
15891 reload_cmds_GO='`$ECHO "$reload_cmds_GO" | $SED "$delay_single_quote_subst"`'
15892 old_archive_cmds_GO='`$ECHO "$old_archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15893 compiler_GO='`$ECHO "$compiler_GO" | $SED "$delay_single_quote_subst"`'
15894 GCC_GO='`$ECHO "$GCC_GO" | $SED "$delay_single_quote_subst"`'
15895 lt_prog_compiler_no_builtin_flag_GO='`$ECHO "$lt_prog_compiler_no_builtin_flag_GO" | $SED "$delay_single_quote_subst"`'
15896 lt_prog_compiler_wl_GO='`$ECHO "$lt_prog_compiler_wl_GO" | $SED "$delay_single_quote_subst"`'
15897 lt_prog_compiler_pic_GO='`$ECHO "$lt_prog_compiler_pic_GO" | $SED "$delay_single_quote_subst"`'
15898 lt_prog_compiler_static_GO='`$ECHO "$lt_prog_compiler_static_GO" | $SED "$delay_single_quote_subst"`'
15899 lt_cv_prog_compiler_c_o_GO='`$ECHO "$lt_cv_prog_compiler_c_o_GO" | $SED "$delay_single_quote_subst"`'
15900 archive_cmds_need_lc_GO='`$ECHO "$archive_cmds_need_lc_GO" | $SED "$delay_single_quote_subst"`'
15901 enable_shared_with_static_runtimes_GO='`$ECHO "$enable_shared_with_static_runtimes_GO" | $SED "$delay_single_quote_subst"`'
15902 export_dynamic_flag_spec_GO='`$ECHO "$export_dynamic_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15903 whole_archive_flag_spec_GO='`$ECHO "$whole_archive_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15904 compiler_needs_object_GO='`$ECHO "$compiler_needs_object_GO" | $SED "$delay_single_quote_subst"`'
15905 old_archive_from_new_cmds_GO='`$ECHO "$old_archive_from_new_cmds_GO" | $SED "$delay_single_quote_subst"`'
15906 old_archive_from_expsyms_cmds_GO='`$ECHO "$old_archive_from_expsyms_cmds_GO" | $SED "$delay_single_quote_subst"`'
15907 archive_cmds_GO='`$ECHO "$archive_cmds_GO" | $SED "$delay_single_quote_subst"`'
15908 archive_expsym_cmds_GO='`$ECHO "$archive_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15909 module_cmds_GO='`$ECHO "$module_cmds_GO" | $SED "$delay_single_quote_subst"`'
15910 module_expsym_cmds_GO='`$ECHO "$module_expsym_cmds_GO" | $SED "$delay_single_quote_subst"`'
15911 with_gnu_ld_GO='`$ECHO "$with_gnu_ld_GO" | $SED "$delay_single_quote_subst"`'
15912 allow_undefined_flag_GO='`$ECHO "$allow_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15913 no_undefined_flag_GO='`$ECHO "$no_undefined_flag_GO" | $SED "$delay_single_quote_subst"`'
15914 hardcode_libdir_flag_spec_GO='`$ECHO "$hardcode_libdir_flag_spec_GO" | $SED "$delay_single_quote_subst"`'
15915 hardcode_libdir_flag_spec_ld_GO='`$ECHO "$hardcode_libdir_flag_spec_ld_GO" | $SED "$delay_single_quote_subst"`'
15916 hardcode_libdir_separator_GO='`$ECHO "$hardcode_libdir_separator_GO" | $SED "$delay_single_quote_subst"`'
15917 hardcode_direct_GO='`$ECHO "$hardcode_direct_GO" | $SED "$delay_single_quote_subst"`'
15918 hardcode_direct_absolute_GO='`$ECHO "$hardcode_direct_absolute_GO" | $SED "$delay_single_quote_subst"`'
15919 hardcode_minus_L_GO='`$ECHO "$hardcode_minus_L_GO" | $SED "$delay_single_quote_subst"`'
15920 hardcode_shlibpath_var_GO='`$ECHO "$hardcode_shlibpath_var_GO" | $SED "$delay_single_quote_subst"`'
15921 hardcode_automatic_GO='`$ECHO "$hardcode_automatic_GO" | $SED "$delay_single_quote_subst"`'
15922 inherit_rpath_GO='`$ECHO "$inherit_rpath_GO" | $SED "$delay_single_quote_subst"`'
15923 link_all_deplibs_GO='`$ECHO "$link_all_deplibs_GO" | $SED "$delay_single_quote_subst"`'
15924 fix_srcfile_path_GO='`$ECHO "$fix_srcfile_path_GO" | $SED "$delay_single_quote_subst"`'
15925 always_export_symbols_GO='`$ECHO "$always_export_symbols_GO" | $SED "$delay_single_quote_subst"`'
15926 export_symbols_cmds_GO='`$ECHO "$export_symbols_cmds_GO" | $SED "$delay_single_quote_subst"`'
15927 exclude_expsyms_GO='`$ECHO "$exclude_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15928 include_expsyms_GO='`$ECHO "$include_expsyms_GO" | $SED "$delay_single_quote_subst"`'
15929 prelink_cmds_GO='`$ECHO "$prelink_cmds_GO" | $SED "$delay_single_quote_subst"`'
15930 file_list_spec_GO='`$ECHO "$file_list_spec_GO" | $SED "$delay_single_quote_subst"`'
15931 hardcode_action_GO='`$ECHO "$hardcode_action_GO" | $SED "$delay_single_quote_subst"`'
15932
15933 LTCC='$LTCC'
15934 LTCFLAGS='$LTCFLAGS'
15935 compiler='$compiler_DEFAULT'
15936
15937 # A function that is used when there is no print builtin or printf.
15938 func_fallback_echo ()
15939 {
15940   eval 'cat <<_LTECHO_EOF
15941 \$1
15942 _LTECHO_EOF'
15943 }
15944
15945 # Quote evaled strings.
15946 for var in SED \
15947 GREP \
15948 EGREP \
15949 FGREP \
15950 SHELL \
15951 ECHO \
15952 LD \
15953 NM \
15954 LN_S \
15955 lt_SP2NL \
15956 lt_NL2SP \
15957 reload_flag \
15958 OBJDUMP \
15959 deplibs_check_method \
15960 file_magic_cmd \
15961 AR \
15962 AR_FLAGS \
15963 STRIP \
15964 RANLIB \
15965 CC \
15966 CFLAGS \
15967 compiler \
15968 lt_cv_sys_global_symbol_pipe \
15969 lt_cv_sys_global_symbol_to_cdecl \
15970 lt_cv_sys_global_symbol_to_c_name_address \
15971 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15972 lt_prog_compiler_no_builtin_flag \
15973 lt_prog_compiler_wl \
15974 lt_prog_compiler_pic \
15975 lt_prog_compiler_static \
15976 lt_cv_prog_compiler_c_o \
15977 need_locks \
15978 DSYMUTIL \
15979 NMEDIT \
15980 LIPO \
15981 OTOOL \
15982 OTOOL64 \
15983 shrext_cmds \
15984 export_dynamic_flag_spec \
15985 whole_archive_flag_spec \
15986 compiler_needs_object \
15987 with_gnu_ld \
15988 allow_undefined_flag \
15989 no_undefined_flag \
15990 hardcode_libdir_flag_spec \
15991 hardcode_libdir_flag_spec_ld \
15992 hardcode_libdir_separator \
15993 fix_srcfile_path \
15994 exclude_expsyms \
15995 include_expsyms \
15996 file_list_spec \
15997 variables_saved_for_relink \
15998 libname_spec \
15999 library_names_spec \
16000 soname_spec \
16001 install_override_mode \
16002 finish_eval \
16003 old_striplib \
16004 striplib \
16005 LD_GO \
16006 reload_flag_GO \
16007 compiler_GO \
16008 lt_prog_compiler_no_builtin_flag_GO \
16009 lt_prog_compiler_wl_GO \
16010 lt_prog_compiler_pic_GO \
16011 lt_prog_compiler_static_GO \
16012 lt_cv_prog_compiler_c_o_GO \
16013 export_dynamic_flag_spec_GO \
16014 whole_archive_flag_spec_GO \
16015 compiler_needs_object_GO \
16016 with_gnu_ld_GO \
16017 allow_undefined_flag_GO \
16018 no_undefined_flag_GO \
16019 hardcode_libdir_flag_spec_GO \
16020 hardcode_libdir_flag_spec_ld_GO \
16021 hardcode_libdir_separator_GO \
16022 fix_srcfile_path_GO \
16023 exclude_expsyms_GO \
16024 include_expsyms_GO \
16025 file_list_spec_GO; do
16026     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16027     *[\\\\\\\`\\"\\\$]*)
16028       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16029       ;;
16030     *)
16031       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16032       ;;
16033     esac
16034 done
16035
16036 # Double-quote double-evaled strings.
16037 for var in reload_cmds \
16038 old_postinstall_cmds \
16039 old_postuninstall_cmds \
16040 old_archive_cmds \
16041 extract_expsyms_cmds \
16042 old_archive_from_new_cmds \
16043 old_archive_from_expsyms_cmds \
16044 archive_cmds \
16045 archive_expsym_cmds \
16046 module_cmds \
16047 module_expsym_cmds \
16048 export_symbols_cmds \
16049 prelink_cmds \
16050 postinstall_cmds \
16051 postuninstall_cmds \
16052 finish_cmds \
16053 sys_lib_search_path_spec \
16054 sys_lib_dlsearch_path_spec \
16055 reload_cmds_GO \
16056 old_archive_cmds_GO \
16057 old_archive_from_new_cmds_GO \
16058 old_archive_from_expsyms_cmds_GO \
16059 archive_cmds_GO \
16060 archive_expsym_cmds_GO \
16061 module_cmds_GO \
16062 module_expsym_cmds_GO \
16063 export_symbols_cmds_GO \
16064 prelink_cmds_GO; do
16065     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16066     *[\\\\\\\`\\"\\\$]*)
16067       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16068       ;;
16069     *)
16070       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16071       ;;
16072     esac
16073 done
16074
16075 ac_aux_dir='$ac_aux_dir'
16076 xsi_shell='$xsi_shell'
16077 lt_shell_append='$lt_shell_append'
16078
16079 # See if we are running on zsh, and set the options which allow our
16080 # commands through without removal of \ escapes INIT.
16081 if test -n "\${ZSH_VERSION+set}" ; then
16082    setopt NO_GLOB_SUBST
16083 fi
16084
16085
16086     PACKAGE='$PACKAGE'
16087     VERSION='$VERSION'
16088     TIMESTAMP='$TIMESTAMP'
16089     RM='$RM'
16090     ofile='$ofile'
16091
16092
16093
16094
16095
16096
16097 # Variables needed in config.status (file generation) which aren't already
16098 # passed by autoconf.
16099 SUBDIRS="$SUBDIRS"
16100
16101
16102 _ACEOF
16103
16104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16105
16106 # Handling of arguments.
16107 for ac_config_target in $ac_config_targets
16108 do
16109   case $ac_config_target in
16110     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16111     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16112     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16113     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16114     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16115     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16116     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16117
16118   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16119   esac
16120 done
16121
16122
16123 # If the user did not use the arguments to specify the items to instantiate,
16124 # then the envvar interface is used.  Set only those that are not.
16125 # We use the long form for the default assignment because of an extremely
16126 # bizarre bug on SunOS 4.1.3.
16127 if $ac_need_defaults; then
16128   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16129   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16130   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16131 fi
16132
16133 # Have a temporary directory for convenience.  Make it in the build tree
16134 # simply because there is no reason against having it here, and in addition,
16135 # creating and moving files from /tmp can sometimes cause problems.
16136 # Hook for its removal unless debugging.
16137 # Note that there is a small window in which the directory will not be cleaned:
16138 # after its creation but before its name has been assigned to `$tmp'.
16139 $debug ||
16140 {
16141   tmp=
16142   trap 'exit_status=$?
16143   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16144 ' 0
16145   trap 'as_fn_exit 1' 1 2 13 15
16146 }
16147 # Create a (secure) tmp directory for tmp files.
16148
16149 {
16150   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16151   test -n "$tmp" && test -d "$tmp"
16152 }  ||
16153 {
16154   tmp=./conf$$-$RANDOM
16155   (umask 077 && mkdir "$tmp")
16156 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16157
16158 # Set up the scripts for CONFIG_FILES section.
16159 # No need to generate them if there are no CONFIG_FILES.
16160 # This happens for instance with `./config.status config.h'.
16161 if test -n "$CONFIG_FILES"; then
16162
16163
16164 ac_cr=`echo X | tr X '\015'`
16165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16166 # But we know of no other shell where ac_cr would be empty at this
16167 # point, so we can use a bashism as a fallback.
16168 if test "x$ac_cr" = x; then
16169   eval ac_cr=\$\'\\r\'
16170 fi
16171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16173   ac_cs_awk_cr='\r'
16174 else
16175   ac_cs_awk_cr=$ac_cr
16176 fi
16177
16178 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16179 _ACEOF
16180
16181
16182 {
16183   echo "cat >conf$$subs.awk <<_ACEOF" &&
16184   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16185   echo "_ACEOF"
16186 } >conf$$subs.sh ||
16187   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16189 ac_delim='%!_!# '
16190 for ac_last_try in false false false false false :; do
16191   . ./conf$$subs.sh ||
16192     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16193
16194   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16195   if test $ac_delim_n = $ac_delim_num; then
16196     break
16197   elif $ac_last_try; then
16198     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16199   else
16200     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16201   fi
16202 done
16203 rm -f conf$$subs.sh
16204
16205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16207 _ACEOF
16208 sed -n '
16209 h
16210 s/^/S["/; s/!.*/"]=/
16211 p
16212 g
16213 s/^[^!]*!//
16214 :repl
16215 t repl
16216 s/'"$ac_delim"'$//
16217 t delim
16218 :nl
16219 h
16220 s/\(.\{148\}\).*/\1/
16221 t more1
16222 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16223 p
16224 n
16225 b repl
16226 :more1
16227 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16228 p
16229 g
16230 s/.\{148\}//
16231 t nl
16232 :delim
16233 h
16234 s/\(.\{148\}\).*/\1/
16235 t more2
16236 s/["\\]/\\&/g; s/^/"/; s/$/"/
16237 p
16238 b
16239 :more2
16240 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16241 p
16242 g
16243 s/.\{148\}//
16244 t delim
16245 ' <conf$$subs.awk | sed '
16246 /^[^""]/{
16247   N
16248   s/\n//
16249 }
16250 ' >>$CONFIG_STATUS || ac_write_fail=1
16251 rm -f conf$$subs.awk
16252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16253 _ACAWK
16254 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16255   for (key in S) S_is_set[key] = 1
16256   FS = "\a"
16257
16258 }
16259 {
16260   line = $ 0
16261   nfields = split(line, field, "@")
16262   substed = 0
16263   len = length(field[1])
16264   for (i = 2; i < nfields; i++) {
16265     key = field[i]
16266     keylen = length(key)
16267     if (S_is_set[key]) {
16268       value = S[key]
16269       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16270       len += length(value) + length(field[++i])
16271       substed = 1
16272     } else
16273       len += 1 + keylen
16274   }
16275
16276   print line
16277 }
16278
16279 _ACAWK
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16282 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16283   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16284 else
16285   cat
16286 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16287   || as_fn_error "could not setup config files machinery" "$LINENO" 5
16288 _ACEOF
16289
16290 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16291 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16292 # trailing colons and then remove the whole line if VPATH becomes empty
16293 # (actually we leave an empty line to preserve line numbers).
16294 if test "x$srcdir" = x.; then
16295   ac_vpsub='/^[  ]*VPATH[        ]*=/{
16296 s/:*\$(srcdir):*/:/
16297 s/:*\${srcdir}:*/:/
16298 s/:*@srcdir@:*/:/
16299 s/^\([^=]*=[     ]*\):*/\1/
16300 s/:*$//
16301 s/^[^=]*=[       ]*$//
16302 }'
16303 fi
16304
16305 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16306 fi # test -n "$CONFIG_FILES"
16307
16308 # Set up the scripts for CONFIG_HEADERS section.
16309 # No need to generate them if there are no CONFIG_HEADERS.
16310 # This happens for instance with `./config.status Makefile'.
16311 if test -n "$CONFIG_HEADERS"; then
16312 cat >"$tmp/defines.awk" <<\_ACAWK ||
16313 BEGIN {
16314 _ACEOF
16315
16316 # Transform confdefs.h into an awk script `defines.awk', embedded as
16317 # here-document in config.status, that substitutes the proper values into
16318 # config.h.in to produce config.h.
16319
16320 # Create a delimiter string that does not exist in confdefs.h, to ease
16321 # handling of long lines.
16322 ac_delim='%!_!# '
16323 for ac_last_try in false false :; do
16324   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16325   if test -z "$ac_t"; then
16326     break
16327   elif $ac_last_try; then
16328     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16329   else
16330     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16331   fi
16332 done
16333
16334 # For the awk script, D is an array of macro values keyed by name,
16335 # likewise P contains macro parameters if any.  Preserve backslash
16336 # newline sequences.
16337
16338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16339 sed -n '
16340 s/.\{148\}/&'"$ac_delim"'/g
16341 t rset
16342 :rset
16343 s/^[     ]*#[    ]*define[       ][      ]*/ /
16344 t def
16345 d
16346 :def
16347 s/\\$//
16348 t bsnl
16349 s/["\\]/\\&/g
16350 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16351 D["\1"]=" \3"/p
16352 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16353 d
16354 :bsnl
16355 s/["\\]/\\&/g
16356 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16357 D["\1"]=" \3\\\\\\n"\\/p
16358 t cont
16359 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16360 t cont
16361 d
16362 :cont
16363 n
16364 s/.\{148\}/&'"$ac_delim"'/g
16365 t clear
16366 :clear
16367 s/\\$//
16368 t bsnlc
16369 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16370 d
16371 :bsnlc
16372 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16373 b cont
16374 ' <confdefs.h | sed '
16375 s/'"$ac_delim"'/"\\\
16376 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16377
16378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16379   for (key in D) D_is_set[key] = 1
16380   FS = "\a"
16381 }
16382 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16383   line = \$ 0
16384   split(line, arg, " ")
16385   if (arg[1] == "#") {
16386     defundef = arg[2]
16387     mac1 = arg[3]
16388   } else {
16389     defundef = substr(arg[1], 2)
16390     mac1 = arg[2]
16391   }
16392   split(mac1, mac2, "(") #)
16393   macro = mac2[1]
16394   prefix = substr(line, 1, index(line, defundef) - 1)
16395   if (D_is_set[macro]) {
16396     # Preserve the white space surrounding the "#".
16397     print prefix "define", macro P[macro] D[macro]
16398     next
16399   } else {
16400     # Replace #undef with comments.  This is necessary, for example,
16401     # in the case of _POSIX_SOURCE, which is predefined and required
16402     # on some systems where configure will not decide to define it.
16403     if (defundef == "undef") {
16404       print "/*", prefix defundef, macro, "*/"
16405       next
16406     }
16407   }
16408 }
16409 { print }
16410 _ACAWK
16411 _ACEOF
16412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16413   as_fn_error "could not setup config headers machinery" "$LINENO" 5
16414 fi # test -n "$CONFIG_HEADERS"
16415
16416
16417 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16418 shift
16419 for ac_tag
16420 do
16421   case $ac_tag in
16422   :[FHLC]) ac_mode=$ac_tag; continue;;
16423   esac
16424   case $ac_mode$ac_tag in
16425   :[FHL]*:*);;
16426   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16427   :[FH]-) ac_tag=-:-;;
16428   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16429   esac
16430   ac_save_IFS=$IFS
16431   IFS=:
16432   set x $ac_tag
16433   IFS=$ac_save_IFS
16434   shift
16435   ac_file=$1
16436   shift
16437
16438   case $ac_mode in
16439   :L) ac_source=$1;;
16440   :[FH])
16441     ac_file_inputs=
16442     for ac_f
16443     do
16444       case $ac_f in
16445       -) ac_f="$tmp/stdin";;
16446       *) # Look for the file first in the build tree, then in the source tree
16447          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16448          # because $ac_f cannot contain `:'.
16449          test -f "$ac_f" ||
16450            case $ac_f in
16451            [\\/$]*) false;;
16452            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16453            esac ||
16454            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16455       esac
16456       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16457       as_fn_append ac_file_inputs " '$ac_f'"
16458     done
16459
16460     # Let's still pretend it is `configure' which instantiates (i.e., don't
16461     # use $as_me), people would be surprised to read:
16462     #    /* config.h.  Generated by config.status.  */
16463     configure_input='Generated from '`
16464           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16465         `' by configure.'
16466     if test x"$ac_file" != x-; then
16467       configure_input="$ac_file.  $configure_input"
16468       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16469 $as_echo "$as_me: creating $ac_file" >&6;}
16470     fi
16471     # Neutralize special characters interpreted by sed in replacement strings.
16472     case $configure_input in #(
16473     *\&* | *\|* | *\\* )
16474        ac_sed_conf_input=`$as_echo "$configure_input" |
16475        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16476     *) ac_sed_conf_input=$configure_input;;
16477     esac
16478
16479     case $ac_tag in
16480     *:-:* | *:-) cat >"$tmp/stdin" \
16481       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16482     esac
16483     ;;
16484   esac
16485
16486   ac_dir=`$as_dirname -- "$ac_file" ||
16487 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16488          X"$ac_file" : 'X\(//\)[^/]' \| \
16489          X"$ac_file" : 'X\(//\)$' \| \
16490          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16491 $as_echo X"$ac_file" |
16492     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16493             s//\1/
16494             q
16495           }
16496           /^X\(\/\/\)[^/].*/{
16497             s//\1/
16498             q
16499           }
16500           /^X\(\/\/\)$/{
16501             s//\1/
16502             q
16503           }
16504           /^X\(\/\).*/{
16505             s//\1/
16506             q
16507           }
16508           s/.*/./; q'`
16509   as_dir="$ac_dir"; as_fn_mkdir_p
16510   ac_builddir=.
16511
16512 case "$ac_dir" in
16513 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16514 *)
16515   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16516   # A ".." for each directory in $ac_dir_suffix.
16517   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16518   case $ac_top_builddir_sub in
16519   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16520   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16521   esac ;;
16522 esac
16523 ac_abs_top_builddir=$ac_pwd
16524 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16525 # for backward compatibility:
16526 ac_top_builddir=$ac_top_build_prefix
16527
16528 case $srcdir in
16529   .)  # We are building in place.
16530     ac_srcdir=.
16531     ac_top_srcdir=$ac_top_builddir_sub
16532     ac_abs_top_srcdir=$ac_pwd ;;
16533   [\\/]* | ?:[\\/]* )  # Absolute name.
16534     ac_srcdir=$srcdir$ac_dir_suffix;
16535     ac_top_srcdir=$srcdir
16536     ac_abs_top_srcdir=$srcdir ;;
16537   *) # Relative name.
16538     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16539     ac_top_srcdir=$ac_top_build_prefix$srcdir
16540     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16541 esac
16542 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16543
16544
16545   case $ac_mode in
16546   :F)
16547   #
16548   # CONFIG_FILE
16549   #
16550
16551   case $INSTALL in
16552   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16553   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16554   esac
16555   ac_MKDIR_P=$MKDIR_P
16556   case $MKDIR_P in
16557   [\\/$]* | ?:[\\/]* ) ;;
16558   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16559   esac
16560 _ACEOF
16561
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 # If the template does not know about datarootdir, expand it.
16564 # FIXME: This hack should be removed a few years after 2.60.
16565 ac_datarootdir_hack=; ac_datarootdir_seen=
16566 ac_sed_dataroot='
16567 /datarootdir/ {
16568   p
16569   q
16570 }
16571 /@datadir@/p
16572 /@docdir@/p
16573 /@infodir@/p
16574 /@localedir@/p
16575 /@mandir@/p'
16576 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16577 *datarootdir*) ac_datarootdir_seen=yes;;
16578 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16579   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16580 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16581 _ACEOF
16582 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16583   ac_datarootdir_hack='
16584   s&@datadir@&$datadir&g
16585   s&@docdir@&$docdir&g
16586   s&@infodir@&$infodir&g
16587   s&@localedir@&$localedir&g
16588   s&@mandir@&$mandir&g
16589   s&\\\${datarootdir}&$datarootdir&g' ;;
16590 esac
16591 _ACEOF
16592
16593 # Neutralize VPATH when `$srcdir' = `.'.
16594 # Shell code in configure.ac might set extrasub.
16595 # FIXME: do we really want to maintain this feature?
16596 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16597 ac_sed_extra="$ac_vpsub
16598 $extrasub
16599 _ACEOF
16600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16601 :t
16602 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16603 s|@configure_input@|$ac_sed_conf_input|;t t
16604 s&@top_builddir@&$ac_top_builddir_sub&;t t
16605 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16606 s&@srcdir@&$ac_srcdir&;t t
16607 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16608 s&@top_srcdir@&$ac_top_srcdir&;t t
16609 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16610 s&@builddir@&$ac_builddir&;t t
16611 s&@abs_builddir@&$ac_abs_builddir&;t t
16612 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16613 s&@INSTALL@&$ac_INSTALL&;t t
16614 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16615 $ac_datarootdir_hack
16616 "
16617 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16618   || as_fn_error "could not create $ac_file" "$LINENO" 5
16619
16620 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16621   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16622   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16623   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16624 which seems to be undefined.  Please make sure it is defined." >&5
16625 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16626 which seems to be undefined.  Please make sure it is defined." >&2;}
16627
16628   rm -f "$tmp/stdin"
16629   case $ac_file in
16630   -) cat "$tmp/out" && rm -f "$tmp/out";;
16631   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16632   esac \
16633   || as_fn_error "could not create $ac_file" "$LINENO" 5
16634  ;;
16635   :H)
16636   #
16637   # CONFIG_HEADER
16638   #
16639   if test x"$ac_file" != x-; then
16640     {
16641       $as_echo "/* $configure_input  */" \
16642       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16643     } >"$tmp/config.h" \
16644       || as_fn_error "could not create $ac_file" "$LINENO" 5
16645     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16646       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16647 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16648     else
16649       rm -f "$ac_file"
16650       mv "$tmp/config.h" "$ac_file" \
16651         || as_fn_error "could not create $ac_file" "$LINENO" 5
16652     fi
16653   else
16654     $as_echo "/* $configure_input  */" \
16655       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16656       || as_fn_error "could not create -" "$LINENO" 5
16657   fi
16658 # Compute "$ac_file"'s index in $config_headers.
16659 _am_arg="$ac_file"
16660 _am_stamp_count=1
16661 for _am_header in $config_headers :; do
16662   case $_am_header in
16663     $_am_arg | $_am_arg:* )
16664       break ;;
16665     * )
16666       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16667   esac
16668 done
16669 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16670 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671          X"$_am_arg" : 'X\(//\)[^/]' \| \
16672          X"$_am_arg" : 'X\(//\)$' \| \
16673          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16674 $as_echo X"$_am_arg" |
16675     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16676             s//\1/
16677             q
16678           }
16679           /^X\(\/\/\)[^/].*/{
16680             s//\1/
16681             q
16682           }
16683           /^X\(\/\/\)$/{
16684             s//\1/
16685             q
16686           }
16687           /^X\(\/\).*/{
16688             s//\1/
16689             q
16690           }
16691           s/.*/./; q'`/stamp-h$_am_stamp_count
16692  ;;
16693
16694   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16695 $as_echo "$as_me: executing $ac_file commands" >&6;}
16696  ;;
16697   esac
16698
16699
16700   case $ac_file$ac_mode in
16701     "default-1":C)
16702 # Only add multilib support code if we just rebuilt the top-level
16703 # Makefile.
16704 case " $CONFIG_FILES " in
16705  *" Makefile "*)
16706    ac_file=Makefile . ${multi_basedir}/config-ml.in
16707    ;;
16708 esac ;;
16709     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16710   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16711   # are listed without --file.  Let's play safe and only enable the eval
16712   # if we detect the quoting.
16713   case $CONFIG_FILES in
16714   *\'*) eval set x "$CONFIG_FILES" ;;
16715   *)   set x $CONFIG_FILES ;;
16716   esac
16717   shift
16718   for mf
16719   do
16720     # Strip MF so we end up with the name of the file.
16721     mf=`echo "$mf" | sed -e 's/:.*$//'`
16722     # Check whether this is an Automake generated Makefile or not.
16723     # We used to match only the files named `Makefile.in', but
16724     # some people rename them; so instead we look at the file content.
16725     # Grep'ing the first line is not enough: some people post-process
16726     # each Makefile.in and add a new line on top of each file to say so.
16727     # Grep'ing the whole file is not good either: AIX grep has a line
16728     # limit of 2048, but all sed's we know have understand at least 4000.
16729     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16730       dirpart=`$as_dirname -- "$mf" ||
16731 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16732          X"$mf" : 'X\(//\)[^/]' \| \
16733          X"$mf" : 'X\(//\)$' \| \
16734          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16735 $as_echo X"$mf" |
16736     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16737             s//\1/
16738             q
16739           }
16740           /^X\(\/\/\)[^/].*/{
16741             s//\1/
16742             q
16743           }
16744           /^X\(\/\/\)$/{
16745             s//\1/
16746             q
16747           }
16748           /^X\(\/\).*/{
16749             s//\1/
16750             q
16751           }
16752           s/.*/./; q'`
16753     else
16754       continue
16755     fi
16756     # Extract the definition of DEPDIR, am__include, and am__quote
16757     # from the Makefile without running `make'.
16758     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16759     test -z "$DEPDIR" && continue
16760     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16761     test -z "am__include" && continue
16762     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16763     # When using ansi2knr, U may be empty or an underscore; expand it
16764     U=`sed -n 's/^U = //p' < "$mf"`
16765     # Find all dependency output files, they are included files with
16766     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16767     # simplest approach to changing $(DEPDIR) to its actual value in the
16768     # expansion.
16769     for file in `sed -n "
16770       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16771          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16772       # Make sure the directory exists.
16773       test -f "$dirpart/$file" && continue
16774       fdir=`$as_dirname -- "$file" ||
16775 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16776          X"$file" : 'X\(//\)[^/]' \| \
16777          X"$file" : 'X\(//\)$' \| \
16778          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16779 $as_echo X"$file" |
16780     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16781             s//\1/
16782             q
16783           }
16784           /^X\(\/\/\)[^/].*/{
16785             s//\1/
16786             q
16787           }
16788           /^X\(\/\/\)$/{
16789             s//\1/
16790             q
16791           }
16792           /^X\(\/\).*/{
16793             s//\1/
16794             q
16795           }
16796           s/.*/./; q'`
16797       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16798       # echo "creating $dirpart/$file"
16799       echo '# dummy' > "$dirpart/$file"
16800     done
16801   done
16802 }
16803  ;;
16804     "libtool":C)
16805
16806     # See if we are running on zsh, and set the options which allow our
16807     # commands through without removal of \ escapes.
16808     if test -n "${ZSH_VERSION+set}" ; then
16809       setopt NO_GLOB_SUBST
16810     fi
16811
16812     cfgfile="${ofile}T"
16813     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16814     $RM "$cfgfile"
16815
16816     cat <<_LT_EOF >> "$cfgfile"
16817 #! $SHELL
16818
16819 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16820 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16821 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16822 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16823 #
16824 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16825 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16826 #   Written by Gordon Matzigkeit, 1996
16827 #
16828 #   This file is part of GNU Libtool.
16829 #
16830 # GNU Libtool is free software; you can redistribute it and/or
16831 # modify it under the terms of the GNU General Public License as
16832 # published by the Free Software Foundation; either version 2 of
16833 # the License, or (at your option) any later version.
16834 #
16835 # As a special exception to the GNU General Public License,
16836 # if you distribute this file as part of a program or library that
16837 # is built using GNU Libtool, you may include this file under the
16838 # same distribution terms that you use for the rest of that program.
16839 #
16840 # GNU Libtool is distributed in the hope that it will be useful,
16841 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16842 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16843 # GNU General Public License for more details.
16844 #
16845 # You should have received a copy of the GNU General Public License
16846 # along with GNU Libtool; see the file COPYING.  If not, a copy
16847 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16848 # obtained by writing to the Free Software Foundation, Inc.,
16849 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16850
16851
16852 # The names of the tagged configurations supported by this script.
16853 available_tags="GO "
16854
16855 # ### BEGIN LIBTOOL CONFIG
16856
16857 # A sed program that does not truncate output.
16858 SED=$lt_SED
16859
16860 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16861 Xsed="\$SED -e 1s/^X//"
16862
16863 # A grep program that handles long lines.
16864 GREP=$lt_GREP
16865
16866 # An ERE matcher.
16867 EGREP=$lt_EGREP
16868
16869 # A literal string matcher.
16870 FGREP=$lt_FGREP
16871
16872 # Shell to use when invoking shell scripts.
16873 SHELL=$lt_SHELL
16874
16875 # An echo program that protects backslashes.
16876 ECHO=$lt_ECHO
16877
16878 # Which release of libtool.m4 was used?
16879 macro_version=$macro_version
16880 macro_revision=$macro_revision
16881
16882 # Whether or not to build shared libraries.
16883 build_libtool_libs=$enable_shared
16884
16885 # Whether or not to build static libraries.
16886 build_old_libs=$enable_static
16887
16888 # What type of objects to build.
16889 pic_mode=$pic_mode
16890
16891 # Whether or not to optimize for fast installation.
16892 fast_install=$enable_fast_install
16893
16894 # The host system.
16895 host_alias=$host_alias
16896 host=$host
16897 host_os=$host_os
16898
16899 # The build system.
16900 build_alias=$build_alias
16901 build=$build
16902 build_os=$build_os
16903
16904 # A BSD- or MS-compatible name lister.
16905 NM=$lt_NM
16906
16907 # Whether we need soft or hard links.
16908 LN_S=$lt_LN_S
16909
16910 # What is the maximum length of a command?
16911 max_cmd_len=$max_cmd_len
16912
16913 # Object file suffix (normally "o").
16914 objext=$ac_objext
16915
16916 # Executable file suffix (normally "").
16917 exeext=$exeext
16918
16919 # whether the shell understands "unset".
16920 lt_unset=$lt_unset
16921
16922 # turn spaces into newlines.
16923 SP2NL=$lt_lt_SP2NL
16924
16925 # turn newlines into spaces.
16926 NL2SP=$lt_lt_NL2SP
16927
16928 # An object symbol dumper.
16929 OBJDUMP=$lt_OBJDUMP
16930
16931 # Method to check whether dependent libraries are shared objects.
16932 deplibs_check_method=$lt_deplibs_check_method
16933
16934 # Command to use when deplibs_check_method == "file_magic".
16935 file_magic_cmd=$lt_file_magic_cmd
16936
16937 # The archiver.
16938 AR=$lt_AR
16939 AR_FLAGS=$lt_AR_FLAGS
16940
16941 # A symbol stripping program.
16942 STRIP=$lt_STRIP
16943
16944 # Commands used to install an old-style archive.
16945 RANLIB=$lt_RANLIB
16946 old_postinstall_cmds=$lt_old_postinstall_cmds
16947 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16948
16949 # Whether to use a lock for old archive extraction.
16950 lock_old_archive_extraction=$lock_old_archive_extraction
16951
16952 # A C compiler.
16953 LTCC=$lt_CC
16954
16955 # LTCC compiler flags.
16956 LTCFLAGS=$lt_CFLAGS
16957
16958 # Take the output of nm and produce a listing of raw symbols and C names.
16959 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16960
16961 # Transform the output of nm in a proper C declaration.
16962 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16963
16964 # Transform the output of nm in a C name address pair.
16965 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16966
16967 # Transform the output of nm in a C name address pair when lib prefix is needed.
16968 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16969
16970 # The name of the directory that contains temporary libtool files.
16971 objdir=$objdir
16972
16973 # Used to examine libraries when file_magic_cmd begins with "file".
16974 MAGIC_CMD=$MAGIC_CMD
16975
16976 # Must we lock files when doing compilation?
16977 need_locks=$lt_need_locks
16978
16979 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16980 DSYMUTIL=$lt_DSYMUTIL
16981
16982 # Tool to change global to local symbols on Mac OS X.
16983 NMEDIT=$lt_NMEDIT
16984
16985 # Tool to manipulate fat objects and archives on Mac OS X.
16986 LIPO=$lt_LIPO
16987
16988 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16989 OTOOL=$lt_OTOOL
16990
16991 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16992 OTOOL64=$lt_OTOOL64
16993
16994 # Old archive suffix (normally "a").
16995 libext=$libext
16996
16997 # Shared library suffix (normally ".so").
16998 shrext_cmds=$lt_shrext_cmds
16999
17000 # The commands to extract the exported symbol list from a shared archive.
17001 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17002
17003 # Variables whose values should be saved in libtool wrapper scripts and
17004 # restored at link time.
17005 variables_saved_for_relink=$lt_variables_saved_for_relink
17006
17007 # Do we need the "lib" prefix for modules?
17008 need_lib_prefix=$need_lib_prefix
17009
17010 # Do we need a version for libraries?
17011 need_version=$need_version
17012
17013 # Library versioning type.
17014 version_type=$version_type
17015
17016 # Shared library runtime path variable.
17017 runpath_var=$runpath_var
17018
17019 # Shared library path variable.
17020 shlibpath_var=$shlibpath_var
17021
17022 # Is shlibpath searched before the hard-coded library search path?
17023 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17024
17025 # Format of library name prefix.
17026 libname_spec=$lt_libname_spec
17027
17028 # List of archive names.  First name is the real one, the rest are links.
17029 # The last name is the one that the linker finds with -lNAME
17030 library_names_spec=$lt_library_names_spec
17031
17032 # The coded name of the library, if different from the real name.
17033 soname_spec=$lt_soname_spec
17034
17035 # Permission mode override for installation of shared libraries.
17036 install_override_mode=$lt_install_override_mode
17037
17038 # Command to use after installation of a shared archive.
17039 postinstall_cmds=$lt_postinstall_cmds
17040
17041 # Command to use after uninstallation of a shared archive.
17042 postuninstall_cmds=$lt_postuninstall_cmds
17043
17044 # Commands used to finish a libtool library installation in a directory.
17045 finish_cmds=$lt_finish_cmds
17046
17047 # As "finish_cmds", except a single script fragment to be evaled but
17048 # not shown.
17049 finish_eval=$lt_finish_eval
17050
17051 # Whether we should hardcode library paths into libraries.
17052 hardcode_into_libs=$hardcode_into_libs
17053
17054 # Compile-time system search path for libraries.
17055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17056
17057 # Run-time system search path for libraries.
17058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17059
17060 # Whether dlopen is supported.
17061 dlopen_support=$enable_dlopen
17062
17063 # Whether dlopen of programs is supported.
17064 dlopen_self=$enable_dlopen_self
17065
17066 # Whether dlopen of statically linked programs is supported.
17067 dlopen_self_static=$enable_dlopen_self_static
17068
17069 # Commands to strip libraries.
17070 old_striplib=$lt_old_striplib
17071 striplib=$lt_striplib
17072
17073
17074 # The linker used to build libraries.
17075 LD=$lt_LD
17076
17077 # How to create reloadable object files.
17078 reload_flag=$lt_reload_flag
17079 reload_cmds=$lt_reload_cmds
17080
17081 # Commands used to build an old-style archive.
17082 old_archive_cmds=$lt_old_archive_cmds
17083
17084 # A language specific compiler.
17085 CC=$lt_compiler
17086
17087 # Is the compiler the GNU compiler?
17088 with_gcc=$GCC
17089
17090 # Compiler flag to turn off builtin functions.
17091 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17092
17093 # How to pass a linker flag through the compiler.
17094 wl=$lt_lt_prog_compiler_wl
17095
17096 # Additional compiler flags for building library objects.
17097 pic_flag=$lt_lt_prog_compiler_pic
17098
17099 # Compiler flag to prevent dynamic linking.
17100 link_static_flag=$lt_lt_prog_compiler_static
17101
17102 # Does compiler simultaneously support -c and -o options?
17103 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17104
17105 # Whether or not to add -lc for building shared libraries.
17106 build_libtool_need_lc=$archive_cmds_need_lc
17107
17108 # Whether or not to disallow shared libs when runtime libs are static.
17109 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17110
17111 # Compiler flag to allow reflexive dlopens.
17112 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17113
17114 # Compiler flag to generate shared objects directly from archives.
17115 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17116
17117 # Whether the compiler copes with passing no objects directly.
17118 compiler_needs_object=$lt_compiler_needs_object
17119
17120 # Create an old-style archive from a shared archive.
17121 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17122
17123 # Create a temporary old-style archive to link instead of a shared archive.
17124 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17125
17126 # Commands used to build a shared archive.
17127 archive_cmds=$lt_archive_cmds
17128 archive_expsym_cmds=$lt_archive_expsym_cmds
17129
17130 # Commands used to build a loadable module if different from building
17131 # a shared archive.
17132 module_cmds=$lt_module_cmds
17133 module_expsym_cmds=$lt_module_expsym_cmds
17134
17135 # Whether we are building with GNU ld or not.
17136 with_gnu_ld=$lt_with_gnu_ld
17137
17138 # Flag that allows shared libraries with undefined symbols to be built.
17139 allow_undefined_flag=$lt_allow_undefined_flag
17140
17141 # Flag that enforces no undefined symbols.
17142 no_undefined_flag=$lt_no_undefined_flag
17143
17144 # Flag to hardcode \$libdir into a binary during linking.
17145 # This must work even if \$libdir does not exist
17146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17147
17148 # If ld is used when linking, flag to hardcode \$libdir into a binary
17149 # during linking.  This must work even if \$libdir does not exist.
17150 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17151
17152 # Whether we need a single "-rpath" flag with a separated argument.
17153 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17154
17155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17156 # DIR into the resulting binary.
17157 hardcode_direct=$hardcode_direct
17158
17159 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17160 # DIR into the resulting binary and the resulting library dependency is
17161 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17162 # library is relocated.
17163 hardcode_direct_absolute=$hardcode_direct_absolute
17164
17165 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17166 # into the resulting binary.
17167 hardcode_minus_L=$hardcode_minus_L
17168
17169 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17170 # into the resulting binary.
17171 hardcode_shlibpath_var=$hardcode_shlibpath_var
17172
17173 # Set to "yes" if building a shared library automatically hardcodes DIR
17174 # into the library and all subsequent libraries and executables linked
17175 # against it.
17176 hardcode_automatic=$hardcode_automatic
17177
17178 # Set to yes if linker adds runtime paths of dependent libraries
17179 # to runtime path list.
17180 inherit_rpath=$inherit_rpath
17181
17182 # Whether libtool must link a program against all its dependency libraries.
17183 link_all_deplibs=$link_all_deplibs
17184
17185 # Fix the shell variable \$srcfile for the compiler.
17186 fix_srcfile_path=$lt_fix_srcfile_path
17187
17188 # Set to "yes" if exported symbols are required.
17189 always_export_symbols=$always_export_symbols
17190
17191 # The commands to list exported symbols.
17192 export_symbols_cmds=$lt_export_symbols_cmds
17193
17194 # Symbols that should not be listed in the preloaded symbols.
17195 exclude_expsyms=$lt_exclude_expsyms
17196
17197 # Symbols that must always be exported.
17198 include_expsyms=$lt_include_expsyms
17199
17200 # Commands necessary for linking programs (against libraries) with templates.
17201 prelink_cmds=$lt_prelink_cmds
17202
17203 # Specify filename containing input files.
17204 file_list_spec=$lt_file_list_spec
17205
17206 # How to hardcode a shared library path into an executable.
17207 hardcode_action=$hardcode_action
17208
17209 # ### END LIBTOOL CONFIG
17210
17211 _LT_EOF
17212
17213   case $host_os in
17214   aix3*)
17215     cat <<\_LT_EOF >> "$cfgfile"
17216 # AIX sometimes has problems with the GCC collect2 program.  For some
17217 # reason, if we set the COLLECT_NAMES environment variable, the problems
17218 # vanish in a puff of smoke.
17219 if test "X${COLLECT_NAMES+set}" != Xset; then
17220   COLLECT_NAMES=
17221   export COLLECT_NAMES
17222 fi
17223 _LT_EOF
17224     ;;
17225   esac
17226
17227
17228 ltmain="$ac_aux_dir/ltmain.sh"
17229
17230
17231   # We use sed instead of cat because bash on DJGPP gets confused if
17232   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17233   # text mode, it properly converts lines to CR/LF.  This bash problem
17234   # is reportedly fixed, but why not run on old versions too?
17235   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17236     || (rm -f "$cfgfile"; exit 1)
17237
17238   case $xsi_shell in
17239   yes)
17240     cat << \_LT_EOF >> "$cfgfile"
17241
17242 # func_dirname file append nondir_replacement
17243 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17244 # otherwise set result to NONDIR_REPLACEMENT.
17245 func_dirname ()
17246 {
17247   case ${1} in
17248     */*) func_dirname_result="${1%/*}${2}" ;;
17249     *  ) func_dirname_result="${3}" ;;
17250   esac
17251 }
17252
17253 # func_basename file
17254 func_basename ()
17255 {
17256   func_basename_result="${1##*/}"
17257 }
17258
17259 # func_dirname_and_basename file append nondir_replacement
17260 # perform func_basename and func_dirname in a single function
17261 # call:
17262 #   dirname:  Compute the dirname of FILE.  If nonempty,
17263 #             add APPEND to the result, otherwise set result
17264 #             to NONDIR_REPLACEMENT.
17265 #             value returned in "$func_dirname_result"
17266 #   basename: Compute filename of FILE.
17267 #             value retuned in "$func_basename_result"
17268 # Implementation must be kept synchronized with func_dirname
17269 # and func_basename. For efficiency, we do not delegate to
17270 # those functions but instead duplicate the functionality here.
17271 func_dirname_and_basename ()
17272 {
17273   case ${1} in
17274     */*) func_dirname_result="${1%/*}${2}" ;;
17275     *  ) func_dirname_result="${3}" ;;
17276   esac
17277   func_basename_result="${1##*/}"
17278 }
17279
17280 # func_stripname prefix suffix name
17281 # strip PREFIX and SUFFIX off of NAME.
17282 # PREFIX and SUFFIX must not contain globbing or regex special
17283 # characters, hashes, percent signs, but SUFFIX may contain a leading
17284 # dot (in which case that matches only a dot).
17285 func_stripname ()
17286 {
17287   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17288   # positional parameters, so assign one to ordinary parameter first.
17289   func_stripname_result=${3}
17290   func_stripname_result=${func_stripname_result#"${1}"}
17291   func_stripname_result=${func_stripname_result%"${2}"}
17292 }
17293
17294 # func_opt_split
17295 func_opt_split ()
17296 {
17297   func_opt_split_opt=${1%%=*}
17298   func_opt_split_arg=${1#*=}
17299 }
17300
17301 # func_lo2o object
17302 func_lo2o ()
17303 {
17304   case ${1} in
17305     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17306     *)    func_lo2o_result=${1} ;;
17307   esac
17308 }
17309
17310 # func_xform libobj-or-source
17311 func_xform ()
17312 {
17313   func_xform_result=${1%.*}.lo
17314 }
17315
17316 # func_arith arithmetic-term...
17317 func_arith ()
17318 {
17319   func_arith_result=$(( $* ))
17320 }
17321
17322 # func_len string
17323 # STRING may not start with a hyphen.
17324 func_len ()
17325 {
17326   func_len_result=${#1}
17327 }
17328
17329 _LT_EOF
17330     ;;
17331   *) # Bourne compatible functions.
17332     cat << \_LT_EOF >> "$cfgfile"
17333
17334 # func_dirname file append nondir_replacement
17335 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
17336 # otherwise set result to NONDIR_REPLACEMENT.
17337 func_dirname ()
17338 {
17339   # Extract subdirectory from the argument.
17340   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17341   if test "X$func_dirname_result" = "X${1}"; then
17342     func_dirname_result="${3}"
17343   else
17344     func_dirname_result="$func_dirname_result${2}"
17345   fi
17346 }
17347
17348 # func_basename file
17349 func_basename ()
17350 {
17351   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17352 }
17353
17354
17355 # func_stripname prefix suffix name
17356 # strip PREFIX and SUFFIX off of NAME.
17357 # PREFIX and SUFFIX must not contain globbing or regex special
17358 # characters, hashes, percent signs, but SUFFIX may contain a leading
17359 # dot (in which case that matches only a dot).
17360 # func_strip_suffix prefix name
17361 func_stripname ()
17362 {
17363   case ${2} in
17364     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17365     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17366   esac
17367 }
17368
17369 # sed scripts:
17370 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17371 my_sed_long_arg='1s/^-[^=]*=//'
17372
17373 # func_opt_split
17374 func_opt_split ()
17375 {
17376   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17377   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17378 }
17379
17380 # func_lo2o object
17381 func_lo2o ()
17382 {
17383   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17384 }
17385
17386 # func_xform libobj-or-source
17387 func_xform ()
17388 {
17389   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17390 }
17391
17392 # func_arith arithmetic-term...
17393 func_arith ()
17394 {
17395   func_arith_result=`expr "$@"`
17396 }
17397
17398 # func_len string
17399 # STRING may not start with a hyphen.
17400 func_len ()
17401 {
17402   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17403 }
17404
17405 _LT_EOF
17406 esac
17407
17408 case $lt_shell_append in
17409   yes)
17410     cat << \_LT_EOF >> "$cfgfile"
17411
17412 # func_append var value
17413 # Append VALUE to the end of shell variable VAR.
17414 func_append ()
17415 {
17416   eval "$1+=\$2"
17417 }
17418 _LT_EOF
17419     ;;
17420   *)
17421     cat << \_LT_EOF >> "$cfgfile"
17422
17423 # func_append var value
17424 # Append VALUE to the end of shell variable VAR.
17425 func_append ()
17426 {
17427   eval "$1=\$$1\$2"
17428 }
17429
17430 _LT_EOF
17431     ;;
17432   esac
17433
17434
17435   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17436     || (rm -f "$cfgfile"; exit 1)
17437
17438   mv -f "$cfgfile" "$ofile" ||
17439     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17440   chmod +x "$ofile"
17441
17442
17443     cat <<_LT_EOF >> "$ofile"
17444
17445 # ### BEGIN LIBTOOL TAG CONFIG: GO
17446
17447 # The linker used to build libraries.
17448 LD=$lt_LD_GO
17449
17450 # How to create reloadable object files.
17451 reload_flag=$lt_reload_flag_GO
17452 reload_cmds=$lt_reload_cmds_GO
17453
17454 # Commands used to build an old-style archive.
17455 old_archive_cmds=$lt_old_archive_cmds_GO
17456
17457 # A language specific compiler.
17458 CC=$lt_compiler_GO
17459
17460 # Is the compiler the GNU compiler?
17461 with_gcc=$GCC_GO
17462
17463 # Compiler flag to turn off builtin functions.
17464 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GO
17465
17466 # How to pass a linker flag through the compiler.
17467 wl=$lt_lt_prog_compiler_wl_GO
17468
17469 # Additional compiler flags for building library objects.
17470 pic_flag=$lt_lt_prog_compiler_pic_GO
17471
17472 # Compiler flag to prevent dynamic linking.
17473 link_static_flag=$lt_lt_prog_compiler_static_GO
17474
17475 # Does compiler simultaneously support -c and -o options?
17476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GO
17477
17478 # Whether or not to add -lc for building shared libraries.
17479 build_libtool_need_lc=$archive_cmds_need_lc_GO
17480
17481 # Whether or not to disallow shared libs when runtime libs are static.
17482 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GO
17483
17484 # Compiler flag to allow reflexive dlopens.
17485 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GO
17486
17487 # Compiler flag to generate shared objects directly from archives.
17488 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GO
17489
17490 # Whether the compiler copes with passing no objects directly.
17491 compiler_needs_object=$lt_compiler_needs_object_GO
17492
17493 # Create an old-style archive from a shared archive.
17494 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GO
17495
17496 # Create a temporary old-style archive to link instead of a shared archive.
17497 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GO
17498
17499 # Commands used to build a shared archive.
17500 archive_cmds=$lt_archive_cmds_GO
17501 archive_expsym_cmds=$lt_archive_expsym_cmds_GO
17502
17503 # Commands used to build a loadable module if different from building
17504 # a shared archive.
17505 module_cmds=$lt_module_cmds_GO
17506 module_expsym_cmds=$lt_module_expsym_cmds_GO
17507
17508 # Whether we are building with GNU ld or not.
17509 with_gnu_ld=$lt_with_gnu_ld_GO
17510
17511 # Flag that allows shared libraries with undefined symbols to be built.
17512 allow_undefined_flag=$lt_allow_undefined_flag_GO
17513
17514 # Flag that enforces no undefined symbols.
17515 no_undefined_flag=$lt_no_undefined_flag_GO
17516
17517 # Flag to hardcode \$libdir into a binary during linking.
17518 # This must work even if \$libdir does not exist
17519 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GO
17520
17521 # If ld is used when linking, flag to hardcode \$libdir into a binary
17522 # during linking.  This must work even if \$libdir does not exist.
17523 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GO
17524
17525 # Whether we need a single "-rpath" flag with a separated argument.
17526 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GO
17527
17528 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17529 # DIR into the resulting binary.
17530 hardcode_direct=$hardcode_direct_GO
17531
17532 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17533 # DIR into the resulting binary and the resulting library dependency is
17534 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17535 # library is relocated.
17536 hardcode_direct_absolute=$hardcode_direct_absolute_GO
17537
17538 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17539 # into the resulting binary.
17540 hardcode_minus_L=$hardcode_minus_L_GO
17541
17542 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17543 # into the resulting binary.
17544 hardcode_shlibpath_var=$hardcode_shlibpath_var_GO
17545
17546 # Set to "yes" if building a shared library automatically hardcodes DIR
17547 # into the library and all subsequent libraries and executables linked
17548 # against it.
17549 hardcode_automatic=$hardcode_automatic_GO
17550
17551 # Set to yes if linker adds runtime paths of dependent libraries
17552 # to runtime path list.
17553 inherit_rpath=$inherit_rpath_GO
17554
17555 # Whether libtool must link a program against all its dependency libraries.
17556 link_all_deplibs=$link_all_deplibs_GO
17557
17558 # Fix the shell variable \$srcfile for the compiler.
17559 fix_srcfile_path=$lt_fix_srcfile_path_GO
17560
17561 # Set to "yes" if exported symbols are required.
17562 always_export_symbols=$always_export_symbols_GO
17563
17564 # The commands to list exported symbols.
17565 export_symbols_cmds=$lt_export_symbols_cmds_GO
17566
17567 # Symbols that should not be listed in the preloaded symbols.
17568 exclude_expsyms=$lt_exclude_expsyms_GO
17569
17570 # Symbols that must always be exported.
17571 include_expsyms=$lt_include_expsyms_GO
17572
17573 # Commands necessary for linking programs (against libraries) with templates.
17574 prelink_cmds=$lt_prelink_cmds_GO
17575
17576 # Specify filename containing input files.
17577 file_list_spec=$lt_file_list_spec_GO
17578
17579 # How to hardcode a shared library path into an executable.
17580 hardcode_action=$hardcode_action_GO
17581
17582 # ### END LIBTOOL TAG CONFIG: GO
17583 _LT_EOF
17584
17585  ;;
17586     "default":C) if test -n "$CONFIG_FILES"; then
17587    # Multilibs need MULTISUBDIR defined correctly in certain makefiles so
17588    # that multilib installs will end up installed in the correct place.
17589    # The testsuite needs it for multilib-aware ABI baseline files.
17590    # To work around this not being passed down from config-ml.in ->
17591    # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually
17592    # append it here.  Only modify Makefiles that have just been created.
17593    #
17594    # Also, get rid of this simulated-VPATH thing that automake does.
17595    cat > vpsed << \_EOF
17596 s!`test -f '$<' || echo '$(srcdir)/'`!!
17597 _EOF
17598    for i in $SUBDIRS; do
17599     case $CONFIG_FILES in
17600      *${i}/Makefile*)
17601        #echo "Adding MULTISUBDIR to $i/Makefile"
17602        sed -f vpsed $i/Makefile > tmp
17603        grep '^MULTISUBDIR =' Makefile >> tmp
17604        mv tmp $i/Makefile
17605        ;;
17606     esac
17607    done
17608    rm vpsed
17609  fi
17610  ;;
17611
17612   esac
17613 done # for ac_tag
17614
17615
17616 as_fn_exit 0
17617 _ACEOF
17618 ac_clean_files=$ac_clean_files_save
17619
17620 test $ac_write_fail = 0 ||
17621   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17622
17623
17624 # configure is writing to config.log, and then calls config.status.
17625 # config.status does its own redirection, appending to config.log.
17626 # Unfortunately, on DOS this fails, as config.log is still kept open
17627 # by configure, so config.status won't be able to write to it; its
17628 # output is simply discarded.  So we exec the FD to /dev/null,
17629 # effectively closing config.log, so it can be properly (re)opened and
17630 # appended to by config.status.  When coming back to configure, we
17631 # need to make the FD available again.
17632 if test "$no_create" != yes; then
17633   ac_cs_success=:
17634   ac_config_status_args=
17635   test "$silent" = yes &&
17636     ac_config_status_args="$ac_config_status_args --quiet"
17637   exec 5>/dev/null
17638   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17639   exec 5>>config.log
17640   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17641   # would make configure fail if this is the last instruction.
17642   $ac_cs_success || as_fn_exit $?
17643 fi
17644 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17645   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17646 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17647 fi
17648